Skip to content

feat(cognition): receipt proprioception archive — act history survives the ring (#414 option b) - #2297

Merged
joelteply merged 1 commit into
canaryfrom
feat/414-receipt-proprioception-archive
Aug 14, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feat/414-receipt-proprioception-archive

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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-derived ContextBudget fractions (receipt_archive_chars 1/16, steps_ledger_chars 1/64 — the de-hardcode guard's contract, no bare counts, floored at MIN_SERVE_CTX for the stored buffer per the working_memory_steps precedent). The StepsLedger perception fact renders from the archive instead of filtering the ring, so act history survives conversation and depth scales with the lane. Persisted in VolatileSnapshot (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_crate green.

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

…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
joelteply force-pushed the feat/414-receipt-proprioception-archive branch from 5051d4f to de379ff Compare August 14, 2026 20:35
@joelteply
joelteply merged commit 04e373b into canary Aug 14, 2026
5 checks passed
@joelteply
joelteply deleted the feat/414-receipt-proprioception-archive branch August 14, 2026 20:47
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