Skip to content

Compare token history once when binding a resident - #6184

Merged
joelteply merged 1 commit into
codex/native-checkpoint-ownerfrom
codex/token-history-comparison
Nov 20, 2026
Merged

joelteply merged 1 commit into
codex/native-checkpoint-ownerfrom
codex/token-history-comparison

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Move shared-prefix comparison into token history and reuse the result when binding the resident. Compare append and rewind decisions with their prior behavior, including divergence inside a saved prefix.

Deployed locally on the M5 before check-in. The deployed source diff matched SHA-256 a88ef123d86a59aa80cc144093f1051bc920ca93a6b0a6969338ed744ea13435. The five-minute guard observed 10 generation entries, one act and zero inference failures. The 900-second comparison is running.

@joelteply

Copy link
Copy Markdown
Contributor Author

M5 #6184 b9b60cb deployed digest 3dcadd8411ac. Exact 900s [1795149855000,1795150755000): 13 turns/4 residents, 7346 tokens, 8.16 wall and 35.86 decode tok/s; prior steady build 6.36 and 35.78 with different resident turns. 95.2% occupancy, 118ms longest engine idle, 6 acts, 9 empty turns, zero inference failures. 4 staged credits; durable adoption unverified. RSS 25041 MiB at end. Slow turn 75ece751: 7084/20225 reused, 49915ms prefill, 1255ms longest service gap, 5793ms switch metric. Native continuations byte-identical after rewind/restart. Source comparison alone cannot establish causality.

@joelteply

Copy link
Copy Markdown
Contributor Author

Independent Codex source review completed at b9b60cb against 9403533. No correctness findings in prefill planning, checkpoint selection or shared-prefix accounting. Optional gap: restart tests cover decisions but do not directly assert the shared-prefix count. The reviewer did not run builds. Exact-head checks completed successfully or were skipped by CI.

@joelteply
joelteply marked this pull request as ready for review November 20, 2026 06:03
@joelteply
joelteply merged commit e8cadfb into codex/native-checkpoint-owner Nov 20, 2026
33 checks passed
@joelteply
joelteply deleted the codex/token-history-comparison branch November 20, 2026 06:03
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