Skip to content

Keep native checkpoint custody in resident history - #6182

Merged
joelteply merged 4 commits into
codex/retain-prefix-checkpointfrom
codex/native-checkpoint-owner
Nov 20, 2026
Merged

joelteply merged 4 commits into
codex/retain-prefix-checkpointfrom
codex/native-checkpoint-owner

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Resident history owns checkpoint records, validity after a token cut, host footprint, and return to the original slot following native rewind. The driver identifies view and learned boundaries by type and executes the device operations. This moves the retention policy from #6181 behind the resident history API.

Deployed locally on the M5 before check-in. Both suites passed (46 tests). The exact 15-minute comparison and native replay are pending. This ownership change carries no independent speedup claim.

@joelteply

Copy link
Copy Markdown
Contributor Author

At deployed head 8dfd786, the 900-second M5 window completed 20 resident turns across three minds. All 20 rewound. They reused 57.6% of prompt tokens, generated 6,795 tokens (7.55 per wall second), and reached their first step within 783 ms. The longest later service gap was 1.531 s. Peak sampled core RSS was 25,940,512 KiB. There were 19 observed acts, 11 empty outputs and zero inference failures. Four credits were staged. Durable learning and acoustic onset were unverified.

The prior window on #6181 had 10 completions, four rewinds, 16.0% reuse, 3.56 wall tokens/s and peak RSS of 25,811,504 KiB. Different workloads prevent attributing this difference to the ownership refactor. Native post-restart replay matched the first two tokens byte for byte. Rewinding to an earlier checkpoint after a process restart is a distinct, still-open case.

@joelteply

Copy link
Copy Markdown
Contributor Author

Independent Codex source review approved e8cadfb against 082236b. Reviewed checkpoint retention, refusal paths, rewind restoration, footprint and prefill decisions. Nonblocking documentation finding: driver/history.rs:27 should qualify the Bound link as super::Bound. Reviewer did not run tests.

@joelteply
joelteply marked this pull request as ready for review November 20, 2026 06:13
@joelteply
joelteply merged commit e74505c into codex/retain-prefix-checkpoint Nov 20, 2026
34 checks passed
@joelteply
joelteply deleted the codex/native-checkpoint-owner branch November 20, 2026 06:42
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