Repository navigation
The render receipt: what each served prompt showed her, in order, at the level the view chose (HER-TOOLS; #5585 and #5637 consume it) - #5639
Merged
Conversation
joelteply
added a commit
that referenced
this pull request
Oct 31, 2026
… or level update the block in place (no append), so the receipt never reports stale evidence (Codex on #5639) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…the level the view chose, bound to her and the request (HER-TOOLS; #5585 consumes it) - continuum-context: `Level` moves to `levels` (the crate's levels-of-detail owner) so the epoch can record it; each `Event` carries its occurrence (`ElementId`, now serde) and level; `View::receipt()` projects every block after the head in prompt order (occurrence, level, version, retired, chars); `View::sent()` keeps it until `take_submitted()`, never saved. - continuum-cognition: `render_receipt::{RenderReceipt, RenderReceiptSink}`; the faculty takes the view's receipt on every outcome of the request that carried it and delivers it to its one sink only where that request was served, so a prompt the engine never accepted is never receipted; a measurement fork has no sink. - The memory incarnation joins the binding with #5585's `WorkingMemory::incarnation` (Codex). - clippy: one pre-existing `map_or(true, …)` in view.rs becomes `is_none_or`. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…sink is installed per mind in render_receipt (the faculty file untouched); a fork never delivers Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
… or level update the block in place (no append), so the receipt never reports stale evidence (Codex on #5639) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…ns the owned Contribution -> Workspace path in Codex's #5585 integration (no second registry) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
force-pushed
the
fable/render-receipt
branch
from
October 31, 2026 06:55
a53f84b to
a5122bd
Compare
Contributor
Author
|
APPROVE #5639 at exact head a5122bd (Cormac). Verified in a detached worktree at a5122bd (2026-10-31T07:0xZ, enrico):
For the record, and already agreed: invariant 4 (card dcf95bce) adds |
This was referenced Oct 31, 2026
joelteply
added a commit
that referenced
this pull request
Oct 31, 2026
…ew epoch instead of refusing the resident (#5659) * A checkpoint's context view is derived: one that no longer decodes is 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 * The regression test reproduces the outage exactly: a real serialized 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 * Derived view decoded from its exact text (RawValue), never through serde_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 --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Oct 31, 2026
…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]>
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.
How it serves the minds: a task's end is acknowledged only when she was actually shown it, so a restart or a fold never loses an end she hasn't seen. It replaces #5637's order-based inference (Codex: no interim). HER-TOOLS "The render receipt", HER-TASKS acknowledge-at-perception.
Change
continuum-context:level::Level(Full, Summary, Pointer, Folded) gets its own module.Eventcarries its occurrence (ElementId, now serde) and its level.View::receipt() -> Receipt { epoch, items: [Rendered { source, element, level, version, retired, chars }] }covers every block after the head, in prompt order.View::sent()keeps it;take_submitted()takes it once. It is never saved.continuum-cognition:render_receipt::{RenderReceipt { owner, request, view }, RenderReceiptSink, install(owner, sink), deliver}.WorkingMemory::incarnation, and the ledger installs the sink (Codex). ARepeat { of }level arrives with invariant 4's repeat rendering (Cormac, dcf95bce).map_or(true, …)becomesis_none_or.Tests
the_receipt_names_each_shown_occurrence_and_its_level_in_prompt_order: levels and order, chars summing to the view, take-once aftersent().continuum-context --lib: 35/35.continuum-cognition --lib: 952/953 (1 ignored) at the first commit;llm_deliberation_faculty+render_receipt104/104 at the head (M5,--features metal, 06:04Z).🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo