Honor durable tool headroom on successor turns - #1151
Conversation
|
You have reached your Codex usage limits for security reviews. Please try again later. |
|
Warning Your free Security trial is over. An organization admin can activate billing to continue. |
|
Important Approval pendingCodeRabbit has no unresolved comments, but it skipped the latest review. Use the checkbox below to review the latest commit. CodeRabbit will approve the changes if it finds no blocking issues.
Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 779cfb0810
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Rust coverage (report only)Report only. This measurement has no threshold, gates no merge, and
What this number does not measure
Per crate, least-covered first
25 files with the most uncovered lines
Measured at |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
What changed
The queued-turn context guard now retains a durable same-turn headroom-exhaustion record's projected tool-result bytes as the conservative minimum when recomputing unreported content. A successor frontier that omits those result entries can no longer erase the typed proof that compaction is required. The existing latest-compaction frontier rule still supersedes old proof after a successful compaction.
The INV-014 PostgreSQL scenario now checks both the tool-result frontier and the successor frontier that previously reduced the allowance to zero. The model-call execution contract records the durable-proof behavior.
Meaningfully changed lines: 69. Numeric-bound ceilings added: none.
Validation