Reject truncated exec approval commands [AI]#81001
Conversation
|
Codex review: needs real behavior proof before merge. Summary Reproducibility: yes. from source inspection: on current main a command over the sanitizer display cap is shortened in Real behavior proof Next step before merge Security Review detailsBest possible solution: Keep the hardening in the gateway approval registration path if maintainers accept the behavior change, require redacted after-fix real behavior proof, and land only after the focused gateway test/check lane passes. Do we have a high-confidence way to reproduce the issue? Yes, from source inspection: on current main a command over the sanitizer display cap is shortened in Is this the best way to solve the issue? Yes, the proposed fix is on the narrow owner boundary: reject approval registration before What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 30c17fed2077. |
|
Not applicable to this automation stage; changelog/release-note and external real behavior proof requirements are handled outside auto-pr stages. Quoted comment from @clawsweeper:
|
* fix: reject truncated exec approval commands * docs: add changelog entry for PR merge
* fix: reject truncated exec approval commands * docs: add changelog entry for PR merge
* fix: reject truncated exec approval commands * docs: add changelog entry for PR merge
Summary
AI-assisted: Yes
Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Real behavior proof (required for external PRs)
src/gateway/server-methods/server-methods.test.ts.INVALID_REQUESTresponse with no pending approval broadcast when the command display would be truncated.Root Cause (if applicable)
Regression Test Plan (if applicable)
src/gateway/server-methods/server-methods.test.tsUser-visible / Behavior Changes
Long exec approval requests that exceed the approval display limit now fail approval registration instead of appearing as pending approvals.
Diagram (if applicable)
Security Impact (required)
No)No)No)Yes)No)Yes, explain risk + mitigation: exec approval registration now refuses commands that cannot be fully represented in the approval display, preventing approval records from diverging from the command continuation.Repro + Verification
Environment
Steps
Expected
INVALID_REQUEST.Actual
Evidence
Human Verification (required)
What you personally verified (not just CI), and how:
Review Conversations
Compatibility / Migration
Yes)No)No)Risks and Mitigations