Repository navigation
feat(cognition): receipt proprioception archive — act history survives the ring (#414 option b) - #2297
Merged
Conversation
…s the ring (#414 option b) THE DEPRIVATION: receipts are the RARE kind in the capacity-bounded shared working-memory ring, so they age out while the act counter climbs. Measured 2026-08-14: Asha had executed 2,863 acts and her window rendered ONE ('+2862 earlier steps aged out') — and with her history invisible she read her own repetition as 'I have nothing to contribute' (the withdrawal loop's mechanism). The durable Tool-origin engrams are deliberately gated OUT of semantic recall (#166), so no persona-facing path back to her acts existed. THE CHANNEL (option b, ratified): a receipts-ONLY archive inside WorkingMemory — every act's [action #n] head line, bounded by CHARS via two new window-derived ContextBudget fractions (receipt_archive_chars 1/16, steps_ledger_chars 1/64; the de-hardcode guard's contract, no bare counts). The StepsLedger perception fact now renders from the archive instead of filtering the ring, so act HISTORY survives conversation and scales with the lane. Persisted in VolatileSnapshot with serde-default back-compat; restore re-clamps through the one bounded push. The pre-archive counter-only arm keeps its honest no-recall-promise wording for old snapshots. Tests (existing mods, // what this catches): archive survives ring churn + char-bound eviction + snapshot round-trip; ledger four states incl. the churn-survival fix itself and the pinned no-recall-promise; all ContextBudget guards green (33/33 targeted). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
force-pushed
the
feat/414-receipt-proprioception-archive
branch
from
August 14, 2026 20:35
5051d4f to
de379ff
Compare
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.
Builds the ratified fix for the withdrawal loop's deprivation mechanism: a citizen's own completed acts were invisible to her next turn (receipts age out of the capacity-bounded shared WM ring; Tool-origin engrams are deliberately gated out of semantic recall per #166). Measured: Asha, 2,863 acts executed, ONE visible — and she read that starvation as 'I have nothing to contribute'.
The channel: a receipts-ONLY archive inside
WorkingMemory— every act's[action #n]head line, char-bounded by two new window-derivedContextBudgetfractions (receipt_archive_chars1/16,steps_ledger_chars1/64 — the de-hardcode guard's contract, no bare counts, floored at MIN_SERVE_CTX for the stored buffer per theworking_memory_stepsprecedent). TheStepsLedgerperception fact renders from the archive instead of filtering the ring, so act history survives conversation and depth scales with the lane. Persisted inVolatileSnapshot(serde-default back-compat); the pre-archive counter-only arm keeps its honest no-recall-promise wording.Not touched: the #166 semantic-recall gate (its executing assertion stays green), the WM trailing channel, the full-result pin.
Tests (existing mods,
// what this catches:): archive survives ring churn, char-bound eviction keeps newest, snapshot round-trip; ledger four states including the churn-survival fix itself and the pinned no-recall-promise. 33/33 targeted green;no_new_hardcoded_context_or_prompt_size_constant_anywhere_in_the_crategreen.Live proof owed post-deploy: a citizen's ledger showing multi-act history through conversation churn.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo