Skip to content

Keep Guardian reviewers on summary-based compaction - #43912

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/e1a84f9c7752a712399cd749c3834b2a7bb4a7e6
Sep 8, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/e1a84f9c7752a712399cd749c3834b2a7bb4a7e6

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

Keep Guardian reviewers on summary-based compaction

Why

Guardian reviewers can inherit token-budget mode from the parent session or model defaults, causing context rollover instead of summary-based compaction.

What changed

Clear inherited token-budget startup activation, set an explicit default TokenBudgetConfig, and disable Feature::TokenBudget and Feature::ContextManagement for Guardian review sessions.

Testing

Update regression coverage to verify that reviewers compact with a summary even when the parent and model enable token budgets. Cover both transcript modes and browser evidence, checking that review requests omit token_budget.context_window and retain the compaction summary.

## Why

Guardian reviewers can inherit token-budget mode from the parent session or model defaults, causing context rollover instead of summary-based compaction.

## What changed

Clear inherited token-budget startup activation, set an explicit default `TokenBudgetConfig`, and disable `Feature::TokenBudget` and `Feature::ContextManagement` for Guardian review sessions.

## Testing

Update regression coverage to verify that reviewers compact with a summary even when the parent and model enable token budgets. Cover both transcript modes and browser evidence, checking that review requests omit `token_budget.context_window` and retain the compaction summary.

GitOrigin-RevId: e1a84f9c7752a712399cd749c3834b2a7bb4a7e6
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/e1a84f9c7752a712399cd749c3834b2a7bb4a7e6 branch from 2b8dd96 to dd112a9 Compare September 8, 2026 21:09
@copyberry
copyberry Bot merged commit dd112a9 into main Sep 8, 2026
26 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/e1a84f9c7752a712399cd749c3834b2a7bb4a7e6 branch September 8, 2026 21:10
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant