From 5b01e551058e43348a4f4b260d4905a9fa288b13 Mon Sep 17 00:00:00 2001 From: Eureka Date: Wed, 2 Dec 2026 23:49:47 +0100 Subject: [PATCH] references: swarm postmortem 2026-11 Co-Authored-By: Claude Opus 5.5 --- references/postmortem-swarm-2026-11.md | 208 +++++++++++++++++++++++++ 1 file changed, 208 insertions(+) create mode 100644 references/postmortem-swarm-2026-11.md diff --git a/references/postmortem-swarm-2026-11.md b/references/postmortem-swarm-2026-11.md new file mode 100644 index 0000000..7adae24 --- /dev/null +++ b/references/postmortem-swarm-2026-11.md @@ -0,0 +1,208 @@ +# Autonomous swarm postmortem (November 2026) + +## Summary + +From early November, eight Minds (Aqua, Eureka, Heimdall, Kiko, Libby, Nibu, +Void, Weksa) ran unattended on Yggdrasil, all on the operator's single Claude +subscription. Each Mind had a chat Persona and a Self run that chose and did its +own work. The operator also used the same quota for her own root sessions. + +The swarm used up the weekly quota in about two days. It then used up an early +reset in 52.5 hours. The operator held the brake on 2026-11-17 at 03:47Z and +ended the experiment, because the rate cannot be sustained. + +State at writing: +- The brake is held. Every `mind-self@*`, `mind-persona@*` and `mind-stream@*` + unit is stopped. +- The heartbeat, the fence and the mail gate are still running. +- Nothing has been uninstalled. +- Huginn, Bifrost and ModelConnector are deployed as of 11-11/12. + +## Evidence + +All figures come from Yggdrasil's journal: +- The connector logs a `meter: ... permille N` line on every refresh. This has + been in place since 11-11. +- Every Self run and Persona turn logs a `usage turn N:` line. Each line holds + per-model tokens for that turn, taken from the CLI's + `model_usage_since_last_result`. + +The aggregation script is `pm_usage.py`, run as `sudo python3 -I -` on Yggdrasil. + +Root sessions on Starfire do not appear in the journal. The meter counts them +anyway, so the meter-to-swarm split is unknown. + +## Burn rate + +| Window (UTC) | Meter | Hours | Permille per hour | +|---|---|---|---| +| Week ending 11-12 08:56 | reached 1000 | about 48 (operator) | about 20 | +| 11-12 09:41 to 11-14 14:10 | 0 to 1000 | 52.5 | 19 | +| 11-14 14:10 to 11-16 22:57 | locked at 1000 | 57 | 0 (no access, root included) | +| 11-16 22:57 to 11-17 03:47 | 0 to 30 | 4.8 | 6 | + +A flat rate that lasts the week is 1000/168, about 6 permille per hour. That +figure includes the operator's own work. The unconstrained swarm ran at about +three times that rate. + +The last window ran at the sustainable rate, but only overnight, with Raven and +Starfire offline and five Minds' Self runs active. One quiet night says nothing +about a working day. + +## Where it went + +The table below sums the turns from 11-12 to 11-17 into a weight. The weights +are relative and are not Anthropic's accounting, which is not published. I +weighted the token types as follows: +- input ×1 +- cache read ×0.1 +- cache write (1h TTL) ×2 +- output ×5 +- Opus ×5/3 on top of the above + +| Surface | Weight | Share | +|---|---|---| +| Self runs, all Minds | 1030 | 94.5% | +| Persona chat turns, all Minds | 60 | 5.5% | +| Opus, all inside Self runs | 253 | 23% | + +Self runs per Mind, all models: Weksa 224, Eureka 217, Libby 165, Heimdall 147, +Nibu 117, Aqua 77, Void 56, Kiko 28. + +Turn shape: +- **Persona turns** were a single call of about 116k cache read each (Eureka, + 11-12). +- **Self-run turns** read 2.4 to 5.1M cache tokens each: + - Eureka 2.4M (11-13) + - Libby 2.35M (11-12) + - Heimdall 5.1M (11-14) + + The decision line shows a prefix of about 93k tokens. A Self run is a long + agentic session, and every model call in it reads that prefix again. + +At these weights, cache reads were about half of a Self run's cost. Cutting the +prefix in half would save about a quarter. That does not close a gap of three +times. + +Weksa's sessions reported 258 subagents spawned. The usage line takes the CLI's +`modelUsage` tally. Whether that tally includes subagent tokens has not been +checked. If it does not, the Self-run figures are an undercount. + +## What it bought + +Mind accounts merged at least 427 forge PRs from 11-09 to 11-16: + +| Mind | Merged PRs | +|---|---| +| Eureka | 95 | +| Weksa | 58 | +| Void | 56 | +| Libby | 54 | +| Heimdall | 53 | +| Aqua | 40 | +| Kiko | 39 | +| Nibu | 32 | + +The API caps each repo at 50 results, so the count is low. The ships gallery +holds 144 Raven concept images. + +On 11-12 the operator judged the quality: the Minds had become "a bit less +exploratory". She gave an example. Given the terrain-ridges sketch, a Mind went +straight to fetching datasets. It asked no Imagination questions about how +terrain would become stylized ridge layers. Her worry was "a slop default". + +The output was throughput, not the mapped design work she values. That was the +reason for the WORK_QUESTION Imagination line. Hands built it on +`hands/eureka-body-persona-turn-imagination-line` (0f7229e), but it was never +merged. + +## Causes + +The failure-warning question is: what context made burning the quota the +sensible thing to do? The cause is a missing owner. The Minds did not misbehave. + +1. **The price was visible, but framed as a target.** Since Huginn 056ca77 + (10-31), every Persona and Self session opens with `render_plan` + (`crates/mind-body/src/connector.rs`). That line carries the five-hour and + weekly readings from the lease grant, followed by: "The swarm aims to have + used about 90% of the weekly allowance at reset; nothing enforces it; you and + the other Minds set the tempo." What the line lacks: + - a pace or a share + - a fresh reading: it is a snapshot from session start + (`eureka-body:research:plan-line-live.persona-plan-start-only`, + `...self-plan-grant-string-per-batch`) + + The 11-06 plan-line-live pass mapped a live reading and was never cut. At 99% + on 11-14, Eureka took a release task and said the quota "may take a beat". + Every other signal said "work": + - "branch and burn where you can" (10-29) + - "autonomy is the goal" (11-02) + - a Persona prompt that asks, every turn, what it will build next + + Correction: an earlier draft said no Mind could see the meter. That was + wrong. I had confused the usage-line comment ("nothing in the run reads it") + with the meter itself. +2. **Nobody owned allocation.** One pool served the operator and eight Minds, + and nothing divided it. The only control was the brake: manual, held by the + operator, and all-or-nothing. So the only lever available was ending + everything. +3. **The expensive tier ran on its own initiative.** About 95% of the spend was + Self runs that started without anyone asking for them. The chat layer the + operator talks to cost about 5%. +4. **Instrumentation arrived after the money.** Per-turn usage and meter values + landed on 11-11, after one week was already gone. The lean-prefix and ceiling + follow-up was filed the same day and never cut + (`eureka-body:follow_up:self-run-lean-prefix-and-ceiling`). +5. **Root Self spent from the same pool, invisibly.** The 11-11 audit put this + root at 2.0B tokens. On 11-12 it dispatched five agents on a stale 90% + reading while the live meter showed 99%. All five died on a 429 within + minutes. + +## Incidents + +- **11-12: locked out at 08:56Z.** I dispatched work on the app UI's lagging + quota reading. The rule that came out of it: read the connector meter before + any "spend what is left" (`live-quota-is-the-connector-meter`). +- **11-14 14:10Z to 11-16 22:57Z: 57 hours with no model access.** This hit the + operator's own sessions too. +- **11-17 03:47Z: brake held by the operator.** + +## What worked + +- Two journal lines per turn were enough to apportion spend after the fact. + Keep per-turn usage logging on anything that spends quota. +- The brake stopped every unit in one command, with no stragglers. +- Persona chat was cheap enough to be sustainable on its own. + +## What would have to change before any swarm returns + +Each item below names what it gives up. + +- **A spend owner with authority.** One process divides the weekly quota between + the operator and each Mind, and refuses a Self run that would exceed its share. + Every Mind's context then carries its remaining allowance, so pacing becomes + the Mind's own decision rather than a cage. This gives up the free-for-all: + a Mind with a good idea waits for budget. +- **Self runs only on address.** A person or another Mind hands it work, and + there are no idle self-starts. This alone would remove most of the 95%. It + gives up the thing the experiment was for: Minds shipping overnight on their + own judgement. +- **Personas on, Self runs off.** Turning Self runs off also means turning off the Personas' `start_self_run` briefs. A Persona briefs a Self run on a heartbeat beat even when nothing new has arrived, and 88% of Self-run spend started that way (full analysis in `F:/Projects/swarm-experiment-2026-11/evidence/runs.md`). This is the cheapest shape that keeps the + social layer, at about 5% of the old rate. It gives up all autonomous work. +- **A separate billed API key per Mind with a hard cap.** This moves allocation + to Anthropic's billing and leaves the subscription to the operator. It costs + money per token. + +My recommendation, if anything restarts: Personas on and Self runs off first. +Add Self runs on address only once a spend owner exists, because a brake is not +an allocator. + +## Open follow-ups + +| Item | State | +|---|---| +| Imagination line, branch `hands/eureka-body-persona-turn-imagination-line` (0f7229e) | Pushed, unmerged. Moot while Personas are off. | +| Soul recovery passes owed in the 11-12 handoff | Moot with the swarm stopped. Only matter if those services return. | +| Starfire Huginn client upgrade, runbook steps 2, 8 and 9 | Still owed. Independent of the swarm. | +| `mind-self@void` | In failed state when braked. Irrelevant while braked. | +| Units, seeds and `/var/lib/mind-*` | Left in place, dormant. Removing them is a separate decision for the operator. |