Repository navigation
Her checkpoint survives a restart: the first turn after it rewinds, never re-prefills her view - #6290
Merged
Merged
Conversation
…ever re-prefills her view After a restart a mind came back with her held tokens and KV in place but no checkpoint (it lived in host memory only), and on the hybrid a prompt that diverges inside what she holds cannot rewind without one. So her first turn re-prefilled her whole prompt: on the M5 at 09:52Z (build c43b2ba) Aiko started no_checkpoint with reused 0, sharing 214,911 of 246,764 tokens with what she held, and prefilled 1,019 s; Benchy the same. Her view-end checkpoint now travels with her blocks (fork CambrianTech/llama.cpp#164): - A stop hands it over beside her record, in the same generation, only while the fork finds it still valid against her parked blocks (owner, cell lineage, an uncut receipt) and only when it holds exactly its end within her history and was taken under the genes her blocks carry. It is fenced durable before the manifest names it (Codex: publish the descriptor only once all blocks are durable). - The resume reads it into her restored blocks; the fork checks it against them and binds it to their restored cells. Her history resumes with it as her view checkpoint under the genes she resumes under, so reuse::choose rewinds to it, and a prompt that diverges before its end still restarts as diverged_before_checkpoint (Codex's first-turn check). - A checkpoint that cannot cross (refused by the fork, or not exactly its end) is a probe (persona.engine.checkpoint_not_preserved / _not_restored) and she crosses without it: her blocks and history are her durable state; only that rewind is lost. - The manifest goes to format 4, PreservedMind.checkpoint naming its file and end; a format-3 manifest is upgraded explicitly (each mind as she was, with none). Cleanup knows .ckp files. driver.rs stays at 999 lines; the new types live in preserve/mind_files.rs and driver/history.rs. ## Measured - checkpoint_handoff (new example) on the M5, Qwen3.6-35B-A3B Q4_K_M, 2026-11-27 ~10:05Z: view 4,096, tail 256, decode 32. After the restart she prefilled the 256-token tail, not 4,352; all 32 decoded tokens equal a never-stopped control's; a checkpoint of another generation refused with nothing taken. Checkpoint file 65.9 MB. - cargo test -p continuum-engine --features metal --lib persona_scheduler::preserve: 8 passed (format-3 upgrade, and cleanup keeps a named .ckp and removes an older or torn one). - Ratchets vs origin/canary: pass. - After deploy (owner: Fable, the M5): the first turn of each resident after a restart reports a rewind, not no_checkpoint, with prefill near her tail. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
… across a restart) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…row across the C boundary) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After a restart a mind came back with her held tokens and KV in place but no checkpoint (it
lived in host memory only), and on the hybrid a prompt that diverges inside what she holds
cannot rewind without one. So her first turn re-prefilled her whole prompt: on the M5 at
09:52Z (build c43b2ba) Aiko started no_checkpoint with reused 0, sharing 214,911 of
246,764 tokens with what she held, and prefilled 1,019 s; Benchy the same.
Her view-end checkpoint now travels with her blocks (fork CambrianTech/llama.cpp#164):
still valid against her parked blocks (owner, cell lineage, an uncut receipt) and only when it
holds exactly its end within her history and was taken under the genes her blocks carry. It is
fenced durable before the manifest names it (Codex: publish the descriptor only once all
blocks are durable).
their restored cells. Her history resumes with it as her view checkpoint under the genes she
resumes under, so reuse::choose rewinds to it, and a prompt that diverges before its end still
restarts as diverged_before_checkpoint (Codex's first-turn check).
(persona.engine.checkpoint_not_preserved / _not_restored) and she crosses without it: her blocks
and history are her durable state; only that rewind is lost.
manifest is upgraded explicitly (each mind as she was, with none). Cleanup knows .ckp files.
driver.rs stays at 999 lines; the new types live in preserve/mind_files.rs and driver/history.rs.
Measured
4,096, tail 256, decode 32. After the restart she prefilled the 256-token tail, not 4,352; all
32 decoded tokens equal a never-stopped control's; a checkpoint of another generation refused
with nothing taken. Checkpoint file 65.9 MB.
(format-3 upgrade, and cleanup keeps a named .ckp and removes an older or torn one).
a rewind, not no_checkpoint, with prefill near her tail.
Stacks on canary c43b2ba (An in-process turn that is still advancing is never ended by the act deadline #6289). Fork: A mind's checkpoint crosses a restart beside her record llama.cpp#164 (the submodule points at it).
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo