feat(proxy): support terminal-on-success managed tools - #34
Conversation
|
Two-agent review trail for this PR (design debate → implementation → adversarial counter-review). Design (debated to convergence before any code): Codex proposed a six-point contract; Claude's adversarial pass accepted five points with refinements and overturned one — the original design excluded the executed tool round from hidden continuity, but the duplicate tracker is per-turn, so a model that cannot see the receipt on its next turn could re-execute a non-idempotent action. The converged contract retains the assistant call + authoritative receipt in continuity and anchors Jointly resolved semantics, each with tests:
Counter-review of the implementation (f5349df): challenged preflight coverage across managed/native orderings, the envelope target of the Left unmerged for operator decision. |
Summary
Safety contract
Review and verification
Codex implemented this RED-first after a design debate with Claude. Claude then performed an adversarial counter-review, independently reran the test matrix, and approved the semantics. The only follow-up was a comment-placement cleanup in 6fcf779.
Closes #30