Repository navigation
fix(tools): read default-shaped arguments as absent (T15) - #267
Conversation
Models that fill every optional field failed read_file, edit_file, tree, search and read_tool_result calls whose intent had exactly one reading (tool-layer D9: 378 of 753 read-side errors since 2026-09-26). - read_file: ranges wins over offset/limit with note=offset_ignored; a comma inside one range reads as '-' - edit_file: empty old/insert_before/insert_after are absent; an empty only-form still fails - tree glob and search include/exclude: "" means no filter - read_tool_result: an empty query pages - search: context above 5 clamps with note=context_clamped=5 Refs ENG-1012
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 00a6abd29f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
T15 / ENG-1013. Regressions: edit_preview_normalizes_empty_unused_forms and read_file_reports_ignored_offsets_in_every_successful_mode failed before the repairs. Record workspace verification and dispatch measurements.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 50b07da8d7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4688477f13
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Stacked on #265 (base
docs/eng-1012-tool-failure-audit). Implements T15 fromdocs/plans/tool-layer.md§ D9.Closes ENG-1013 · part of ENG-1012
User-visible behavior
Models that fill in every optional argument no longer fail calls whose intent has exactly one reading. In the audit, these classes were 378 of 753 read-side errors since 2026-09-26, and each one showed as a red ✕ in the TUI:
read_fileranges+offset/limit→invalid_ranges(252)rangeswins; headernote=offset_ignoredread_file"370,470"→invalid_ranges370-470edit_file"old":""beside a realinsert_after→invalid_edit(63)tree/search"glob":"",include:[""]→bad_glob(16)read_tool_result"query":""→invalid_query(11)offset/limitsearchcontext: 10→invalid_context(36)note=context_clamped=5Unchanged: which file is written, which command runs, which approval applies;
path_not_foundandrange_out_of_boundsstay errors.Design notes
match/filter in the tool's own validation; no new layer.search.contextclamp was RR10's (ENG-872) rule. RR10 has not landed, so it lands here, and RR10 keeps type coercion (stringified arrays, unknown fields).Verification
cargo fmt --all,cargo clippy -p qq-core --all-targets --all-features -- -D warningscargo test -p qq-core: 858 lib tests plus integration tests green, including new regressions for every class abovetool_dispatchsmoke test green; the required benchmark was subsequently recorded (see review receipt below).Compatibility / performance
No protocol or schema change. Valid calls produce byte-identical results; the only new output is the
note=header field on calls that previously failed.Next in the stack: T16 (Responses
*.donearguments, after a captured stream) and T17 (ToolErrorKindseverity in the TUI).Review repairs (2026-10-07, 50b07da)
note=offset_ignoredto unchanged/info/outline/image successful reads too.