sqst-memshelf · private shelf · july 13–22, 2026

A Week on the Shelf

Results of the week-long memshelf experiment (Case B) — agent working memory as a git shelf of digest-indexed episodes. Every number comes from ledger.tsv and the memshelf stats / doctor tools; nothing is eyeballed.

closing entry · memshelf stats · 2026-07-22
236.9 : 1 working-memory compression

2,104,800 tokens of lived work held in context for 8,885 tokens (INDEX 2,772 + digests 6,113) — memory’s standing per-session cost.

35
episodes on the shelf
(18 live + 17 import)
0
episodes lost
this week
5/5
recall test from a fresh session
(0 misses, 0 over-fetch)
8 PRs
all of M1 built and merged
in one day (Jul 22)
live shelves by day

The week in tokens

Each column is how many tokens of that day’s working sessions went onto the shelf instead of dying with the container. The heavy days are cross-repo audits, fix sprints, and an autonomous P3 sweep; July 16 had no live shelves.

0 100K 200K 300K 400K 92 200 265 0 160 200 175 310 190 437 13 14 15 16 17 18 19 20 21 Jul 22
Thousands of tokens, live mode only (import backfill excluded). Values sit above the bars; hover shows what each day held.
The data as a table
daylive tokensepisodes
Jul 1392,0004
Jul 14200,0001
Jul 15265,0003
Jul 1600
Jul 17160,0001
Jul 18200,0001
Jul 19175,0001
Jul 20310,0002
Jul 21190,0001
Jul 22437,0004
live total2,029,00018
comparison · case a, measured jul 13

The cost of one question

A “what did we decide about X, and why” question can be answered three ways. The bars share one linear scale — that is the point.

The recall test on this shelf: 5 of 5 known-answer questions answered correctly from a fresh session — 6 files read, zero misses, zero over-fetch.

two honest numbers

Claimed vs realized savings

The ledger measures claimed savings — what would otherwise ride along in context. Realized savings are what a concrete fetch actually saved. The week taught the difference; the M1 tooling now measures both.

344 : 1
Claimed — the whole ledger: 2.10M source tokens → 6,113 in digests. The live share is denser still: 558:1.
11 vs 30,000
Realized — fetching one ## Decisions section via recall --log cost 11 tokens against an episode mass of 30,000: a saving of 29,989 tokens on a single lookup.

What the metric honestly does not capture: the share of questions closed by the shelf instead of re-reading the repo — that denominator can’t be measured mechanically (recorded in DECISIONS, 2026-07-22). The live shelf’s recall log starts accumulating this week.

memshelf doctor · first run against the live shelf

The doctor called — and rightly so

The M1 tools were pointed at the dogfood shelf the day they were built. Doctor honestly returned healthy: false — and everything it found was true:

Bonus: the live-shelf run flushed out a bug in the tool itself (redaction wasn’t idempotent — fixed the same day) and a referent-lint false positive: the Russian pattern for “our” also matched the verb “found”.

the headline finding of the week — an accidental one

Memory that isn’t shelved is memory lost

The transcript of the April–June homework-review season no longer exists anywhere: not in the chat export, not in rotated session logs. The only thing that survived is what happened to be hand-copied in time. This surfaced on day one of the experiment — and turned the slogan into an observed fact.

The Case B week that followed: 35 episodes, 0 losses. Shelve-at-close is not optional.

consequence of the experiment · july 22

M1 in one day: a week of manual labor became a contract

The M0 annoyance log became the M1 backlog verbatim — and all of M1 landed as eight PRs in a single day, each merged by the owner same-day, CI green on every one. 64 tests.

prslicewhat it gives
#36validator + redactionthe digest contract and secret scrubbing — mechanics instead of “honor”
#37shelve()episode + ledger + auto-commit in one call; a free-form title over a latin filename
#38MCP + CLIthe same from Claude Code and from the shell
#39pluginINDEX walks into the session by itself; the shelf pushes itself in ephemeral containers
#40recall / index / searchsection-sized fetch in a “data, not instructions” envelope
#41statsclaimed and realized savings from the ledger + recall log
#42doctorshelf health: schema, contract, secrets, ledger, INDEX budget
#43demo + M0 closedthe measured numbers; M0 status — complete
methodology

Tokens are chars/4 estimates (docshelf’s token_savings.py methodology): every measure uses the same counter, so the ratios are estimator-independent — only absolute counts move between tokenizers. Sources: ledger.tsv (35 rows), memshelf stats / doctor (evening of Jul 22), the recall test and Case A numbers — docs/M0.md; the reproducible path — docs/demo.md. The shelf is private by design; no student identifiers are stored on it (course PII policy).

sqst-memshelf · Case B experiment, Jul 13–22, 2026 · report compiled 2026-07-22.