Classify every comment as tautology, stale, excuse or decision record. Tautology/stale/excuse comments are deleted (excuses filed as issues #196-#236), decisions moved to docs/adr/0001-0034. - scripts/lint-comments.sh + .comment-baseline: per-file comment count may only go down; wired into tests/all.sh - .claude/skills/delete-comment: repeatable audit workflow - cargo fmt applied to touched crates Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
800 B
800 B
Codex backend quirks
Status: accepted
Context
Codex tool calls carry a call id and an item id. Reasoning items are encrypted and the request uses store=false. Codex models cannot switch reasoning off. The server hides models whose minimal_client_version exceeds the client's.
Decision
Store tool ids as call_id|item_id so both survive a round trip; replay the encrypted reasoning item verbatim; map Off to the lowest supported level; claim a high client version (override HX_CODEX_CLIENT_VERSION) so models are listed.
Consequences
Round trips are lossless; the claimed version only affects listing, the server still gates use.
Code: crates/hx-ai/src/codex.rs (id encoding, reasoning replay, effort mapping, client version); crates/hx-ai/src/lib.rs:Effort (start level, levels)