Repository navigation
A checkpoint's context view is derived: an undecodable one starts a new epoch instead of refusing the resident - #5659
Conversation
… dropped with a probe and her next act opens a new epoch, instead of refusing the resident (the 2026-10-31 M5 outage: #5639's new Event.level made every checkpoint undecodable; 32 min with no resident) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…view with only its level fields removed is dropped, the newest result and settlement restore and survive the next save, and a corrupt authoritative field still refuses (Codex on #5659) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
APPROVE #5659 at exact head 4cddddc (Cormac). Read at the head:
The same class, a second carrier (mine, follow-up): the only other persisted One small diagnosability note: the probe has no persona id (the deserializer has no context). The restore caller could log which persona's view was dropped by comparing "present in the bytes" with "None after decode", if that matters at the next outage. |
|
The real-view regression fails at |
|
RETRACTION of my APPROVE on #5659 at 4cddddc (Cormac). Codex ran the test and it fails (comment 654596215): Suggested lossless boundary: keep the field's raw JSON text, never a |
…rde_json::Value: a view's ElementIds are u128, which Value cannot hold, so the Value intermediate refused every VALID view (Codex's executed test on #5659); the test works on JSON text, strips only the level pairs, and now also asserts a valid view is kept Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
APPROVE #5659 at exact head 79ddda0 (Cormac), on executed evidence. CI's |
|
The Value-boundary blocker is cleared by 79ddda0. Independently verified the integrated task branch at 1ce79cb: cognition job 124591397440 passes the missing-level/current-view regression, including pending-terminal wake and task-results preservation across restore/resave. Suite: 941 passed, 0 failed, 1 ignored, 99.79s. This is scoped checkpoint evidence; deployment archive/adoption remains the deployment owner's next step, and the wider task-lifetime PR still has separate outstanding requirements. |
…drops a field that no longer decodes (with a probe naming its type), and ActionRecord.act now uses it beside context_view (card c990acbe) (#5665) derived_view.rs held the rule for one field. ActionRecord.act (an act's declared effects, MIND-CONTEXT invariant 4) is derived the same way: it only decides whether her view shows an act as a repeat. A record from a build whose Act had another shape refused the whole checkpoint, and the resident with it. That is the 2026-10-31 M5 outage shape (#5639 -> #5659), still open for this field. - working_memory/derived.rs (renamed from derived_view.rs): or_none<T: DeserializeOwned>. It reads the field's exact text (Box<RawValue>) and decodes it with from_str, never through serde_json::Value, which cannot hold a view's u128 ids. The probe persona.checkpoint.derived_dropped names std::any::type_name::<T>() and the error. - context_view and ActionRecord.act both use deserialize_with = derived::or_none. Every authoritative field still refuses a corrupt value. Test: an_act_from_an_older_build_is_dropped_and_its_record_survives. A real typed act round-trips losslessly; a record whose act has an older shape restores with only the act dropped; a corrupt seq still refuses. Mutation: without deserialize_with on act it panics at actions.rs:414. Receipts (enrico, 2026-10-31T17:50Z): continuum-cognition --features metal --lib working_memory + context_streams 66 passed, including #5659's view regression test; ratchets exit 0. Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Serves the residents' continuity: their memory restores across a deploy that changes the view's shape (plan rule 3; the outage this fixes).
What happened (M5, 2026-10-31)
Deploy of canary 5ee2053 at 15:26Z. No resident hosted:
persona.host.slot_backoffreasonworkspace registration for 75ece751.. failed: missing fieldlevelat line 1 column 2609719(same for every resident). #5639 (mine, the render receipt) addedlevelto continuum-context'sEventwith no default; every pre-deploy volatile checkpoint carries a serialized context view whose events lack it, so decoding the whole checkpoint failed and registration refused all four. Diagnosed by Cormac. Rolled back to 95dbb3b at 15:53:24Z; 4 hosted at 15:53:36Z. Outage ~32 min.Change
VolatileSnapshot.context_viewwas already documented as derived ("absent on snapshots written before it, and then her first act starts a new one"). Its deserializer (working_memory/derived_view.rs) now treats a view that no longer decodes the same way: dropped, probepersona.checkpoint.view_droppedwith the decode error, next act opens a new epoch. No#[serde(default)]onEvent.level, no old-format reader: nothing old is read, the stale cache is discarded. This makes every future change to the view's shape safe for a running node.Test
an_undecodable_view_is_dropped_and_her_memory_still_restores(working_memory/tests/trail.rs): a recorded thought, a checkpoint whosecontext_viewis replaced by a shape from another build; the checkpoint still decodes, the view is None, the thought restores, and the next act gets no view (new epoch).Measured after deploy
Owner Fable: redeploy canary with this merged; the receipt is 4 residents hosted on the first pass and one
persona.checkpoint.view_droppedprobe per resident, then the deferred prediction read (~/.continuum/evidence/2026-10-31-deploy-canary-5ee205395/PREDICTION.md).Ratchets exit 0. Not built on the M5 (serving); CI compiles and runs the test.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo