Repository navigation
Add provenance for automatic turns - #691
Conversation
|
You have reached your Codex usage limits for security reviews. Please try again later. |
There was a problem hiding this comment.
Code Review
This pull request introduces a mechanism to track, validate, and record automatic turn retries (such as after a cyber policy block) using model-opaque metadata (AutomaticTurnProvenance) carried in the client_user_message_id transport envelope. The server validates this client-provided metadata against preceding policy events stored in a SQLite database before recording the turn. Feedback on the changes points out a potential issue where duplicate or stale policy trigger events could bypass attempt limits or reset the attempt count by minting new eligibility tickets, and suggests checking if an automatic turn has already been recorded for the given trigger turn ID to prevent this.
842d619 to
dcab5b2
Compare
7c1d288 to
0934714
Compare
9d29d0d to
aa1b0db
Compare
Summary
Validation
cargo fmt --manifest-path codex-rs/Cargo.toml --allcargo metadata --manifest-path codex-rs/Cargo.toml --no-deps --format-version 1git diff --checkBuild and test execution are deferred to hosted validation.