Skip to content

Retain earlier learned checkpoints across deeper captures - #6181

Merged
joelteply merged 6 commits into
codex/resident-frame-servicefrom
codex/retain-prefix-checkpoint
Nov 20, 2026
Merged

joelteply merged 6 commits into
codex/resident-frame-servicefrom
codex/retain-prefix-checkpoint

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Retain the earliest still-valid learned checkpoint when a deeper checkpoint replaces it. The existing token and basis comparison, native lineage validation, and footprint owner still apply. Two previous M5 turns shared 7,078 and 10,060 tokens yet had no usable earlier snapshot.

The candidate was deployed on the M5 before check-in. The five-minute check recorded five generation entries, two acts and zero inference failures. The measured benefit and additional host memory remain under evaluation.

@joelteply

Copy link
Copy Markdown
Contributor Author

M5, two exact 900-second live windows. The earlier build completed 15 resident turns, reused 27.5% of prompt tokens and generated 5.72 tokens per wall second. This candidate completed 10 turns, reused 16.0%, and generated 3.56 tokens per wall second. Different inputs and completions prevent causal attribution.

All ten completed turns started within 877 ms. Their maximum later service gap was 1.537 s. Four rewound successfully, five diverged before a usable checkpoint, and one was cold. One resident previously shared 10,010 tokens, then shared only 9,228. Retaining the 10,010-token checkpoint cannot serve that shorter match. Peak sampled core RSS was 25,811,504 KiB versus 26,045,296 KiB before. Nine acts, seven empty outputs, zero inference failures, one staged credit; durable learning unverified.

Native replay matched both post-restart tokens byte for byte. No measured throughput or reuse improvement in this sample. Keep the PR in draft while validating the retention policy on matched inputs.

@github-actions github-actions Bot added size: L and removed size: S labels Nov 20, 2026
@joelteply

Copy link
Copy Markdown
Contributor Author

Independent Codex source review approved e74505c against 4341d3c. The reviewer traced snapshot retention, invalidation, host footprint and rewind eligibility. One additional host snapshot per resident can consume memory; its isolated cost and benefit remain unquantified. Review was source-only. Exact-head CI completed without failed checks.

@joelteply
joelteply marked this pull request as ready for review November 20, 2026 07:12
@joelteply
joelteply merged commit bb5af61 into codex/resident-frame-service Nov 20, 2026
33 checks passed
@joelteply
joelteply deleted the codex/retain-prefix-checkpoint branch November 20, 2026 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant