Skip to content

Keep checkpoints usable after token counting outages - #21

Merged
Brian Krabach (bkrabach) merged 1 commit into
mainfrom
codex/count-recovery
Oct 8, 2026
Merged

Brian Krabach (bkrabach) merged 1 commit into
mainfrom
codex/count-recovery

Conversation

@bkrabach

@bkrabach Brian Krabach (bkrabach) commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

When a provider input-token counting outage occurs during context preparation, preserve the existing checkpoint and propagate the counting diagnostic. Do not record it as a permanent summary failure: that latch otherwise prevents continuation even after counting recovers. Actual compaction failures retain their existing handling.

Validation in the project-owned DTU: the 453-test context suite passed; the final focused continuity tests passed at initial measurement, compaction measurement, and post-compaction measurement. Each verifies unchanged canonical history and checkpoint after failure, no foreground generation, and successful later continuation and checkpoint restoration.

Recognizes the optional OpenAI provider counting exception without importing the provider SDK. Companion provider PR supplies bounded retries and sanitized diagnostics; loop-live and Unified changes display those diagnostics.

Related changes: provider #123, context #21, loop #14, Unified #468. Deploy the context and loop changes before or alongside the provider change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant