fix(agents): keep prompt data truncation UTF-16 safe#101303
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 7, 2026, 12:48 AM ET / 04:48 UTC. Summary PR surface: Source +3, Tests +27. Total +30 across 2 files. Reproducibility: yes. from source inspection: current main caps prompt data with Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Next step before merge
Security Review detailsBest possible solution: Land this narrow fix after exact-head CI and maintainer review, keeping the scope limited to the prompt data block cap rather than folding in unrelated truncation sites. Do we have a high-confidence way to reproduce the issue? Yes from source inspection: current main caps prompt data with Is this the best way to solve the issue? Yes; applying the existing AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 59097783e2d0. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +3, Tests +27. Total +30 across 2 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (1 earlier review cycle)
|
d9d31fe to
4ada05b
Compare
4ada05b to
1ef0312
Compare
|
Land-ready review complete at exact head
Contributor source remained untrusted; proof used secretless hosted PR CI, not a credential-hydrated Testbox. No remaining proof gap for this bounded central fix. |
|
Merged via squash.
|
Summary
Linked context
Real behavior proof (required for external PRs)
Tests and validation
Risk checklist
Did user-visible behavior change? (
Yes/No)Yes. Malformed truncated text is now avoided while preserving existing caps and truncation markers.
Did config, environment, or migration behavior change? (
Yes/No)No.
Did security, auth, secrets, network, or tool execution behavior change? (
Yes/No)No.
What is the highest-risk area?
agent prompt data block formatting.
How is that risk mitigated?
The patch is limited to the existing truncation boundary and is covered by focused regression proof above.
Current review state
What is the next action?
ClawSweeper re-review and maintainer review after this proof/body refresh.
What is still waiting on author, maintainer, CI, or external proof?
Nothing is waiting on the author after this proof update; waiting on CI/ClawSweeper/maintainer review.
Which bot or reviewer comments were addressed?
Addressed ClawSweeper's needs-proof feedback by using exact Real behavior proof field labels and adding copied terminal output from the current PR head.