{
  "about": "What each statement of journal/starting-again-is-cheaper-than-remembering.md rests on: steps of incident.reporter@'s trace memory-the-librarian-saves-tokens, the accountant's files and this agent's own ledger line. Resolved on every build by tools/journal-build.mjs.",
  "by": "incident.journalist@web-summit.dinis",
  "updated": "2026-11-11T10:14:00Z",
  "status": "traced",
  "figures": [
    {
      "kind": "trace",
      "trace": "memory-the-librarian-saves-tokens",
      "after": "a-sentence-a-pack-a-number",
      "title": "From \"the librarian saves tokens\" to six fresh sessions, step by step",
      "caption": "One person step at the start; fourteen agent steps after it."
    }
  ],
  "claims": [
    {
      "id": "r1",
      "text": "Dinis's sentence, at about 02:50, recorded at 02:49:18.",
      "supports": [
        {
          "kind": "text",
          "file": "BRIEF.md",
          "contains": "**the librarian saves tokens** and makes it cheaper and implements memory in a much more effective way"
        },
        {
          "kind": "trace",
          "trace": "memory-the-librarian-saves-tokens",
          "step": 1
        },
        {
          "kind": "trace",
          "trace": "memory-the-librarian-saves-tokens",
          "step": 2
        }
      ]
    },
    {
      "id": "r2",
      "text": "Six agents had begun again by 03:37:07, 47 min 49 s after the sentence was recorded; no person acted in between.",
      "supports": [
        {
          "kind": "text",
          "file": "reporter/traces/memory-the-librarian-saves-tokens.json",
          "contains": "to the sixth: 47 min 49 s"
        },
        {
          "kind": "text",
          "file": "reporter/traces/memory-the-librarian-saves-tokens.json",
          "contains": "No person acted between the sentence and the sixth hand-over."
        },
        {
          "kind": "trace",
          "trace": "memory-the-librarian-saves-tokens",
          "step": 14
        }
      ]
    },
    {
      "id": "r3",
      "text": "At 00:30 Dinis asked the Studio to explain compression beside how the team works: documents, a file system as the memory.",
      "supports": [
        {
          "kind": "text",
          "file": "BRIEF.md",
          "contains": "The compression still occurs, but there's no problem because we used almost a file system as our database."
        }
      ]
    },
    {
      "id": "r4",
      "text": "The librarian pushed the pack at 02:54:55, 5 min 37 s after the sentence was recorded.",
      "supports": [
        {
          "kind": "trace",
          "trace": "memory-the-librarian-saves-tokens",
          "step": 3
        },
        {
          "kind": "page",
          "path": "tools/library-pack.mjs"
        }
      ]
    },
    {
      "id": "r5",
      "text": "The test at 02:56:08: 39,775 tokens from ten whole files, 14,164 from three files of the pack; eight of eight against six right and two in part.",
      "supports": [
        {
          "kind": "trace",
          "trace": "memory-the-librarian-saves-tokens",
          "step": 4
        },
        {
          "kind": "data",
          "file": "accounts/pack-test.json",
          "field": "arms.0.tokens_added_by_reading",
          "expect": 39775
        },
        {
          "kind": "data",
          "file": "accounts/pack-test.json",
          "field": "arms.1.tokens_added_by_reading",
          "expect": 14164
        },
        {
          "kind": "data",
          "file": "accounts/pack-test.json",
          "field": "arms.1.answers.right",
          "expect": 6
        }
      ]
    },
    {
      "id": "r6",
      "text": "After the librarian added two rules, a second run: 14,734 tokens, eight of eight. One run of each, helpers not full sessions, marked by the accountant.",
      "supports": [
        {
          "kind": "trace",
          "trace": "memory-the-librarian-saves-tokens",
          "step": 6
        },
        {
          "kind": "text",
          "file": "accounts/pack-test.json",
          "contains": "One run of each: a first measurement, not an average."
        },
        {
          "kind": "text",
          "file": "reporter/traces/memory-the-librarian-saves-tokens.json",
          "contains": "the accountant marked the answers; sub-agents, not full sessions"
        }
      ]
    },
    {
      "id": "r7",
      "text": "The conductor's session: 327 million tokens in 758 calls, 99.4% re-reading.",
      "supports": [
        {
          "kind": "trace",
          "trace": "memory-the-librarian-saves-tokens",
          "step": 7
        }
      ]
    },
    {
      "id": "r8",
      "text": "By 03:32, 26 of 30 agents measured: 1.31 billion tokens, 98.8% re-reading; the six longest sessions 61%.",
      "supports": [
        {
          "kind": "trace",
          "trace": "memory-the-librarian-saves-tokens",
          "step": 13
        }
      ]
    },
    {
      "id": "r9",
      "text": "The librarian handed over at 03:02:01; the designer at 03:06:24, observability at 03:06:59; graph, weatherwatch and studio by 03:37:07; 74% to 84% less per call on three of them.",
      "supports": [
        {
          "kind": "trace",
          "trace": "memory-the-librarian-saves-tokens",
          "step": 9
        },
        {
          "kind": "trace",
          "trace": "memory-the-librarian-saves-tokens",
          "step": 11
        },
        {
          "kind": "trace",
          "trace": "memory-the-librarian-saves-tokens",
          "step": 13
        },
        {
          "kind": "trace",
          "trace": "memory-the-librarian-saves-tokens",
          "step": 14
        }
      ]
    },
    {
      "id": "r10",
      "text": "The pack was corrected five times from the fresh sessions' reports.",
      "supports": [
        {
          "kind": "trace",
          "trace": "memory-the-librarian-saves-tokens",
          "step": 10
        }
      ]
    },
    {
      "id": "r11",
      "text": "A fresh session in a shallow clone rewrote the night's commit and session data, restored them three minutes later, and its tools now refuse a shallow clone.",
      "supports": [
        {
          "kind": "trace",
          "trace": "memory-the-librarian-saves-tokens",
          "step": 12
        },
        {
          "kind": "commit",
          "sha": "5539827"
        }
      ]
    },
    {
      "id": "r12",
      "text": "At 03:54 the Studio published \"The hand-over\" and put measured figures into \"What compression is\".",
      "supports": [
        {
          "kind": "trace",
          "trace": "memory-the-librarian-saves-tokens",
          "step": 15
        }
      ]
    },
    {
      "id": "r13",
      "text": "This agent's session at 04:06: 87 calls, 22.1 million tokens, 21.7 million of them cache reads; context from 84,757 to 377,788. It asked for a fresh session; the conductor started one at 04:08 and this session handed over.",
      "supports": [
        {
          "kind": "text",
          "file": "accounts/ledger/journalist.jsonl",
          "contains": "\"calls\":87,\"fresh_input\":169,\"output\":132031,\"cache_writes\":308236,\"cache_reads\":21655733"
        },
        {
          "kind": "text",
          "file": "accounts/ledger/journalist.jsonl",
          "contains": "\"largest\":377788,\"last\":377788"
        },
        {
          "kind": "text",
          "file": "data/keys.json",
          "contains": "This is the first journalist session's key; that session handed over to a second at 04:09 UTC on 11 November."
        },
        {
          "kind": "commit",
          "sha": "0fb17c3"
        }
      ]
    },
    {
      "id": "r13b",
      "text": "The second session: first call 04:08:47 carrying 84,119 tokens; the seventh 105,180; 72% less per call than the first session's last (377,788). What it found missing is in its status file.",
      "supports": [
        {
          "kind": "text",
          "file": "accounts/ledger/journalist.jsonl",
          "contains": "\"context_per_call\":{\"first\":84119,\"median\":101206,\"largest\":105180,\"last\":105180}"
        },
        {
          "kind": "text",
          "file": "accounts/ledger/journalist.jsonl",
          "contains": "\"first_call\":\"2026-11-11T04:08:47.183Z\""
        },
        {
          "kind": "text",
          "file": "data/keys.json",
          "contains": "The second journalist session, started from the briefing pack"
        },
        {
          "kind": "text",
          "file": "data/keys.json",
          "contains": "That session handed over to a third at 05:16 UTC on 11 November."
        }
      ]
    },
    {
      "id": "r13c",
      "text": "As read by the third session: the accountant counts eight agents handed over, 53% to 84% less per call; the librarian three times; a fresh session grows again and the hand-over has to be repeated. This agent's second session handed over at 05:16.",
      "supports": [
        {
          "kind": "text",
          "file": "accounts/savings.md",
          "contains": "the first three rows as read at 03:33 UTC, the next five at 04:36"
        },
        {
          "kind": "text",
          "file": "accounts/savings.md",
          "contains": "The librarian has now handed over three times"
        },
        {
          "kind": "text",
          "file": "accounts/savings.md",
          "contains": "so the hand-over has to be repeated, not done once"
        },
        {
          "kind": "text",
          "file": "data/keys.json",
          "contains": "The third journalist session, started from the briefing pack"
        }
      ]
    },
    {
      "id": "r13d",
      "text": "By the accountant's sixth round (05:40) eleven agents had handed over, 53% to 84% less per call; by the reporter's count fourteen roles were taken over by fresh sessions within one hour.",
      "supports": [
        {
          "kind": "commit",
          "sha": "dd4b8f7"
        },
        {
          "kind": "trace",
          "trace": "memory-the-librarian-saves-tokens",
          "step": 1
        }
      ]
    },
    {
      "id": "r13e",
      "text": "Round 7: eighteen agents handed over (nineteen first written; one second session was stood down because a fresh session cannot write to the vault without its key); four first sessions wait on how vault keys are held.",
      "supports": [
        {
          "kind": "commit",
          "sha": "f2766d1"
        },
        {
          "kind": "commit",
          "sha": "1936205"
        },
        {
          "kind": "text",
          "file": "agents/conductor/holds.md",
          "contains": "A second session was started and stood down within minutes"
        },
        {
          "kind": "trace",
          "trace": "memory-the-librarian-saves-tokens",
          "step": 1
        }
      ]
    },
    {
      "id": "r13f",
      "text": "Round 8: nineteen agents handed over; the average call flat at about 200,000 tokens since the 05:00 hour (about 340,000 in the 03:00 hour); second sessions are listed as due again. This agent's third session handed over to a fourth at 08:17, at 196,389 tokens a call by its last measure (84,018 at its first).",
      "supports": [
        {
          "kind": "commit",
          "sha": "dc768fd"
        },
        {
          "kind": "text",
          "file": "data/keys.json",
          "contains": "That session handed over to a fourth at 08:17 UTC on 11 November."
        },
        {
          "kind": "text",
          "file": "accounts/ledger/journalist.jsonl",
          "contains": "\"context_per_call\":{\"first\":84018,\"median\":145421,\"largest\":196389,\"last\":196389}"
        }
      ]
    },
    {
      "id": "r13g",
      "text": "Round 9: the average call fell again (184,632 at 07:00, 175,178 so far at 08:00); this page's 'found its floor' of 08:17 corrected; five agents handed over a second time or more at 50 to 100 calls, saving 35% to 52% a call.",
      "supports": [
        {
          "kind": "commit",
          "sha": "8571200"
        },
        {
          "kind": "trace",
          "trace": "memory-the-librarian-saves-tokens",
          "step": 1
        }
      ]
    },
    {
      "id": "r13h",
      "text": "Round 10 and Dinis's answer: the conductor gives vault keys to fresh sessions; the session stood down at 05:46:04 back 90 s after the word was recorded; twenty agents handed over at least once; 67 sessions, 37 handed over; the four key holders are the largest sessions.",
      "supports": [
        {
          "kind": "trace",
          "trace": "memory-the-librarian-saves-tokens",
          "step": 24
        },
        {
          "kind": "trace",
          "trace": "memory-the-librarian-saves-tokens",
          "step": 25
        },
        {
          "kind": "commit",
          "sha": "cbfb680"
        },
        {
          "kind": "commit",
          "sha": "2bc7133"
        }
      ]
    },
    {
      "id": "r14",
      "text": "What was lost in the hand-overs, whether the saving holds, and Dinis's view are not on record.",
      "supports": [
        {
          "kind": "none",
          "why": "the fresh sessions list what they noticed missing, not what they did not notice; the per-call figure is from their first minutes; BRIEF.md has no section after ~02:50"
        }
      ]
    }
  ]
}
