Repository navigation
docs(tools): record tool-failure audit and plan T15–T17 - #265
Merged
Merged
Conversation
Session-store audit (plan § D9): read-side contract errors are mostly
default-shaped arguments from Codex-family models, empty {} batches on
Responses routes, and a single is_error bit the TUI renders as a red
failure. Opens T15 (default-shaped arguments), T16 (Responses done-event
arguments), and T17 (ToolErrorKind severity in clients).
Refs: ENG-1012
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes ENG-1012 (docs half; T15–T17 are follow-up slices).
What
An audit of the local session store (
~/.local/share/qq/sessions.sqlite3, store schema 42) explains whysearch,read_file, andedit_fileshow so many errors. It is recorded asdocs/plans/tool-layer.md§ D9, with raw counts in the tool-layer ledger. No code changes.Findings
search cursor_invalid(939 of them in one runaway run), is already fixed onmainby T2.1 (ENG-959).read_file12.2 %,search5.6 %,edit_file26.8 %,read_tool_result33 %. The goal is < 1 %.rangessent together withoffset/limit. Codex-family models fill every optional field.{}arguments. These came in whole parallel batches, on Codex routes only. This looks like a Responses adapter gap:openai.rsonly accumulatesfunction_call_arguments.deltaand ignores the fullargumentson the*.doneevents. That is unconfirmed until a stream is captured.edit_filewith""for the forms it does not use.context> 5, empty globs, empty spillquery.path_not_foundandrange_out_of_boundsare genuine answers and should stay visible to the model.is_erroras a red ✕ with an error panel, so a self-corrected argument looks the same as a real failure.Planned slices
note=in the header. This is semantic defaulting; RR10 (ENG-872) keeps type coercion.*.doneevents when no deltas arrived. Capture a stream first.ToolErrorKind { Correction, Outcome, Failure }with an additive protocol field. The TUI shows↻(muted) /!(warning) /✕(failure), and folds a correction into the successful retry that follows it.Verification
Docs only. The counts come from read-only
sqlite3queries overtool_callsjoined toruns.resolved_model_json; the method is in the ledger entry. No build, protocol, or performance impact.