Skip to content

fix(agent): return recoverable tool input errors - #38

Merged
minixalpha merged 2 commits into
mainfrom
fix/recover-invalid-tool-arguments
Sep 15, 2026
Merged

minixalpha merged 2 commits into
mainfrom
fix/recover-invalid-tool-arguments

Conversation

@minixalpha

@minixalpha minixalpha commented Sep 14, 2026

Copy link
Copy Markdown
Owner

Invalid model tool arguments can abort a run before the model receives feedback. Validate arguments before preview and dispatch, returning matching is_error=True tool results with correction guidance. Cover missing fields, incorrect types, unknown tools, NUL characters, and incomplete JSON delivered by the SDK. Valid sibling calls still execute, recovery uses the existing turn budget, and Journals/ATIF preserve rejected inputs and errors.

Validation: 276 core tests pass with both the locked SDK and benchmark SDK 1.5.0; 22 Harbor adapter tests pass. Independent Herdr review reported no findings. CI passes on Python 3.13 and 3.14.

Four historical response replays recover with scripted follow-ups. The targeted scheduler continues after one live argument error and passes 6/6 official tests. The fresh full20 run records 10 passes, nine zeros, and one unscored task; nine passes finish normally. The baseline passed 8/20, but the fresh group contains no argument errors and has other experimental differences, so the score gain cannot be attributed to this fix.

Some malformed JSON still fails inside the SDK before delivery. Circuit also exposes an existing cost-finalization interruption/ATIF export issue, documented for follow-up.

The PR includes the Unreleased changelog entry, synchronized Chinese and English development notes, and structured experiment results.

@minixalpha
minixalpha merged commit 65ef710 into main Sep 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant