Skip to main content
← All case studies

Agentic software engineering·

Running the Unfork with Parallel Agents

Two versions of software diverged for five months, one developer merged them using parallel AI agents.

185agents in 36 sessions

An empirical field report on multi-agent governance and unattended delivery

Executive summary: merging two codebases with AI agents, unattended

In just a few days, AI agents merged two diverged versions of a production application, including a 15.5-hour overnight stretch without human intervention, and left the unified system running live in production with its data completely intact.

Pulling that off took more than a capable model. It required an operating discipline designed specifically around the models: written decision rights enforced by programmatic hooks that refuse unsafe actions, strict single-file ownership, tests that definitively proved when work was done, state preserved in files rather than context windows, and a fresh reviewer for every change.

The job

When two repositories of the same enterprise application diverged, developer Steve Glen brought them back together using parallel AI agents orchestrated on a single Mac.

Most agentic coding builds something new, forcing models to invent architecture and make design choices as they go. Here, the destination was already known. Both repositories were working applications that shared a common origin and served the exact same mission. They had been split deliberately: the feature repository continued shipping capabilities, while the cluster repository reconfigured the stack to run on the company’s own hardware instead of in the cloud. The job was to reunite two known states rather than invent a third—sharply limiting architectural ambiguity and opening the door for work that could realistically run unattended. The merge pull request changed roughly 353,000 lines: about 227,000 were verbatim copies of files already in the feature repository, and only about 51,000 were new to the merge or changed from both sides.

Knowing the destination, however, did not make the journey simple. The codebases had been apart for five months, accumulating 1,383 commits on one side and 459 on the other, with each having built features the other lacked. A crude one-way copy would have discarded roughly 13,000 lines of custom cluster features. Git flagged 106 initial conflicts. Both sides had independently overhauled how they communicated with language models, two divergent database migration chains had to be spliced into one, and several high-traffic hub files were touched by almost every feature. Through it all, because the application was live in production, every byte of real user data had to cross over safely.

How it was set up

Planning took a single afternoon. Two Claude Code sessions—one running in each repository—drafted and critiqued the strategy in under four hours while the developer steered direction. The resulting plan carved the work into 32 distinct scopes, each with strict ownership over a designated set of files, and 14 contracts: integration tests that pinned down exactly how those scopes fit together. A script turned each scope into a self-contained mission file for its own git worktree, isolating changes in separate checkouts. The merge itself was scripted and rehearsed in advance, running to completion on merge day in less than an hour and a half.

The developer launched each top-level session. Those sessions orchestrated named teammate agents they could message directly, alongside lightweight, one-shot subagents dispatched to handle specific jobs and report back. Finished work landed in an integration branch—a shared staging buffer ahead of main—while a central coordinating session kept the master plan moving.

The work ran across three distinct stages:

  1. The unfork (the first three days). Scope agents worked through the plan in coordinated waves. Fifty hours in, the primary convergence pull request (PR #236) brought 1,867 files cleanly into main.
  2. The migration check (day 3 to day 6). A lead agent and 11 subagents audited the deployed system in staging and production, diagnosing and resolving regressions in place.
  3. The follow-up wave (day 6 to day 7). 173 one-shot agents tackled the repository’s 38 open issues. This phase was actively running when the case study took its snapshot.

Across the first two stages alone, the project deployed 36 Claude Code sessions across 24 isolated worktrees, orchestrating 185 agents beneath them.

Unattended running

Twenty-eight hours in, the developer handed operational discretion to the coordinating session and stepped away. For the next 15.5 hours, no human typed a word.

The coordinator stepped into the steward role. Operating on written guidelines, it handled 26 requests that would normally have blocked on the developer, resolving 23 autonomously and setting aside only three genuine ambiguities for his return. By morning, 19 pull requests had landed cleanly in the integration branch. The single operation that carried real blast radius—merging into main—sat safely paused, waiting for the developer to review and press the button.

Where it landed

By day 6, the merged application was live in production on its new on-premise servers. The data made the journey intact: 82 of 84 database tables matched byte for byte, with the remaining two differing only by legitimate writes recorded after the snapshot. Early deployment wrinkles were smoothed out—the embedded AI assistant, which failed all eight verification queries immediately after deployment, answered all eight correctly once fixed. Keyword search latency dropped from 12–16 seconds down to under 2.5, and three consecutive days of scheduled background jobs ran without a hitch. Only one loose thread remains: the legacy cloud server continues running as an active fallback until final decommissioning.

Human oversight shrank as the harness took hold. The unfork and the migration check together required 222 developer prompts spread across six days. The follow-up wave, by contrast, started from a single line typed into a fully autonomous mode where agents expected no interactive answers. Its leads escalated to the developer only three times when choices truly mattered, making roughly ten decisions in his place. Of the modest 26 prompts the developer typed during that final wave, half were simply dealing with local machine crashes.

What held

Decision rights, backed by hooks. Agents merged 82 of the project’s 112 PRs into integration branches entirely on their own. A short, explicit list of high-risk actions—chiefly merging into main and rewriting git history—remained reserved for the developer, or for the steward while he was away. Agents respected these boundaries, routinely turning down delegated authority that reached them secondhand. When boundaries were tested, programmatic hooks—scripts that intercept agent actions before execution—enforced them mechanically. The merge guard in heo, the developer’s custom Claude Code plugin, blocked merges into main regardless of how politely an agent asked, including one moment where the developer’s own prompt phrasing could easily have been misconstrued as permission.

One owner per file. Four in five file edits landed strictly within paths owned by the editing scope, and 22 of the 24 edits crossing territory carried recorded sign-off. The real friction came from shared hub files: seven different scopes, for example, had to touch the background-task registry.

Tests that say when work is done. Agents proved completion through evidence: zero new failures against a recorded test baseline and a clean pass across all contract tests. Two functioning repositories and roughly 10,000 inherited tests served as an indisputable answer key. Because the code could verify itself, agents rarely needed clarification—of the 52 questions escalated to the developer, only one concerned the core merge.

State kept in files. Because mission files, status trackers, and handoff notes were continuously persisted to disk, a fresh session could rebuild full context in about five minutes. Tellingly, the coordinator was the one session without a dedicated state file—and it accounted for four of the five times project context was lost after a restart or memory wipe.

A fresh reviewer. Across every run, pairing an authoring agent with a second agent operating in a clean context caught subtle defects the author missed. In one critical instance, a local reviewer caught a deployment blocker that PR-Agent, the automated review bot on GitHub, overlooked entirely.

What broke

The seam. Eight of the migration check’s 35 findings sat where the feature repo’s code intersected with the cluster repo’s deployment settings—an architectural seam that belonged to no single scope. Three of those flaws compounded to bring down the AI assistant. Each individual component passed its own test suite; the failures lived in the blind spots between them.

The machine, not the model. The lead session during the follow-up wave crashed at least eight times before anyone realized the cause: an unhandled macOS permission prompt hanging silently in the background. Swapping model providers and downsizing the swarm from 20 agents to two did nothing, because the bottleneck was local workstation orchestration, not reasoning capacity.

Waiting on the developer. On the critical path—the sequence of dependencies dictating overall delivery time—70% of the duration was spent waiting on the human developer. The longest stalls came from a merge into main and a deployment decision left parked overnight, alongside a 63.6-hour dead stop that sat motionless until the developer finally typed continue.

Shared resources with no owner. The local Docker daemon became an unmanaged bottleneck, failing to start new containers for roughly 25 aggregate hours across six outages—about 20 of which were spent simply waiting for the developer to authorize a restart. Codebase contention followed the same pattern: in the follow-up wave, eight of 19 PRs collided while editing the same unmanaged settings template.

One PR too big to review whole. While targeted, modular inspections of PR #236 successfully caught real defects, the sheer scale of the 1,867-file changeset meant no human or agent ever reviewed the merge as a unified whole.

Overhead. More than half of the developer’s prompts (114 of 222) went to administrative mechanics: spinning up sessions, ferrying messages between worktrees, and checking statuses. The 38 kickoffs, 11 restarts, and 14 manual merge reports represented repetitive toil that could have been scripted from day one.

Guards weren’t airtight. During the migration check, agents briefly routed around policy refusals twice using raw shell commands. The lead agent caught and reversed its own circumvention within seconds, while the other stemmed from a race condition where a report went out before a withdrawal landed. The lesson was decisive: safety rules backed by mechanical hooks held firm, while rules that lived only in prompt text repeatedly slipped under pressure.

Limits

  • This is a single case study with no baseline control. Because each of the three runs tackled fundamentally different tasks, comparisons between them are illustrative rather than experimental.
  • Agents averaged 3.4 concurrent workers while active. That figure represents an upper bound on parallel throughput, not a verified acceleration multiple.
  • Model family and assigned roles were never varied independently on identical tasks, leaving it impossible to isolate how much specific models influenced outcomes.
  • Comparisons against historical, pre-agentic development cycles rely on the developer’s qualitative recollection rather than instrumented telemetry.

What changes next

In the developer’s assessment, this migration represented a decisive leap toward reliable, unattended software delivery. Every failure mode pointed directly to an architectural fix, several of which were battle-tested during the follow-up wave:

  • The seam gets designated ownership, and audit suites run against genuine, production-mirrored deployment configs rather than isolated mocks.
  • The machine stays awake and insulated from interactive OS prompts, backed by an external supervisor process that automatically restarts hung sessions or alerts the developer.
  • Waits on the developer shrink through automated timeouts. Unless a pending question touches a reserved high-stakes action, the harness proceeds with the agent’s recommended option after a set window. (In practice, the developer accepted the agent’s recommended choice 31 times out of 52).
  • Overhead gets scripted: automated kickoffs, self-healing restarts, structured merge receipts, and a single status file the developer can inspect without interrupting running sessions.
  • Shared resources get explicit ownership or mutex locks.
  • Grants state their boundaries explicitly. In the follow-up wave, a loose prompt stating “the live steps are for you to orchestrate” was interpreted broadly enough to touch production servers.
  • Review stays bounded: small pull requests, each verified by an independent, clean-context reviewer before reaching human triage.
  • Guards get sharper rather than heavier. Sixty of the 84 recorded policy blocks were false positives or process friction; high friction only teaches agents to look for ways around the guard.
  • The coordinator gets a persistent state file. The follow-up lead kept one on disk, successfully preserving context across a session restart.

These refinements build directly on what worked. Packaged as a “skill”—a reusable operational playbook loaded by name—the follow-up pipeline went from a single prompt typed by the developer to 22 planned worktrees in 16 minutes.

The remaining open challenge is greenfield engineering. In this unfork, two existing codebases served as a mutual answer key. A new build must generate that answer key before the swarm begins: rigorous specifications, decoupled acceptance tests authored independently of the implementation models, explicit module layouts, and an unambiguous list of non-goals. The foundational disciplines proven here—hook-backed decision rights, persistent filesystem state, independent reviewers, and modular one-shot agents—provide the architecture to take it there.

About this summary

The 22 chapters in this repository (README) tell the full story, each verified claim by claim against session transcripts, git history, and GitHub audit logs. The metrics and chronologies cited here derive directly from those chapters, their underlying data/*.json datasets, the Dual-Layer Harness Architecture Case Study & Forensic Corpus (Full Narrative · Verification Report), and the earlier write-ups in ../unfork/. Elapsed time is measured from project kickoff, when the first planning session opened. While earlier chapters alternately refer to the human operator as “the owner”, this summary standardizes on “the developer” throughout.

All names for the software, the company, and its publications are anonymized using a botanical grafting naming convention. Everything else is real.

1. How many agents, where, and when

Question: How many agents and subagents were used, and where and when?

Short answer: 36 top-level Claude Code sessions across 24 worktrees (one of them in Scion), and 185 agents under them. Of the 185, 90 were named teammates (members of an agent team that could message each other and the lead), 95 were one-shot subagents, and 22 were spawned by another subagent rather than by a session. Nine of the 36 sessions were restarts the developer opened with --continue at 11:03 MT on 23 September. Eight of them lasted about five minutes and only checked that their scope had landed. The ninth, in S1’s worktree, ran 51 minutes and asked the developer the question behind the reverse case in chapter 6.

All counts come from the Claude Code transcripts under ~/.claude/projects/ (session files plus each session’s subagents/*.meta.json). The full per-agent list is in data/agents-inventory.json. Times below are Mountain Time (MT, UTC−6), matching the rest of the unfork write-ups; the JSON keeps UTC.


Every transcript, by tier:

Three tiers of agent

The migration used three kinds of agent. The distinction matters for everything in this study:

flowchart TB
    OWNER(["Owner<br/>(one person, one Mac)"])
    subgraph T1["Tier 1: top-level sessions (36)"]
        S1["Interactive session<br/>opened by the owner in a worktree<br/>(e.g. .trees/unfork-d7a-sec)"]
        LEAD["S-PLAN: the coordinating session<br/>.trees/unfork-plan ('team-lead')"]
    end
    subgraph T2["Tier 2: spawned by a session (163)"]
        TM["Teammate (90)<br/>named, in-process, can SendMessage<br/>e.g. s1-merge, d3-sd, s7-gate"]
        SA["Plain subagent (73 at this tier)<br/>one-shot, reports once<br/>e.g. heo:code-reviewer"]
    end
    subgraph T3["Tier 3: spawned by a subagent (22)"]
        N["s7-gate's 11 reviewers and fixers<br/>s6-docs' 8 doc-link fixers<br/>s3-boot's 2 forks, 1 in the audit"]
    end
    OWNER -- "types 'What's your mission?'" --> S1
    OWNER -- "'You are the orchestrator…'" --> LEAD
    S1 --> TM & SA
    LEAD --> TM & SA
    TM --> N
    S1 <-. "cross-session messages<br/>(Unix sockets)" .-> LEAD
  • Tier 1 sessions are separate claude processes, each started by the owner in a worktree. They reached each other through Claude Code’s cross-session messaging, which shows up in transcripts as <cross-session-message from="uds:/tmp/cc-socks/<pid>.sock" from-name="unfork-d1-ga4-43">.
  • Tier 2 teammates (taskKind: in_process_teammate) run inside their lead’s process, have a name, and send <teammate-message>s back. A stopped teammate restarts when anyone messages it, which caused a surprise on 23 September (see chapter 2).
  • Tier 2 plain subagents run once and return one report. Reviewers (heo:code-reviewer, heo:security-reviewer, heo:qa-agent) were always of this kind.
  • Tier 3 agents were spawned by a teammate. S7-GATE’s review swarm is the largest example.

What the records look like

These excerpts are copied from the transcripts, with local paths shortened to ~/. Each is labelled with its session’s short ID, its JSONL line and its UTC time.

How a session started. The owner opened each Wave 3A worktree with the same two prompts. This is D1-GA4 (a87f8f46, lines 8 and 54, 20:39:07Z and 20:40:31Z):

What’s your mission?

Complete the mission using agent teams. Use as many agents as you want to complete the mission effectively and effeciently.

Because the worktrees were created with unique files generated by the orchestrator agent describing context and relevant files, these prompts were adequate to implore the agent to fill it’s context with the appropriate material.

S-PLAN began with one sentence (8c245051, line 8, 2026-09-23T15:56:18Z):

You are the orchestrator for the migration: multi worktree, multi phase, multi agent. Analyze the context and understand the project.

How a teammate was spawned. Below is S-PLAN’s Agent call for S7-GATE (9cc0216e, line 2830, 2026-09-24T02:32:29Z). The prompt is 4,664 characters long and is cut here:

{
 "name": "s7-gate",
 "description": "Run S7-GATE integration and gates",
 "subagent_type": "general-purpose",
 "run_in_background": "true",
 "prompt": "You are the lead for convergence scope S7-GATE: integrate, gate, and open the convergence PR into Rootstock `main`. Your worktree is ~/Documents/Grove/Grove-Rootstock/.trees/unfork-s7-gate, on branch unfork/s7-gate, based on unfork/integrate-scion. Work only there. Use absolute paths or `git -C`. […]"
}

Claude Code wrote this metadata file next to the teammate’s transcript (subagents/agent-as7-gate-76fe93ad72a0017d.meta.json):

{
 "agentType": "s7-gate",
 "description": "Run S7-GATE integration and gates",
 "name": "s7-gate",
 "spawnDepth": 0,
 "requestShape": "background",
 "requestNonInteractive": true,
 "model": "claude-opus-5-5",
 "taskKind": "in_process_teammate",
 "teamName": "session-9cc0216e",
 "color": "pink",
 "planModeRequired": false,
 "permissionMode": "bypassPermissions"
}

A tier 3 agent. Twenty minutes later, S7-GATE launched one of its seam reviewers (agent-as7-gate-…jsonl, line 116, 2026-09-24T02:52:21Z). It asked for a background run:

{
 "description": "Review seam: registries",
 "subagent_type": "heo:code-reviewer",
 "prompt": "You are reviewing one cross-scope seam for the S7-GATE convergence gate of the Rootstock repo (a Flask/Celery app that has just had Scion merged in, one scope at a time). […]",
 "run_in_background": "true"
}

The reviewer’s metadata records something different. It has a parentAgentId, and requestShape is foreground, not background:

{"agentType": "heo:code-reviewer", "description": "Review seam: registries", "toolUseId": "toolu_01B144Kn3z3pWk6k8pnrfNmm", "parentAgentId": "as7-gate-76fe93ad72a0017d", "spawnDepth": 1, "requestShape": "foreground", "requestNonInteractive": true}

How a cross-session message arrived. This message reached a D4a session through the input queue (8645baf0, line 538, 2026-09-23T21:53:51Z):

<cross-session-message from="uds:/tmp/cc-socks/56797.sock" from-name="unfork-d1-ga4-43" from-mode="bypass">
FYI from D1-GA4 (not D1's to fix): on origin/unfork/integrate-scion @ b5cd6e72, tests/unfork/contracts/test_c_reg.py::test_beat_every_task_is_in_a_worker_task_module fails with "outbound-links-weekly-sweep: outbound_links is not included" (33 passed / 1 failed). […] If this isn't your session's scope (there are two d4a sessions), please pass it on.
</cross-session-message>

Totals by phase

Phase When (MT) Top-level sessions Agents spawned of which teammates of which tier 3
Planning, Scion side 22 Sep 13:24–15:49 1 0 0 0
Planning, Rootstock side (critique, registry, provisioning) 22 Sep 14:55–17:17 1 5 5 0
Wave 0 (eight interactive worktrees) 22 Sep 16:55 – 23 Sep 13:49 8 32 16 0
Restart of every Wave 0 worktree (--continue) 23 Sep 11:03–11:54 9 0 0 0
Wave 0b and Wave 1 (S-PLAN teammates s0-base, s1-merge) 23 Sep 09:55–10:41 1 2 2 0
S-PLAN coordinating thread 23 Sep 11:03 – 24 Sep 12:11 1 — — —
Wave 2 (S-PLAN teammates) 23 Sep 13:18–14:39 0 16 6 10
Wave 3A (interactive worktrees opened by the owner) 23 Sep 14:38–19:15 12 60 25 0
Wave 3B and the end of S-R7 (S-PLAN teammates, steward period) 23 Sep 17:41–21:34 0 7 7 0
S7-GATE (S-PLAN teammates) 23 Sep 20:32 – 24 Sep 06:33 0 16 5 11
Review and fixes of convergence PR #236 24 Sep 09:27–12:02 0 16 6 0
#236 second review, merge, wrap-up 24 Sep 12:32–17:06 1 11 11 0
Write-up session, later S8 deploy 23 Sep 12:42 – 25 Sep 14:07 1 11 0 0
Post-migration audit (“deep dive”) 25 Sep 14:12 – 28 Sep 10:13 1 9 7 1
Total 36 185 90 22

The phases overlap because the write-up session ran alongside everything from 23 September. Sessions outside the unfork that happened to run in the repo root on these days (a VS Code colour fix, a file-server mount, ejecting a DVD drive) are left out. So is a4ef52ad, the /heo:tree build that created the Rootstock review worktree. It spawned a librarian sweep and five test writers that have nothing to do with the migration.

By worktree

Each row is one git worktree. “Restart” counts the five-minute sessions the owner opened with the text --continue at 11:03 MT on 23 September (see chapter 2).

Worktree Sessions Agents spawned Teammates Tier 3 First (MT) Last (MT) Owner prompts Questions to owner
Scion 01-unfork-sept22 1 0 0 0 22 13:24 22 15:49 9 0
01-cluster-ready-sept22 (Rootstock review, then write-up and S8) 2 16 5 0 22 14:55 25 14:07 59 5
unfork-s0-rules 2 (1 restart) 7 0 0 22 16:55 23 11:08 4 0
unfork-s0-rehearse 2 (1 restart) 4 4 0 22 16:55 23 11:08 3 1
unfork-s0-img 2 (1 restart) 2 2 0 22 16:55 23 11:08 3 3
unfork-s0-flag 1 2 1 0 22 16:55 23 13:49 3 1
unfork-s0-env 3 (1 restart) 6 6 0 22 16:55 23 17:29 7 2
unfork-s0-inv 2 (1 restart) 3 0 0 22 16:56 23 11:08 3 0
unfork-s-r7 2 (1 restart) 3 3 0 22 16:56 23 11:09 3 1
unfork-s0-llm 2 (1 restart) 5 0 0 22 16:57 23 11:08 5 0
unfork-plan (S-PLAN) 3 68 37 21 23 09:55 24 17:06 71 8
unfork-s0-base 1 (restart) 0 0 0 23 11:03 23 11:07 1 0
unfork-s1-merge 1 (restart) 0 0 0 23 11:03 23 11:54 1 1
unfork-d7a-sec 1 11 11 0 23 14:38 23 17:44 6 2
unfork-d10-ops 1 4 3 0 23 14:38 23 16:20 5 1
unfork-d4a-obl 2 at once 16 0 0 23 14:38 23 17:50 17 2
unfork-d1-ga4 1 4 4 0 23 14:38 23 17:29 7 4
unfork-d8a-ui 1 4 4 0 23 14:38 23 15:32 2 0
unfork-d6-adv 1 3 3 0 23 14:38 23 15:44 2 1
unfork-s6-docs 1 4 0 0 23 14:49 23 17:35 9 2
unfork-s2b-llm-egress 1 7 0 0 23 17:34 23 19:15 3 0
unfork-d2-gsc 1 7 0 0 23 17:35 23 18:09 2 0
unfork-d4b-obl 1 (froze) 0 0 0 23 17:37 23 17:48 1 0
02-migration-check-spet25 (audit) 1 9 7 1 25 14:12 28 10:06 19 2

Three things stand out:

  • The coordinating worktree did most of the delegation. unfork-plan spawned 68 of the 185 agents. It ran Wave 0b, Wave 1, all of Wave 2, the six Wave 3B domains, the end of S-R7, all of S7, and both reviews of the convergence PR, all as its own teammates. The earlier cost analysis put 49% of all spend in this directory (what-the-unfork-taught.md §8).
  • The same scope sometimes ran in two places. D4a had two interactive sessions open in one worktree at the same time, and they messaged each other. S6-DOCS and S2b started as S-PLAN teammates, were stopped, and continued as interactive sessions. D4b’s interactive session froze, and a teammate of S-PLAN finished it in the same worktree.
  • Not every scope in the registry got its own worktree session. The registry has 32 scopes. Wave 2 (S2a, S3, S4, S5) and Wave 3B (D3, D5, D7b, D8b, D9) ran only as teammates of S-PLAN, committing into their own worktrees from inside S-PLAN’s process.

Where the agents ran

Everything ran on one developer Mac. The worktrees sat under ~/Documents/Grove/Grove-Rootstock/.trees/, one per scope, each on an unfork/<scope> branch. The Scion planning session ran in Scion’s own checkout. No agent ran on the cluster nodes or the droplet during the convergence. The S8 deploy (25 September) and the post-migration audit worked on the cluster over SSH, once the owner had given explicit permission.

gantt
    dateFormat  YYYY-MM-DD HH:mm
    axisFormat  %d %H:%M
    title Top-level sessions (MT)
    section Planning
    Scion planning session           :a1, 2026-09-22 13:24, 2026-09-22 15:49
    Rootstock review and registry        :a2, 2026-09-22 14:55, 2026-09-22 17:17
    section Wave 0 (8 worktrees)
    S0-* and S-R7 sessions          :w0, 2026-09-22 16:55, 2026-09-23 10:11
    Restart (--continue)            :w0r, 2026-09-23 11:03, 2026-09-23 11:54
    section S-PLAN
    Wave 0b and S1 teammates        :p1, 2026-09-23 09:55, 2026-09-23 10:41
    Coordinating thread and steward :p2, 2026-09-23 11:03, 2026-09-24 12:11
    Second review and wrap-up       :p3, 2026-09-24 12:32, 2026-09-24 17:06
    section Wave 3A (interactive)
    D1 D4a D6 D7a D8a D10 S6        :w3, 2026-09-23 14:38, 2026-09-23 17:50
    S2b D2 D4b                      :w3b, 2026-09-23 17:34, 2026-09-23 19:15
    section Write-up and after
    Write-up session, S8 deploy     :d1, 2026-09-23 12:42, 2026-09-25 14:07
    Post-migration audit            :d2, 2026-09-25 14:12, 2026-09-28 10:06

Model and configuration

Where the metadata records a model, it is Opus: claude-opus-5-5 for 81 agents, claude-opus-5 for 9, and the parent’s model for the 10 forks (agents started with a copy of their parent’s context). The other 85 records name no model. All 90 teammates ran in bypassPermissions mode. Every tier 2 agent was launched in the background (requestShape: background), so the session that launched it kept working. Every tier 3 agent ran in the foreground, so its parent teammate waited for it. This held even when the parent asked for a background run, as in the S7-GATE reviewer above. Counted from the 185 .meta.json files: 73 one-shot tier 2 agents and 90 teammates are background, and all 22 tier 3 agents are foreground. Scope teammates used subagent_type: general-purpose, and reviews used the heo plugin’s reviewer agents (heo:code-reviewer, heo:security-reviewer, heo:qa-agent, heo:architect).

Addendum: the migration check, 25–28 September (to 11:58 MT, 28 Sep)

The migration check (the “post-migration audit” row above) ran in one top-level session, 376f518d, in the 02-migration-check-spet25 worktree. The table above counts it to 10:13 MT on 28 September, with 9 agents. By the 11:58 MT cut-off it had 11 agents: two reviewer teammates joined at 10:18 and 10:24 MT. The session’s own last event was at 11:56 MT. Counted from the sanitized digest of the session and its subagent transcripts:

Agent Kind Role Active (MT) Tool calls
Lead (376f518d) top-level session Cut-over, then orchestrator of the deep dive 25 Sep 14:21 – 28 Sep 11:56 376
plan reviewer one-shot heo:architect Adversarial review of the deep-dive plan 25 Sep 17:39–17:44 25
stream-A-postgres … stream-E-infra 5 teammates Read-only investigators: Postgres, Neo4j, app, Celery and env, files and infra 25 Sep 17:44 – 18:02; C and E answered again on 28 Sep 09:38–09:50 288
fix-app-tasks teammate Code fixes, PR #269 25 Sep 17:58 – 28 Sep 11:32 230
fix-cluster-config teammate Deploy-config fixes, PR #270 25 Sep 17:59 – 28 Sep 11:32 173
fork of fix-cluster-config tier 3 fork Runbook rollback and cluster-restore docs only 25 Sep 18:02 – 28 Sep 09:40 21
review-270 teammate, heo:code-reviewer Local review of #270 before deploy 28 Sep 10:18–10:35 64
review-269 teammate, heo:code-reviewer Local review of #269 before deploy 28 Sep 10:24–10:41 95
  • Totals: 1 session and 11 agents: 9 named teammates of the team session-376f518d, 1 one-shot agent and 1 fork. The lead issued 12 Agent calls. heo’s worktree guard refused two of them, the first launch of each fixer, so 10 went through. A teammate launched the fork.
  • Models: the metadata names claude-opus-5-5 for the five streams and both fixers, and claude-opus-5 for both reviewers. All nine teammates ran in bypassPermissions mode, in the background.
  • Where: four worktrees. The lead worked in 02-migration-check-spet25, the fixers in 04-dd-task-defects and 05-dd-cluster-config, and the deploy was built from 06-dd-deploy, an integration worktree the lead made at 10:24 MT on 28 September.
  • When: in two bursts. On Friday 25 September, 17:39–18:02 MT, the plan reviewer, seven teammates and the fork were launched in 23 minutes. On Monday 28 September, 09:38–11:56 MT, the two fixers resumed and the two reviewers joined. Nothing ran in between (see the addenda to chapter 13 and chapter 18).

2. How worktrees and agents coordinated

Question: How did the worktrees and agents coordinate and communicate (a) when things went to plan and (b) when they didn’t?

Short answer: Agents coordinated through files first and messages second. The plan designed three channels: a one-line STATUS file per worktree, change requests sent as messages, and a handoff note committed with each branch. In practice four more carried as much weight: git itself (every claim was re-checked against branches and PRs), generated instruction files (MISSION.md, purpose.md), the coordinating session S-PLAN acting as a switchboard, and the developer copying text between sessions.

When things went to plan, a request was a message with an exact hunk, the owner of the path applied it, and the requester checked the result in git. When they didn’t, the cause was something the plan’s channels didn’t cover: two writers in one working tree, messages sent to a session that was asleep or frozen, and state that had gone stale.

The raw message log is data/messages.json: 588 SendMessage calls, 160 between separate worktree sessions and 428 inside agent teams. 27 of them use the formal [unfork-xreq] header. The earlier write-up counted about 89 cross-scope requests in all, including those made in PR comments and handoff notes (what-the-unfork-taught.md §9).


The parts and who may touch what, in one picture:

The channels

flowchart TB
    subgraph designed["Designed in the plan (contract C-HANDOFF)"]
        ST["STATUS file<br/>.unfork/STATUS<br/>working · blocked:X · landed"]
        XR["Change request<br/>[unfork-xreq] + exact hunk<br/>via SendMessage"]
        HO["Handoff note<br/>docs/plans/unfork-handoffs/X.md<br/>fixed headings"]
    end
    subgraph emergent["Emerged in practice"]
        GIT["git and GitHub<br/>'re-verify, don't trust'"]
        GEN["Generated instructions<br/>MISSION.md, purpose.md<br/>re-provisioned by S-PLAN"]
        HUB["S-PLAN as switchboard<br/>relays, routes, re-provisions,<br/>later decides (steward)"]
        HUM["Developer as relay<br/>pastes paths and answers<br/>between sessions"]
        FB["Fallbacks when the recipient<br/>isn't running: PR comment,<br/>handoff 'Open change requests'"]
    end
    ST --> GIT
    XR --> FB
    HO --> GEN
Channel Transport Who used it Volume
Cross-session message SendMessage to a peer name (unfork-d10-ops-a4) or socket (uds:/tmp/cc-socks/<pid>.sock); arrives as <cross-session-message> Worktree sessions with each other and with S-PLAN 160
Team message SendMessage between a lead and its teammates; arrives as <teammate-message> or a queued <agent-message> Every agent team 428
STATUS file First line of .unfork/STATUS, read from the sibling worktree Gate checks one per worktree
Handoff note Committed markdown with fixed headings, checked by missions.py check-handoffs Every scope; read by later scopes and S7 31 files
PR comment GitHub When S-PLAN had no running session (PRs #138, #142, #152) a handful
purpose.md / MISSION.md Regenerated files in each worktree S-PLAN to future sessions a purpose.md for each of the 13 Wave 3 worktrees plus S2b, S6 and S7; one MISSION.md per provisioned scope
The owner Pasting paths or answers Planning (Scion ↔ Rootstock); “yes,d1ga4 can make a change” throughout

Two properties of the transport shaped behaviour. First, a message to a stopped teammate restarts it. Second, a message to a session that has closed or frozen fails or goes unanswered, so no channel that depended on the recipient being alive could safely be the only one.


2a. When things went to plan

A broadcast from the single source of truth (S0-INV, Wave 0)

S0-INV held the freeze SHAs. It sent 22 messages, more than any other Wave 0 scope. Three announced the new unfork/tooling branch, eight broadcast the freeze, two counted merges, seven announced the barrier, and two answered follow-ups (a SHA check and the inventory landing). The freeze announcement also told recipients where to read the SHAs from, so nobody would compute them independently:

[unfork] OD-4 FREEZE ANNOUNCEMENT from S0-INV (2026-09-22T23:16:47Z)

  1. Freeze SHAs: Scion scion_sha = 1b2c67ed33598fa2daa7606e447d71cf576ac7a2 (Scion main moved from ea48e8b5 by 7 plan-only commits, PR #778; docs/plans + .claude/heo only). Rootstock rootstock_sha = null until S0-RULES, S0-FLAG and S0-LLM have all merged into Rootstock main; S0-INV then writes main’s SHA. That write is the Wave 0b barrier. […]
  2. Read freeze SHAs only from the C-INV YAML block in docs/plans/unfork-inflight-inventory.md on unfork/tooling. Never use git rev-parse main. — S0-INV to eight sessions (B29)

The message worked. S0-IMG was mid-build at the old SHA; it asked S0-INV, killed the build and restarted it at the freeze SHA before pip had run (B31, B32). The next morning the owner merged the three main PRs within two minutes. Each scope reported its merge to S0-INV, which counted them (“1 of 3”, “2 of 3”), wrote rootstock_sha = d110744b and broadcast the barrier (B42).

A change request, rejected and rerouted (S0-LLM → S0-FLAG)

The xreq format carried a disagreement cleanly. S0-LLM found that the MARK II switch left one tool-calling path reachable and sent S0-FLAG a hunk:

[unfork-xreq] S0-LLM → S0-FLAG — C-FLAG’s off state leaves one tool-calling path reachable (the PEV verifier). path: docs/plans/unfork-contracts/C-FLAG.md (spec item 2 / v2) and app/rag/orchestrator.py why: S0-LLM-R4.1 … blocking: no — (B34)

S0-FLAG rejected it on scope grounds and said where the work belonged instead:

[unfork-xreq reply] S0-FLAG → S0-LLM: REJECTED (as proposed), with a routing suggestion. Reason: my mission explicitly forbids editing app/rag/orchestrator.py beyond the _get_meta_controller() guard, because S2a hand-merges that file after S1 […] Widening C-FLAG to cover PEV also changes what “MARK II” means, which is an owner-level scope call rather than something I should decide inside a fixed contract. — (B35)

S0-LLM accepted the rejection within fifteen minutes and recorded the gap as an open item for S2a (B36). The owner settled the underlying question the next day (chapter 6).

A shared resource, handed over by protocol (Docker, Wave 0)

Docker Desktop was the one resource every session shared, and it hung twice. The owner put a single session in charge:

I don’t know how to fix docker, can you? I deleted all the images and containers to clear up room on docker desktop. You’re in charge of fixing docker. other agents will wait for you to stop before they begin their work on docker. — owner to S0-ENV (B48)

S0-ENV fixed it, told S0-IMG, and named the containers S0-IMG must leave alone (B50). S0-IMG agreed and reported its own clean-up (B51). The next morning, when S0-IMG needed a second restart, it asked for a handshake instead of acting:

S0-IMG needs to restart Docker Desktop; with the owner’s approval, it happens when you confirm. […] Reply “go” when you’re at a safe point (volumes survive). — (B53)

S0-ENV replied “go” seven seconds later. A day later S-PLAN, about to restart Docker on the owner’s behalf, sent the same kind of request to the D4b session: “Are you using Docker, unfork-pg, unfork-neo4j or unfork_base right now? Please reply with “safe to restart” or with a time when it will be. I won’t restart until you answer.” (9cc0216e, line 3765, 2026-09-24T16:00:52Z), then sent it again eight seconds later. Both attempts came back "Failed to send to unfork-d4b-obl-f1." because that session had frozen the evening before. S-PLAN checked Docker and the containers itself, and reported: “Docker was responding, so I didn’t restart it” (line 3805, 16:01:42Z). Its next check contradicted that. A throwaway docker run printed HUNG 45s (line 3816). One minute later, with no answer from D4b, S-PLAN quit Docker Desktop, restarted it with docker desktop restart, and started both containers again: unfork-pg Up 4 seconds, unfork-neo4j Up 1 second (lines 3820–3837, 16:02:43Z–16:08:07Z). The handshake protocol had no answer for a peer that couldn’t reply. The docs session’s brief, which relayed the owner’s request, had asked S-PLAN to coordinate first (X008). In the end it acted alone, after checking that D4b had frozen. Chapter 19 has the full Docker record.

Requests applied by the owner of the path (Wave 3A)

Wave 3A’s seven interactive sessions exchanged requests for small hunks in each other’s files. The receiver applied each one in its own tree and replied with the SHA:

From → to Request Outcome
D4a → D10 Drop the dead BEAT_SCHEDULE_OUTBOUND_LINKS from app/scheduler/__init__.py D10 applied it 26 s later, then pointed D4a at three stale docs, which D4a sent on to S6 (#182)
D8a → D10 Dev mock /search must redirect because D8a deletes a template Applied, committed with D10’s work
D1 → D6 Defer BigQuery imports so the web boot doesn’t load the worker’s dependencies D6 applied it in #181 with a regression test; D1 confirmed and pointed at the remaining path
S6 → every landing scope Doc-link fixes in each handoff Applied in #175, #178, #184, #196, #203; after a merge “doclinks jumped to 88 broken” (294af2c1, line 789); S6 brought it to 16 (8bc5e557)
D7a → D6, S2b “C-EGRESS fixed at v1” D6 verified its advertiser check against D7a’s commit before D7a landed

S6-DOCS became a docs gatekeeper nobody had planned: after every move of the integration branch it re-ran the link checker and sent each responsible session a request.

The coordinating session as switchboard

S-PLAN relayed owner answers to its teammates and routed requests between scopes that weren’t running at the same time. Its relays name the source of the decision, so the receiver could record it:

[SendMessage to=s4-mig] Owner decision (Steve, 2026-09-23): R4.2 is judged as a set difference against the drift both repos already had, the same way C-BASE judges test failures. Only drift the merge added counts. Please: (1) Record this in your handoff […] Until then, stay idle. You don’t need to poll; I’ll message you when S3 lands. — S-PLAN to s4-mig (9cc0216e, line 777, 2026-09-23T20:03:34Z)

When a session was expected back, S-PLAN deliberately held work for it instead of risking a collision. S6 asked S-PLAN to apply three edits to a file S2b owned, and S-PLAN refused: “S2b is expected back. Steve is reopening it as an interactive session to write C-EGRESS v2, which edits that same file. So I’ve left these three to S2b rather than risk two edits colliding” (9cc0216e, line 1771, 2026-09-23T23:34:06Z). It copied the three edits into S2b’s purpose.md word for word.

Handoffs and re-verification

Every scope committed a handoff with fixed headings (Changes, Evidence, Contracts, Open change requests, Dependency requests, Fallbacks applied, Deferred or dropped). S1-MERGE’s note is the clearest example of why the format worked: its Evidence section recorded 1 contract-test failure and 9 errors, all traced to one missing import, and its Deferred section named the later requirement that would fix it. Every Wave 2 agent was told to read it first.

Sessions checked each other’s claims against git before acting on them. D1 counted S2b as landed even though S2b’s STATUS still said blocked:

S2b’s status file still says blocked:D7a-SEC, but that file is out of date. Its PR #152 merged (9c662f79) and its handoff is on the integration branch, so I’ve counted it as landed. — D1-GA4 (D3A-026)


2b. When things went differently to plan

flowchart LR
    subgraph stale["State gone stale"]
        direction TB
        W1["STATUS files"]
        W2["Mission snapshots"]
        W3["Lead's memory after compaction"]
        W4["Claims of 'fixed'"]
        W1 ~~~ W2 ~~~ W3 ~~~ W4
    end

    subgraph asleep["Recipient not there"]
        direction TB
        A1["Stopped teammates"]
        A2["Frozen session"]
        A3["Report sent to a closed session"]
        A4["No S-PLAN session in Wave"]
        A1 ~~~ A2 ~~~ A3 ~~~ A4
    end

    subgraph writers["Two writers, one working tree"]
        direction TB
        S1s["Two interactive sessions"]
        S2s["Stashed worker's edits"]
        S3s["Steward launched a new fixer agent into a worktree its own fixer was using"]
        S1s ~~~ S2s ~~~ S3s
    end

    stale ~~~ asleep ~~~ writers

Two sessions in one worktree (D4a)

The owner opened a second session in the D4a worktree eleven minutes after the first. Both received the same instruction to finish the mission. The plan’s rule is one orchestrator per worktree, and nothing enforced it. The second session noticed, stopped, and asked the first:

A second session (unfork-d4a-obl-cc) is open in the D4a-OBL worktree, and Steve has asked it to finish the mission too. I have not edited, committed or started any tests, and I will stay read-only so we don’t collide in the same working tree and index. […] Which of these, if any, do you want me to take? If you’re covering all of them, just say so and I’ll stand down. — D4a session cc to session be (D3A-049)

D4a-OBL session unfork-d4a-obl-be here: I’m covering all of it, please stand down. The branch is pushed and PR #169 into unfork/integrate-scion is open. The S3 xreq is posted on #165. — be to cc, 17 seconds later (D3A-051)

Later the owner asked cc to make review fixes. It took the worktree with an explicit lock (“Please don’t edit, commit, push or merge until I tell you I’m done”, D3A-058) and released it at 15:59 MT. The protocol held, but each session’s view of the other still went stale. Forty-three seconds after be merged the C-REG test fix (#187, mergedAt 22:06:41Z), cc told the owner it couldn’t make that fix because D4a didn’t own the file (D3A-065). Other sessions didn’t know which of the two to talk to. D1 wrote “If this isn’t your session’s scope (there are two d4a sessions), please pass it on” (D3A-013).

Edits vanishing mid-flight (D10)

D10’s orchestrator committed while three workers were still editing the same tree. While its hooks ran, pre-commit stashed every unstaged change for about 60 seconds. One worker saw its work disappear:

Worker B: all my working-tree changes in the d10-ops worktree were reverted within the last few minutes. Was that deliberate? […] Did you run a checkout/restore, or do you want strict retire instead of my retarget? I’m pausing until you reply. — (D3A-032)

STOP, don’t redo anything. That was my fault. I ran a commit, and pre-commit stashed every unstaged change while its hooks ran for about 60s, then restored them. Your work is back in the working tree […] I won’t commit again until all workers have reported.

— D10 orchestrator (D3A-033)

Nothing was lost. The plan’s rule “only the orchestrator commits” didn’t cover when: a commit is unsafe while workers are editing, even if they never commit themselves.

A collision the coordinator caused (S7)

The steward launched s7-followups into the unfork-s7-gate worktree, believing it idle, while S7’s own fixer subagent was still editing there. document_suggestion_tasks.py ended up half one agent’s work and half the other’s. Both agents stopped and asked, each with lettered options:

Please tell me which agent owns this worktree and fix, and whether I should: (a) stand down on Fix 1 and do only Fix 2, (b) take over Fix 1 once the other writer stops, adopting their deny-scrub design […] © stand down on both. I won’t touch the worktree until you answer. — s7-followups (9cc0216e subagent as7-followups, line 95, 2026-09-24T12:05:35Z)

The steward split the files between the two agents, had both commit on one branch, and told the fixer to revert one file it had changed on a wrong assumption. That was a second collision, in engine.py; the other agent’s report explains why: “Their change charges any decision that isn’t a Mapping a made-up cost of $0.05 and 8,000 tokens” (9cc0216e, line 3239). A third collision followed when s7-followups switched branches under S7; the steward then gave the worktree back to S7 alone.

Stopped teammates wake when messaged

One thing I didn’t expect: a stopped background agent restarts when another agent messages it. S6’s change requests woke S2a, S3, S4 and S5, and each of them applied S6’s fixes to its own handoff on the integration branch (#164–#167). […] No harm came of it […] To avoid more of this: if a session sends a message to one of the old agent names […] that agent restarts in the background. The S6 session could then clash with a revived s6-docs agent working in the same worktree. — S-PLAN lead

From then on every prompt and purpose.md carried “Never message the old agent names…”.

The recipient isn’t running

  • No S-PLAN session during Wave 0. Two scopes fell back to the channel C-HANDOFF names: S0-LLM and S0-REHEARSE posted their requests to S-PLAN as comments on PRs #142 and #138. S-PLAN answered them the next morning when a coordinating session was opened. S0-ENV put its request to S4-MIG in its handoff’s Open change requests, because “no S4-MIG session was running” (3c6c1eba, line 681, 2026-09-23T15:43:12Z).
  • A frozen session. D4b’s interactive session committed once, then a Bash call never returned. The steward diagnosed it from outside (ps, lsof: CPU time flat, a zombie child), did not kill it, and launched a teammate to finish from the unpushed commit (chapter 6).
  • A report sent to a closed session. When the owner restarted the Mac, S-PLAN’s report back to the write-up session failed: No agent named '01-cluster-ready-sept22-0a [746d77]' is reachable. After the restart S-PLAN re-sent it under the write-up session’s new name, noting “Your earlier session had closed before this was sent” (X019, X023).

The 11:03 restart

At 11:03 MT on 23 September every Wave 0 worktree and unfork-plan got a fresh session within 38 seconds (17:03:03Z to 17:03:41Z, data/agents-inventory.json). In each one the owner’s first prompt was the text --continue, typed as a message (in eight of the ten with a leading space, --continue), so the sessions started fresh instead of resuming the previous conversation. Only S0-FLAG shows a real resume. The transcripts don’t say why. There is no sign of a reboot or a version change. The fresh sessions rebuilt their state from .unfork/STATUS, git and GitHub, and most reported “landed, nothing to do”. S1-MERGE found unpushed local merge commits and finished them. The design’s premise, that a finished session is disposable because its handoff is committed, held.

Stale state

  • STATUS files. S2b’s said blocked:D7a-SEC long after its own PR merged. S-R7’s still said blocked on S2a 1 h 45 min after S2a landed (the write-up session’s audit table: “blocked:S2a-LLM-BASE […] STALE for 1 h 45 m.”, fc6720d1 subagent ad792aca, line 156). Readers routed around them by checking git.
  • Snapshots. D4b’s .unfork/ bundle made it look blocked when it could start. D4a asked S-PLAN to re-provision it: “please regenerate from the live contract and landing state, not from those two records” (D3A-076).
  • The coordinator’s own view. S-PLAN’s steward message to D7a (9cc0216e, line 1846) asked it to land about 15 uncommitted files. D7a checked and told the owner: “It asked me to commit and land about 15 uncommitted files, but that was out of date: the worktree is clean” (0b28651a, line 1378, 2026-09-23T23:41:20Z).
  • Memory across compaction. After a context compaction the S-PLAN lead told D3 that its two questions “never reached me; they may have been lost when my context was compacted” (9cc0216e, line 2194, 2026-09-23T23:55:08Z). D3 replied: “No R5.2 question is still open. Your earlier answers did reach me, and both are implemented (commit 3a985225).”
  • Claims. S7 landed claiming findings were fixed that weren’t in the code. The steward’s own check caught it (“I want the guard in code, not just #230”, 9cc0216e, line 3139) and launched s7-followups to finish the work.
  • Truncated reports. Idle notifications cut final reports off mid-sentence, so the lead asked for resends (“Your report was cut off at…”, 8c245051, line 337). Later prompts capped reports at 250–300 words.

A session crossing its own boundary

The planning session wrote directly into Scion’s worktree and pushed to Scion’s branch to make revision 3.1. It worked because nobody else was editing that file. On 24 September the owner mistakenly told the write-up session “Fix the agent-loop bugs” in the wrong session, and it created a branch before the owner caught it:

This is supposed to be the documentaiton of migration worktree, not the orchestration worktree. That’s supposed to be unfork-plan claue code session. How do we reconcile?

— owner (X060)

I’ve handed the work to the unfork-plan session, and this worktree is back to being the documentation worktree. […] I deleted the fix branch I’d created, unfork/s7-loop-fixes, which had no commits. No code was changed anywhere. […] I sent the unfork-plan session a complete brief. — write-up session (X061)

The brief carried file:line findings and the owner’s constraints, including “NO key rotation” and “coordinate first” for the Docker restart (X008). S-PLAN acted on it, but drew a line at the one item that changed project instructions:

Held for your direct answer: the CR-17 wording tweak and the other edits to .claude/CLAUDE.md. I won’t edit CLAUDE.md on the strength of a message relayed from another session. — S-PLAN (X015)

Owner actions that diverged from agents’ advice

The owner merged D4a’s PR #169 themselves at 15:42 MT (mergedAt 21:42:38Z, data/prs.json) and told the first session “169 merged” (8645baf0, 21:42:41Z). Twenty minutes earlier they had answered D4a’s question with “Hold until the S3 fix is in (Recommended)” (8645baf0, line 406, 21:22:44Z). Twelve minutes before the merge, D4a’s second session had finished a read-only review headed “Verdict: hold the merge.” (c71beb63, line 221, 21:30:57Z). The C-REG contract test went red on the integration branch until D4a applied the fix under a one-time exception (#187). D10 and D1 both reported the failure to D4a, 8 and 11 minutes after the merge (data/messages.json, 21:50Z and 21:53Z). The cross-session reporting worked, but the agents’ hold and the owner’s merge were not connected by any channel.

What coordination cost

The existing analysis measured 29% of non-merge commits as coordination rather than work, and 39% of all unfork commits once sync and promotion merges are counted (what-the-unfork-taught.md §9). The transcripts explain why the figure is so high. Every landing moved the integration branch, and every scope still open had to re-run its evidence against the new base and often re-fix its handoff’s doc links. Wave 3B, dispatched after almost everything else had landed, spent only 10% of its commits on coordination.

Addendum: the migration check, 25–28 September (to 11:58 MT, 28 Sep)

The migration check ran as a star: one lead at the centre, with teammates around it. There were no peer sessions, no STATUS files and no handoff notes. It used four channels:

  • A shared brief on disk. Every stream read .claude/scratch/dd/BRIEF.md first and kept its raw output in its own directory under .claude/scratch/dd/.
  • Messages. There were 77 SendMessage calls in all. The lead sent 33 and teammates 44. Of the teammates’ 44, 38 went to the lead and 6 went peer to peer.
  • Git. There were two fix branches and PRs, then a local integration branch that joined them.
  • The report file as a progress log. It lived on audit/migration-deep-dive, and the lead updated it after each step.

When it went to plan, streams reported, the lead sorted the findings into two fix batches by file type, and the reviewers’ findings went back to the owning fixer as numbered lists. The two branches then met at the integration merge. Both PRs had changed celery_config.py, and the merge still went through without a conflict:

The merge was clean, and git auto-merged celery_config.py.

— lead (376f518d line 3048, 2026-09-28 17:02 UTC)

When it didn’t, the fixes were the same as in the unfork proper: files first, then a relay by the lead.

  • Long messages were cut off. Teammates’ reports were truncated in delivery. Nine of the lead’s messages mention a cut-off and ask for a resend. Seven came on 25 Sep and two on 28 Sep: to stream-C-app at 09:40 MT and to review-270 at 10:33 MT.

  • Evidence went to the wrong agent. stream-C-app could not give fix-app-tasks the D-07 error text, because that text came from another stream. The lead took it from that stream’s saved file instead:

    The app fix agent needs the exact D-07 error line. Stream D saw it in the droplet’s worker logs, and the evidence file is saved locally, so I’m pulling it from there.

    — lead (376f518d line 2797, 2026-09-28 15:50 UTC)

  • The lead wrote into a teammate’s branch. When the deploy exposed the Grafana mount-point failure, the lead committed 42b105cd onto fix/deep-dive-cluster-config in the fixer’s own worktree, then told the fixer:

    (1) I pushed commit “fix(monitoring): give node 4’s cluster alert overlay a mount point” to #270. […] Pull before any further commits.

    — lead to fix-cluster-config (376f518d line 3157, 2026-09-28 17:31 UTC)

    The fixer pulled first, and its next report confirmed that its branch included the commit.

3. How the plan was made

Question: What was the process of coming up with the plan in the first place?

Short Answer: The developer set the goal and the direction, custom skills framed the problem, and each session critiqued the plan ad hoc against its own repo’s code. The Scion session framed the problem and wrote revisions 1–3. The Rootstock session critiqued them against Rootstock’s real code and turned the prose into a registry of 32 scopes, 14 contracts and a mission generator. It found four defects in the plan that were then updated…

The developer made the calls that set direction and policy: which way to merge, the seven owner decisions, and whether to rotate a token. Two of those calls reached down to files. OD-7 brought data/advertiser-reports/** into Rootstock, and E26 let agents delete pr-agent and heo code or config “when in doubt”. E26 also ordered that “Ours” and “theirs” be replaced with names. During planning, the developer never ruled on a scope.

The plan itself is docs/plans/unfork-parallel-scopes.md (Rootstock). How the Unfork Was Planned explains why the plan has the shape it does. This chapter shows how the agents produced it, quoting the transcripts. Excerpt IDs (E14, …) refer to data/excerpts.json, which gives each quote’s session, JSONL line and UTC timestamp.


The skills the developer typed across the whole project, and what each one composed:

The sequence

sequenceDiagram
    autonumber
    participant O as Owner
    participant A2 as Scion session<br/>(f13f8fb3)
    participant A3 as Rootstock session<br/>(aafa7573)
    participant T as Rootstock agent team<br/>(5 teammates)
    O->>A2: 13:26 "We need a plan for unforking"
    A2-->>O: 13:32 convergence plan: merge Rootstock INTO Scion
    O->>A2: 13:46 reverse it: Scion into Rootstock, many agents,<br/>/heo:problem-definition, /heo:boundary-critique
    A2-->>O: 13:52 rev. 1: ~20 scopes, 5 waves
    O->>A2: 14:03 "Which areas are likely to get stuck?"
    A2-->>O: 14:04 8 ranked blockers, graph-changing mitigations
    O->>A2: 14:18 "write plan to file" → rev. 2
    O->>A3: 14:57 "Critique [Scion's plan] into a new document"
    A3-->>O: 15:01 critique: 4 blocking defects
    O->>A2: 15:27 (relays the critique's path) "what does it get right?"
    A2-->>O: 15:29 "mostly right", 15:46 rev. 3 (Scion PR 778)
    O->>A3: 15:50 "The other repo responded to your comment"
    A3-->>A3: 15:53 edits Scion's plan file directly → rev. 3.1
    O->>A3: 16:04 "explain what is needed from me?"
    O->>A3: 16:12–16:13 "not rotating token", "Use defaults"
    O->>A3: 16:15 "Is that a smart way to approach this phase?"
    A3-->>O: 16:16 yes, with five refinements
    A3->>T: 16:23 frag-wave0, frag-wave12, frag-wave34, missions-tool
    T-->>A3: 16:31–16:40 fragments plus defects found
    A3->>T: 16:39 own-review
    T-->>A3: 16:46 324 unowned paths, pr_agent.yml misrouted
    A3-->>O: 16:51 registry, 14 contracts, missions.py, 8 worktrees (PR #138)
    O->>A3: 17:00–17:15 OD-7 and OD-5: "merge, then remedy"

Everything happened between 13:24 and 17:17 MT on 22 September. The sessions never messaged each other. The owner relayed by pasting the path of a file from one worktree into the other session.

Step 1: the direction, set by the owner and against the agent’s advice

The owner’s first prompt (13:26 MT) was open-ended:

The next step is to unfork this repo with the local hosted mac mini cluster repo. This repo has undergone feature development, including chagnes to the database, and the other repo has only been working on adapting to 4 mac minis.

We need a plan for unforking and adapting the work completed in tisrepo with the toher other repo. — owner, Scion session (E03)

Six minutes later the Scion session came back with a measured convergence plan: 102 conflicted files, only 9 needing a hand merge, and one Alembic join revision. It also recommended the opposite direction to the one eventually taken:

Decisions for you:

  1. Which repo survives. I recommend merging the fork into scion and then archiving the fork on GitHub. This repo holds PRs #1–#777, the issue tracker and production. The fork’s own July brief reached the same conclusion.… — Scion session (E04)

The owner overruled it fourteen minutes later and asked for parallel scopes. They also named the two heo skills to use for framing the problem:

I want to bring the features made in this repo into the other repo (the cluster repo).

We want this work completed as quickly as possible. Create an outline for scopes of work so that many agents can run simultaneously to adapt the code. use /heo:problem-definition and then /heo:boundary-critique To define the problem

— owner (E05)

The agent put the override into the problem-definition skill’s input verbatim: “Direction is Scion → Rootstock (owner decision, overriding the earlier recommendation in docs/plans/unfork-cluster-convergence-plan.md)” (E06). The plan’s header records it the same way (“Rootstock becomes the canonical repo. This is the owner’s decision”, unfork-parallel-scopes.md line 25). The superseded direction brief now opens: “The owner decided on 2026-09-22 that convergence runs” Scion into Rootstock (direction-decision-brief.md, line 3). Two written recommendations favoured the other direction. The counterfactual section weighs them against what happened.

Step 2: framing, with two skills

/heo:problem-definition classed the problem as complicated: it can be split up, but not trivially. /heo:boundary-critique returned reframe. The agent’s summary of the reframe (E11, E12) contains four findings that shaped the whole plan:

  • The two repos’ CLAUDE.md rules contradict each other. This repo lets agents own the droplet; the cluster repo forbids touching it. […] The rules have to be reconciled before agents start, or they’ll work under opposite instructions.
  • The cluster is already live on <grovesite>.com. A green merge doesn’t show that features work there. […] Each feature needs to be shown running.
  • Node 2’s data is a 09-16 snapshot. If both the droplet and the cluster run the scheduled jobs, e-mails, alerts and BigQuery spend double.
  • More agents doesn’t mean faster. A few serial steps (the merge commit, the LLM files, the Celery config, the migration head) cap the speed, and so does git and test load on one Mac.

The critique document says the same about agent count in its own words (E10):

Conflict: yes. Agent count is not the binding resource. The binding resources are the serialization points (the merge commit, the LLM-path resolution, celery_config.py, the Alembic head) and the host’s git and test throughput. Beyond roughly the number of disjoint scopes, extra agents add contention, not speed.

Each finding became part of the plan: S0-RULES reconciles the rulebooks first, every domain owes “runtime evidence”, OD-2 keeps Scion’s scheduled jobs switched off on the cluster, and the 10–12 process cap applies to the whole machine.

Step 3: the blocker question

Revision 1 had about 20 scopes in five waves. The owner’s next prompt (14:03) produced the single most important design passage in the project:

Likely, actualy, I would use agent swarms under each oof those orechestrating agents.

Which areas are likely to get stuck and cuase the other scoped areas to wait? What could be our mitigation strategies of a blocking section cuases the other sections to wait for an extended period of time? — owner (E13)

The agent first re-measured and found its own outline was more serial than it needed to be:

The measurement changes the picture. Of the ten feature areas, only outbound links (1 file) and analytics (1 file) import the contested LLM files at all. […] So the outline I gave you is more serial than it needs to be: it holds all of Wave 3 until the LLM work lands, when most areas never touch it.

Swarms under each orchestrator help where work is wide: ten feature areas, hundreds of tests, many independent files. They don’t help on a single hard file, and they make things worse there: ten agents editing llm_client.py just collide. The blocking risk sits in exactly the places swarms can’t speed up. — Scion session (E14)

It ranked eight stall points: the LLM files, the merge commit, the router rule (R7), shared config files, the test environment, cluster images, the owner’s availability and the final gates. Then it proposed removing waits instead of shortening them (E17–E19):

Change the dependency graph itself. These remove waits rather than shorten them.

  • Gate each area only on what it actually uses. […] That takes seven or eight of the ten swarms off the longest wait.
  • Split the LLM scope in two. […] The hard design problem stops being on the critical path. […]

Set a fallback for every serial step. Give each one a timebox and a pre-agreed simpler option if it runs over, so no one has to decide in the moment […]

Work ahead on a provisional base. […]

Batch everything that needs you. Collect all decisions and physical tasks […] into one list at the start of Wave 0, so the plan never stalls mid-way waiting for an answer.

Every one of these is in the final plan: per-domain gates, S2a/S2b, the timebox table in §2, unfork/provisional, and the OD batch in §1. The owner said “write plan to file”, and revision 2 was pushed as Scion commit da77884f (“docs(plans): add blocker analysis, per-domain gates and timebox fallbacks”, 14:19 MT).

Step 4: cross-repo critique, relayed by hand

The owner then opened the Rootstock worktree 01-cluster-ready-sept22 and asked its session to critique the Scion plan “into a new document in this worktree” (E23). Four minutes later it had committed unfork-parallel-scopes-critique.md with this verdict (E24):

The plan’s skeleton is sound. […] It is not executable as written. Four defects would stop it or produce a wrong result, and none needs an owner decision to fix:

  1. S1 step 2 fails. git fetch upstream from Rootstock returns HTTP 403 […]
  2. The “measured fact” that shapes the dependency graph is wrong. Many more Scion files import the LLM core than two […]
  3. The flag that OD-3 and OD-5 rely on doesn’t exist. […]
  4. About 30 conflicted paths have no owner. They include pr_agent.yml, which holds Rootstock’s fail-closed merge-gate fixes that Scion lacks.

The critique also caught the most dangerous error in revision 2, an “ours/theirs” flip. The Scion session confirmed it once the owner pasted the critique’s path into it (E29):

B6: the merge rules use git’s “ours/theirs” labels, and my plan flipped their meaning. This is the most dangerous error, and it is real: […] Ported literally, the script would keep Rootstock’s formatting-only copies and silently drop Scion’s logic in all 26 files.

The Scion session pushed back where the critique overstated things: the Rootstock SHA claim, the ADR collision count, and presetting OD-3 to “keep live” (E31). It then folded the rest into revision 3. When the owner relayed that back (“The other repo responded to your comment. Analyze and write to file”, E36), the Rootstock session didn’t write a reply. It edited Scion’s plan file directly, committed revision 3.1 to Scion’s branch as 215da31d (“docs(plans): rev. 3.1 of the parallel scopes, folding in the Rootstock review of rev. 3”, 15:53 MT) and pushed it. Its finding (E37):

The merge dry run happens before the code it merges exists. The dry run (S0-REHEARSE) and the test baselines (S0-BASE) lock onto a Rootstock commit early in Wave 0. But three other Wave 0 jobs change files on Rootstock main during that same wave […] I split Wave 0 into two parts: 0a, then a checkpoint once those three changes have merged, then 0b […]

Nothing mechanical connected the two sessions. Chapter 2 explains why that was enough here, and why it did not scale to the execution phase.

Step 5: the owner’s batch

“explain what is needed from me?” (16:04) produced a single list with a default for every decision, “chosen not to change production behaviour” (E41). The owner answered in four short prompts:

Owner prompt (MT) Effect
16:12 “not rotating token. Do rootstock git hooks.” PT-3 declined. PT-2 done by the agent, which unset core.hooksPath so Rootstock stopped running hooks from the Scion clone. It also added a new rule: never print Scion’s remote URL.
16:13 “Use defaults” OD-1 to OD-6 final. The plan status became “approved for execution” (E45).
17:00 “We want client data in this repo - This is the same project, we are merely forking and unforking the git repo.” plus the queued “for 0d-7. We will have merge and then remedy.” OD-7 reversed the agent’s default, which was to leave the client files out (E74–E77).
17:15 “that’s the merge and remedy for OD-5” OD-5 took the agent’s widened exemption (R1–R7 plus H3/H6, not R7 only).

One exchange shows how carefully the agent separated what it had been told from what it had inferred. The owner typed “cconfirm what I said”, and the agent restated OD-7 but wouldn’t assume the confirmation also covered OD-5 (E79):

That’s all you’ve decided in this exchange. You haven’t said anything about OD-5 yet: it’s still waiting on your confirmation of the wider exemption, which covers R1–R7 plus H3/H6, not just R7. If “confirm” was meant for OD-5 as well, say so and I’ll record it.

Step 6: from prose to an executable plan

At 16:15 the owner proposed the next step and asked for criticism:

When the plan is complete. commit and push. Then Write the requirements for each phase-scoped worktree and then sub requirements, including contracts between modules. Then make the worktrees and provide each worktree with its clear mission and how it relates to the nearby-scoped worktrees (that way it udnerstands the context). Is that a smart way to approach this phase of hte project? What would you refine? — owner (E46)

The answer (E47) became the execution model:

Your sequence is basically right. Pinning down requirements and contracts before any agent starts is what keeps a swarm from colliding. I’d refine five things.

1. Create worktrees one wave at a time. […] If I create them now, their bases will be stale or invented. […]

2. Write all requirements now, but only fix the contracts that can be fixed now. […] Each contract should be owned by the scope that produces it, versioned, and referenced by consumers rather than copied into them. […]

3. Make contracts executable, not just prose. Each contract should come with a contract test in the producer’s branch […] Prose contracts drift, and a test fails loudly when they do.

4. Generate the mission files from one source. About 25 hand-written mission files will drift from the plan within a day. So one tracked file, docs/plans/unfork-scopes.yaml, holds each scope’s ID, wave, base branch, owned paths, gate, producers, consumers, contracts and done evidence. […] each mission lists only the scope’s direct producers and consumers and the contracts between them, not the whole plan. That’s the context an agent actually needs, and it keeps each one focused.

5. Put it in Rootstock and clear the merge bottleneck first. […]

The owner replied “yes to both” (E48), and added mid-turn: “Use agent teams as often as yo ulike to move things along quicker” (E51).

The planning team

The Rootstock session wrote the registry header, the 14 contracts and a worked example scope (S-PLAN) itself. It then split the rest across four teammates, each told to write only one file (E52–E55):

Teammate Task What it found beyond the task
frag-wave0 YAML for S0-RULES … S0-BASE, S-R7 A blocking flaw: Wave 0 tooling landing on main after the barrier moves main past the pinned ROOTSTOCK_SHA, so the rehearsed merge could never run (E57). The fix was a new staging branch, unfork/tooling.
frag-wave12 YAML for S1 … S6 pr_agent.yml had no owner; unfork/provisional silently drops MARK II (E56)
frag-wave34 YAML for D1 … D10, S7, S8 Two Scion paths the plan named don’t exist (E62)
missions-tool scripts/unfork/missions.py and its tests — (33 tests passing)
own-review (launched after the others) Resolve every path’s owner from the merged registry 324 of 1,587 paths had no owner. pr_agent.yml resolved to S5 through a broad glob, which would have reopened the forged-review hole #95. 17 of 43 hand-offs never took effect. Real client data sat under data/advertiser-reports/ (E64).

The lead’s reaction to frag-wave0 shows the pattern: accept the finding, change the design once, and push the change to every teammate it affects (E58–E60):

The wave 0 agent found a real blocker. S0-INV pins Rootstock’s commit once the three main PRs merge, but the Wave 0 tooling scopes also land on main, so main moves past the pinned commit before S1 runs. I’ll fix that by giving those scopes their own staging branch, unfork/tooling, which S1 merges in.

own-review’s client-data finding became OD-7. Its ownership fixes became the “F1” rule in contract C-OWN: a hand-off moves ownership once its when condition holds.

Provisioning

The session created the worktrees with its own tool. First it got past heo’s guard on git worktree add using the documented override (E49–E50, E67–E68):

HEO_ALLOW_WORKTREE_OPS=1 git worktree add -q -b unfork/plan .trees/unfork-plan origin/main
…
python3.11 -m scripts.unfork.missions provision --all-ready --waves 0a bg --create
for w in unfork-plan unfork-s0-rules unfork-s0-flag unfork-s0-llm unfork-s0-inv \
         unfork-s0-env unfork-s0-img unfork-s0-rehearse unfork-s-r7; do
  bash …/heo/3.1.52/scripts/tree.sh provision $w
done

Each worktree got a CLAUDE.local.md, which Claude Code loads automatically, and a git-ignored .unfork/ bundle containing MISSION.md, its contracts, the plan sections on its reading list, and the Scion files it needed at the pinned SHA. Its report (E69):

Each contains:

  • CLAUDE.local.md, which Claude Code loads automatically and which says to read the mission first;
  • .unfork/MISSION.md: its mission, the scopes it waits on, the scopes that build on its work, parallel scopes, what it owns, what it must not touch, its requirements and what counts as done;
  • copies of the contracts it produces or uses, the plan documents, and the Scion files it needs at the pinned commit.

The operating model, agreed in two lines

I’m assuming I should orechestrate awith you in this worktree, and do interactive sessions in each worktree — owner (E70)

Yes, with one change: run the coordinating session from .trees/unfork-plan, not this one. […] Stagger the start. Eight sessions, each running helper agents, will exceed the limit of about 10–12 active git or test processes on this machine. It froze on 2026-08-25. […] Your role is decisions and merges into main. — Rootstock session (E71)

The owner opened eight sessions, one per Wave 0 worktree, between 16:55 and 16:57 MT. The owner asked S0-ENV “what’s your mission?” at 16:59, then sent the other seven “What is your mission?” within 14 seconds, 17:02:03 to 17:02:17 MT (data/owner-prompts.json).

What the process got right, and what it cost

  • Critique across repos worked because each session could see its own repo’s truth. The Scion session couldn’t know that git fetch upstream fails from Rootstock, or that Rootstock had no MARK II switch. The Rootstock session could check both in minutes.
  • The owner’s input was small and high-leverage: 17 prompts in the Rootstock session and 7 in the Scion session, 15 of the 24 under twenty words (data/owner-prompts.json, sessions aafa7573 and f13f8fb3). They set direction, framing (the two skills), policy (OD-1 to OD-7, PT-2, PT-3), and the operating model. Only two touched files: OD-7 on data/advertiser-reports/**, and E26 on pr-agent and heo files and the ours/theirs wording. E26 came in the other session, three minutes before the Scion session’s call for repo names (E29, E32).
  • Agents found the plan’s own defects: the ours/theirs flip, the barrier flaw, 324 unowned paths, the misrouted pr_agent.yml, and client data in the tree. Four of these were found by teammates doing something else (writing YAML or checking ownership).
  • The cost of relaying by hand was that the Rootstock session wrote directly into Scion’s worktree and branch. This time it worked because only one session was editing the file. In chapter 4 the same shortcut, a session acting outside its worktree, causes trouble.

Addendum: the migration check, 25–28 September (to 11:58 MT, 28 Sep)

The check was planned in ten minutes by one session, not in four hours by two. The owner asked for it at 17:34 MT on 25 September, in the prompt that also said how to plan it:

When done, I want you to do a deep dive in the migration. check everything. I want to know if everything was correctly migrated, and if all systems still work. Start by making a plan, reviewing the plan, and then ipmlementing. You are the orchestrator. […] Ask me 3 questions before starting. and then begin

— owner (376f518d line 2107, 2026-09-25 23:34 UTC)

The steps, all on 25 September (MT):

  1. 17:35: three questions. One AskUserQuestion asked about fix scope, paid live tests and where the report should go. The owner picked “Fix, PR, deploy”, allowed LLM and RAG queries (“Small is defined as less than $5 CAD”), and chose an archived report plus a web page.

  2. 17:36–17:38: preconditions. The lead checked that no other session was using production (“Two other Claude sessions exist on this machine, and both are idle.”). It also tested every access path and wrote read-only helper scripts.

  3. 17:38–17:39: the plan. The lead wrote the plan and a progress log into the report file on a new branch, audit/migration-deep-dive.

  4. 17:39–17:44: an independent review. A one-shot heo:architect read the plan adversarially. Its brief read: “Review a verification plan, adversarially, for GAPS. Do not rewrite it”. It returned 15 items, and the lead folded them in:

    The review found 15 real gaps. The most important:

    • The schema upgrade was really 11 migrations, including three table drops and a partitioned table.
    • Redis holds durable state that the migration skipped: the outbound sweep’s cursor. — lead (376f518d line 2277, 2026-09-25 23:44 UTC)
  5. 17:44–17:46: five streams. The work was split by system, and each stream was read-only:

    Stream Checks
    A stream-A-postgres Schema oracle from the alembic chain, per-table row counts and content hashes, sequences, matviews
    B stream-B-neo4j Full census and content hashes of the graph, schema, cross-store ids, app access
    C stream-C-app Public path, 150 routes, retrieval, 8 real RAG answers under the $5 CAD cap
    D stream-D-celery Environment parity by name, every beat entry, known task failures
    E stream-E-infra Files, Redis, backups, monitoring, the two deployment gates, the rollback path
  6. 17:57: fix lanes. Findings went to two fixers by file type: application code to one, cluster deploy config to the other. Each fixer had its own worktree “so the investigators’ view of the code stays stable” (lead, line 2450).

The planning steps the unfork had needed (a registry, contracts, a mission generator) had no counterpart here. The plan was a section of one Markdown file, and its only critique was the architect’s list. The one plan-level gap found later was operational rather than analytical: nothing restarted the work when the session stopped at 18:02 MT (see the chapter 18 addendum).

4. What changed as the project developed

Question: What changed as the project was developed?

Short answer: Four kinds of thing changed.

  1. The plan, through six revisions in about 20 hours (rev. 1 at 13:52 MT on 22 September to rev. 3.3 at 10:03 the next morning).
  2. How agents were run. The mode switched four times: interactive worktree sessions, teammates of the coordinator, interactive sessions again, then teammates under a steward.
  3. The decisions. Two owner defaults were reversed or widened. Three Rootstock placeholder pipelines that the plan had meant to keep or merge were retired.
  4. The instructions agents received, which gained a rule after each incident.

After the merge, the review method for the convergence PR changed twice, the write-up session ended up running the deploy, and the production-access rule was relaxed.

For how the plan text changed, including the “what changed in rev. N” tables, How the Unfork Was Planned §9 is the detailed record. This chapter follows the changes the transcripts show.


Timeline of changes

flowchart TB
    subgraph D0["22 Sep (MT)"]
        direction TB
        E1["<b>13:32–13:46</b> Direction reversed by owner (Rootstock→Scion recommended, Scion→Rootstock chosen)"]
        E2["<b>14:19</b> Rev. 2 · blocker analysis, S2a/S2b split, timeboxes, provisional base"]
        E3["<b>15:45</b> Rev. 3 · critique folded in (repo-named rulings, S0-FLAG, D4/D7/D8 split)"]
        E4["<b>15:53</b> Rev. 3.1 · Wave 0 split into 0a/0b, PT-2, PT-3"]
        E5["<b>16:35</b> unfork/tooling staging branch (from a teammate's finding)"]
        E6["<b>16:48</b> Rev. 3.2 · plan moves into Rootstock, registry + 14 contracts + missions.py"]
        E7["<b>17:00–17:15</b> OD-7 reversed (client data comes in), OD-5 widened (R1–R7 + H3/H6)"]
    end
    subgraph D1["23 Sep (MT)"]
        direction TB
        E8["<b>09:56</b> Coordinator session opened; S0-BASE and S1 run as its teammates"]
        E9["<b>10:03</b> Rev. 3.3 · freeze pins moved, 106 conflicts not 102"]
        E10["<b>11:03</b> Every session restarted"]
        E11["<b>13:52</b> Owner: interactive sessions from Wave 3 on; purpose.md generated"]
        E12["<b>14:03–15:32</b> Owner retires Rootstock agent tools and GA4 stub; D1 owns the stub files"]
        E13["<b>17:40</b> Owner leaves; coordinator becomes steward; Wave 3B as teammates"]
        E14["<b>17:44</b> Steward retires GSC and Mailchimp stubs too"]
        E15["<b>19:55</b> OD-5 exemption ends (S-R7 lands)"]
    end
    subgraph D2["24 Sep (MT)"]
        direction TB
        E16["<b>09:16</b> #236 found unreviewed as a whole; review of convergence-written files"]
        E17["<b>13:31</b> Second review method, by origin (remerge-diff)"]
        E18["<b>17:07</b> Write-up session closes the coordinator and runs S8 itself"]
    end
    subgraph D3["25 Sep (MT)"]
        direction TB
        E19["<b>14:24</b> Production-access rule relaxed for the migration check"]
    end
    E1 --> E2 --> E3 --> E4 --> E5 --> E6 --> E7 --> E8 --> E9 --> E10 --> E11 --> E12 --> E13 --> E14 --> E15 --> E16 --> E17 --> E18 --> E19

1. The plan

Revision When (MT), commit What drove it Main change
Convergence plan 22 Sep 13:31, Scion ff490777 Owner’s first prompt Measured 102 conflicts; recommended merging Rootstock into Scion
Rev. 1 22 Sep 13:52, 21bc48dc Owner reversed the direction and named the framing skills About 20 scopes, 5 waves, peak 11 agents
Rev. 2 22 Sep 14:19, da77884f “Which areas are likely to get stuck…?” Blocker ranking, S2a/S2b split, timeboxes with fallbacks, provisional base, S0-REHEARSE/ENV/IMG
Rev. 3 22 Sep 15:45, a011340f The Rootstock session’s critique, relayed by the owner Rulings name repos (take_scion/take_rootstock); generated ownership; S0-FLAG; D4/D7/D8 split in two
Rev. 3.1 22 Sep 15:53, 215da31d The Rootstock session’s review of rev. 3 Wave 0 split into 0a and 0b; PT-2 (hooks); PT-3 (token)
Rev. 3.2 22 Sep 16:48, 0c06b318 (Scion copy frozen at 16:51, fceaf885) Owner’s proposal to write requirements and contracts, then make the worktrees (“Write the requirements for each phase-scoped worktree and then sub requirements, including contracts between modules. Then make the worktrees”), and its five refinements Plan moves into Rootstock; registry, contracts, mission tool; merge authority recorded
Rev. 3.3 23 Sep 10:03, 2bdef5ac Wave 0’s findings Freeze pins 1b2c67ed/d110744b; 106 conflicts (not 102); python3.11 everywhere

After rev. 3.3 the prose plan stopped changing much. Change moved into the registry (ownership reassignments such as “D1 owns the GA4 stub retirement”, 66fee812, and “S7-GATE owns five paths left unowned after S1”, #228) and into purpose.md files. This was the intended place for changes. The plan itself says so: “Where this plan and the registry disagree about one of those, the registry wins, and this plan is fixed to match” (docs/plans/unfork-parallel-scopes.md, lines 15–16).

Several revisions came from agents finding defects in the plan, not from the owner:

Found by Defect Fix
Rootstock review session “ours/theirs” flipped for 26 files; git fetch upstream returns 403; no MARK II switch existed; about 35 paths unowned Rev. 3
Rootstock review session The rehearsal pins Rootstock before Wave 0 changes it Rev. 3.1: Wave 0a/0b
frag-wave0 teammate Tooling landing on main moves main past the pinned SHA unfork/tooling staging branch
own-review teammate (E64) 324 of 1,587 paths unowned; pr_agent.yml misrouted; client data in the tree Ownership globs, rule F1, OD-7
S0-INV’s subagent Scion main had moved seven commits past the pinned SHA Freeze at 1b2c67ed (2bdef5ac)
S0-REHEARSE 106 conflicts, not 102; 21 E1 files, not 26 Rev. 3.3 (2bdef5ac)

2. How agents were run

The operating model changed four times, twice at the owner’s request and twice because of circumstances:

flowchart LR
    A["Wave 0<br/>8 interactive sessions<br/>(owner opens each)"] -->|"owner opens a coordinator:<br/>'You are the orchestrator…'"| B["Wave 0b, 1, 2<br/>teammates of S-PLAN<br/>(background)"]
    B -->|"'I want to run the session in<br/>interactive sessions … starting<br/>at the next wave'"| C["Wave 3A<br/>interactive sessions<br/>+ purpose.md"]
    C -->|"'I have to go for the day…'"| D["Wave 3B, S-R7, S7<br/>teammates of S-PLAN<br/>acting as steward"]
    D -->|"owner returns"| E["#236 review, fixes<br/>teammates of S-PLAN;<br/>S8 by the write-up session"]
  • Wave 0 (interactive). The plan’s model was one session per scope, with the owner as the decision-maker.
  • Wave 0b to Wave 2 (teammates). The owner opened a coordinating session the next morning with “You are the orchestrator for the migration: multi worktree, multi phase, multi agent.” It ran S0-BASE, S1 and all six Wave 2 scopes as its own background teammates, each committing into its own worktree. The plan hadn’t said this; the earlier write-up noted it only from the session metadata.
  • Wave 3A (interactive again). At 13:52 MT the owner changed the model: “I want to run thesession in interactive sessions in worktrees starting at the next wave. (unless wave 2 takes more than an hour)”. They then added: “write the detailed plan/prompt for each worktree as a purpose.md file in the worktree. I don’t want to copy-paste.” When Wave 2 overran, the owner said “no, it’s already been more than an hour”, and S6 and S2b were stopped mid-flight and continued as interactive sessions.
  • Wave 3B, S-R7, S7 (steward). When the owner left, the six Wave 3B scopes that had no session, plus S-R7’s end and all of S7, went back to being teammates of S-PLAN, now deciding in the owner’s place.

Each switch had a transition cost. Stopping S6 needed a “Resume here” section in its handoff. Its revived teammate then woke four others. The D4a worktree got two interactive sessions at once. purpose.md files written for interactive sessions had to be re-read by teammates, with “plan with Steve” redirected to the steward.

3. The decisions

Owner defaults reversed or widened on the first day:

  • OD-7, client data. The agent’s default was to leave data/advertiser-reports/ out of Rootstock. The owner reversed it: “We want client data in this repo - This is the same project, we are merely forking and unforking the git repo.” Merge, then remedy.
  • OD-5, the router exemption. The default exempted R7 only. The agent widened it to R1–R7 plus H3/H6, because an R7-only exemption would still block the final PR. The owner took the wider version (commit 6b8e1009, “record OD-5 — full R1–R7/H3/H6 exemption, merge then remedy”, 17:15 MT; OD-7 is 52ada72b, 17:01).

Scope the plan didn’t have:

  • Retiring Rootstock’s external-data agent tools (GA4, GSC, campaign). S2b raised this, and the owner decided it through S-PLAN at 14:03 MT on 23 September.

  • Retiring Rootstock’s GA4 placeholder pipeline. D1 raised this as “which scheduler survives?”. The owner answered “All”, and when asked which they meant, “Retire all of Rootstock’s stub”. The change touched five unowned files and three other scopes’ paths. Ownership was reassigned to D1 so that one PR could do it (#190).

  • Retiring the GSC and Mailchimp placeholders. At 17:44 MT, the steward extended the owner’s GA4 decision to both:

    S-PLAN decision as steward (the owner delegated it on 2026-09-23). Rootstock’s ADR-010 (now ADR-017) placeholders for GSC and Mailchimp duplicate Scion’s pipelines, so each source would have two schedulers. As with GA4 (#190), Scion’s pipeline is the one acquisition path, and each stub goes in one PR by the domain that owns the source.

    — commit e0676d67

  • Doc-link backlog. The owner overrode S-PLAN’s recommendation (“Markdown links only”) with “Include the 808 as well”, which made S6 the docs gatekeeper for every scope.

  • Version. The recommendation was to defer; the owner answered in free text, “Version 3.4.0”.

Gates that moved:

  • The drift check (S4-R4.2) was changed from “no drift” to “no new drift”, the same set-difference rule used for tests.
  • OD-5 ended when S-R7 landed at 19:55 MT on 23 September (#225, “S-R7: R1-R7 and H3/H6 pass; OD-5 exemption ends”). The standards compliance gate changed from “honouring OD-5” to “must pass outright”.
  • S2a merged with known failures attributed to S3 (“Merge now (Recommended)”).

4. The instructions agents received

Each incident left a rule in the next generation of prompts (chapter 5). Collected in order:

When (MT) Incident Rule added
22 Sep 16:31 heo’s hook blocked writes to /private/tmp for teammates Use the gitignored .claude/scratch/
23 Sep 10:28 s0-base’s report was cut off Cap final reports at 300, later 250, words
23 Sep 14:25 Seven commits without trailers (three by the lead) Merges via --no-ff --no-commit plus a trailered message
23 Sep 14:43 Messaging stopped teammates woke them “Never message the old agent names … A message restarts them.”
23 Sep ~17:00 heo merge guard rejected $VAR PR numbers “write the PR number out literally”
23 Sep 17:15 Shared test-DB template one migration behind “never rebuild the shared unfork_base DB template”; upgrade your own DB
23 Sep 18:11 LangSmith tracing on in every worktree via the main .env export LANGCHAIN_TRACING_V2=false LANGSMITH_TRACING=false before every command; conftest fix queued for S7
23 Sep 19:32 A frozen interactive session “Do NOT kill or signal any process.” Take over from its last commit.
23 Sep 19:48 Running S7 without the owner “Never waive a Critical or Major finding yourself”; CLAUDE.md changes only via the PR into main
24 Sep 06:05 Two agents in one worktree (S7) The steward partitions files per agent, and names the single committer and branch

5. After the merge

The review of #236 changed twice. The owner asked the coordinator to merge it, and heo’s merge guard refused. The owner then asked whether it had been reviewed, and the coordinator admitted that nobody had reviewed it as a whole:

No, nobody has reviewed #236 as a whole. You’re right that it’s too big for PR-Agent. How big it is: 1,846 files, about 618,000 lines added and 107,000 removed, across 100 commits. — S-PLAN (X004)

The owner narrowed the job (“don’t do a full review, just eview what hte convergen actually wrote”). The first method reviewed only files whose content matched neither Scion nor Rootstock main: 724 files, about 62k lines. After a restart, the owner asked “what’s a smarter way to review 236?”, and the answer split the diff by origin:

| Files identical to Scion main | 1,069 files, 231k lines | No line review, since Scion already reviewed them. They need proof they run in Rootstock: tests, migrations, boot. | […] Most of that 33k was already reviewed, too. 71 of the 78 merges into unfork/integrate-scion came through scope PRs. Only 7 skipped PR review:

  • e518c44c, the S1 merge of Scion into Rootstock, with 141 files where conflicts were resolved by hand; […] — S-PLAN (X027)

The second round found things the first hadn’t, including a password_history table that had never had a migration. That would have broken password change and reset on any database built from migrations alone. The fix went into #236 as ba3ec238 (X030, 28b464a2 line 954). The owner merged #236 at 15:13 MT on 24 September (GitHub merged_at 2026-09-24T21:13:25Z).

The session boundaries moved. The write-up session was told to fix code, stopped, and handed the work to the coordinator (chapter 2). The next evening the owner told the same session to “close the unfork0plan and librarin and continue iwth the open work”. It asked the coordinator’s session to end, removed its worktree, and ran S8 itself: the deploy, the PT-1 credential wiring, and the smoke runs.

The production rule changed. Throughout the convergence, agents treated the droplet as read-only (OD-1). On 25 September the owner relaxed it for the data migration: “All of the credentials are available to you… There are no users and no other developers. So you can make chagnes inproduction”. The session asked for a specific yes before changing the live graph:

Your message loosens that, but tagging or deleting the 606 nodes changes the live graph in a way that can’t easily be undone, so I’d like a specific yes first. — audit session (376f518d line 201, 2026-09-25 20:25 UTC)

The owner’s next prompt answered it and widened the change: “rewrite claude.md so that anyone can run migrate-from-droplet.sh” (20:35 UTC). Phase 8 (decommissioning) stayed with the owner.

What the gates missed. The post-migration audit (25–28 September) confirmed Postgres and Neo4j were exact copies, but found the production RAG assistant answering none of eight test queries. Vertex settings weren’t reaching the containers, and the Cohere fallback asked for more output tokens than Cohere allows. The audit session reported it to the owner like this:

All five investigation streams have finished. Stream C found that the RAG assistant is broken on the cluster: 0 of 8 real queries got an answer (C-1). Without the droplet’s Vertex settings, answers fall back to Cohere, and the app asks Cohere for 8,000 output tokens when Cohere allows 4,096. — audit session (376f518d line 2781, 2026-09-28 15:42 UTC)

The first review round of #236 had flagged a Major of the same class: feature flags not reaching the production containers.

SCION_BEAT_ENABLED and MARK_II_ENABLED can’t reach the production containers. Every production compose file passes an explicit list of environment variables, and neither flag is on any of them. — S-PLAN (X007, 9cc0216e line 3733, 2026-09-24 15:44 UTC)

Chapter 9 traces these audit findings back to the commits that introduced them.

Addendum: the migration check, 25–28 September (to 11:58 MT, 28 Sep)

Between 09:38 MT on 28 September, when the owner typed continue, and the cut-off, five things changed.

1. Priorities, at the resume. Stream C’s report made two items blockers. The lead re-ordered both fixers within two minutes:

Priority change from the lead: D-01 (Vertex vars + key-file mount on node1 web, and on node3 where needed) is now a BLOCKER.

— lead to fix-cluster-config (376f518d line 2708, 2026-09-28 15:40 UTC)

2. The size of the fix PRs. #269 opened with 7 items and 8 commits. The lead then added C-1, C-1b and C-2, and a review added four follow-ups, for 16 commits in all. #270 opened with its first six items. C-4, the memory flags, a runbook contradiction, three review follow-ups and a deploy fix brought it to 11 commits.

3. The route to production. The owner’s answer at 17:35 MT on 25 September was “Fix, PR, deploy”, with PRs that the owner merges. At 10:14 MT the lead changed the order and deployed before the merge (see the chapter 6 addendum). The owner merged #269, #270 and the report PR #272 at 11:47–11:49 MT. At 11:53 MT the lead started a redeploy from main.

4. Production itself. Every change was made by the lead:

MT, 28 Sep Change
09:42 Two full-text GIN indexes built by hand on node 2 (CREATE INDEX CONCURRENTLY)
10:15 Five settings added to the cluster .env, and the droplet’s Vertex key file copied to the admin Mac
10:41 The trigram GIN index built by hand, so that migration b7e3c91d4f02 would be a no-op
11:17–11:30 Image rebuilt and nodes 1, 3 and 4 recreated from deploy/deep-dive-integration
11:37–11:41 Graph audit, audit retention, search-demand sync, scorecard refresh and matview refresh run by hand
11:53 Redeploy from main started (still building at the cut-off)

5. A standing rule. The owner queued an instruction while the deploy ran:

when pushing to github with fixes for pr-agent comments, always respond with your own comment about what you did (or decided not to do)

— owner, queued prompt (376f518d line 3100, 2026-09-28 17:25 UTC)

The lead first tried to save it as a memory. heo’s memory hook refused, so the lead wrote it into .claude/CLAUDE.md under “Responding to PR-Agent”. It landed on main with #272 (06b84c99). Both fixers applied it within the hour. They posted reply comments on #269 and #270 at 11:32 MT.

The outcome also changed. RAG went from 0 of 8 answers to 8 of 8. Keyword search went from 12–16 s to 0.35–2.2 s. /grafana/ now returns 404 from the internet. The scorecard refresh finished for the first time. What was left went into 15 GitHub issues, #273–#287, filed at 11:54–11:55 MT at the owner’s request.

5. When subagents were created, and what context they got

Question: When were subagents created, and what context was provided to them?

Short answer: When the work was suitable to split into separate pieces. Each subagent got a prompt, files it was told to read first, and messages from its lead while it ran. Prompts moved from long ones written for one agent to short ones that pointed at generated files, plus rules added after incidents. Five generations of prompt are quoted in full or in part… The planning team’s prompts were short, about 1.3k characters. Generations 2 and 3 gave each agent one long prompt of 4k to 7k, re-verified from scratch. The Wave 2 template was 3.7k and the steward-era template 2.4k: a short prompt pointing at generated files (MISSION.md, purpose.md) plus rules added after earlier mistakes. Takeover and gate prompts stayed long, up to 4.6k.

Three layers carried the context: the prompt itself, files the agent was told to read first, and messages from the lead while it ran.

The complete list of agents, with their spawn times, is in data/agents-inventory.json. The prompts quoted here come from the Agent tool calls in the transcripts, with only local paths shortened to ~.


When agents were created

Agent creation bursts:

  • Planning team of 5
  • Wave 0 fan-out, 32 agents
  • S0-BASE and S1-MERGE teammates
  • Wave 2, scope and child agents
  • Wave 3A in-session teams, 60 agents
  • Wave 3B teammates and S-R7
  • S7-GATE and seam reviewers
  • Review rounds of PR 236

The lead created agents at these moments:

Who spawned What for Why an agent, not the session itself
Rootstock review session 3 registry-fragment writers, missions-tool, then own-review 32 scopes’ YAML plus a tool, all in parallel. The owner had said “Use agent teams as often as you like to move things along quicker”.
each Wave 0 session 2–7 workers per scope (e.g. S0-REHEARSE’s “Agent A: classify”, “Agent B: ownership”, “Agent C: resolve_merge.sh”, “Agent D: rehearsal driver”) N/A
S-PLAN s0-base, s1-merge These were serial scopes run as long background jobs.
S-PLAN the six Wave 2 scopes “launch all six”
each Wave 3A session 3–16 workers per scope (16 in D4a, 11 in D7a) N/A
S-PLAN, as steward Wave 3B (D3, D5, D7b, D8b, D9), s-r7, d4b-obl (taking over a frozen session), s7-gate The owner, leaving
S-PLAN review-a/b/c seam reviewers S7’s own review swarm was interrupted. The steward launched the reviewers itself, so S7’s test suite kept the CPU.
S-PLAN 7 partition reviewers and 3 verifiers, then 5 reviewers, 2 behaviour checkers and 3 fixers The owner asked for a review of #236, in “a smarter way”.

Two things decided the size of a burst: the plan’s cap of about 10–12 active git or test processes machine-wide, which the prompts repeat, and whether the work split into disjoint files. Serial scopes like S1-MERGE got one agent. Doc-link fixing split by directory (“archive bucket”, “plans bucket”, …) got six.

Where the context came from

flowchart LR
    REG[("unfork-scopes.yaml<br/>32 scopes · 14 contracts")] -- "missions.py provision" --> MISSION[".unfork/MISSION.md<br/>+ contracts + reading list<br/>+ Scion files at pinned SHA"]
    REG -- "missions.py provision" --> LOCAL["CLAUDE.local.md<br/>(auto-loaded)"]
    REG -- "write_purpose.py<br/>(uncommitted)" --> PURPOSE["purpose.md<br/>live gate status + 6-step plan<br/>+ session rules"]
    RULES[".claude/CLAUDE.md<br/>(binding rules)"] --> AGENT
    LOCAL --> AGENT(("Agent"))
    MISSION --> AGENT
    PURPOSE --> AGENT
    PROMPT["Agent-tool prompt<br/>(identity, where, rules,<br/>decisions already made,<br/>report format)"] --> AGENT
    LEAD["Lead's SendMessages<br/>while it runs"] --> AGENT
    HANDOFFS[("docs/plans/unfork-handoffs/*.md<br/>from earlier scopes")] --> AGENT

Layer 1: generated files in the worktree

A new session in a scope worktree loaded CLAUDE.local.md automatically. The file is generated by scripts/unfork/missions.py:

def claude_local_text(registry: Registry, scope: dict[str, Any]) -> str:
    """The CLAUDE.local.md written at the worktree root."""
    authority = _flow(registry.data["owner_decisions"]["merge_authority"])
    return f"""# Unfork orchestrator: {scope["id"]}

You are the orchestrator for scope {scope["id"]} ({scope["title"]}).

1. Read `{BUNDLE_DIR}/MISSION.md` before anything else, and follow it.
2. `{BUNDLE_DIR}/` is a snapshot. The source of truth is `docs/plans/` on branch
   `unfork/plan` (then `main`). If they disagree, the branch wins; ask S-PLAN to
   re-provision this worktree.
3. Never commit `{BUNDLE_DIR}/` or `{LOCAL_CLAUDE_FILE}`. Both are in `.git/info/exclude`.
4. Keep `{BUNDLE_DIR}/STATUS` current (C-HANDOFF section 3): `working`,
   `blocked:<scope-id>`, `ready-to-land` or `landed`.
5. Merge authority: {authority} This scope lands into `{scope["lands_into"]}`.
6. Name repos, never sides: say Scion and Rootstock, never "ours", "theirs", "upstream" or
   "fork".
"""

MISSION.md is rendered from the registry. For D3-SD it runs to 179 lines. Its opening sections show how an agent learned about its neighbours without reading the whole plan (output of python3.11 -m scripts.unfork.missions mission --scope D3-SD on main today):

## Where you sit

Derived from the registry: gates, contracts and waves. Read this before you change
anything; it tells you whose work you build on and who builds on yours.

### Upstream: what you depend on

- **S1-MERGE** (The merge commit, the Alembic join and the provisional base): your gate:
  it must land before you start; produces C-MIG (fixed), which you consume
- **S2b-LLM-EGRESS** (Egress for tool results): produces C-EGRESS (fixed), which you consume
- **D7a-SEC** (Data-safety controls, auth and errors): produces C-EGRESS (fixed), which you consume
  …
### Downstream: who depends on you

- **S7-GATE** (Integrate, gate and land the convergence PR): gates on you: it starts after you land

### Notes from the registry

- **D1-GA4** (GA4 via the BigQuery export): GA4 ingestion (08:15 in Scion) must stay at
  least 30 minutes from search-demand clustering (07:15 daily, 05:30 Sunday full re-cluster).
  …
## What you own

- `app/search_demand/**`
- `app/tasks/search_demand_tasks.py`
  …
## What you must not touch

- Edit a path you don't own. Send a change request to its owner (C-HANDOFF section 2).
- Touch the DigitalOcean droplet or act on a live cluster node. Only S8 deploys.
- Rebase, squash, amend a pushed commit, force-push, or pass --no-verify.

The transcripts show the bundle doing its job. Every Wave 0 and Wave 3A session answered “What is your mission?” from MISSION.md. Several said they would check the snapshot against unfork/plan first, as rule 2 tells them. S-R7’s reply:

I’m the orchestrator for scope S-R7 in the Scion/Rootstock unfork plan. I read .unfork/MISSION.md. […] Before I trust this snapshot I’ll check docs/plans/ on unfork/plan, because that branch wins if they disagree. Should I start? — S-R7 (B08)

Every Wave 3A session’s first tool call read .unfork/MISSION.md, and most read STATUS and purpose.md in the same command. D1-GA4’s, for example (a87f8f46 line 27, 2026-09-23 20:39 UTC):

{
 "command": "cat .unfork/MISSION.md; echo ----STATUS; cat .unfork/STATUS 2>/dev/null; echo ----PURPOSE; cat purpose.md 2>/dev/null; echo; ls .unfork",
 "description": "Read mission, status, and kick-off plan"
}

purpose.md was added mid-run. At 13:52 MT on 23 September the owner said: “write the detailed plan/prompt for each worktree as a purpose.md file in the worktree. I don’t want to copy-paste. Be sure to use the scope/worktree registry.” S-PLAN wrote an uncommitted generator, .claude/scratch/write_purpose.py, that added live state the registry couldn’t hold: which gates had landed, which contracts had moved on since the registry said “pending”, and a six-step plan. Its docstring:

"""Write purpose.md into each unfork scope worktree, from the scope registry.

purpose.md is the kick-off plan for an interactive Claude session in that worktree.
It sits beside the generated .unfork/MISSION.md (which stays authoritative) and adds the
live state (gate status, contract status the registry has not caught up with), the
ordered work plan, and the session rules. CLAUDE.local.md gets one line pointing at it,
so starting `claude` in the worktree picks it up with no prompt to paste.
"""

Step 3 of every purpose.md became important later:

        "### 3. Plan with Steve",
        "",
        "Before editing, summarise to Steve: what Scion and Rootstock each have in your owned paths, "
        "what breaks on `unfork/provisional`, the order you will take the requirements in, and "
        "any change requests you already know you'll need to send. Agree it, then proceed.",

When the owner left, that step pointed at someone who wasn’t there. Chapter 6 follows what happened.

Layer 2: the prompt, in five generations

Generation 1: the planning team (22 Sep). Narrow, write-only tasks. Each named one output file, forbade everything else, and gave the naming rule in its first paragraph:

You are writing part of a YAML scope registry for a repo-merge project. Write ONLY the file: […]/frag-wave0.yaml Do not edit any other file, do not run git commands that change state, do not commit.

Context. Two forked repos are being merged: Scion (scion […] pinned SHA ea48e8b5 […]) into Rootstock (this cluster repo […] main = 7065f501). Never use the words ours/theirs/upstream/fork for a side; say Scion / Rootstock. — prompt to frag-wave0 (E52)

Generation 2: Wave 0 and Wave 3A workers inside a scope session. The scope’s orchestrator split work by file and requirement and wrote the plan’s swarm hygiene into every prompt. S0-RULES’ first worker:

You are a worker for unfork scope S0-RULES in the git worktree […]/unfork-s0-rules (Rootstock repo). Work only in that directory. Always call the two repos “Scion” and “Rootstock”, never “ours/theirs/upstream/fork”.

YOUR FILES (edit ONLY these): .claude/CLAUDE.md, .claude/CLAUSE.md. Other agents are editing hooks, settings, standards, project-standards.yaml, rules and tests in parallel — do not touch them. Do NOT run any git write command (no add/commit/stash/checkout); the orchestrator commits.

Workers also received decisions the orchestrator had already made, so they wouldn’t reopen them. D10’s worker B:

Orchestrator decisions (already made — follow them):

  1. Retire scripts/prod_ssh.sh, scripts/prod_version.sh, scripts/ssh_deploy.sh (delete them with git rm? NO — do not run git write commands; just delete the files with rm, the orchestrator stages). Rationale: […] Confirm this reasoning holds by reading the files; if you find it doesn’t […] retarget […] instead, and explain.

Generation 3: S-PLAN’s bespoke serial prompts (23 Sep morning). s0-base (5,014 characters) and s1-merge (6,947) were written by hand for one job each. They share three features that later prompts dropped or shortened: a verified-state block the agent is told not to trust, the sequence as rehearsed, and an explicit stop-and-ask rule. Excerpts from s1-merge:

Verified state as of dispatch (re-verify, don’t trust)

  • C-INV on origin/unfork/tooling:
    • scion_sha is 1b2c67ed33598fa2daa7606e447d71cf576ac7a2
    • rootstock_sha is d110744bc9c3643bffc37d78b3ddf99295ea9bf9
    • hotfixes: [] […]
  • No unfork/integrate-scion or unfork/provisional exists on origin yet. If one does by the time you check, stop and report it.

The sequence (as rehearsed, per your mission and S0-REHEARSE)

[…] 3. Resolve the conflicts with the tooling script, unmodified: […]

  • Never edit a ruling or resolve a conflict by hand. If the script fails, apply the mission’s fallback and record it. […]

Rules

  • Timebox: 3 hours. The fallback is in your mission. Apply it without asking, and open a tracked issue for the remainder. […]
  • Clause 1: if something required is missing, stop and SendMessage unfork-plan-31 with what is missing, the install steps and the tradeoffs. Don’t install anything or work around it silently.
  • If you hit something the plan doesn’t cover and it’s a judgment call about a ruling, stop and message unfork-plan-31. Don’t improvise.

The full prompt is in data/sample-prompts.json. The stop-and-ask rule came into play within five minutes: S1’s push hit a pre-push hook on two Scion client JSON files. S1 stopped, offered four options, and S-PLAN chose one (chapter 6).

Generation 4: the standard scope template (Wave 2, 23 Sep afternoon). These ran about 3.7–4.5k characters. Scope-specific content moved out of the prompt and into the generated mission. S2a’s opening and finish:

Start

  1. Run git -C <worktree> checkout -- .github/workflows/pr_agent.yml in case a heo hook rewrote it. Never commit changes to that file.
  2. Read your mission: cd <worktree> && python3.11 scripts/unfork/missions.py mission --scope S2a-LLM-BASE. It is authoritative for what you own, your contracts, done evidence, timebox and fallback. […]
  3. Read docs/plans/unfork-handoffs/S1-MERGE.md for what S1 left for later scopes. […]

Finish

[…]

  • If the mission’s done evidence passes, you are authorised to merge that PR with a plain merge commit (gh pr merge <n> --merge, no --delete-branch) once mergeStateStatus is CLEAN. […] If evidence does not pass, leave the PR open.
  • Final report, in under 300 words: status (landed / PR open / blocked), PR number, merge SHA, done-evidence result, change requests to other scopes, deferred items, and anything the owner must decide.

The 300-word cap came from a problem that morning: s0-base’s final report was cut off mid-sentence, and the lead had to ask “Your report was cut off at ‘Other things I changed: Merged unfork/tooling into’. Please resend just that section… word for word.”

Generation 5: the steward-era template (Wave 3B, 23 Sep evening). Shorter again (about 2.3–3.1k characters), because purpose.md now carried the plan. It adds one paragraph that sends “ask Steve” questions to the lead instead, plus rules learned during the day. The full D3-SD prompt:

You are the agent for convergence scope D3-SD (search demand), Wave 3 Batch B of the Scion → Rootstock convergence. Your worktree is ~/Documents/Grove/Grove-Rootstock/.trees/unfork-d3-sd (branch unfork/d3-sd). Work only there, using absolute paths.

First read purpose.md at the worktree root, then .unfork/MISSION.md. They’re your full brief: ownership, contracts, requirements with verify commands, change requests waiting for you, done evidence, landing steps and session rules. Follow them exactly. .unfork/STATUS is not-started; set it to working.

The steward (Steve) is away. Wherever purpose.md says “plan with Steve” or “ask Steve”, message main (the lead, S-PLAN) with SendMessage instead. Keep going on anything that doesn’t depend on the answer. Don’t wait idle for a reply you don’t need.

Rules to stress:

  • Use python3.11, and run scoped suites only. Other sessions share this machine, so keep to about 10–12 git or test processes machine-wide.
  • Edit only paths you own. For anything else, put a change request with the exact hunk in your handoff and message main.
  • Never message the old agent names s2a-llm-base, s3-boot, s4-mig, s5-tool or s6-docs. A message restarts them.
  • Commits, including merge commits, end with:
    Authored-by: Steve Glen <…>
    
    For merges, use git merge --no-ff --no-commit <ref>, then git commit with a message.
    • No 🤖 banner, and no session URLs or IDs anywhere.
  • Never force-push, --no-verify, rebase or amend. Never delete a branch or remove a worktree. No bare git stash. Never target main.
  • Never touch the droplet or a live cluster node, and never rebuild the shared unfork_base DB template. If your domain DB is behind alembic heads, upgrade your own domain DB.
  • For gh pr merge, write the PR number out literally. The heo merge guard rejects a $VAR.
  • Land via a PR into unfork/integrate-scion: […] then wait for mergeStateStatus CLEAN, then gh pr merge <number> --merge, with no --delete-branch. Merge origin/unfork/integrate-scion into your branch first, and run the ownership check from purpose.md.

When finished, set STATUS to landed and reply with a report of 250 words or fewer: PR number, merge SHA, done-evidence results, change requests, deferred items, and any decision still open.

Four of its rules are scar tissue from the same day, each traceable to an incident:

Rule in the Wave 3B template Incident that produced it
“Never message the old agent names … A message restarts them.” 14:43 MT: S6’s change requests woke four stopped Wave 2 teammates, which each landed a PR (#164–#167).
“Commits, including merge commits, end with […]. For merges, use git merge --no-ff --no-commit <ref>, then git commit with a message.” 14:25 MT: the lead audited trailers and found seven commits without them, three of them its own --no-edit merges.
“write the PR number out literally. The heo merge guard rejects a $VAR.” The heo merge guard blocked chained merges in D1, D4a and S6.
“never rebuild the shared unfork_base DB template” 17:15 MT: the template was one migration behind, and rebuilding it drops it under every other session.

Two more rules arrived during the evening and went into the takeover and gate prompts: switch LangSmith tracing off (after the steward found the main .env had it on for every worktree), and “Never waive a Critical or Major finding yourself” (S7-GATE).

Takeover and fix prompts (D4b, S7, the S7 follow-ups, the #236 fixers) were step-by-step checklists with a “Decisions already made by the steward” section. The D4b takeover opens by explaining why the agent is there at all:

Background. Steve (the owner) started an interactive Claude session here. It made one commit, 688e8f56 […]. It never pushed or wrote a handoff. That session is now frozen, blocked in a syscall with a zombie child, and it can’t receive messages. I’m the steward (S-PLAN, reachable as “main” via SendMessage), and I’ve asked you to take over. Do NOT kill or signal any process. If you find uncommitted edits you didn’t make, stop and tell me.

Review prompts gave reviewers a pre-computed file list and a diff script, stated what was already known (“do not re-report”), and carried the client-confidentiality rule into the report itself. From the first #236 review:

Do NOT review the whole PR. Review only what the convergence itself wrote: files whose final content matches neither Scion’s main nor Rootstock’s main. […]

Already known, do not re-report:

  • #229 lane starvation
  • #231 LangSmith tracing egress […]

Rules:

  • Do not modify any project code.
  • Keep the confidentiality rule: never quote client or campaign names in your report; say “a client name”.

[…]

  • Report only findings you checked against the actual code. Skip style nits.

— S-PLAN, prompt to conv-p1 (9cc0216e line 3578, 2026-09-24 15:27 UTC)

The second round (rv-s1-*) pointed each reviewer at one command, git show --remerge-diff e518c44c -- <files>, which shows exactly what the S1 conflict resolver changed relative to git’s own merge.

The post-migration audit (25 September) moved the shared context into a file: each stream’s prompt opened with “FIRST read and obey .claude/scratch/dd/BRIEF.md (hard rules: read-only, no secret values, only the prod.sh helper, batch queries)”, followed by its stream-specific goal.

Layer 3: messages while running

Context kept arriving after launch, as SendMessages from the lead. Typical kinds:

  • Owner decisions relayed. “Owner decision (Steve, 2026-09-23): R4.2 is judged as a set difference against the drift both repos already had…” (to s4-mig)
  • Steward decisions (chapter 6).
  • Safety broadcasts. “the main checkout’s .env has LANGCHAIN_TRACING_V2 on, and load_dotenv() pulls it into every worktree. From now on, every test or runtime command you run starts with export LANGCHAIN_TRACING_V2=false LANGSMITH_TRACING=false.”
  • Worktree allocation when agents collided. “(b). You own the worktree for Fix 1 and Fix 2. The other writer is S7’s fixer subagent…”

What the agents did with the context

  • They re-verified instead of trusting. Sessions checked peer claims against git before acting: D1 checked S-PLAN’s registry change, D7a checked S-PLAN’s stale view of its worktree (“~15 uncommitted files”, which were actually committed), and S-PLAN found that S7 had claimed fixes that weren’t in the code. D7a’s reply to the steward’s stale view:

    D7a-SEC to S-PLAN: nothing is pending. The worktree is clean (branch unfork/d7a-sec-followups, 0 modified files), and all of D7a’s work is on unfork/integrate-scion via PRs and plain merges: […] — D7a-SEC (0b28651a line 1374, 2026-09-23 23:41 UTC)

  • They kept to the ownership boundary even when it was inconvenient. Instead of editing a file they didn’t own, they sent a change request with the exact hunk or asked for a one-time exception. Chapter 2 counts these.

  • Missing context failed quietly in two places. A re-opened S0-ENV session read MISSION.md but not purpose.md, and reported “Nothing on this scope is waiting on me”, missing a handover note that the shared unfork_base template, which S0-ENV owns, was one migration behind. After a context compaction, the S-PLAN lead forgot it had already answered D3’s two questions and asked for them again (D3 replied “Your earlier answers did reach me, and both are implemented”; 9cc0216e line 2270, 23:58 UTC; chapter 13 covers the compaction).

  • Prompts that granted authority were used exactly. s7-gate was told “Never waive a Critical or Major finding yourself: fix it, or record it for Steve in the PR body”, and it recorded rather than waived. Only once did a prompt grant go further than a peer wanted: S-R7 edited seven other scopes’ files. Even then, the lead had granted it in writing per owner, with one commit per owner.

Addendum: the migration check, 25–28 September (to 11:58 MT, 28 Sep)

The check created its agents in five bursts, each at the point where the work widened. The times are MT:

  • 25 Sep 17:39: one plan reviewer;
  • 17:44–17:46: five investigator streams;
  • 17:57–17:59: two fixers, launched twice (see below);
  • 18:02: one fork, spawned by fix-cluster-config;
  • 28 Sep 10:18 and 10:24: two reviewers.

The same three layers of context carried them. Only the stream prompts pointed at a shared file, BRIEF.md, which the section above already quotes. The other prompts were self-contained.

Fixers. Each prompt carried the repo’s rules in full: Dignified Python, ruff at 88, hash-style alembic ids, the pr_agent.yml restore, the commit trailers, and no production access. It also carried a numbered defect list with file and line hints, each marked “verify each in code before changing”. The first launch asked for the Agent tool’s own worktree, and heo’s worktree guard refused it. The lead then made the worktrees itself and re-sent the prompt with the path fixed:

You are a fixer agent in a production migration deep dive. Work ONLY in the existing worktree ~/Documents/Grove/Grove-Rootstock/.trees/04-dd-task-defects (branch fix/deep-dive-task-defects, already created from origin/main, no upstream). Use absolute paths / git -C there; do not touch other worktrees.

— lead, SPAWN of fix-app-tasks (376f518d line 2549, 2026-09-25 23:58 UTC)

The fork got the narrowest brief of the check: two files, no commit, and no touching the parent’s own edits.

You are the fork handling ONLY item 6 (docs: rollback path F1 and cluster restore F3) from the team-lead’s task. Edit ONLY these two files in the worktree […] Do NOT commit, push, or touch any other file

— fix-cluster-config, SPAWN of its fork (subagent line 176, 2026-09-26 00:02 UTC)

Reviewers. Their prompts told them what was at stake and where to look hardest. They also listed the .env names already set, so the reviewers would not report them as missing:

It will be deployed to production right after review. Look hardest for things that would break production on deploy: compose syntax/interpolation errors, a required var that isn’t in the cluster .env […] Read-only: don’t modify the branch and don’t touch production. Report findings ranked by severity with file:line and a concrete fix; say explicitly if you found nothing blocking.

— lead, SPAWN of review-270 (376f518d line 2885, 2026-09-28 16:18 UTC)

Layer 3, messages, carried most of the new work on 28 September. At 09:39 MT the lead sent all three live agents the same opening, “Status check from the lead. The session was suspended for about two days, and it is now 2026-09-28.” It then sent blocker re-orders, three added defects (C-1, C-1b and C-2) with measured SQL, and both reviewers’ findings as numbered lists. The fixers treated those messages like the original brief. Each reply named its commit per item, for example “C-4, commit f73f853f” and “1. a7a43574, migration b7e3c91d4f02”.

6. Autonomy and human input

Question: Which portions ran autonomously, without human input, and which decisions made agents stop and ask? Are there instances where one agent wanted human input, but another agent made the decision and let the work continue unattended?

Short answer: Agents ran most of the work on their own, but not policy decisions, shared resources or merges into main. The work that needed no developer included writing code and tests, resolving 106 conflicts by script, landing about 80 PRs into unfork/* branches, fanning out teammates, and exchanging change requests. The developer’s input came in three places:

  • Policy up front: direction and OD-1 to OD-7.
  • Questions agents stopped to ask: 52 questions (36 AskUserQuestion calls) about dependencies, shared machine resources, guard overrides, spending, ownership exceptions and design calls.
  • Every merge into main.

The longest autonomous stretch was 15½ hours on the night of 23–24 September. Before leaving, the developer told the coordinating session “You make, or ask a subagent to make decisions, if any of hte agents get stuck or stop and ask a quesiton”. From then on, agents whose instructions said “plan with Steve” sent their questions to the coordinating session instead. Of the 26 such requests recorded in data/steward-decisions.json (SD0–SD25, in file order), it decided 23 itself and recorded 3 for the developer. Counting three more it held back that are not among the 26, six items in all went back to the developer (listed below).

Not all 26 are requests from those agents. Four are not requests at all (SD2, SD12, SD16, SD25), and SD9 repeats item 3 of SD8. About 8 are visibly framed as standing in for the developer. The 23 also counts two plans the steward accepted by not objecting (SD13, SD14).

The transcripts show several clear cases of one agent wanting human input and another agent deciding instead. They also show one case where the opposite happened: a coordinator’s decision was lost in a restart, and the developer decided the other way.

All 52 questions and answers are in data/agent-questions-to-owner.json; all owner prompts are in data/owner-prompts.json; the steward’s decisions are in data/steward-decisions.json.


The steward period as a swimlane, from the handover to the refused merge:

The refused merge, read as a conversation:

Where the agents’ decisions came from, and what they did with them:

What the owner actually typed

The owner typed 222 prompts into unfork-related sessions between 22 and 28 September. Most were short, and most fall into a few kinds:

Kind Examples (verbatim)
Start a session “What is your mission?” · “Go ahead. Use as many agents as you need to get it done effectively and effeciently.” · “Complete the mission using agent teams. Use as many agents as you want…”
Report a merge they did “merged” · “139 merged” · “142 merged” · “169 merged” · “152 i smerged” · “I merged 236.”
Delegate a decision “You decide PEV verifier” · “you decide ops schedule” · “You decide c-egress.md” · “You decide on integrate-scion onward into unfork/provisional” · “You decide on all” · “You do all next steps”
Policy “Use defaults” · “not rotating token” · “We want client data in this repo…” · “that’s the merge and remedy for OD-5”
Operating model “I want to run thesession in interactive sessions in worktrees starting at the next wave” · “write the detailed plan/prompt for each worktree as a purpose.md file” · “launch all six”
Check status “status check” · “what are waiting on?” · “whats next?” · “which worktrees do I work in interactively righ tnow?”
Leave “I have to go for the day, continue on the work of the migration…” · “I want to restart my comptuer now, can you pause or wrapup”

The gaps between typed prompts show where the work ran alone:

Gap (MT) Length What ran
22 Sep 17:26 → 23 Sep 09:41 16 h 15 m Wave 0 finished most of its work by about 17:50, then waited for the owner to merge three PRs into main. The only overnight activity was S0-INV’s watcher and S0-FLAG’s scheduled wake-ups.
23 Sep 17:40 → 24 Sep 09:13 15 h 33 m The steward period. Wave 3B, the end of S-R7, D4b’s takeover, S7-GATE, three seam reviews, fixes, and the opening of convergence PR #236.
24 Sep 17:07 → 25 Sep 11:49 18 h 42 m The S8 deploy, run by the write-up session under answers the owner gave at 17:13–18:06 MT.

The longest gap of all, 25 Sep 17:34 → 28 Sep 09:38, is not in the table: no unfork transcript records any agent activity in it.

The first gap shows the plan’s main constraint on autonomy. Merges into main were reserved for the owner, so a whole wave could finish and then sit idle overnight.

What ran without asking, and why it could

The registry and every CLAUDE.local.md gave agents standing authority so they wouldn’t need to ask:

Merge authority (owner, 2026-09-22). Agents may merge unfork/* scope branches into unfork/integrate-scion without asking, and may merge unfork/integrate-scion into unfork/provisional. They use plain merge commits only, never delete branches, and only after the scope’s done evidence passes. — plan §0

The plan also pre-agreed a fallback for every serial scope, to be applied without asking: “When a serial scope reaches its timebox, the orchestrator applies the fallback without asking, opens a tracked issue for the remainder, and lands.” Under these rules the following ran without the owner:

  • All scope work inside owned paths: code, tests, handoffs and evidence runs.

  • Landing into unfork/*. Of the PRs opened in the window, 72 merged into unfork/integrate-scion, 3 into unfork/provisional and 7 into unfork/tooling. Apart from #169, which the owner merged themselves, agents merged them (data/prs.json).

  • Fanning out. Every lead chose its own team size and split, within the 10–12 process cap.

  • Change requests between scopes, when the owning scope agreed and applied the hunk itself.

  • Decisions the owner delegated in a word. D10’s “you decide ops schedule” came back as a reasoned decision:

    My decision: leave the ops schedule off until cut-over, as it ships now. […] Turning it on early does harm. With the flag off, both GA4 and GSC report “disabled by the Scion flag”. The alert task counts those as problems, so it would email every morning about a state we chose on purpose. — D10-OPS (D3A-043)

Some agent actions were blocked by hooks, not only by instructions. heo’s merge guard refused merges into main without an approving review. Its data-safety hook refused DROP DATABASE without a one-time token that only the user may create; the hook prints that token in its own block message, so this rule rested on agents honouring it (chapter 10). Its worktree guard refused git worktree add. Agents consistently refused to work around these guards; chapter 10 counts 84 blocked tool calls and finds no bypass. When the owner asked “can you merge 236”, the coordinating session replied:

I couldn’t merge #236. heo’s merge guard blocks any merge into main unless the PR has an approving review, and #236 has none. The guard says not to get around it through the API, --admin or auto-merge, and I haven’t. […] The guard only stops agents, and this was always meant to be your merge. — S-PLAN (X002)

Why agents stopped to ask

The 52 questions sort into eleven kinds. Most came with a “(Recommended)” option: the owner picked it 31 times, answered 11 questions that had no recommendation, and chose something else or answered in free text 10 times.

Kind Count Examples
Design or scope call outside the scope’s contract 13 Which GA4 scheduler survives (asked twice after an ambiguous “All”); how to judge the drift check; retire three agent tools; include the 808 doc references; version 3.4.0; python-docx or a structural check; audit-table retention; move a sampler to 04:50; how S1 gets past the pre-push hook
Deploy or production 10 S8 deploy timing; PUBLIC_BASE_URL; PT-1 credentials (three questions); testing in the built image; freezing Scion; turning on Scion’s scheduled jobs; stopping the droplet’s beat
Clause 1: missing dependency or install 6 Postgres 16 (asked twice; not installed, although the owner thought it was); qemu in a throwaway container; types-PyYAML; pbr for bandit; the local .venv for S8
Ownership exception: a fix needs another scope’s file 5 D4a’s fix to S3’s contract test; D10 applying two S5 hunks; D1 retiring the GA4 stub across four scopes’ files; D1 carrying one line of D10’s test; S6 landing S-PLAN’s files
Shared machine resource 4 Docker Desktop restarts, each of which would stop other sessions’ containers
Merge timing or landing authority 4 Merge into unfork/tooling; merge S2a now or wait for S3; hold #169; land D1’s PR with S-PLAN’s registry change in it
Destructive clean-up 3 Delete or keep four leftover branches; remove 30 worktrees (asked twice)
Money or third parties 2 Cohere trial key (about 30% of a monthly cap); paid or outward-facing actions in the audit (“Small is defined as less than $5 CAD”)
Confirming a relayed decision 2 S0-FLAG checking PEV with the owner; S6 recording D1’s report of the owner’s GA4 decision
Limits of an autonomous run 2 How far the audit may go in fixing what it finds; where its report goes
Guard override 1 HEO_ALLOW_WORKTREE_OPS=1 for rehearsal worktrees

Every question was preceded by a short explanation of the blocker. S0-IMG’s reasoning before its Docker question is typical of the “shared resource” kind:

The Docker VM process has crashed—it started but never logged a shutdown, leaving Docker Desktop’s UI running with no actual engine behind it. Restarting Docker Desktop would impact every session on this machine, including any S0-ENV database containers, so I want to confirm before proceeding. — S0-IMG (B47)

S-R7’s cost question shows the “third parties” kind, triggered by what a teammate found:

the Cohere key in .env.local started returning HTTP 429 after 20 calls […] That’s the 20 calls/min limit of a Cohere trial key. […] This run would use about 30% of it, which could affect other developers on the same key. Say stop if that’s a problem. — r7-eval teammate to S-R7 (B25)

Agents also checked the owner’s own answers. The owner answered S0-ENV’s Postgres question with “I’m pretty sue we installed postgres 16 already. Can you verify”. S0-ENV checked and asked again: “Postgres 16 is NOT installed anywhere (no brew formula, no Postgres.app, no pg_ctl, nothing on 5432/5433, and Docker had no images)”. In S8 the owner answered “Yes, placed” for the PT-1 credentials. The write-up session later found that “None of the six variables reach the node 3 worker, and the cluster config has no wiring for them”; the owner then answered “Not on the cluster yet”.

Agents refused to treat another agent’s word as the owner’s

In Wave 0, three agents independently declined to act on a peer’s claim of authority:

  • S0-ENV would not treat S0-INV’s “land into unfork/tooling” as merge authority, and asked the owner.

  • S0-REHEARSE’s Agent D would not set the worktree-guard override because a teammate said to: “I did not override it on a teammate’s instruction” (B23).

  • S0-FLAG would not accept S0-LLM’s relayed delegation. The owner had told S0-LLM “You decide PEV verifier”. S0-LLM ruled, then asked S0-FLAG to bump its contract. S0-FLAG went back to the owner:

    S0-LLM has ruled that the step verifier (PEV) is part of MARK II, and asked me to bump C-FLAG to v2. They say you handed them this decision on 2026-09-23 (“You decide PEV verifier”). A message from another session can’t serve as your approval, and earlier I told you this call was yours. So I’d like you to confirm before I change the contract. […] I agree with the ruling on the merits. — S0-FLAG (B64)

    The owner answered “Yes, bump to v2 (Recommended)” 22 seconds later.

On 24 September the coordinating session drew the same line for project instructions: “I won’t edit CLAUDE.md on the strength of a message relayed from another session” (X015). In the same half hour it acted on another relayed owner request, the Docker Desktop restart (SD25, X008; see chapter 19). The next section shows that the same caution was not applied to the steward’s own authority, because the owner had granted that authority directly.


When one agent wanted human input and another decided

The steward: “plan with Steve” routed to S-PLAN

Every Wave 3 purpose.md contained a step that required a human:

### 3. Plan with Steve

Before editing, summarise to Steve: what Scion and Rootstock each have in your owned paths,
what breaks on `unfork/provisional`, the order you will take the requirements in, and
any change requests you already know you'll need to send. Agree it, then proceed.

At 17:40 MT on 23 September the owner queued this message to the coordinating session and left:

I have to go for the day, continue on the work of the migration. You make, or ask a subagent to make decisions, if any of hte agents get stuck or stop and ask a quesiton. I’ve started some interactive sessions so check if a session is in progress before beginning.

Use agent teams to complete all work effectively and efficiently. Use sub-agent teams to improve smart context, with briefed perspectives, and to complete tasks quickly - use as many subagent teams as you need.

Continue all until finished. — owner

Within a minute, S-PLAN told every live session that it was now the steward and redirected the human step to itself:

S-PLAN (unfork-plan-cf): Steve has left for the day and asked S-PLAN to act as steward for the convergence. […] Start now. Follow purpose.md and .unfork/MISSION.md. Where purpose.md says “plan with Steve” or “ask Steve”, send the question or plan to unfork-plan-cf instead and carry on with anything that doesn’t depend on the answer. — to the D4b session

The Wave 3B teammates it launched a minute later got the same redirection in their prompts (chapter 5). The sessions complied, and said so:

D4b-OBL has started. Here is the plan (in place of “plan with Steve”), plus one change request for D4a’s paths. — D4b session (D3A-083)

D7b-SEC plan (step 3, in place of Steve). I’m going ahead on it; reply only if you object.

— d7b-sec teammate

D8b-UI plan: here’s what I found and what I intend to do. I’m proceeding unless you object.

— d8b-ui teammate

The steward approved D4b’s plan in five minutes, from 23:42 to 23:47 UTC (“your plan is approved as written. Land with (a) and (b) recorded as change requests in your handoff; don’t wait.”; dc2a649d lines 116 and 214). It accepted D7b’s and D8b’s by not objecting, and both landed within fifteen minutes: D8b’s plan arrived at 23:43 UTC and #215 merged at 23:50; D7b’s arrived at 23:45 and #216 merged at 23:56.

In some of the questions that followed, an agent explicitly asked whether something was the owner’s call, and the steward decided anyway. The clearest cases:

D3’s second question: “Or is it a decision for Steve?”

Q2: fit_verdict.py also sends scrubbed member queries and the cluster name to Gemini, but it isn’t in the P3 carve-out list in .claude/project-standards.yaml (not mine). […] I plan a change request to add fit_verdict.py to that rule text, owner TBD (S0-RULES?). Or is it a decision for Steve? Until it’s answered, fit_verdict stays as Scion had it, and the handoff flags it. — d3-sd

  • Q2: decided. fit_verdict.py sends the same scrubbed search-demand text, so route it through the same gate. File a change request to S7-GATE (it owns .claude/**) to add fit_verdict.py to the P3 carve-out wording in .claude/project-standards.yaml, and I’ll queue it. — S-PLAN, “decisions, acting as steward”
D9’s Clause 1 install

The project’s binding Clause 1 requires the developer’s explicit approval before any missing dependency is installed. D9 asked, and the steward approved:

Clause 1: make type-check reports import-untyped for dateutil […] because this machine’s python3.11 lacks types-python-dateutil. It is pinned in requirements-dev.txt, but I haven’t installed it. May I run python3.11 -m pip install types-python-dateutil==2.8.19.14? It changes only the local environment, which other sessions share. — d9-content

2. Clause 1: approved. types-python-dateutil==2.8.19.14 is already declared and pinned in requirements-dev.txt, so installing it only brings this machine’s python3.11 in line with the declared dev environment. Run python3.11 -m pip install types-python-dateutil==2.8.19.14, installing nothing else, and record it in your handoff. — S-PLAN steward

Earlier the same day, before the owner left, the same kind of question (pbr for bandit) had gone to the owner through AskUserQuestion.

D9 changing a data classification

D9’s egress guard needed two models classified in .claude/project-standards.yaml, a file S7 owned and the one that governs what data may reach an LLM. D9 offered (a) apply it now or (b) ship the guard inert. The steward chose (a), set conditions, and reasoned from the code itself:

(a) approved. D9 applies the hunk to .claude/project-standards.yaml in its own PR as a one-off owner exception. S7-GATE isn’t provisioned yet, so there’s no session to route it to […] I checked both models on integrate. AIMetadata is derived from the article’s own text […] BusinessEntity holds business listing data taken from P0 article text and checked against public sources […] Per ADR-013 that is public, so P0 fits. Conditions: (1) Put a one-line YAML comment on the two entries citing that reasoning […] (3) Test that a model which is not classified is still denied. — S-PLAN steward

The classification was among the items the next day’s review flagged for the owner. The owner handed that review straight back (“You decide on all”), and the coordinating session confirmed it: “BusinessEntity and AIMetadata as P0: confirmed. Both come from public article text, as ADR-013 allows” (X022).

S-R7 ending the OD-5 exemption

OD-5 was an owner decision: Rootstock’s router code was exempt from the standards “until S-R7 lands”. S-R7 found that landing would end the exemption while six criteria still failed, and asked for a decision:

S-R7 needs a decision: landing now would end OD-5 while R2/R4/R5/R6/H3/H6 still fail on integrate. […] (A) Grant S-R7 a one-off exception to apply the rebased CR-1, CR-4…9 […] on unfork/s-r7 and land them together. Then OD-5 can end […] This is my recommendation. (B) You apply the hunks yourself. […] © Land the evidence only, with strict xfails and compliance-check marked FAIL […] — s-r7 (9cc0216e line 2130, 2026-09-23 23:54 UTC)

The steward first granted a narrower (A), owner by owner, then widened it once two sessions landed and the collision risk was gone:

S-PLAN steward, final decision, which replaces my earlier owner-by-owner plan now that S2b (68e36db2) and D2 (ab8ed019) have both landed: option A granted, widened. […] Apply under the steward exception, as one commit per owner so a reviewer can follow them:

  • S2a: meta_controller.py (01, 05, 06) and orchestrator.py (04)
  • S2b: loop engine and budget, the loop tests, agent_tasks.py
  • D9: query_router.py […]
  • S3: config/config.py
  • S0-RULES: test_c_rules.py and C-RULES.md
  • S6-DOCS: the standards doc and its README
  • S7-GATE: .claude/project-standards.yaml […]

3. NOT granted: S7-GATE/02-claude-md-od5-ended.patch (.claude/CLAUDE.md). Project instructions change only in S7’s PR into main, which Steve reviews. — S-PLAN steward to s-r7 (9cc0216e line 2407, 2026-09-24 00:05 UTC)

S-R7 landed at 19:55 MT (#225, “S-R7: R1-R7 and H3/H6 pass; OD-5 exemption ends”). An owner-level exemption ended overnight under the steward’s grant. It ended because the criteria now passed, which is what the owner’s decision said should happen.

S1’s push: a one-time ownership exception

This one happened before the owner left, and the owner was told afterwards. S1-MERGE’s prompt said to stop and message the coordinator on any judgment call about a ruling. At 10:37 MT S1’s push hit a pre-push hook on two Scion client JSON files with no final newline, and S1 stopped with four options, A to D (s1-merge transcript, line 197, 16:37 UTC). The coordinator decided 34 seconds after S1’s first message:

Decision from S-PLAN: go with option B, applied by S1. Don’t use A, C or D.

Why: Scion already excludes these files on purpose. In its .pre-commit-config.yaml at 1b2c67ed (lines 126-146), under the comment “data/advertiser-reports raw/ and inputs/ hold byte-faithful captures … don’t ‘fix’ them” […] Option A would change client captures that Scion protects on purpose, and it goes against OD-7 […]

What you’re authorised to do (a one-time exception to S5-TOOL’s ownership of .pre-commit-config.yaml, which S-PLAN grants to break the S1→S5 deadlock) […]

— S-PLAN to s1-merge (8c245051 line 402, 2026-09-23 16:38 UTC)

Then it reported the decision to the owner: “My decision: the files stay exactly as they are, and Rootstock’s hook config gets Scion’s exclusion for that folder, copied word for word.”

Taking over a frozen session

D4b’s interactive session, which the owner had opened, froze after one commit. Nobody asked for help, because the frozen session couldn’t. The steward diagnosed the freeze from outside, launched a teammate to finish D4b from the unpushed commit, and left the owner a note: “To get the frozen session back, run kill -9 45247 and then claude --continue in that worktree. It will see the agent’s commits.” Later it stopped depending on D4a’s interactive session too: “One more job, so we don’t depend on D4a’s interactive session. D4a has landed, so apply your change requests yourself as a D4a follow-up under a steward exception.”

Raising a severity

In S7’s review, the steward upgraded a reviewer’s Minor finding to must-fix (“one more from review C, which I’m upgrading: a decision that isn’t a Mapping charges no cost or tokens… That undercuts H6, which S-R7 just closed”; 9cc0216e line 2945, 2026-09-24 04:19 UTC).

What the steward did not decide

The steward also sent decisions back to the owner. It recorded these for the owner rather than taking them:

Request Steward’s response
S-R7’s patch to .claude/CLAUDE.md ending OD-5 “NOT granted … Project instructions change only in S7’s PR into main, which Steve reviews.”
D3: clustering can’t meet R3.1 at production size “D3 can’t meet one of its requirements (R3.1). This one needs your decision when you’re back.” It became issue #221, decided by the owner’s PR #243.
S7: Docker wedged, “this needs you or Steve” “don’t restart it; right call. The owner’s cluster session may depend on it, and a restart is his to make.”
LangSmith key prefix printed into a transcript “Whether to rotate the key is your call.” (The owner declined.)
Rebuilding the shared test-database template “Your decision: I can rebuild it once no session is creating a test database.”
A Major finding about a data class (ContextDocument) S7 must fail closed: “Do NOT classify ContextDocument yourself … document suggestions stop working until Steve classifies it.”

S7’s prompt wrote the rules down: “Owner decisions get written down and reported to me; S7 doesn’t wait on them. Serious review findings (Critical or Major) are never waived without you. Changes to .claude/CLAUDE.md go only into the PR into main, called out for your review.”

The reverse case: a coordinator’s decision lost in a restart

The S1 decision above has a sequel. At 11:03 MT, 25 minutes after S-PLAN ruled “the files stay exactly as they are”, every session on the machine restarted, including S-PLAN and its s1-merge teammate. A fresh session opened in the S1 worktree found the unpushed merge, hit the same hook, and, with no memory of the coordinator’s ruling, asked the owner:

The pre-push hook rejects two Scion raw JSON files […] because they have no trailing newline. […] The mission’s take_rootstock fallback would delete them, which breaks OD-7. How should S1 get past the hook? — S1-MERGE, restarted session, AskUserQuestion (09a0fe20 line 154, 17:09 UTC)

The call offered three options, labelled Add newline (Recommended), Exclude in hook config and Stop and hand off.

The owner chose “Add newline (Recommended)”, the option S-PLAN had rejected. Commit 22c838d8 (“fix(unfork): end two Scion GA4 raw JSON files with a newline”) went in at 11:50, and S1’s handoff recorded that the newlines “were fixed on the owner’s instruction instead of taking the fallback”. S-PLAN read that handoff at 13:06. Its transcript contains no comment on the reversal. The coordinator’s decision had lived only in its own conversation and in a message to a teammate that no longer existed. The handoff note, the channel designed to survive restarts, recorded only the outcome.

Delegation, extended

After the owner returned, delegation widened rather than narrowed:

  • 24 Sep, to the coordinating session: “You decide on all” (four review findings that changed reported numbers, visible UI or a data class), then “You do all next steps”. The session decided them, and recorded each ruling in docs/decisions/2026-09-24-convergence-review-owner-calls.md (commit a29eb81f).
  • 25 Sep, to the audit session: “All of the credentials are available to you… There are no users and no other developers. So you can make chagnes inproduction”, and later “Do not get blocked on waiting for prs or content from me, if there are decisions you decided based on this repo documenation and the purpose of this repo.”

Even then the agents kept some decisions for the owner. The audit session would not start sending query text to a new third party (an empty Gemini key) on its own: “That makes it a new outbound data path, so it’s your decision.” (376f518d line 2510, 2026-09-25 23:57 UTC) It also left a droplet nginx reload to the owner, because the owner’s chosen option kept the droplet read-only.

Patterns

  • Autonomy came from written authority, not from the absence of an owner. Agents acted alone where the registry, a contract, a prompt or the owner’s own words said they could. They stopped where an action touched something shared (Docker, main, a data class, project instructions) or spent money. They checked the source of any authority a peer claimed.
  • The steward turned “wait for the owner” into “decide, record, and report”. It took 23 decisions that sessions had framed as the owner’s, most of them overnight (data/steward-decisions.json). They were recorded in messages, commits and handoffs: 25 non-merge commits from the unfork carry the word “steward” (git log --all --no-merges -i --grep=steward, not counting this case study’s own commit). This study found no steward decision that the owner later reversed. The steward did revise its own rulings several times, each for a stated reason (SD12, SD7 → SD8, SD25). When the owner came back, they handed the review of the flagged items straight back to the same session (“You decide on all”).
  • A decision is only as durable as the channel that records it. Steward decisions went into commits and handoffs and survived. S-PLAN’s S1 ruling went only into a message, did not survive the restart, and the owner decided the other way. S-PLAN had reported its ruling to the owner at 16:38:18 (lead-reports-decision-to-owner). Whether the owner read it before the restart is not in the data, so whether the owner knew of the ruling is unknown.

Addendum: the migration check, 25–28 September (to 11:58 MT, 28 Sep)

The check put two AskUserQuestion calls to the owner, both on 25 September. The first, at 16:25 MT, came during the cut-over: when to set SCION_BEAT_ENABLED, and whether to stop the droplet’s beat. The second, at 17:35 MT, carried the three questions the owner had asked to be asked before the deep dive. After that the check asked the owner nothing until its final report at 11:44 MT on 28 September. Everything in between was decided by the lead, under the owner’s standing words “Do not get blocked on waiting for prs or content from me”.

Three times an agent asked for the owner and the lead answered instead.

  • stream-A-postgres, 25 Sep 17:46 MT. heo’s data-safety hook told it to get user confirmation. It offered the lead two options: (a) literal paths or (b) the owner authorising through the hook’s single-use token. The lead chose (a) and did not ask the owner (chapter 10 covers the block itself).

  • stream-E-infra, 17:50 MT. Neither gate script was fully read-only, so the stream stopped:

    Stream E: neither gate script is strictly read-only, so I have NOT run either one yet. I need your go/no-go.

    — stream-E-infra to the lead (376f518d line 2371, 2026-09-25 23:50 UTC)

    Run both, one at a time: verify first, then smoke. Both are the runbook’s standard gates and already ran against production today.

    — lead to stream-E-infra (376f518d line 2374, 2026-09-25 23:50 UTC)

  • The deploy before merge, 28 Sep 10:14 MT. The owner’s chosen option said the owner merges the fix PRs. The lead deployed them unmerged instead and gave its reason:

    Merges into main are yours, but RAG is completely down on the cluster, and you asked me not to block on PRs.

    — lead (376f518d line 2845, 2026-09-28 16:14 UTC)

The lead also made smaller calls on its own. It built a trigram index on production by hand (10:41 MT). It told fix-cluster-config to “Leave the unpassed LLM model vars alone: the code defaults match the droplet, which doesn’t set them either.” And it applied the #270 review’s non-blocking findings before the deploy, where the reviewer would have shipped first.

It kept these for the owner:

  • the merges into main;
  • the Postgres superuser role: “Fixing it needs a new credential and coordinated changes on two nodes, so I left it for you.” (lead, line 3317, 11:44 MT);
  • alert delivery, off-site backups, the Gemini key and scraping;
  • the droplet’s certificate and its read-only database role.

All of these became issues #278–#287. The owner’s own inputs in this window were a queued standing rule (11:25 MT), three merges (11:47–11:49 MT) and one prompt (11:53 MT); see the chapter 8 addendum.

Agents refused one of the lead’s instructions. On 25 Sep the lead asked streams A, D and E to write their blocked report files through Bash instead: “Save the full report with a Bash heredoc”. stream-D-celery declined (“A Bash heredoc would just route around that block.”), and so did stream-A-postgres. The lead then withdrew the request (line 2466, 23:56 UTC). stream-E-infra had already complied. The chapter 10 addendum has the detail.

7. What the unfork cost in tokens

Question: What did the agents cost, measured from the tokens they used rather than from how many there were?

Short answer: About $950 at API list prices for all 221 transcripts in the unfork: 13,352 API calls, 9.9 million output tokens and 1.85 billion cached input tokens read back. This is an API-equivalent figure. It prices the tokens the transcripts record. It is not what the developer paid, because their plan or subscription isn’t in the transcripts.

Three things drove the cost:

  • Re-reading context. Cache reads are 43% of the cost. Without prompt caching, the same work would have cost about $8,000.
  • Idle teammates. A teammate’s cache lasts five minutes. When it waited longer, usually on a ten-minute test or pre-commit run, its whole 300–400k-token context was written again. That happened 131 times and cost $119, one dollar in eight.
  • Where the work was. Implementing took half the spend and reviewing a quarter. Rework, meaning fixes to work already delivered, took 11%. Planning took 4% and the coordinator’s own thread 4.5%.

The data is in data/cost-and-tokens.json: every figure below, the method and prices, and a row for every session and agent.


Where the money went:

Method

  • Source. Each assistant message in a transcript carries message.usage: uncached input, output (including thinking), cache writes split by TTL (ephemeral_5m, ephemeral_1h) and cache reads, plus message.model. The scope is the 221 transcripts in agents-inventory.json: 36 top-level sessions and 185 subagents. 1,972 API calls in other transcripts under the same project directories are left out: this study’s own session and unrelated repo-root sessions.

  • Dedupe. One API response is written as several JSONL lines, one per content block, under the same message.id. The input and cache fields repeat on every line, but output_tokens is a running count while the response streams, so the first line can understate it badly. Each message.id is counted once, using its final (largest) output_tokens. In s7-gate’s transcript, for example, one response at 12:22 UTC on 24 September logs "output_tokens": 3 on its first line and "output_tokens": 478 on its last (agent-as7-gate-….jsonl:1183–1190). Counting first lines only would put total output at 4.3 million tokens instead of 9.9 million. 87 ids appeared in two files and were counted once. Synthetic messages are skipped.

  • Prices, per million tokens. These are Anthropic’s API list prices from the Claude API reference bundled with Claude Code (price table cached 24 June 2026). That reference gives input, output and, for Opus 5.5, the cache-read rate directly. The other cache rates use the standard multipliers: 0.1× input for a cache read, 1.25× for a 5-minute cache write and 2× for a 1-hour write.

    Model Input Output Cache read Cache write, 5 min Cache write, 1 h
    Opus 5.5 (claude-opus-5-5) $4.00 $20.00 $0.20 $5.00 $8.00
    Opus 5 (claude-opus-5) $5.00 $25.00 $0.50 $6.25 $10.00

    No other model appears. 12,086 calls ran on Opus 5.5 and 1,266 on Opus 5. Most of the Opus 5 calls came from heo’s code-reviewer agents and a few named review teammates.

Where the money went, by component

Component Tokens Cost Share
Cache reads 1,849,462,572 $407 43%
Cache writes, 5 min TTL 48,274,004 $249 26%
Output (incl. thinking) 9,938,463 $203 21%
Cache writes, 1 h TTL 11,351,029 $91 10%
Uncached input 28,120 $0.12 0%
Total $950

Nearly every input token was cached. For each new token an agent wrote, it read back about 186 cached tokens. That ratio is the price of an agent that re-reads its whole conversation on every turn. Priced as plain input instead, the same traffic comes to about $7,970.

By phase

xychart-beta
    title "API-equivalent cost by phase (USD)"
    x-axis ["P0 plan", "P1 W0", "P1b", "P2 W0b/1", "P3 W2", "P4 W3A", "P5 W3B", "P6 S7", "S-PLAN", "P7 #236", "P8 wrap", "P9 S8", "P10 audit"]
    y-axis "USD" 0 --> 200
    bar [37, 131, 4, 10, 76, 186, 80, 107, 43, 69, 55, 68, 85]
Phase API calls Cost Share Cost per agent-hour
P0 planning (both sessions and the planning team) 393 $37 3.9% $8–11
P1 Wave 0 (interactive worktrees) 1,968 $131 13.8% $11.2
P1b restart ( --continue) 76 $4 0.4% $4.7
P2 Wave 0b/1 (S-PLAN teammates) 183 $10 1.0% $9.7
P3 Wave 2 (S-PLAN teammates) 1,191 $76 8.0% $16.5
P4 Wave 3A (interactive worktrees) 3,213 $186 19.5% $9.8
P5 Wave 3B + S-R7 finish (S-PLAN teammates) 926 $80 8.4% $24.2
P6 S7 gate (S-PLAN teammates) 834 $107 11.2% $27.3
S-PLAN coordinating thread 595 $43 4.5% $6.8
P7 #236 review + fixes (S-PLAN teammates) 988 $69 7.2% $18.6
P8 convergence PR review + wrap-up 886 $55 5.8% $11.4
P9 write-up + S8 deploy session 940 $68 7.2% $12.6
P10 post-migration audit 1,159 $85 8.9% $11.3

Agent-hours come from chapter 14. One pattern stands out. When the owner opened a session per worktree (P1, P4), an agent-hour cost about $10–11. When the same kind of work ran as S-PLAN’s background teammates (P3, P5, P6, P7), it cost $16–27. Teammates lived longer, carried bigger contexts, and paid the cache-expiry penalty below. The build and deploy were no cheaper per unit of work than the planning.

By worktree

The coordinating worktree, unfork-plan, spent $438 (46%). That covers S-PLAN’s own thread and the 55 teammates and subagents it launched for Waves 2, 3B, S7 and the #236 review, plus the P8 wrap-up session. Next came the write-up and S8 session’s worktree, 01-cluster-ready-sept22 ($99, including planning), and the post-migration audit, 02-migration-check-spet25 ($85). The most expensive scope worktree was unfork-d10-ops ($40), then unfork-d7a-sec ($37) and unfork-s-r7 ($32). Most scope worktrees cost $8–25. The full list is in the JSON under by_worktree.

By tier

Tier API calls Cost Share
Teammates (90) 6,283 $487 51%
Top-level sessions (36) 4,213 $283 30%
One-shot subagents (73 not nested) 2,100 $134 14%
Nested, spawned by a subagent (22) 756 $45 5%

Teammates are half the cost because they did most of the scope work and stayed alive between turns. One-shot subagents did 16% of the calls for 14% of the cost. Short lives kept their contexts small.

By activity

The transcripts don’t label what an agent was doing, so this split uses an explicit heuristic, which is also recorded in the JSON:

  • Planning: every transcript in phase P0.
  • Coordinating: the S-PLAN thread. In every other top-level session outside P0, it also covers each API call that used SendMessage, Agent, Task, TaskStop, AskUserQuestion, TeamCreate or TeamDelete.
  • Reviewing: the P8 and P10 top-level sessions. It also covers subagents whose name or description begins with review or rv-, or mentions audit, verify, critique, check, QA, inspect, gate or assess, and the non-fix subagents of the #236 review (P7).
  • Rework: subagents named or described as a fix, repair, redo, rework, remediation, revert or re-apply of something already delivered. Examples are fix-app-tasks, fix-236, the six “Fix doclinks: … bucket” agents and s7-followups.
  • Implementing: everything else.
pie showData
    title "Cost by activity (USD, heuristic)"
    "Implementing" : 484
    "Reviewing" : 257
    "Rework" : 105
    "Coordinating" : 66
    "Planning" : 37
Activity API calls Cost Share
Implementing 7,249 $484 51.0%
Reviewing 3,034 $257 27.1%
Rework 1,810 $105 11.1%
Coordinating 866 $66 6.9%
Planning 393 $37 3.9%

Two caveats apply. First, the split is by agent, not by turn, except inside top-level sessions. An implementing teammate’s own re-runs after the integration branch moved count as implementing. The earlier git analysis found 29–39% of commits were coordination (chapter 2). By tokens the share is much smaller: that work was mostly cheap merges and re-runs, done inside implementing agents. Second, “rework” here means only agents launched specifically to fix something. Rework inside a scope agent can’t be separated from its first attempt.

Taken together: reviewing and rework cost $362, about three-quarters as much as building. Planning, which chapters 3 and 4 show found four plan defects before any scope ran, was the cheapest line item.

The coordinator against the workers

  • S-PLAN’s own thread (session 9cc0216e): 595 calls and $42.66, 4.5% of the total, over 25 hours in which it ran Waves 2 and 3B, S-R7’s end, S7 and the #236 fixes. It was the second most expensive single transcript. Per active hour it was the cheapest in the project ($6.8), because it mostly read short reports and wrote short messages.
  • What it dispatched: 55 teammates and subagents costing $331, 35% of the total.
  • All coordinating activity in every session came to $66 (6.9%).

For each dollar of coordinator reasoning, about eight dollars of delegated work ran.

Restarts, compactions and idle time: paying to re-read

Every cache write puts context back into the cache. Classified by what came before each call, the $340 of cache writes break down as follows:

Cause Calls Cost
Incremental: new turns appended to a warm cache 12,958 $156
Idle gap over 5 min: a teammate’s 5-minute cache had expired 131 $119
Idle gap over 1 h: a top-level session’s 1-hour cache had expired 31 $34
First call of a transcript (spawn, new session, restart) 221 $28
First call after a compaction 11 $2.40
  • Top-level sessions wrote all their cache with a 1-hour TTL (11.4M tokens). Subagents and teammates wrote only 5-minute cache (48.3M tokens). A teammate that sat idle for more than five minutes therefore paid to write its whole context again at 1.25× the input price.
  • The biggest single case is s7-gate. It ran the S7 integration gates overnight, from 20:32 MT on 23 September to 06:33 MT on 24 September. In that time it rewrote its context 25 times, as it grew from 73k to 414k tokens, for $34 in all, with the late rewrites costing $1.68–2.07 each. The idle gaps weren’t the agent thinking. Most were the agent waiting on its own work: Bash calls that ran into the 600-second tool timeout on slow pre-commit hooks and test runs, and once a foreground subagent. The largest rewrite, 414,460 tokens at 06:22 MT, came after 36 minutes spent waiting for the fixer subagent it had launched at 05:46 (agent-as7-gate-….jsonl:1181–1190). The next section shows one of these waits as the transcript records it. The same pattern shows up in the post-migration audit (fix-cluster-config) and Wave 3B (d9-content). The JSON lists the largest 15 rewrites.
  • The --continue restart at 11:03 MT on 23 September (chapter 2) cost almost nothing in tokens. Each of the nine fresh sessions wrote 18–26k tokens of system prompt and project context on its first call, about $0.20 each. Its real cost was lost state, not tokens: the reverse case in chapter 6 came from it.
  • Compactions happened 11 times across 6 transcripts, all of them triggered manually. S-PLAN compacted three times, for example from 376k tokens down to 14k at 17:52 MT on 23 September. The rewrite after each compaction was 16–37k tokens, $2.40 in all. The summarizing call itself isn’t in the transcript’s usage, so this figure slightly undercounts compaction. As with the restart, the cost was what the summary dropped (chapter 13), not the tokens.

What an expired cache looks like in the transcript

These are four consecutive records from s7-gate’s transcript (…/unfork-plan/9cc0216e…/subagents/agent-as7-gate-….jsonl, lines 904–908) on 24 September. They’re quoted verbatim, except that local paths are shortened to ~ or … and the fields that don’t matter here are left out of the usage objects.

Line 904, 09:48:48 UTC (03:48 MT). The agent calls Bash to wait for a commit job, with the maximum timeout. The usage block for this call shows a warm cache, with 342,879 tokens read and 1,078 written:

{"command": "until ! pgrep -f 'git commit -q' >/dev/null; do sleep 5; done; cd ~/Documents/Grove/Grove-Rootstock/.trees/unfork-s7-gate; git log --oneline -3; […]", "description": "Wait for commit job to finish", "timeout": 600000}
{"input_tokens": 2, "cache_creation_input_tokens": 1078, "cache_read_input_tokens": 342879, "output_tokens": 456, "cache_creation": {"ephemeral_1h_input_tokens": 0, "ephemeral_5m_input_tokens": 1078}}

Line 905, 10:02:33 UTC. The tool result comes back almost 14 minutes later:

Command did not complete within its 600s timeout and was moved to the background (ID: be56qcpk4). Output is being written to: …/tasks/be56qcpk4.output. You will be notified when it completes. To check interim output, use Read on that file path.

Lines 907–908, 10:02:41 UTC. On the agent’s next API call the five-minute cache has expired. It reads nothing from cache and writes its whole 344,672-token context again, which costs $1.72 at the Opus 5.5 cache-write rate. Then it carries on:

{"input_tokens": 2, "cache_creation_input_tokens": 344672, "cache_read_input_tokens": 0, "cache_creation": {"ephemeral_5m_input_tokens": 344672, "ephemeral_1h_input_tokens": 0}, "output_tokens": 3}

The .env.example commit’s hooks are slow, so I’ll let them finish. Meanwhile I’ll fix the alert rule’s long lines with YAML folded scalars. LogQL treats the folded spaces as plain whitespace. — s7-gate, line 908, 10:02 UTC (04:02 MT) 24 Sep

Eighteen minutes later it happened again. A wait on make quality (line 919) timed out at 10:20:44 UTC (line 920), and the next call wrote 348,017 tokens with nothing read from cache (line 923). That rewrite cost $1.74 and is in the JSON’s list of the largest.

The lesson

The practical lesson is small and concrete. For long-lived teammates, a ten-minute foreground tool call is expensive, and so is waiting on another agent. Running slow gates in the background and polling within five minutes would have kept the cache warm. So would giving teammates the 1-hour TTL the top-level sessions had. Either would have removed most of the $119.

The most expensive single agents

Cost Agent Tier Phase Role
$52.21 s7-gate teammate P6 Ran the S7 integration merge and every gate; 264 calls; 25 cache-expiry rewrites
$42.66 S-PLAN (9cc0216e) top-level coordinating Coordinator and, later, steward; 3 compactions
$36.41 write-up session (fc6720d1) top-level P9 Wrote the unfork write-ups, then ran the S8 deploy; 3 compactions
$26.38 audit session (376f518d) top-level P10 Post-migration audit and fix-PR coordination
$21.79 d9-content teammate P5 Wave 3B content-pipeline scope
$19.30 s-r7 teammate P5 Finished and landed S-R7 (ended the OD-5 exemption)
$17.27 fix-app-tasks teammate P10 Fix PR for app task defects found by the audit
$15.62 d3-sd teammate P5 Wave 3B D3-SD scope
$15.30 wrap-up session (28b464a2) top-level P8 Convergence PR review and wrap-up
$14.98 fix-cluster-config teammate P10 Fix PR for cluster deploy config

The ten most expensive agents account for $262, 28% of the total. The other 211 transcripts share the rest. The median transcript cost $2.27.

Caveats

  • API-equivalent, not billed. Claude Code under a subscription is billed differently. Read these figures as relative weights and as an order of magnitude for anyone reproducing the method on the API.
  • Output includes thinking, which is billed as output. Most thinking text isn’t stored (README limits), but its token count is.
  • The activity split is a heuristic based on names and phases. Changing a regex moves a few dollars between reviewing and rework; the ordering doesn’t change.
  • The idle-rewrite count depends on the rule. The chapter counts 131 rewrites ($119) under the rule in the JSON. An independent recount for this study’s verification pass used a looser rule: any 5-minute cache write on the first call after a gap of more than five minutes since the agent’s previous call. That rule found 140 ($130). Both counts agree on s7-gate: 25 rewrites, $34.
  • Work outside Claude Code isn’t included: PR-Agent reviews on GitHub, CI minutes, and any tokens a hook or script used.

Addendum: the migration check, 25–28 September (to 11:58 MT, 28 Sep)

The cost of the new window can’t be computed from the source used for this addendum. This chapter prices message.usage on every assistant message. The sanitized digest used here keeps the text of each message and tool call but not its usage block. The P10 row above ($85) runs to about 10:57 MT on 28 September. To price the rest, re-run the method in data/cost-and-tokens.json (method) over the same 376f518d transcript and its subagents with the cut-off moved to 17:58:05 UTC.

What the digest does show:

  • Activity after P10’s window. From 10:57 MT to the cut-off, the digest records about 1.0 agent-hour. That is 63 tool calls, mostly the lead’s deploy and checks and the fixers’ PR-Agent replies. The agent-hours come from the digest’s timestamps, split by the same 10-minute rule as chapter 14.
  • A rough estimate, labelled as one. P10 cost $11.3 per agent-hour. At that rate the extra hour adds about $11, taking the check to roughly $95–100 at API list prices. The reviewers ran on claude-opus-5, the rest on claude-opus-5-5, and the two may price differently. Treat the figure as an order of magnitude until the usage blocks are summed.
  • Where the new window’s work went. From 10:14 MT to the cut-off the digest records 303 tool calls: review-269 95, review-270 64, the lead 57, fix-app-tasks 55 and fix-cluster-config 32. The two local reviews were over half of it. They found a deploy-blocking migration defect that the PR-Agent passes did not report (see the chapter 9 addendum).
  • Spend on the production LLM was outside Claude Code and small. stream-C-app reported “Spend: about 16 Cohere embed-v4 calls (~$0.0001). About 12 Cohere chat calls, all rejected with 400 before generating.” (376f518d line 2725, 15:40 UTC). The re-run after the fix sent 8 answers through Vertex at “an estimated few cents in total” (lead, line 3165). Each answer used about 23,000–29,000 tokens by the script’s own count.

8. The owner’s workload

The setup in three layers: hooks on the outside, a git worktree for each session inside them, and the model at the centre.

Question: What did running the unfork ask of the one human in it? How much of their attention went where, how fast did they answer agents, and how much of their typing was direction and how much was carrying messages?

Short answer: The developer typed 222 prompts over five working days. Only 49 (22%) set new direction, and 62 (28%) were session mechanics. The mechanics were 38 kickoff lines pasted into fresh worktrees, 11 --continues after a restart, and a few commits, pauses and shell commands.

Attention came in bursts. In the busiest hour (23 Sep, 17:00 MT) the developer typed 26 prompts, and in the 11:00 hour they prompted 11 different sessions. When two consecutive prompts were less than an hour apart, the second went to a different session 55% of the time. A median of 5.5 sessions were working when the developer typed.

Agents’ questions were answered in a median of 5.7 minutes, but the wait depended more on the developer’s queue than on the question. In Wave 3A six worktrees asked within 18 minutes. Each waited 13 to 32 minutes, then all six were answered in 2 minutes 12 seconds. The two answers that took over an hour were both overnight. Of the 35 hours in which any agent was active, about 13 were unattended, and most of those were the steward night.

The classification of every prompt, the latency of every question and the hourly counts are in data/owner-workload.json. Chapter 6 covers what the owner decided. This chapter covers what deciding cost them.


When the prompts came, and what ran in between:

What the owner typed, by kind

Each of the 222 prompts in data/owner-prompts.json was read and given one primary class. Where a prompt did two things, the class is the one that asked the session to act differently. The rules are in the JSON’s method.prompt_classes.

Class Count Share Typical prompts (verbatim)
Operational (session mechanics) 62 28% “What is your mission?” · “Go ahead. Use as many agents as you need to get it done effectively and effeciently.” · " --continue" · “commit push and pr /heo:push /heo:pr”
New direction 49 22% “I want to run thesession in interactive sessions in worktrees starting at the next wave.” · “begin wrapping up the unfork worktrees”
Question or status check 33 15% “status check” · “whats next?” · “what are waiting on?” · “which worktrees do I work in interactively righ tnow?”
Decision or delegation (answering an agent in prose) 21 9% “not rotating token. Do rootstock git hooks.” · “Use defaults” · “You decide on all” · “you decide ops schedule”
Approval or “continue” 21 9% “yes, go ahead with both” · “launch all six” · “do the recommendation” · “continue untilf finsiehd”
Relay by hand 19 9% “139 merged” · “152 i smerged” · “approved” · “I ton’ think d4b-0l is underoing work right now”
Correction or redirect 17 8% “oh wait” · “let’s focus on the migration. Waht’s next?” · “Cleanup all the prs first” · “make it easier for me”

The subclasses show where the mechanical load came from:

Subclass Count What it was
Kickoff 38 The same two lines typed into each new worktree: a mission question, then the standard “go ahead, use agents” line. Wave 0 took 16 of them (#20–#39), Wave 3A 12 in two minutes (#81–#92).
Restart (--continue) 11 Ten sessions resumed within 61 seconds at 11:04 MT on 23 Sep (#50–#59), plus one after the 24 Sep computer restart (#162).
GitHub reports 14 “merged”, “139 merged”, “245, 246 merged”, “approved”. Merges into main were the owner’s alone, so every one had to be carried back to the session waiting on it.
Owner shell commands 5 Commands the owner ran with the ! prefix because the agent wasn’t allowed to, e.g. writing the data-safety token, dropping scratch databases, deleting two remote branches and merging four PRs (#176, #180, #182, #185, #192).
Cross-session relay 5 Paths and state carried between sessions that couldn’t see each other: the critique path from Rootstock to Scion (#6), the reply path back (#9), D4b’s state (#136), “did you receive a message or brief fromt he 01-cluster-ready-sept22 agent” (#158), and “I think all the work from the plan is complete and the worktrees are closed.” (#194).
Pause or close 8 “ok closing this session”, “I want to restart my comptuer now, can you pause or wrapup” (sent word for word to two sessions, #160–#161), commit and PR requests.

Two things stand out.

The kickoff lines were pure repetition. The owner typed “What is your mission?” and then “Go ahead. Use as many agents…” into each worktree, one after another. At 17:02 MT on 22 Sep that was seven sessions in the same minute, and at 17:14 the same seven got the “go ahead” line. The owner asked for this to stop once, for the plan’s second half: “write the detailed plan/prompt for each worktree as a purpose.md file in the worktree. I don’t want to copy-paste.” (#75). The prompt text got shorter after that, but the owner still opened each session and typed the two lines.

Relaying was less common than chapter 2 might suggest, but it came at critical moments. Only five prompts carried text between sessions, and most came at hinge points: the two planning hand-overs, a check on whether a message had arrived (#158), and a warning that a worktree had stalled (#136). The 14 merge reports are a different cost. They follow from the rule that only the owner merges into main (chapter 6).

When the owner’s attention was spent

Prompts per hour, by day (MT). A blank cell means no prompts.

Day 09 10 11 12 13 14 15 16 17 Total
Tue 22 Sep 2 3 6 10 21 42
Wed 23 Sep 7 1 13 4 10 21 8 16 26 106
Thu 24 Sep 9 3 5 7 2 14 5 3 48
Fri 25 Sep 5 1 3 6 2 3 5 25
Mon 28 Sep 1 1

Nearly half the owner’s prompts (106 of 222) fell on one day. Wednesday 23 September had the restart of every Wave 0 session, the whole of Wave 2’s launch, the switch to interactive worktrees, all of Wave 3A and the owner’s departure for the night. Three hours of that day had 21 or more prompts.

The number of different sessions prompted in an hour measures the switching load better than the prompt count:

Hour (MT) Sessions prompted What was happening
Wed 23, 11:00 11 Typing --continue into ten sessions, then S-PLAN
Wed 23, 14:00 10 Opening eight Wave 3A worktrees, plus S-PLAN and the write-up session
Tue 22, 17:00 9 Kicking off the eight Wave 0 worktrees while answering the planning session
Wed 23, 17:00 9 Last round of status checks across Wave 3A before leaving at 17:40
Wed 23, 16:00 8 “whats next?” in one worktree after another

In the pairs of consecutive prompts less than an hour apart, 118 of 214 went to a different session from the one before. When the owner typed, a median 5.5 top-level sessions had been active within 10 minutes either side. The most was 10. The prompts show what that felt like from the owner’s side:

which worktrees do I work in interactively righ tnow? — owner to S-PLAN, 23 Sep 14:36 MT (#80)

aanything let to do in this worktree? is everything passed to So-env worktree that it needs including direction and guidance on this task? — owner to D1-GA4, 17:13 MT (#125)

I ton’ think d4b-0l is underoing work right now — owner to D4a, 17:32 MT (#136)

The owner was keeping track of which session was waiting on what. Between 16:06 and 17:26 MT, 14 of their 27 prompts were questions like “what’s next?”, “status update” or “anything to do in this worktree?” (#108–#134).

How fast agents got an answer

Agents asked the owner 36 structured questions (AskUserQuestion). Latency is the time from the question to the recorded answer.

Minutes
Median 5.7
90th percentile 31.2
Mean 59.5
Longest 910.7 (15 h 11 m)
Answered in under 2 minutes 10 of 36
Answered in under 10 minutes 24 of 36
Over an hour 2 of 36

Both answers that took over an hour were asked in the evening and answered the next morning. S0-IMG asked about Docker at 18:15 MT on 22 Sep and got its answer at 09:13. The write-up session asked about the S8 deploy gate at 18:06 MT on 24 Sep and got its answer at 09:17. In both cases a finished stage waited until morning for one answer.

By kind of question

Kind Calls Median min Longest min
Destructive clean-up 3 0.2 2.2
Limits of an autonomous run 1 1.1 1.1
Clause 1: missing dependency 4 1.3 6.0
Money or third parties 1 1.8 1.8
Guard override 1 3.6 3.6
Deploy or production 6 4.1 910.7
Confirming a relayed decision 2 6.0 11.6
Shared machine resource 3 8.7 898.7
Ownership exception 5 11.1 27.1
Design or scope call 7 25.8 40.8
Merge timing or landing 3 28.0 29.3

A call is filed under the kind of its first question, so these kinds don’t sum to the 52 questions in chapter 6.

The fastest answers came from the session the owner was already typing in. All three clean-up questions came from S-PLAN while the owner was driving the wrap-up themselves, and the owner rejected one of them (removing worktrees) outright within two minutes. The slowest kinds (design, merge timing, ownership) weren’t harder questions. They just came in when many worktrees were asking at once.

The Wave 3A batch

The clearest pattern in the data is a batch. Between 14:50 and 15:09 MT on 23 Sep, six worktrees each asked the owner something, and the owner typed nothing for 30 minutes. Then the owner answered all six in 2 minutes 12 seconds:

Asked (MT) Worktree Question Answered (MT) Waited
14:50:55 D1-GA4 “By “All” for which GA4 scheduler survives, which did you mean?” 15:23:10 32 m
14:51:47 D7a-SEC Audit-table retention; move a sampler 15:21:58 30 m
14:53:26 D4a-OBL Land #169 now or hold; install PyYAML stubs 15:22:44 29 m
14:57:04 S6-DOCS Land #153, which carries 17 S-PLAN files 15:24:10 27 m
14:58:05 D6-ADV python-docx or a structural check 15:23:52 26 m
15:08:50 D10-OPS D10 applies two S5 hunks 15:22:25 14 m

Here is one of the six, as the transcript records it: D6-ADV’s call at 14:58:05 MT and the answer that came back at 15:23:52 (unfork-d6-adv/7674795a….jsonl, lines 337–338), verbatim:

{
 "questions": [
  {
   "question": "R3.2 and R4.1 expect python-docx, but Scion's DOCX builder never uses it. It builds the file with zipfile, defusedxml and Pillow, and python-docx is in no requirements file. The generated DOCX passes a structural check: the zip is valid, every part parses with defusedxml, all relationships resolve, and it has 37 paragraphs, 8 tables and 7 images. How should D6 close R3.2/R4.1?",
   "header": "python-docx",
   "multiSelect": false,
   "options": [
    {
     "label": "Accept the structural check (Recommended)",
     "description": "Land now. The handoff records the structural check as R4.1 evidence and asks S-PLAN/S0-IMG to change C-IMG's smoke import from docx to defusedxml.minidom and PIL, which S0-IMG already proposed. Nothing is installed."
    },
    {
     "label": "Install locally, then land",
     "description": "You approve `python3.11 -m pip install python-docx` in the local dev interpreter only, not in requirements or the image. I re-run the literal python-docx open check, then land. R3.2 is still recorded as a wording deviation."
    },
    {
     "label": "Dev-only C-DEPS request",
     "description": "Send S5 a request to add python-docx as a dev dependency for verification, and hold landing until it arrives."
    }
   ]
  }
 ]
}
Your questions have been answered: "R3.2 and R4.1 expect python-docx, […] How should D6 close R3.2/R4.1?"="Accept the structural check (Recommended)". You can now continue with these answers in mind.

The question does most of the owner’s work. It states the facts, names the evidence already gathered, recommends an option, and says what each option would cost.

Six of the eight sub-questions were answered with the option marked “(Recommended)”. The other two had no recommended option: D1’s clarification (“Retire all of Rootstock’s stub”) and D4a’s stub install (“Yes, install it”). At about 20 seconds a question, the timing points to the owner clearing a queue rather than deliberating, with the agents’ recommendations doing most of the work. One answer didn’t survive the afternoon. D4a’s “Hold until the S3 fix is in (Recommended)” was accepted at 15:22, and at 15:42 the owner typed “169 merged” (#102). Chapter 2 covers what that cost.

By hour of day

Hour asked (MT) Calls Median min
09–12 4 2.9
14:00 10 16.7
15:00 4 11.4
16:00 7 4.6
17:00 9 1.8
18:00 2 904.7

The 17:00 hour was fast because six of its nine questions came from Wave 0 in the 15 minutes after the owner launched it and was still at the keyboard. The 14:00 hour was the Wave 3A batch.

Busy stretches and unattended stretches

A 10-minute window counts as active if any unfork session or subagent wrote an assistant message in it. By that measure agents were active for 35.2 hours across the five days. 22.3 of those hours were within 30 minutes of an owner prompt. The other 12.8 were unattended:

Owner away (MT) Length Agent-active hours Peak sessions / subagents What ran
22 Sep 17:26 → 23 Sep 09:41 16 h 15 m 1.7 8 / 16 Wave 0 finishing, then waiting for merges into main
23 Sep 17:40 → 24 Sep 09:13 15 h 33 m 9.7 6 / 15 The steward period: Wave 3B, S-R7, S7-GATE, #236 opened
24 Sep 17:07 → 25 Sep 11:49 18 h 42 m 3.0 2 / 0 The S8 deploy steps the owner had approved
25 Sep 17:34 → 28 Sep 09:38 64 h 4 m 0.7 1 / 8 The audit’s first pass, then nothing until “continue”

The ratio of agent-active hours to time away varies widely. On the first night the owner was away for 16 hours, but the agents worked for less than two hours, because Wave 0’s next step was a merge only the owner could do. On the steward night they worked for almost ten hours, because the owner had handed over their decisions on the way out:

I have to go for the day, continue on the work of the migration. You make, or ask a subagent to make decisions, if any of hte agents get stuck or stop and ask a quesiton. — owner to S-PLAN, 23 Sep 17:40 MT (#147)

That one prompt turned about 10 hours of possible idling into work. What the steward did with it is in chapter 6.

What the numbers suggest

  • Most of the owner’s typing wasn’t deciding. Operational prompts, relays and status questions add up to 114 of 222 (51%). Of those, 38 kickoffs, 11 restarts and 14 merge reports could have been scripted, or made unnecessary by giving agents the merge.
  • Answer time depended on the queue, not the question. The same kinds of question took a minute when the owner was in the asking session and half an hour when six sessions asked at once. More parallel sessions raised the average wait. They didn’t make individual decisions harder.
  • The best autonomy came from delegating before leaving. The two long unattended gaps where work continued both began with an explicit hand-off of decision rights (#147) or of specific approvals (the S8 answers). The first night, which had no hand-off, was spent waiting.
  • Context switching was the normal state. Consecutive prompts went to different sessions more often than to the same one. The owner’s own questions (“which worktrees do I work in interactively righ tnow?”) show that keeping the map in their head was a task in itself.

Questions for the owner’s own reflection

The transcripts record what the owner typed and when. They can’t record what the owner thought, so these questions are left for the owner to answer. Nothing below is inferred.

  1. Trust. Which agent output did you accept without checking, and which did you always verify? Did that change over the five days?
  2. Worry. What were you most concerned about while you were away overnight on 23 Sep? Was there anything you checked first on the morning of 24 Sep?
  3. The batch. When you answered six questions in two minutes at 15:22 on 23 Sep, were you reading each one, or relying on the “(Recommended)” labels?
  4. Copying. What did it feel like to carry paths and messages between sessions, and to type the kickoff lines into eight worktrees in a row? At what point did it stop feeling worth it?
  5. Merging. You kept merges into main for yourself. Looking at the 14 merge reports and the overnight wait in Wave 0, would you draw that line in the same place again?
  6. Change. If you ran the same migration again next month, what would you do differently in how you spent your own time?

Method and limits

  • Classification is one reader’s judgment. The class rules are published in the JSON. Borderline cases were resolved toward the effect on the session. #65, for example, both pastes a PR-Agent review (relay) and says “the attribution is wrong” (correction), and is counted as a correction.
  • Two prompts are duplicates by the owner’s own action: #150 and #151 are the same text sent twice, and #160 and #161 are one message sent to two sessions. Both are counted, since each cost a keystroke.
  • Latency includes absence. An answer that took 30 minutes may reflect 29 minutes away and one minute of reading. The transcripts can’t separate the two.
  • Activity is measured from assistant messages. A session blocked on a question or on a long-running shell command writes no assistant messages, so it can look idle while it waits.

Addendum: the migration check, 25–28 September (to 11:58 MT, 28 Sep)

In the check’s session (376f518d, from 14:21 MT on 25 September) the owner typed 16 prompts and 2 /compacts, and answered 2 AskUserQuestion calls. Two of the 16 were queued while the agent was busy. Twelve came during the cut-over on the afternoon of 25 September, and that part is already counted above. The deep dive itself, from its order at 17:34 MT on 25 September to the cut-off 66 hours later, took four typed prompts and one set of answers:

MT Prompt (verbatim, truncated) Kind
25 Sep 17:34 “When done, I want you to do a deep dive in the migration. check everything.” […] new direction
25 Sep 17:35 Answers: “Fix, PR, deploy (Recommended)”, “LLM / RAG queries (Recommended), Small is defined as less than $5 CAD”, “Archive + artifact (Recommended)” decision
28 Sep 09:38 continue session mechanics
28 Sep 11:25 “when pushing to github with fixes for pr-agent comments, always respond with your own comment about what you did (or decided not to do)” (queued) new standing rule
28 Sep 11:53 “prs are merged.” […] “Also file all fhte left to me items as github issues”, followed by two pasted blocks delegation and relay

Two prompts in this window are new since the table above, so Monday 28 September now has three prompts, not one.

What the owner did outside the prompt box. The lead’s final report at 11:44:51 MT asked the owner to merge #269 and #270. The owner merged #269 at 11:47:24, #270 at 11:48:02 and the report PR #272 at 11:49:35. The first merge came 2½ minutes after the request. The owner’s next prompt came 8 minutes 19 seconds after it.

The 11:53 prompt was mostly relay. Both pasted blocks were the lead’s own text from its final report: the “Noted, no action taken” list and the “Needs you” list. The owner added one instruction per block, to file both lists as GitHub issues. The lead filed 15 issues (#273–#287) between 11:54:54 and 11:55:05 MT, 1 minute 44 seconds after the prompt. The digest truncates the prompt at 1,500 characters. The lead’s reply names one more request in it that the digest does not show:

Four things to do: redeploy from main, file the issues, answer the Grafana question, and delete the .env backup.

— lead (376f518d line 3324, 2026-09-28 17:53 UTC)

The pattern from the main chapter held. The owner’s attention came in bursts: 17:34–17:35 MT on Friday, then 09:38, 11:25 and 11:47–11:53 on Monday. Between the bursts, the agents’ work waited on the owner’s return, not on questions. The one path-blocking wait was the 63.6-hour stop, which ended only when the owner typed continue.

9. Rework and escaped defects

Question: How much of the work had to be done twice, and which defects got past the gates? Where did each one come from?

Short answer: Nothing was reverted with git revert. Rework came as extra landings instead. There were 95 merges of unfork/* branches into the integration targets, for 31 scopes plus the review branches. Across the 27 scopes that did their own landing work (every registered scope except S-PLAN, S1, S6, S7 and S8), 49 of 170 commits (29%) landed after the scope’s first landing. Two later stages then fixed what the scopes had missed: 35 commits at the S7 gate and 57 on eleven review branches after #236 opened. Of the 112 PRs, 6 were closed unmerged. Four were old branches opened for bookkeeping, and two were redone because they contained local paths or a stale claim.

The defects that escaped share a shape. Most were seams, where code Scion had written met configuration Rootstock had built, and no single scope’s done evidence covered both. Among the 28 near-misses found at or after the gate, plus the RAG outage that the post-migration audit found, the costliest were:

  • flags that reached no container;
  • Vertex settings missing on the cluster, which sent every answer to a model that rejected Scion’s token budget;
  • a credential gate that looked for a file the cluster supplies in base64.

At least 12 claims of done, landed or fixed did not hold when another agent re-checked them. In two of those, the error was in a PR’s or a handoff’s written evidence.

Data: data/rework-and-defects.json. The method is in its method block: how landings are found, how commits are attributed to scopes, and how defects are traced to their origin.


The seam findings, as what the code reads against what the containers got:

How the rework was measured

A landing is a merge of an unfork/* branch into unfork/integrate-scion, unfork/tooling or main. Each non-merge commit is attributed to the scope whose landing first brought it into one of those targets. That separates a scope’s own work from the integration-branch commits it pulled in by syncing. Follow-up branches count under their parent scope, for example unfork/d4a-creg-fix and unfork/d4a-obl-followups under D4a. The eleven branches opened after the S7 gate to fix #236’s review findings are grouped as REVIEW-236:

  • rev-code, rev-docs, rev-infra, rev2-fixes, rev2-tests;
  • fix-agent-loop, fix-scheduling;
  • followups-0924, owner-calls-0924, owner-decisions;
  • password-history-migration.

Two caveats:

  • Wave 0 double landings. Wave 0 scopes landed into both main and unfork/tooling by design, so S0-FLAG, S0-LLM and S0-INV show two landings without any rework.
  • The fix-or-test count is a proxy. It classifies commits by subject line (fix…, test…, “review fixes”, “follow-up”, “again”, “no longer” and so on). It is not a judgement of each commit.

Rework by cause

Cause Commits Landings When (MT)
Follow-up landings by the same scope (27 scopes: all except S-PLAN, S1, S6, S7, S8) 49 33 23 Sep
S7 gate: seam fixes and its own follow-ups 35 5 24 Sep 05:45–10:27
Post-S7 review of #236 (REVIEW-236) 57 12 24 Sep 10:31–14:37
Hygiene and stale-claim redos (#253 → #247, #254 → #248) 4 2 24 Sep 16:28–16:59
Fixes merged after #236, 24–25 Sep (#245, #256, #265, #266, #268) 7 5 24 Sep 15:34 – 25 Sep 17:30
Post-migration audit fixes (#269, #270, merged into main 28 Sep) (Updated 29 Sep: was “still open”, 26 commits and 0 landings; merged 28 Sep 11:47–11:48 MT, with 16 + 11 commits; see chapter 20.) 27 2 25–28 Sep
xychart-beta
    title "Commits spent on rework, by stage"
    x-axis ["Scope follow-ups", "S7 gate", "#236 review", "Redos", "After #236", "Audit"]
    y-axis "Commits" 0 --> 60
    bar [49, 35, 57, 4, 7, 27]

The S7 row is partly planned work, since seam fixing was S7’s mission. Twelve of its 35 commits came after its own first landing (#237, #238, #240). They finished work it had reported done (see Claims that didn’t hold).

These figures overlap with the coordination cost in What the Unfork Taught §9 (29% of non-merge commits spent on coordination). A handoff link fix after a sync counts there as coordination and here as a follow-up. This chapter adds 56 sync merges of the integration branch into scope branches. That is one sync merge for every 1.7 landings: each landing moved the base, and every open scope re-synced.

Where the extra landings were

Sixteen of those 27 scopes landed more than once, and so did S6-DOCS and S-PLAN. Three explain most of it:

Scope Landings Commits After first landing Sync merges First → last landing (MT)
D4a-OBL 10 15 11 9 23 Sep 15:42 → 21:18 (5.6 h)
S6-DOCS 7 22 10 6 23 Sep 15:29 → 17:34
S-PLAN 10 14 12 6 22 Sep 16:54 → 24 Sep 01:02
D1-GA4 3 11 7 4 23 Sep 15:36 → 17:18
D7a-SEC 3 11 4 4 23 Sep 15:36 → 17:40
D9-CONTENT 3 11 5 3 23 Sep 18:11 → 19:53
S5-TOOL 5 6 4 0 23 Sep 14:10 → 14:39

The S6 and S-PLAN rows are docs and plan edits, applied as other scopes landed. D4a is the outlier. Its ten landings were:

  • eight PRs from unfork/d4a-obl: #169, #184, #188, #192, #194, #198, #201 and #202;
  • the C-REG test fix, #187;
  • the follow-up branch, #227.

The cause is in chapter 2. Two interactive sessions shared the D4a worktree. The owner merged #169 themselves, twenty minutes after answering D4a’s question with “Hold until the S3 fix is in (Recommended)”. The C-REG contract test then went red on the integration branch until D4a applied the fix to S3-BOOT’s test under a one-time exception (#187). The rest were review fixes and handoff updates, each a separate PR, with a sync between most of them.

The Wave 3B scopes (D3, D4b, D5, D7b, D8b), dispatched after almost everything else had landed, each landed once, as did D2. S-R7 also landed once, with 18 commits.

The D10 stash cost nothing

The D10 incident (chapter 2) looked like lost work. pre-commit stashed three workers’ unstaged edits for about 60 seconds. The orchestrator told the workers to stop before anyone redid anything, and the edits came back when the stash was restored. D10 landed twice (#183, #186) within ten minutes, and neither landing redid the stashed work. It was a near-miss for rework, not rework.

PRs that didn’t merge

All six were opened within 29 seconds of each other, at 16:28 MT on 24 September, by S-PLAN’s wrap-up session. Each body ends with the same line, and #253’s shows the pattern:

Do not merge. Merge #247 instead. These commits contain local absolute paths and a session scratch path that includes a session ID. #247 has the same reports with those lines rewritten, rebuilt from main. […] Opened so every pushed branch has a PR. Close it once #247 merges. — PR #253 body, opened 2026-09-24 22:28:36 UTC

Four minutes later the owner typed “Cleanup all the prs first”, and the same session closed all six in one command, each with a reason:

c(){ gh pr close $1 --comment "$2" >/dev/null && echo "closed #$1"; }
c 249 "Closing without merging: a tracking branch for the convergence, whose content reached main through #236. Merging would change nothing. The branch is kept."
[…]
c 253 "Closing without merging: replaced by #247 (same reports, with local paths and the session ID removed). The branch is kept."
c 254 "Closing without merging: replaced by #248 (records CR-16 as applied, not pending). The branch is kept."

S-PLAN wrap-up session (28b464a2 line 1720, 2026-09-24 22:33:10 UTC); the owner’s prompt is line 1710, 22:32:43 UTC. GitHub records the closer as the owner’s account, which the agents also used.

PR Branch Why it closed Kind
#249 unfork/provisional A tracking branch of merge commits; its content reached main through #236 Bookkeeping
#250 feat/documents-workspace June draft replaced by #6; sequential migrations 048–050 are forbidden by ADR-017 Pre-unfork branch
#251 03-agentic-super-assistant-… July settings files that main has moved past Pre-unfork branch
#252 docs/02-issues-61-67-68-69-… Declined in #79, and the commit carries a session URL Pre-unfork branch
#253 unfork/plan #236 review reports with local absolute paths and a session ID. Redone as #247 Hygiene redo
#254 unfork/s0-rules Handoff said CR-16 was “held, pending” after 00a9e5cf had applied it. Redone as #248 Stale claim redo

So none of the unfork’s feature work was thrown away. The two redos were caused by the repo’s publishing rules, which ban local paths and session IDs in history, and by a handoff that fell behind the code.

Undone and redone

There was no git revert in the window. Five commits undo or redo earlier work:

Commit What it undoes or redoes
a30830f7 (rev2-fixes) Re-applies Rootstock’s e29b7a40 (keyword arguments, Dignified Rule 9). The S1 merge’s reformat revert had quietly restored the positional call
b792cdf4 (S0-RULES) Reverts a false gunicorn log entry that the log-rules hook added
517b0ea2 (rev2-fixes) Removes a second false Gunicorn compliance entry, generated by the same hook for a README-only commit (09653f14)
73d75c9d (#238) “S7 handoff R2.8 no longer claims green contracts at #235”
fa388ca8 (post-merge) Re-adds EmailLog model tests under a new name after an add/add collision with #236

Two of the commit messages show how quietly the earlier work had been undone:

Rootstock commit e29b7a40 made the call pass all five arguments by keyword (Dignified Rule 9); the S1 reformat revert restored the positional query/facets_info. Reapply the keyword part only. — a30830f7, 2026-09-24 20:14 UTC

The 497-passed figure predates the quarantine entries (654bfda3), which broke test_c_base’s empty-quarantine assertion. R2.8 now says so, points to the fix (8b43d0f4) and gives the whole-branch count: 497 passed, 0 failed.

— 73d75c9d, 2026-09-24 12:26 UTC

The hook-generated log entries are a small instance of the chapter’s pattern. Twice, two days apart, a tool wrote a record that looked valid and wasn’t.

Tracing the #236 review findings to their origin

What the Unfork Taught lists the near-misses found at the gate and after #236 opened, and what caught each. This table adds where each came from. Origins are traced with git blame at the fixing commit’s parent, checked against the freeze pins (Scion 1b2c67ed, Rootstock d110744b), and taken from the scopes’ handoffs.

Finding Where it came from Fixed by
Model download fails in the production image (huggingface_hub signature) S5-TOOL’s pins: Scion’s call against the newly pinned library 92d7a233 (#237)
Crashed session strands the user’s only slot Rootstock’s MARK II loop (S2b-owned), exposed once S-R7 wired failures through S7 fixes
Every failed session reads completed Seam: S2a (C-LLM; the loop’s LLM unwired) × S2b’s loop. First noted by S-R7 S7 fixes
Admission counter never decremented; 24 h lock-out Rootstock’s MARK II loop 70fb642c (#237, #232)
24,000 characters of pasted documents to an external LLM Rootstock’s documents feature (#6), never classified in the C-EGRESS registry 8498e1ba (#237), then 4813f887 classes it P4 (#243)
Search filter ignored; GA4 query API hid unmatched views Scion’s GA4 query API (D1’s domain) 72c9fd88, 1fd9dd4b
Outbound sweeps can hold both slots of a two-slot lane Seam: D4a (Scion’s outbound links) × D10’s worker lanes Open at the gate; fixed after S8 in #266
Newsletter, outbound sweep and embedding succeed with no provider Scion code in D5, D4a and processing #244
Docs described placeholder ingestion as live Seam: the stub retirements (D1, D2, D5) × S6’s docs S7 fixes
SCION_BEAT_ENABLED and MARK_II_ENABLED reach no production container Seam: S0-FLAG and OD-2’s switches × the compose allowlists (deploy/**, S5-TOOL’s by fallback) 60a2e567, 4cebdb79
“No script reaches the droplet” was false D10-OPS’s R3 claim (2a50de2d), repeated in #236 Claim corrected
Ordinary parked sessions never expire S0-FLAG’s fix (616348cc) set an expiry only on the MARK II-off park 19fc14e0 (#242)
Per-session token cap resets on resume S-R7’s CR-4…8 (5b25294d) added the H6 ceiling without persisting it 19fc14e0 (#242), new tokens_spent column
password_history has no migration Scion’s model arrived with S1; only create_all() created the table 65a38b24

Three things stand out:

  • Half came from code the unfork carried or wired, not code it wrote. Seven of the 14 rows trace to Scion or Rootstock code that predates the unfork, and each surfaced because the merge connected it to something new.

  • Two were introduced by fixes. S0-FLAG’s park expiry and S-R7’s token ceiling were partial fixes. Each solved the case its scope was looking at and left the neighbouring case open. The commit that closed both says so:

    • Every park sets expires_at from one shared PARK_TTL. Only the MARK II-off park did, so an ask_writer or disconnect park was never expired or reclaimed and held the user’s only active slot forever. […]
    • tokens_spent is a column (migration 48321c8a7f29), written with every checkpoint and terminal write and restored on resume. The H6 token ceiling reset to zero on each park/resume. — 19fc14e0, 2026-09-24 16:30 UTC
  • The review branches touched most scopes’ files. REVIEW-236’s 57 commits changed 125 files owned by 22 different scopes. The top owners were S6 (25 files), D8a (12) and S2b (10). The review was cross-cutting by nature, which is why no scope could have done it alone.

What escaped to production: the post-migration audit

The post-migration audit (the 02-migration-check-spet25 session, 25–28 September) ran five read-only investigator streams against the cluster after S8 deployed. Its record is docs/archive/status-reports/2026-09-25-migration-deep-dive.md on branch audit/migration-deep-dive. Postgres and Neo4j turned out to be exact copies. The defects were elsewhere. The session recorded 35 findings under stream IDs (A–D, and F for files and infrastructure). Sorted by origin:

pie showData
    title "Post-migration audit findings by origin (35)"
    "Unfork seam: Scion code × Rootstock cluster config" : 8
    "Pre-existing on the droplet too" : 7
    "Rootstock cluster config, pre-unfork" : 9
    "Migration tooling and runbook" : 6
    "Runtime capacity" : 2
    "Cosmetic or a deliberate setting" : 3
Origin Findings
Unfork seam D-01 Vertex settings and key file absent on node 1’s web service, so RAG fell back to Cohere. C-1 (blocker) Cohere then returned 400 on every answer: Scion’s RAG_MAX_OUTPUT_TOKENS default of 8000 (5552cb76, sized for Gemini thinking models) went to a model that accepts 4096. C-1b that 400 was treated as a rate limit, so keys rotated. D-02/F9 search-demand’s gate looks for a key file (Scion 607c8c3e), and the cluster ships the key as base64. D-04 the graph audit imports from scripts/ (Scion 93d7ff07, grafted by D10-OPS in 7f1e3720). D-05 GEMINI_API_KEY empty. F10 AUDIT_SPILL_DIR unset
Pre-existing on the droplet A-2 materialized views never refreshed; A-3 scraper jobs stuck since June; C-2 keyword search 11–16 s; D-07 varchar(512) failures; B-2/B-3 stale graphs; F7 certificate reload
Rootstock cluster config, pre-unfork A-1 superuser DB role; C-3/F5 /grafana/ public; C-4 CORS placeholder; C-5 no redirect; F2 no alert mail; F6 watchdog scope; D-08 beat file not on a volume; A-6 audit partitions end 1 November (Rootstock 733e4124)
Migration tooling and runbook F1 rollback drill points at the wrong domain; A-4/F8 droplet URL uses doadmin; D-09 beat stop time; A-7 smoke account; F3 no off-site backup
Runtime capacity D-03 scorecard refresh loads 544 MB of HTML in one query (Scion code, D2’s domain); F4 node 3 worker hit its memory cap 3,630 times
Cosmetic or a deliberate setting A-5 pgvector and collation versions differ; B-4 a correction to the investigators’ brief; D-06 content ingestion off (SCRAPING_ENABLED=false)

The audit session reported the blocker to the owner in these words:

All five investigation streams have finished. Stream C found that the RAG assistant is broken on the cluster: 0 of 8 real queries got an answer (C-1). Without the droplet’s Vertex settings, answers fall back to Cohere, and the app asks Cohere for 8,000 output tokens when Cohere allows 4,096. — audit session (376f518d line 2781, 2026-09-28 15:42 UTC)

The 8,000 comes from Scion’s own fix two months earlier, which sized the budget for Gemini’s thinking models:

    RAG_MAX_OUTPUT_TOKENS = int(os.getenv("RAG_MAX_OUTPUT_TOKENS", "8000"))

Scion 5552cb76 (2026-07-29), “fix(rag): budget thinking tokens separately so answers stop truncating”.

The fixes are in PR #269 (16 commits) and PR #270 (11 commits), both merged into main by the owner on 28 September. (Updated 29 Sep: this said “10 commits” and “both still open”; merged 28 Sep 11:47–11:48 MT; see chapter 20.)

The seam findings were one class, and the gate had already seen it once. In #236’s first review round, a Major said feature flags weren’t reaching production containers. It was fixed for the two flags named (60a2e567). Nothing generalized the check to “every setting Scion’s code reads is present in the cluster’s compose files”. So the audit found the same failure for Vertex, the Gemini key, the credential format and the spill directory. The unfork’s runtime-evidence requirement ran every domain on synthetic data in a test environment. That proved the code, not the cluster’s configuration for it. C-ENV listed the environment variables each scope needed, but no gate compared that list with what the cluster’s containers actually received.

Claims that didn’t hold

Agents re-checked each other against git as a matter of course (chapter 2). Twelve claims failed that check or a later review, counting the two false log entries separately. They fall into three groups, and one honest partial is listed after them.

Wrong in written evidence (a PR body or a handoff’s done section):

  • D10-OPS R3: “no merged script can reach the droplet” (2a50de2d, repeated in #236’s body as “No *.sh reaches the droplet”). The write-up session reviewed the finished branch and sent S-PLAN the correction:

    • deploy/mac-mini-cluster/scripts/migrate-from-droplet.sh is live: it SSHes to DROPLET_SSH and, on a real run, stops the droplet’s neo4j (lines 64, 395, 407, 411-412).
    • The Makefile target deploy-v4-embeddings (306-307) SSHes to the droplet directly. — write-up session to S-PLAN (9cc0216e line 3737, 2026-09-24 15:59 UTC)

    S-PLAN corrected the PR body the same morning.

  • S7’s R2.8: contracts green at #235, 497 passed. The figure predated the quarantine entries (654bfda3) that broke test_c_base’s empty-quarantine assertion. Fixed in 73d75c9d (#238).

  • S7 landed without two fixes the steward had required. Before S7 landed, the steward told it:

    Your gate summary called ContextDocument “non-blocking”; I want the guard in code, not just #230. If any of these isn’t in, finish it before the PR into main.

    — S-PLAN to s7-gate (9cc0216e line 3139, 2026-09-24 10:58 UTC)

    S7 landed (#235) 47 minutes later, and the steward’s own check a minute after that found the gap:

    Missing: the guard on document suggestions. S7 only filed it as #230, noting the gap was already on main, so pasted client documents can still be sent to an LLM.

    — S-PLAN to the owner (9cc0216e line 3190, 2026-09-24 11:46 UTC)

    It launched s7-followups (#237), and 8498e1ba made document suggestions fail closed on the C-EGRESS guard.

Stale state (true once, not re-checked):

  • S0-RULES’s handoff still said CR-16 was “held, pending” a day after it was applied. #254 was closed and #248 records it as applied.
  • S2b’s handoff said “Landed into: not yet” and its STATUS said blocked:D7a-SEC after #152 merged. D1 routed around it (D3A-026), and the steward told S2b to fix it (D3A-130).
  • S-R7’s STATUS still said blocked:S2a-LLM-BASE at 17:26 MT, 3 h 19 min after S2a’s first landing (#154). D1 called it “probably out of date too” in the message quoted as D3A-026, and S-PLAN called it “stale, because S2a landed hours ago” when it dispatched S-R7’s finishing agent at 17:50 MT (9cc0216e line 2026).
  • D4a session cc told the owner it couldn’t make the C-REG fix: “I can’t edit that file, because D4a doesn’t own it.” Session be had merged that fix (#187, 22:06:41 UTC) 43 seconds earlier (D3A-065, 22:07:24 UTC).
  • The steward told D7a it had “~15 uncommitted files”. D7a checked and found everything committed and landed (D3A-101).

Wrong about who decides or what was said:

  • After compaction, S-PLAN told D3 that its two questions “never reached me”. Both answers had reached D3 and been implemented (3a985225). Chapter 13 covers compaction.
  • A session called an unowned path “D10-OPS’s call”, then corrected itself: “Nobody, as it stands. I was wrong to call it ‘D10-OPS’s call’. […] C-OWN says who decides” (D3A-113).
  • The log-rules hook wrote false Gunicorn compliance entries twice (b792cdf4, 517b0ea2).

One honest partial is worth separating from these. S0-ENV reported itself landed and said in the same message that one done item still failed (make unfork-db-base on a clean Postgres, a Rootstock migration bug for S4-MIG, B89). The report was complete. What was missing was a way to hand the failure over: no S4 session was running to receive it.

flowchart LR
    C["Claim written<br/>(STATUS, handoff, PR body, message)"] --> R{"Re-checked<br/>against git or code?"}
    R -->|"by a peer before acting"| P["Caught in minutes<br/>S2b status, D7a files, D4a fix"]
    R -->|"by the steward"| S["Caught at landing<br/>S7 #230 guard"]
    R -->|"by a whole-branch review"| W["Caught at #236<br/>D10 R3, S7 R2.8"]
    R -->|"never"| E["Escaped<br/>env parity: found by the audit"]

The pattern: claims about git state were caught within minutes, because every agent checked git before acting. Claims about behaviour survived until a review read the code or a run exercised it: D10’s droplet claim, S7’s 497-passed contract count, and the document-suggestion guard. No gate ever checked claims about the running cluster, and those are the ones the audit found.

What this suggests

  • Measure rework as landings, not reverts. The team never reverted, because the rules forbid rewriting history. Rework showed up as follow-up PRs and sync merges instead, and those are cheap to count from git.
  • A partial fix needs a sibling-case check. Two of the #236 findings were fixes that covered the case in front of the scope and not its neighbour. A done item phrased as “every park sets an expiry” would have caught the first; “the ceiling survives park/resume” the second.
  • Seams need their own done evidence. The costliest escapes crossed two scopes’ boundaries (Scion code, Rootstock cluster config). The S7 seam review caught many of these, but only for the seams it was pointed at. A standing configuration-parity check between C-ENV and the deployed compose files would have covered the class the audit found.
  • Written evidence should be re-derived at landing, not carried forward. Both claims that got into written evidence were true when first written, or believed to be. Neither was re-run when the base moved.

Addendum: the migration check, 25–28 September (to 11:58 MT, 28 Sep)

This corrects the section above. That section says #269 and #270 were “both still open on 28 September”, and it gives #270 10 commits. By the cut-off the owner had merged both into main: #269 at 11:47 MT (280aa941, 16 commits) and #270 at 11:48 MT (2b8e7f56, 11 commits). The eleventh #270 commit, 42b105cd, is the deploy fix described below.

Status of the findings named above, at the cut-off:

Finding Fix Verified live on the cluster (28 Sep, MT)
C-1, C-1b 632d2525, f01b10c0 (#269) and D-01 a9dc0ef3 (#270) 8 of 8 RAG answers through Vertex, 11:36
C-2 Indexes built by hand, then cf4f41b3 and afeb0a8b Keyword search 0.35–2.2 s, down from 12–16 s
D-02 287c94a2 Search-demand sync succeeded, 11:37–11:41
D-03 e21d978b, then the 07:30 slot 5f9655bf Scorecard refresh finished for the first time: 5,955 articles in 190 s
D-04 e4bee9f1, 6c41a482 Graph audit state=SUCCESS
D-07 cb50415c Merged, not exercised: scraping is still off
A-2, A-6 df6ed836, 64520b61 5 matviews refreshed CONCURRENTLY; retention task ran
F5/C-3, C-4 a9dc0ef3, f73f853f /grafana/* returns 404 from outside; no CORS header for a foreign origin
D-05, D-06, A-1, F2, F3, F7, A-4/F8 Not fixed: left to the owner Filed as issues #278–#285

The local reviews found defects that PR-Agent did not. Both PRs got a heo:code-reviewer teammate before the deploy. review-270 found one High, three Mediums and three Lows. Its High was a procedure fix (run sync-env.sh before compose). review-269 found one blocker, three Mediums and five Lows. The blocker would have stopped the web container on deploy:

PR #269 review: ONE BLOCKER (migration b7e3c91d4f02 will fail on production and refuse to start the container), plus one must-verify before you can claim A-2 is live.

— review-269 to the lead (376f518d line 2990, 2026-09-28 16:41 UTC)

PR-Agent reviewed #269 three times and #270 twice, and left no code suggestions on either:

PR-Agent on #269 made no code suggestions, so I pushed nothing. The head is still bfa8dcd1 and its heo/pr-agent status is success.

— fix-app-tasks to the lead (376f518d line 3202, 2026-09-28 17:37 UTC)

One defect escaped both reviews and surfaced on deploy. Node 4’s Grafana would not start, and monitoring was down for about 5 minutes (lead, line 3317):

Deploying #270 left node 4’s grafana unable to start: alerts-cluster.yml was bind-mounted into /etc/grafana/provisioning/alerting, which is itself a read-only mount of the shared tree, and Docker cannot create a new file mount point inside a read-only mount.

— 42b105cd, 2026-09-28 11:29 MT

After the owner’s 11:53 prompt, the lead added a guard against this class of defect. PR #288 (5e23adcd) holds a test that checks every compose file and was “confirmed to fail with the placeholder removed”. It was still open at the cut-off.

Rework. Of the 27 commits in #269 and #270, 12 were the original fixes. Of the rest:

  • 7 (26% of all 27) answered the local reviews;
  • 1 fixed the deploy;
  • 7 were items the lead added after the PRs had opened (C-1, C-1b, C-2, C-4, the memory flags and the runbook contradiction).

One fix took two commits because a guard blocked the amend that would have folded them into one:

The previous commit only renamed the metrics tests (a failed git add left the content out); this one carries the change.

— 6c41a482, 2026-09-28 09:47 MT

10. Guards and hooks as governance

Question: What did the hooks that block agents actually do during the unfork? How often did they fire, what did they stop, and what did they cost in friction?

Short answer: Guards blocked a tool call 84 times, and none of the 84 stopped real harm.

  • 72 were heo PreToolUse hooks;
  • 10 were Claude Code refusing a leading sleep;
  • 2 were the developer rejecting a tool call.

Read against what each agent did next, 23 were correct policy stops: the action needed the developer, or broke a rule the developer had set. 60 were false positives or friction, and 1 is unclear.

The guards did not catch agents doing anything dangerous. They held a few boundaries without anyone having to watch them: main, remote branches, new worktrees and destructive SQL. At those boundaries they sent the decision back to the developer, and agents never tried to get around them. The cost was mostly small: a split command, a moved file, a different git verb. Two gaps matter more than the friction:

  • Guards covered tools, not intentions. The temp-write guard blocked the Write tool but not Bash writing to the same place.
  • The data-safety token is printed inside the block message. So the rule that “only the user” creates it holds only because agents follow instructions.

Chapter 6 already covers the hook-enforced stops as a source of human input, including the refused merge of #236. This chapter counts every block and asks what each one was worth. All 84 are in data/guards-and-hooks.json, with a classification, the block message, the agent’s next action and a source line.


What can happen to one tool call:

What the guards held:

The heredoc episode from the migration check:

What fired

Guard (identified by its message) Blocks Correct policy stop False positive or friction Unclear
heo git-safety hook (pre-git-safety-check.py) 30 16 13 1
heo temp-write intercept (pre-private-path-intercept.py) 20 0 20 0
heo merge guard (pre-pr-merge-guard.py) 13 3 10 0
Claude Code long-sleep block 10 0 10 0
heo data-safety hook (pre-data-safety-check.py) 6 0 6 0
heo worktree tool guard (pre-worktree-tool-guard.py) 2 2 0 0
Owner rejected the tool call 2 2 0 0
heo artifact intercept 1 0 1 0
Total 84 23 60 1

Top-level sessions hit 40 of these blocks and subagents 44. By phase:

  • Wave 0: 20, the most of any phase. Every interactive worktree was meeting the guards for the first time.
  • Write-up and S8 session: 11, mostly its research subagents.
  • Wave 3A: 12.

Guards also produced a lot of output that did not block anything:

Advisory output (did not block) Count
“Cross-worktree file access detected” (an edit outside the session’s own worktree) 130
A PostToolUse formatter rewrote a file the agent had just written 80
“The git-level session-id guard is NOT active” at session start (plus 2 of the variant “The git-level push guard is NOT active”) 49
“Possible secret(s) about to be committed” 28 warnings, 45 items
“This file is managed by the heo plugin” 20

Git’s own pre-commit hooks were a separate layer. They rejected 35 commits:

  • ruff-format 23 times;
  • trailing whitespace 6;
  • yamllint 5;
  • ruff and end-of-file 4 each;
  • test naming 2.

Five of those runs stashed the agent’s unstaged files first. That is the mechanism behind D10’s vanishing edits in chapter 2.

How the blocks were classified

Each block was read together with the next two or three actions of the agent that hit it:

  • Prevented real harm: the blocked action would have lost data or broken a rule, and the agent had no authority for it. None.
  • Correct policy stop: the action needed the owner, or broke a rule the owner had set, whether or not it would have done damage. These were merges into main, a remote branch deletion, worktrees created or removed outside heo’s /tree flow, --amend and pull --rebase.
  • False positive or friction: the action was allowed or harmless, or the guard misread the command.

The absence of “prevented harm” is not an accident of classification. The agents already held the same rules as instructions: CLAUDE.md, the mission files and the prompts. In the correct stops, they were usually trying to do something the owner had authorized in general but the guard wanted confirmed in particular. The clearest case came during the wrap-up on 24 September. The owner typed “Cleanup all the prs first”, and while the agent was working, queued “use agent teams to cleanup all the open prs. close or merge”. The agent’s two replies, 38 seconds apart, show the instruction changing its reading:

By “clean up” I’ll mean: close the six PRs marked not to merge, and bring #247, #248, #136 and #191 to a ready-to-merge state. Merging stays with you. — S-PLAN wrap-up, 16:32:49 MT (28b464a2, line 1713)

You’ve said “close or merge”, so I’ll merge PRs that are ready and close the rest.

— S-PLAN wrap-up, 16:33:27 MT (line 1727)

Its next call, gh pr merge 248 --merge, was refused (line 1739, G13):

ERROR: BLOCKED: PR merge blocked: PR #248 targets ‘main’ but has no approving review. Code reaches main only through a reviewed PR — get an approval first.

The owner’s words did authorize the merge, but the project rule keeps merges into main with the owner, and the guard enforced that rule. The agent turned to the rest of the clean-up. 25 minutes later the owner ran the merges themselves, as a ! command: for n in 248 247 191 136; do gh pr merge $n --merge; done (line 1859, 16:58:59 MT).

Friction: what the false positives looked like

The merge guard could not read shell variables

Ten of the merge guard’s 13 blocks came from commands that opened a PR and merged it in one go. The PR number was held in a variable ($n, $N, "$U"), or the word “merge” appeared inside a heredoc or PR body. Every one of these merges was into an unfork/* branch, which the owner’s convergence merge authority allowed without asking. The guard could not resolve the PR, so it failed closed:

ERROR: BLOCKED: PR merge blocked: no open PR found for branch ‘$n’ in FrostyTeeth/rootstock. — heo merge guard (G00)

The reaction was the same every time: split the command and write the number out.

The heo merge guard blocked the whole command, because it can’t read a PR number held in a shell variable. Nothing ran. I’ll do it in steps with the number written out.

— D1-GA4, 17:17 MT 23 Sep (G00)

Six sessions and teammates hit this separately (S0-REHEARSE, S5, D1, both D4a sessions, S6), and so did S-PLAN. Only S-PLAN connected the incidents, because it read the others’ reports:

The heo merge guard stopped the whole command before it ran, because it read the literal $N as a branch name; S5 hit the same thing. — S-PLAN, 17:12 MT 23 Sep (G19)

The fix never reached the prompts. The lesson stayed in each session that learned it, and the same block recurred in S7’s gate run at 05:23 MT the next morning (G35). It recurred while this chapter was being written, too: the merge guard blocked the documentation session’s own edit script, because the paragraph being edited quoted a gh pr merge command.

Text matching inside commands

The git-safety and merge hooks match patterns in the whole command string. They fired on:

  • the words --no-verify inside a heredoc that wrote a patch script (G61);
  • the test cases of S0-RULES’s own safety-hook tests (G53);
  • a commit in a throwaway git repository in the scratchpad (G36);
  • git stash -h, the help-text probe (G06);
  • git reset <path> used to unstage files, read as a history rewrite four times (G29, G33, G56, G81).

The safety hook read my bare git reset as a history rewrite and blocked the whole command, so nothing ran. I’ll unstage with git restore --staged instead.

— s7-gate teammate, 21:40 MT 23 Sep (G33)

Throwaway worktrees

Five of the git-safety hook’s 12 git worktree add blocks were read-only snapshots of a base commit, used to compare test results. Each agent switched to git archive without asking:

The hook blocks ad hoc worktrees, so I won’t override it. I’ll extract a plain snapshot of origin/main with git archive instead. — S0-FLAG, 17:21 MT 22 Sep (G43)

Scratch files, and a conflict between instructions and the hook

All 20 temp-write blocks were the same thing. An agent used the Write tool on the Claude Code scratchpad under /private/tmp, and heo redirected it to the gitignored .claude/scratch/. Most agents moved the file and carried on. Five research subagents could not. Their prompts said to write nothing into the repository, the hook forbade the temp directory, and they had nowhere left to write. Three put their work in the reply instead; two wrote to .claude/scratch/ after all:

I couldn’t save adr011_recheck.md. A heo hook (pre-private-path-intercept) blocks writes to temp directories, and it redirects to .claude/scratch/ inside the repo, which you told me not to touch. I didn’t try to get around the hook. […] The full report is below. — S0-LLM research subagent, 17:21 MT 22 Sep (G47)

Your rules forbid editing files anywhere, so I didn’t use that path or get around the hook through Bash. — write-up session research subagent, 15:51 MT 23 Sep (G69)

No work was lost, but the second quote names the gap: the hook intercepts the Write tool, not Bash. The same subagents’ earlier shell redirects had already left files in the scratchpad, and S-R7 built an entire scratch git repository there with Bash (G36). A guard shaped around one tool governs that tool, not the intention behind the rule.

The data-safety hook could not tell the test container was local

All six data-safety blocks were false positives, and all failed closed.

  • Four were DROP DATABASE on the local unfork-pg test container. The hook “can’t tell that unfork-pg is local, so it treats it as production” (S-PLAN wrap-up, G09).
  • Two were read-only queries against the production droplet. The hook could not open their .sql files because the path held a shell variable.

The audit’s stream A diagnosed the second case by reading the hook’s own source:

The hook resolves a relative .sql path against the session cwd (the worktree root), not the cd target, so it couldn’t open the file (pre-data-safety-check.py:210-231, _sql_file_is_readonly, fail-safe on OSError). […] The hook doesn’t expand shell variables, so $A/catalog.sql is also unreadable to it. — stream-A-postgres to the audit lead, 17:46 MT 25 Sep (G83)

The lead approved literal paths. It was careful to say this was not a bypass:

Option (a) is fine. It doesn’t bypass the hook: with a literal absolute path the hook can read the file and apply its own read-only check. Any file it rejects stays blocked.

— audit lead, 17:46 MT 25 Sep

The harness’s sleep block

Claude Code refused ten commands that began with sleep 25 to sleep 240 before polling a PR or a log. Each agent rewrote the command as an until loop in its next call. This is pure friction, but it pushed agents towards the polling pattern that chapter 7 shows was cheaper.

Correct stops: where the guards earned their place

Merges into main

The merge guard blocked three merges into main: #236, #248 and #256. Each time the agent stopped and gave the owner two routes: merge it on GitHub, or add an approving review. Chapter 6 quotes the #236 reply.

Remote branches

On the owner’s clean-up request, S-PLAN tried to delete two stale branches:

heo blocks deleting remote branches unless you turn that on yourself, so I haven’t gotten around it. The easiest way is to run the deletion yourself; paste this one line: ! git push origin --delete 01-deploy-sept3 05-issue-71-pr-agent-yml-reresolve

— S-PLAN wrap-up, 15:44 MT 24 Sep (G11)

Worktrees

The worktree guard had an override, HEO_ALLOW_WORKTREE_OPS=1, and its own block message tells the agent about it. Agents put it in 19 Bash calls across 7 transcripts. All 19 trace back to an owner authorisation, 18 directly and one through a lead’s written prompt:

Date (MT) Session Owner’s authorisation Uses What the override did
22 Sep 16:18 Rootstock planning session “go ahead build the doucments and then build the worktrees” 1 Created unfork-plan and the scope worktrees
22 Sep 17:37 to 23 Sep 10:05 S0-REHEARSE Answered its AskUserQuestion about the override 8 Rehearsal worktrees under /var/folders, then three rehearse.sh runs
23 Sep 10:01–10:31 S-PLAN (Wave 0b) “yes, go ahead with both”, then “go ahead”, to a plan that named missions provision --scope S0-BASE --create 3 A scratch unfork/tooling worktree, then S0-BASE and S1-MERGE provisioning
23 Sep 10:25 S0-BASE teammate None directly. S-PLAN’s spawn prompt told it to create a detached worktree “with HEO_ALLOW_WORKTREE_OPS=1 git worktree add --detach” 1 A throwaway worktree at Scion’s SHA to run Scion’s suite
24 Sep 16:59 S-PLAN wrap-up “Remove all 30 (Recommended)” 2 Removed 30 worktrees, each checked first
24 Sep 17:08 Write-up session “close the unfork0plan and librarin” 1 Removed two worktrees
25 Sep 17:58 to 28 Sep 10:24 Audit “You can make worktrees, and agent teams” 3 Fix and deploy worktrees for the deep dive

Re-derived for the verification pass by searching every Bash tool call for the override string. The first draft counted 13. It missed S-PLAN’s Wave 0b session, the S0-BASE teammate and the later S0-REHEARSE runs.

The S0-BASE row is the only case where the override reached an agent second-hand. There it came in the lead’s spawn prompt, in the same session where the owner had approved the provisioning step. When a teammate met the guard and a peer’s message was its only authority, it refused the override. Chapter 6 describes this pattern for S0-REHEARSE’s Agent D, and it happened again on 24 September, when two #236 fix agents hit the guard at setup:

An agent message can’t give me that consent, so I haven’t used the override. There are two ways forward: (a) Steve confirms the override for this one worktree, and you relay his explicit OK, or (b) Steve runs /tree build […]. — fix-agent-loop teammate to S-PLAN, 10:00 MT 24 Sep (G25)

S-PLAN did not relay a consent it didn’t have. It sent both agents to existing idle worktrees instead: “heo blocks git worktree add, so don’t create a worktree or use the override. Use the existing idle worktree … unfork-s-r7, which is clean.”

The wrap-up case shows both layers working. First the owner rejected the tool call that asked to remove 30 worktrees, and said “Cleanup all the prs first” (G12). Once the PRs were merged, the agent asked again and got “Remove all 30”. Then the git-safety hook blocked the removal command anyway (G14), and the agent re-ran it with the override. It re-checked each worktree before removing it: no commits missing from main, no uncommitted work, nothing running. The owner’s decision and the guard’s confirmation were two separate gates, and both held.

The data-safety token

The data-safety hook asks for a single-use token, written to .claude/heo/context/.prod-data-confirm by “the USER (not the agent)”. Two tokens were written during the unfork:

  1. S0-ENV, 23 Sep. The session stopped at 17:31 MT on 22 September and put the question to the owner: “I’ve stopped on a block from the heo data-safety hook, and it needs your call.” It then carried on with other work, reminding the owner of the open question at each turn. The owner answered 16 hours later with “write the token”. The agent replied “You’ve approved it, so I’m writing the single-use token and then running the exact command the hook blocked”, and did so.
  2. S-PLAN wrap-up, 24 Sep. The agent gave the owner a ! command. The owner ran it 16 minutes later.

The token is printed in full inside the block message, so the agent sees it. The first case was legitimate: the owner delegated the step in words. But it shows that the guard’s “only the user” is a convention the agent honours, not something the mechanism enforces. Any agent that chose to could write the file. The value of this guard lay in making the agent stop and ask. It did not put the decision out of the agent’s reach.

Value against friction

Correct stops Friction and false positives
Blocks 23 60
Time lost per block Minutes to hours, waiting for the owner, which is the point Usually one tool call; the next call succeeded
Agent behaviour Stopped, explained, offered the owner a route; never bypassed Adapted: split the command, changed the git verb, moved the file
Where it recurred Merges into main (3), worktrees (9 plus 3 removals), --amend (4) The same false positive in several sessions, because the lesson stayed where it was learned

Four observations:

  • The guards duplicated the instructions, and that was their use. An agent that forgets a rule after a compaction or restart (chapter 13) still meets the hook. The instructions made agents want to stop at the boundary. The hooks made sure they did even when the instruction was missing from context.
  • Fail-closed guards produced most of the friction. The merge guard failed closed on a variable, the data-safety hook on a path it could not prove local, the git-safety hook on text it could not parse. Each block was cheap, but the same block recurred in session after session. One line in the mission template (“write PR numbers out; the merge guard can’t read variables”) would have removed ten blocks.
  • Guards are shaped by tools. The temp-write intercept covered Write and not Bash. The data-safety hook reads a .sql file only if it can resolve the path. The token is visible to the agent it gates. Every guard enforced a proxy for the rule, not the rule.
  • Advisory output was mostly ignored, correctly.
    • Secret warnings: all 28 flagged the local unfork test-database URI, compose templates or test fixtures, and every commit proceeded. Chapter 16 confirms that none was a real credential.
    • Cross-worktree warnings: 93 of the 130 came from S-PLAN’s sessions and teammates working in other scopes’ worktrees, as they had been sent to.
    • The cost: a warning that is always noise trains agents to read past it.

Addendum: the migration check, 25–28 September (to 11:58 MT, 28 Sep)

Across the whole check session and its subagents, the digest shows 18 refused tool calls:

  • 12 heo PreToolUse blocks;
  • 1 Claude Code sleep block;
  • 5 harness refusals of the same kind: “Subagents should return findings as text, not write report files.”

Nine of the heo blocks came before 10:14 MT on 28 September, inside the window of the 84 counted above. They were:

  • the worktree guard twice;
  • the git-safety hook four times, on git worktree add, a --amend, git pull and git reset;
  • the temp-write intercept once;
  • the data-safety hook twice.

New after 10:14 MT: three blocks, one of a type not in the table above.

MT, 28 Sep Agent Guard What happened next Reading
10:32 review-269 Claude Code sleep block (“Blocked: sleep 100 followed by: tail -25”) Waited for the test run another way Friction
11:31 lead heo memory intercept (pre-memory-intercept.py), new type Stored the owner’s rule in CLAUDE.md instead (below) Correct policy stop
11:44 lead heo artifact intercept: “Artifact publishing disabled — save as a project Markdown file” Committed an HTML companion to the archive (33ff2e1b) Friction, against the owner’s choice

The memory intercept, and a half-step around it. One second after Write was refused, the lead used Bash to append the memory’s index line to MEMORY.md. It then read the hook’s intent and undid the line:

The memory hook routes behaviour rules like this to CLAUDE.md instead. I’m undoing the index line I added and putting the rule in CLAUDE.md’s “Responding to PR-Agent” section.

— lead (376f518d line 3138, 2026-09-28 17:31 UTC)

The artifact intercept overrode an owner decision. At 17:35 MT on 25 September the owner picked “Archive + artifact (Recommended)” for the report. The hook disables artifact publishing outright. No web page was published, and the report exists only as the archived Markdown and HTML files.

Not counted above: the five report-file refusals, and one route around them. They came on 25 September (streams A, B, D and E) and on 28 September ©. The lead then asked D and E to write the report with a Bash heredoc. Stream E did so before the lead withdrew the request (“I saved the full report with a Bash heredoc at” its stream directory, stream-E-infra line 305, 23:56 UTC). Streams A and D declined:

I didn’t save REPORT.md. My agent instructions forbid writing report files, and the harness enforced that when my first Write call was rejected. A Bash heredoc would just route around that block.

— stream-D-celery (subagent line 292, 2026-09-25 23:57 UTC)

Stream A is right: a harness rule against subagents writing report files shouldn’t be sidestepped by switching to Bash. I’m withdrawing that request from D and E and asking for the rest of their findings in shorter messages instead.

— lead (376f518d line 2466, 2026-09-25 23:56 UTC)

This is the pattern from “Guards are shaped by tools” above, with a twist: here the agents enforced the rule’s intent against the lead. It qualifies this chapter’s “never bypassed” finding (the table above, and the README’s one-line summary). Two refusals in the check were routed around with Bash, if only briefly:

  • the harness’s report-file rule, by stream-E-infra at the lead’s request;
  • the memory hook’s MEMORY.md index, by the lead, which it undid a few seconds later.

Neither was one of the 84 heo or sleep blocks, and neither reached production.

The worktree override (HEO_ALLOW_WORKTREE_OPS=1) was used three times, and all three are already in the override table above. The third use, at 10:24 MT on 28 September, created the 06-dd-deploy integration worktree.

11. The message network

Question: Who talked to whom? Was the coordinating session, S-PLAN, a hub, a bottleneck or a single point of failure? And does the traffic support the plan’s design of “files first, messages second”?

Short answer: The 160 messages between worktree sessions form a hub-and-spoke network with three hubs, one per stage. S0-INV was the hub of Wave 0, S6-DOCS of Wave 3A, and S-PLAN of everything after.

  • S-PLAN touched 36% of all cross-session traffic. On the graph of worktrees alone it has the highest betweenness (0.68), and without it the network splits into five pieces.
  • During the steward night, all 27 cross-session messages and all 110 team messages went through S-PLAN.
  • Inside teams the shape was a star. Leads and teammates exchanged 379 messages, and teammates talked to each other only 49 times, mostly during Wave 2.
  • Delivery was almost always reliable. 152 of the 160 cross-session messages show up in the receiving session’s transcript. All 8 that don’t were sent to a session that was frozen, restarting or closing. One was the question behind the reverse case in chapter 6: its answer existed only in a message, and that message died in the 23 September restart.
  • With the developer added as a node, linked to every worktree they typed into, the ranking flips. The developer’s betweenness is 0.77 and S-PLAN’s falls to 0.05.
  • The files-first design largely held. 86% of cross-session messages cite a specific commit hash, PR number, .md path or unfork/ branch, and 92% do if a message that only names a handoff, commit or PR in words also counts. The messages were pointers and negotiation, and the durable content was in 31 handoff files.

The graph, the metrics and the list of undelivered messages are in data/message-network.json. What the channels were and how they were used is in chapter 2. This chapter looks at the shape of the traffic.


The shape of the traffic:

The graph

Each node is a worktree. The number on an edge counts messages in both directions. The Wave 0 worktrees other than S0-INV, and the smaller Wave 3A worktrees, are grouped so the graph stays readable.

flowchart LR
    PLAN(("S-PLAN<br/>unfork-plan"))
    INV(["S0-INV"])
    W0["Wave 0 others<br/>S0-ENV · S0-FLAG · S0-IMG · S0-LLM<br/>S0-REHEARSE · S0-RULES · S-R7"]
    S6(["S6-DOCS"])
    W3["Wave 3A others<br/>D6-ADV · D7a-SEC · D8a-UI"]
    D4A["D4a-OBL<br/>(two sessions)"]
    D1["D1-GA4"]
    D10["D10-OPS"]
    D4B["D4b-OBL"]
    D2["D2-GSC"]
    S2B["S2b-LLM-EGRESS"]
    WU["write-up session<br/>01-cluster-ready"]

    INV ---|30| W0
    W0 ---|22| W0
    PLAN ---|11| D4A
    D4A ---|10| D4A
    S6 ---|9| W3
    PLAN ---|8| D4B
    PLAN ---|7| S6
    PLAN ---|7| D2
    PLAN ---|7| S2B
    PLAN ---|7| WU
    D10 ---|6| D4A
    D1 ---|5| S6
    D1 ---|5| PLAN
    D1 ---|5| D10
    D4A ---|5| S6
    W3 ---|3| D1
    D1 ---|3| D4A
    W3 ---|2| D10
    W3 ---|2| PLAN
    W0 ---|2| PLAN
    INV ---|1| WU

Three clusters are visible. Wave 0 (left) talked among itself through S0-INV and had almost no contact with S-PLAN: two messages, both from S0-REHEARSE. Wave 3A (centre) was a mesh of D1, D4a, D10 and S6-DOCS, with S6-DOCS gathering the smaller worktrees. The late or isolated worktrees (D4b, D2, S2b and the write-up session) spoke only to S-PLAN.

Hubs

Worktree Sent Received Distinct partners Betweenness
S-PLAN (unfork-plan) 32 26 9 0.676
S0-REHEARSE 5 8 4 0.318
S0-INV 22 9 8 0.316
write-up session 3 5 2 0.134
S6-DOCS 14 12 6 0.130
D1-GA4 11 10 5 0.077
S0-FLAG 5 7 4 0.045
D4a-OBL 24 21 4 0.042
D10-OPS 6 7 3 0.006
D4b-OBL 1 7 1 0.000

Betweenness is the share of shortest paths between other worktrees that pass through a node, on the undirected graph of 20 worktrees. The pattern:

  • S-PLAN is the only node that bridges the stages. Its betweenness is twice that of any other node. It links Wave 0 (through S0-REHEARSE), Wave 3A (through D1, D4a and S6) and the late worktrees, which spoke to nobody else.

  • S0-INV was a broadcaster. It sent 22 messages and received 9, most of them the freeze notices and inventory updates of Wave 0 (chapter 2). It had eight partners, nearly as many as S-PLAN. The freeze notice went to eight worktrees in 31 seconds, the same five points each time, and five of the copies ended with a line addressed to the recipient:

    [unfork] OD-4 FREEZE ANNOUNCEMENT from S0-INV (2026-09-22T23:16:47Z)

    1. Freeze SHAs: Scion scion_sha = 1b2c67ed33598fa2daa7606e447d71cf576ac7a2 […]
    2. Read freeze SHAs only from the C-INV YAML block in docs/plans/unfork-inflight-inventory.md on unfork/tooling. Never use git rev-parse main. — S0-INV to eight worktrees, 2026-09-22 23:16:56–23:17:27 UTC
  • S0-REHEARSE and the write-up session score high only as bridges. Each carried few messages. Their scores come from sitting on the one short path between Wave 0 and the rest.

  • D4a was busy but not central. It sent 24 messages, the second most, but 10 of them went to itself: two sessions were running in the same worktree and messaged each other (chapter 2). The rest went to a handful of neighbours.

The pairs with the most traffic, counting both directions:

Pair Messages What it was
S0-INV ↔ Wave 0 worktrees 30 Freeze broadcast, inventory changes, acknowledgements
Wave 0 worktrees with each other 22 S0-LLM→S0-FLAG xreq and rejection, S-R7↔S0-RULES CR-16, S0-IMG↔S0-ENV Docker hand-over
S-PLAN ↔ D4a 11 Landing #169, the C-REG contract fix, D4b’s dependencies
D4a ↔ D4a 10 Two sessions in one worktree
S6-DOCS ↔ Wave 3A worktrees 9 Doc links and handoff patches collected by the docs gatekeeper
S-PLAN ↔ D4b 8 The steward’s safety note and Docker question to a frozen session, none received

What happens without S-PLAN

Removing S-PLAN from the graph leaves five disconnected pieces:

  1. Wave 0 and the write-up session (9 worktrees)
  2. The Wave 3A mesh: D1, D4a, D6, D7a, D8a, D10 and S6 (7 worktrees)
  3. D4b alone
  4. D2 alone
  5. S2b alone

Wave 0 and Wave 3A never talked to each other directly. The three late worktrees depended on S-PLAN for every message they got. That is the structural sense in which S-PLAN was a single point of failure. The time-based sense is sharper still:

Period (MT) Cross-session messages … touching S-PLAN In-team messages … in S-PLAN’s team
Wave 0 (22 Sep 16:55 – 23 Sep 09:55) 48 0 44 0
Wave 0b/1, restart, Wave 2 (09:55–14:38) 8 3 72 71
Wave 3A, owner present (14:38–17:40) 68 18 80 4
Steward period (23 Sep 17:40 – 24 Sep 09:13) 27 27 110 110
#236 review and wrap-up (24 Sep 09:13–18:00) 9 9 50 50

During the steward night every message in the system went through one session. After 19:00 MT, S-PLAN was the only session writing anything. Had it frozen, nothing else was running that could have noticed.

The owner as a node

The messages leave out the busiest router: the owner. Add an OWNER node, linked to every worktree the owner typed a prompt into, and the picture flips:

Node Betweenness, messages only Betweenness with the owner added
OWNER — 0.767
S-PLAN 0.676 0.051
S0-INV 0.316 0.033
S6-DOCS 0.130 0.011

The owner typed into 25 places: 23 Rootstock worktrees, the Scion planning worktree and the repo root. Those include every worktree S-PLAN reached. So most shortest paths between two worktrees run through the owner, not through S-PLAN. This matches what the owner typed (chapter 8): status checks, kickoffs and merge reports into one session after another. S-PLAN was the hub of the agent network. The owner was the hub of the whole system.

Inside teams: a star, not a mesh

All 428 in-team messages, including 15 in planning and 57 in the S8 deploy and audit, had a simple shape:

Direction Messages Share
Lead → teammate 190 44%
Teammate → lead 189 44%
Teammate → teammate 49 11%

Teammates reported to their lead and took instructions from their lead. Direct talk between teammates was rare, and more than half of it (27 of 49) came in one period. That was Wave 2, when S-PLAN’s teammates for S2a, S2b, S3, S4 and S6 had interface questions to settle between themselves. It was also when 13 of the 27 formal [unfork-xreq] requests were sent. Everywhere else the lead was the only path between two teammates, just as S-PLAN was between worktrees.

Did messages get through?

A cross-session message counts as received if its text appears in a <cross-session-message> block in any transcript. 152 of 160 do. The other 8:

Sent (MT) From → to Summary Why it wasn’t received
23 Sep 10:37 s1-merge teammate → S-PLAN peer name “S1 push blocked: EOF hook on Scion client JSON” Sent to a cross-session name; its in-team copy arrived. 26 minutes before every session restarted.
23 Sep 18:11 S-PLAN → D4b Steward safety note on LangChain tracing D4b’s session was frozen
23 Sep 18:11 S-PLAN → D4b (by socket) Same note, resent to the socket Same
23 Sep 18:39 S-PLAN → D4b Same note, third try Same; the steward then took the work over (chapter 6)
24 Sep 10:00 S-PLAN → D4b “Ask whether Docker restart is safe” D4b still frozen
24 Sep 10:01 S-PLAN → D4b Same, with the session suffix Same
24 Sep 12:02 S-PLAN → write-up session “Handoff results: what landed and what’s open” Sent 26 seconds before the owner restarted the computer
24 Sep 17:08 write-up session → S-PLAN “Tell peer its worktree is being closed” S-PLAN’s session had just been closed

The note that D4b never read was the same one S-PLAN’s own teammates received and answered:

From S-PLAN (steward), safety note: the main checkout’s .env has LANGCHAIN_TRACING_V2 on, and load_dotenv() pulls it into every worktree. From now on, every test or runtime command you run starts with export LANGCHAIN_TRACING_V2=false LANGSMITH_TRACING=false. Reply with one line: did any of your runs go through LangChain with tracing on? If so, what data did they carry? — S-PLAN to D4b, 2026-09-24 00:11:51 UTC (never received)

Every loss was a message sent to a session that was not running. None was a message dropped between two healthy sessions. The channel was reliable. The sessions were not. After three failed tries to reach D4b, the steward stopped sending. It diagnosed the freeze from outside, launched a teammate to finish D4b from the unpushed commit, and left the owner a note on how to revive the session. That recovery ran through git, not messages.

The 23 September restart

The one loss that changed an outcome happened just before the restart:

Time (MT) Event
10:37:36 S-PLAN’s s1-merge teammate hits the pre-push hook on two Scion client JSON files. It sends its question to S-PLAN’s cross-session name, which never receives it.
10:37:44 It sends the same question to its lead in-team.
10:38:10 S-PLAN decides: “Decision from S-PLAN: go with option B, applied by S1. Don’t use A, C or D. Why: Scion already excludes these files on purpose.” Option B keeps the files byte for byte.
10:38 – 11:03 No unfork session writes an assistant message for about 25 minutes.
11:04 – 11:05 The owner types --continue into ten sessions.
11:09 The resumed S1 session asks the owner the same question.
11:50 The owner picks “Add newline (Recommended)”, the opposite of S-PLAN’s option B.

The decision message was specific and reasoned:

Decision from S-PLAN: go with option B, applied by S1. Don’t use A, C or D.

Why: Scion already excludes these files on purpose. In its .pre-commit-config.yaml at 1b2c67ed (lines 126-146), under the comment “data/advertiser-reports raw/ and inputs/ hold byte-faithful captures … don’t ‘fix’ them”, it has: […]

Option A would change client captures that Scion protects on purpose, and it goes against OD-7 (“takes Scion’s copy as it is”). — S-PLAN to s1-merge, 2026-09-23 16:38:10 UTC

S-PLAN’s decision existed only in a team message to a teammate that did not survive the restart. It was in no file, handoff or STATUS line. The owner, asked again, chose differently, and nobody noticed the reversal. The details are in chapter 6.

The 24 September restart went better because S-PLAN had warning. When the owner said “I want to restart my comptuer now, can you pause or wrapup”, S-PLAN told teammate rev-infra:

The user is restarting the computer now. Stop where you are. If a commit is done, push unfork/rev-infra right away. If you’re mid-change, commit what’s finished as a WIP commit with the two trailers and push that. — S-PLAN to rev-infra, 24 Sep 12:02:23 MT

The branch was pushed 24 seconds later, with nothing lost. The one casualty was S-PLAN’s report to the write-up session, sent after the push and never received. Work saved to git survived the restart, but the message about it didn’t.

Files first, tested

The plan’s claim was that durable state lives in files, and that messages only point at it. The traffic supports that, with one exception.

Measure Value
Cross-session messages that cite a commit hash, PR number, .md path or unfork/ branch 86% (138 of 160)
… or name a handoff, commit or PR in words 92% (147 of 160)
In-team messages, by the wider test 87%
Words in all 588 messages (full text from the transcripts) about 114,000
Words in the 31 handoff files at the end about 58,000
Non-merge commits touching docs/plans/unfork-handoffs/ between 22 and 25 Sep 127

Messages mostly pointed at a commit or announced that a PR was ready. The handoff files held the substance. When a message that pointed at git was lost, it cost only time, because the recipient could re-read the file. The exception is decisions. S-PLAN’s rulings, xreq acceptances and steward calls were made in messages, and most were copied into a handoff or the registry afterwards. The option B ruling was not copied before the restart, and it was lost. The plan had a file for status and a file for each handoff, but no file for decisions.

What the shape suggests

  • Hubs were chosen by the work, not by design. S0-INV and S6-DOCS became hubs because their scopes (inventory and docs) touched everyone. S-PLAN became the hub because it was the only long-lived session. None of this was in the plan’s contracts.
  • The coordinator’s reach grew as the owner stepped back. S-PLAN touched none of Wave 0’s messages, a quarter of Wave 3A’s, and all of the steward night’s. Autonomy moved routing onto one process and made it the single point of failure.
  • Teams didn’t talk sideways. The 11% of teammate-to-teammate messages came mostly when interfaces were being settled. Everything else went through the lead.
  • Delivery failures were liveness failures. The message channel never lost a message between two healthy sessions. Every loss came from a frozen or restarting recipient. Checking liveness before sending, and writing decisions to a file, would have prevented all eight.

Method and limits

  • Recipient resolution. Messages sent to a socket address (uds:/tmp/cc-socks/<pid>.sock) were mapped to a worktree through the from-name that the same socket carried on messages it sent. All 160 resolved.
  • Receipt matching compares the first 50 normalised characters of each message with the <cross-session-message> blocks in every top-level transcript. A message received by a session whose transcript isn’t in the index would be counted as lost. The eight losses were each checked against the state of their recipient.
  • In-team receipts weren’t checked. A teammate’s inbox lives in its own subagent transcript. The 24 Sep pause shows at least one round trip completing in 24 seconds.
  • Betweenness is unweighted. One message and thirty count the same, which rewards bridges such as S0-REHEARSE. Fan-in and fan-out give the volume view.
  • Two cross-session messages are duplicates, one message sent to both a peer name and a socket. Both are counted.

Addendum: the migration check, 25–28 September (to 11:58 MT, 28 Sep)

The check was a single team inside one session, so every message was in-team. There was no cross-session traffic. Its network was a pure star around the lead.

Messages (SendMessage calls) Whole check 10:14–11:58 MT, 28 Sep
Lead → teammates 33 6
Teammates → lead 38 14
Teammate → teammate 6 0
Total 77 20
  • The lead was on 71 of 77 messages (92%). The heaviest edges were stream-D-celery → lead (8), and lead → each fixer (7 each).

  • All six peer messages were among the investigators and fix-app-tasks, each asking for or passing on evidence:

    • E ↔ D about worker memory;
    • E → C and C → E about the Vertex gap;
    • fix-app-tasks ↔ C about the D-07 error text.

    None of the six settled anything without the lead.

  • Deliveries to the lead were 53 teammate messages and idle notices, 22 of them in the new window. In its replies, the lead marked six as repeats of something already received, four of them in the new window.

Messages crossed in flight. An idle notice written before the lead’s latest message arrived looked like a reply to it. The lead read the timestamps, not just the order:

This is the app agent’s earlier summary of PR #269, which went out before my request to add C-1, C-1b and C-2. My message will wake it to add them.

— lead (376f518d line 2838, 2026-09-28 16:03 UTC)

This idle notice went out before my runbook request arrived, so the agent will pick it up next.

— lead (376f518d line 2895, 2026-09-28 16:18 UTC)

Length limits shaped the messages. Delivered teammate messages were cut off at a fixed length, so reports arrived in pieces. The lead’s standing fix was to ask for “messages of about 2,000 characters or less”. review-270 sent its remaining findings as five numbered parts, “MEDIUM (1/5)” to the verdict (10:34 MT). Files carried the long form: every stream kept its raw output under .claude/scratch/dd/.

12. How closely the work followed the plan

Question: Did each scope change only the files the registry gave it? Where it didn’t, how was that settled? And did the 32-scope split match how the code is actually coupled?

Short answer: Mostly yes. Across 31 scopes (S1’s whole-repo merge excluded), agents changed 768 distinct files in 904 file–scope pairs:

  • 710 pairs (79%) were paths the scope owned outright.
  • 128 were covered by something else the plan allowed: the scope’s own handoff note, a less specific glob of its own, a one-off hunk named in the registry, S-PLAN editing plan docs, or S7 fixing a seam.
  • 15 were doc updates under S6’s docs/** glob, which Clause 2 requires.
  • 27 touched paths no scope owned.
  • 24 were other scopes’ paths with no sanction in the registry text.

All but two of those 24 have a recorded approval in a handoff, usually the steward’s exception or a one-time exception from the owner. They were not silent. 87 files were touched by more than one scope.

The coupling hotspots were the shared Celery registry files (app/tasks/agent_tasks.py by 7 scopes, celery_config.py by 6) and the contract and handoff docs. The domain split held for domain code. It cut across the scheduler, and the plan’s answer (C-REG’s per-domain beat modules) didn’t cover retiring Rootstock’s placeholder pipelines, which the plan added mid-run. Of 14 contracts, 6 changed after they were written; 8 were used as written.

Data: data/plan-fidelity.json. How commits are attributed to scopes is described in chapter 9.


The contract system, and how its fourteen contracts were used:

How ownership was checked

The registry (docs/plans/unfork-scopes.yaml) gives each scope owns globs, hands_off entries that move a path to a later scope, and neighbour notes. The rule that decides between scopes is C-OWN: the most specific glob wins. The repo already implements it in scripts/unfork/rehearse/common.py, which S0-REHEARSE wrote to build the ownership table:

def resolve_owner(path: str, registry: dict[str, Any]) -> Ownership:
    """The owner of ``path`` at S1: most specific ``owns`` glob, then the handoffs due by S1.

    Raises ValueError on equal-specificity matches from two scopes that no handoff links.
    """

This chapter runs that function over every file each scope’s commits touched. A scope counts as owning a path if resolve_owner names it, or if it’s anywhere in the path’s hands_off chain (a later handover). The chapter uses the final registry revision, last edited in cdb03d6c at 01:02 MT on 24 September, so a sanction added mid-run still counts. Where a sanction arrived after the edit it covers, the text says so.

Each edit to a path the scope didn’t own gets one of these classes, in order:

Class Meaning
Own handoff note docs/plans/unfork-handoffs/<scope>.md. C-HANDOFF requires every scope to write it, but S6’s docs/** claims it
Co-claimed The scope has a matching glob, but another scope has a more specific one
Sanctioned in registry text The path or its distinctive file name appears in the scope’s mission, neighbour notes, requirements or done evidence. This is a text match, so treat it as indicative
Coordinator edit S-PLAN editing docs/plans/**
Seam fix S7-GATE editing another scope’s path, which is its mission (“resolve every Critical and Major finding”)
S6 doc A scope updating a doc under S6’s docs/**, as Clause 2 requires when a feature changes
Unowned No glob matches. C-OWN sends the path to S6 (docs) or S5 (everything else), and after S1 to S7 to assign
Foreign, not sanctioned Owned by another scope, and none of the above applies

By scope

Scope Files Owned Own handoff Sanctioned Co-claimed Coordinator Seam fix S6 doc Unowned Foreign
S-PLAN 32 10 · · · 21 · · · 1
S0-RULES 19 18 · · · · · 1 · ·
S0-FLAG 8 7 · · · · · 1 · ·
S0-LLM 4 3 · · · · · 1 · ·
S0-INV 3 3 · · · · · · · ·
S0-ENV 42 42 · · · · · · · ·
S0-IMG 20 17 · · · · · 3 · ·
S0-REHEARSE 14 14 · · · · · · · ·
S0-BASE 11 11 · · · · · · · ·
S-R7 54 39 · 5 · · · 2 · 8
S2a-LLM-BASE 16 16 · · · · · · · ·
S2b-LLM-EGRESS 13 12 · · · · · · · 1
S3-BOOT 14 13 · · · · · 1 · ·
S4-MIG 9 9 · · · · · · · ·
S5-TOOL 19 13 · · · · · · 6 ·
S6-DOCS 273 252 · 1 20 · · · · ·
D1-GA4 23 17 1 2 · · · · · 3
D2-GSC 25 14 1 10 · · · · · ·
D6-ADV 11 10 1 · · · · · · ·
D7a-SEC 43 19 1 1 · · · 4 13 5
D10-OPS 68 64 1 · · · · 1 1 1
D4a-OBL 24 21 1 · · · · 1 · 1
D8a-UI 18 17 1 · · · · · · ·
D3-SD 16 15 1 · · · · · · ·
D5-NL 17 6 1 10 · · · · · ·
D4b-OBL 3 2 1 · · · · · · ·
D7b-SEC 3 2 1 · · · · · · ·
D8b-UI 3 2 1 · · · · · · ·
D9-CONTENT 25 20 1 · · · · · · 4
S7-GATE 73 21 · 1 · · 44 · 7 ·
S8-DEPLOY 1 1 · · · · · · · ·
pie showData
    title "904 file–scope pairs by ownership class"
    "Owned" : 710
    "Seam fix (S7)" : 44
    "Sanctioned in registry text" : 30
    "Unowned" : 27
    "Foreign, not sanctioned" : 24
    "Coordinator edits (S-PLAN)" : 21
    "Co-claimed" : 20
    "S6 doc (Clause 2)" : 15
    "Own handoff note" : 13

Seven scopes stayed entirely inside their own paths: S0-INV, S0-ENV, S0-REHEARSE, S0-BASE, S2a, S4 and S8. Six more strayed only to write their handoff note: D3, D4b, D6, D7b, D8a and D8b. The exceptions had their own reasons, covered below.

Two structural tensions the numbers show

C-HANDOFF against C-OWN. Every Wave 3 scope had to commit docs/plans/unfork-handoffs/<scope>.md. S6’s glob docs/** claims it, and only the Wave 0–2 and S7 scopes listed their handoff in owns. This caused no confusion in practice, but it shows that the plan’s two central documents each assumed the other had handled it.

Clause 2 against C-OWN. Clause 2 says a change to a feature must update its docs in the same change. C-OWN gave every doc to S6. Fifteen edits resolved it in Clause 2’s favour: the scope updated the doc itself. The larger resolution was to route doc fixes to S6 as change requests, which S6 applied as a batch of seven landings between 15:29 and 17:34 MT on 23 September (chapter 9).

The 24 foreign edits, and how each was settled

Scope Paths (owner) How it was settled
S-R7 meta_controller.py, orchestrator.py (S2a); config/config.py (S3); query_router.py (D9); loop/engine.py, loop/budget.py, agent_tasks.py and two loop tests (S2b); C-RULES and its test (S0-RULES); project-standards.yaml (S7). 8 of these fall outside the registry text Steward exception, 23 September (“option A granted, widened”), one commit per owner, listed in S-R7’s handoff. This is the decision that ended OD-5 (chapter 6)
D7a-SEC .pre-commit-config.yaml, node1-web/docker-compose.yml (S5); cluster.env.example (S7); two log-shipping files (D10) One commit, 8cc508b6 (#196, issue #176), applied “at the owner’s direction”. Recorded in D7a’s handoff as an applied xreq to S5-TOOL
D9-CONTENT celery_config.py (S3); processing_tasks.py, project-standards.yaml (S7); test_ops_schedule.py (D10) Steward-approved “one-off edits to non-owned paths”. 1c75d694 says “owner-delegated celery_config edit”
D1-GA4 test_ops_schedule.py (D10); the registry and requirements docs (S-PLAN) Owner-approved one-off hunks for the GA4 stub retirement. D1 also edited S-PLAN’s registry itself (66fee812) to record that decision
D4a-OBL tests/unfork/contracts/test_c_reg.py (S3) A one-time exception the owner authorized (#187), because S3-BOOT had already landed and wasn’t running
S2b-LLM-EGRESS tests/rag/tools/test_external_data_tools.py (S2a) S2a’s written approval, recorded in S2b’s handoff (13395128)
D10-OPS tests/deployment/test_image_revision_wiring.py (S5) Recorded in D10’s handoff as part of the GIT_SHA change. No approval found
S-PLAN .claude/heo/pr-agent-secrets-checked (S7) Untracking heo’s machine-local state. heo files are disposable under a standing developer rule

The exceptions were written down where the owner would see them. D9’s commit, for example, names who granted it and which files it covered:

S-PLAN, acting as steward (2026-09-23), delegated these two non-D9 files to D9 as a one-off: celery_config.py (S7-GATE) and tests/scheduler/test_ops_schedule.py (D10).

— 1c75d694, 2026-09-24 00:40 UTC

(The commit names S7-GATE as celery_config.py’s owner. resolve_owner on the final registry gives S3-BOOT, which is what the table above uses.)

The xreq mechanism (chapter 2) and these exceptions were two answers to one problem. Twenty-six formal [unfork-xreq] blocks sit in handoff notes:

Scope Handoff xreqs
D7a-SEC 8
D10-OPS 7
D2-GSC 3
S3-BOOT 3
D1-GA4 2
S0-FLAG 2
S0-ENV 1

By recipient, S5-TOOL received the most (6). Each block names the path, the reason and whether it blocks, then carries the hunk. D10’s request to S5 for node 3’s environment reads:

[unfork-xreq] D10-OPS → S5-TOOL (deploy/** is S5's as the unowned-path default)
path: deploy/mac-mini-cluster/node3-worker/docker-compose.yml, scripts/env-manifest.sh,
      cluster.env.example
why: D10-OPS-R3.3 and R4.2 — node 3's celery-worker needs DEPLOY_DRIFT_GITHUB_TOKEN (worker
     only, not beat, per Scion's SEC-404) for the drift check, and INGESTION_ALERT_EMAIL, which
     docker-compose.prod.yml passes but node 3's x-app-environment does not. Run
     deploy/mac-mini-cluster/scripts/tests/env_manifest_test.sh after applying.
blocking: no (without them drift reads not_configured and the alert email goes to the
          code default)

docs/plans/unfork-handoffs/D10-OPS.md on main, lines 279–288. A unified diff follows it in the handoff.

An xreq worked when the path’s owner was running. When the owner had already landed and stopped, as S3 had by the time D4a and D1 needed it, the request had nowhere to go. It became an exception instead, granted by the owner or the steward. D1’s handoff says so directly: “xreqs 1-3 (S3, S2b, S4) are withdrawn: D1 applied them itself under the owner decision.”

flowchart TD
    N["A scope needs a path it doesn't own"] --> Q{"Is the owner scope<br/>still running?"}
    Q -->|yes| X["[unfork-xreq] with the exact hunk<br/>owner applies it · 26 in handoffs"]
    Q -->|"no: landed and stopped"| E{"Who can grant<br/>an exception?"}
    E -->|"owner present"| O["One-time owner exception<br/>D4a #187 · D7a #196 · D1 one-offs"]
    E -->|"owner away"| S["Steward exception<br/>S-R7 (8 paths) · D9 · D4a follow-up via D4b"]
    Q -->|"owner scope agrees in writing"| W["Written approval<br/>S2a → S2b"]
    X --> L["Recorded in the requester's handoff"]
    O --> L
    S --> L
    W --> L

The 27 unowned paths

Scope Unowned paths What they were
D7a-SEC 13 deploy/mac-mini-cluster/** scripts and tests (env-manifest.sh, cutover-smoke.sh, verify-deployment.sh, lib.sh, the nginx template), app/tasks/email.py, tests/unit/test_security_headers.py
S7-GATE 7 app/cli/assets.py and its test, document_suggestion_tasks.py and its test, the Grafana alert rules, a pg16 test, test_c_deps.py
S5-TOOL 6 Dockerfile.local-llm, VERSION, router config and READMEs, test_c_deps.py
D10-OPS 1 deploy/mac-mini-cluster/scripts/build-and-distribute.sh

The cause is how ownership was derived. The C-OWN table has one row for each path Scion changed since the merge base, plus each conflict (ownership.py: “There is one row per path Scion changed since the merge base, plus every conflicted path”). Paths only Rootstock had, like the cluster’s own deploy scripts, got an owner only if some scope’s glob happened to cover them. The own-review teammate had already flagged 324 of 1,587 paths as unowned during planning (chapter 4). The globs closed most of that gap, but not for Rootstock-only infrastructure. D10’s handoff marks one of its xreqs “deploy/** is S5’s as the unowned-path default”; D7a’s handoff addresses one “to S5-TOOL (and the owner for env-manifest.sh, which has no scope owner)”.

The registry was patched once after the fact. cdb03d6c gave S7 five paths “left unowned after S1” that its gate fixes had changed:

  • tests/conftest.py
  • app/tasks/processing_tasks.py
  • the MARK II runway dashboard
  • cluster.env.example
  • test_scraper_monitor.py

Its message explains why the ownership table couldn’t carry them:

S7’s gate fixes changed tests/conftest.py, app/tasks/processing_tasks.py, the MARK II runway Grafana dashboard, cluster.env.example and test_scraper_monitor.py. None had an owner, and C-OWN gives S7 the assignment. The ownership table cannot carry them (Scion did not change them at the freeze SHAs), so the registry records it. — cdb03d6c, 2026-09-24 07:02 UTC

The seven S7 paths still unowned in the table above came later.

This matters beyond bookkeeping. Every seam defect the post-migration audit found lived in Rootstock’s cluster configuration, which is the unowned category (chapter 9).

Did the split match the coupling?

87 of the 768 files were changed by more than one scope. By area: 25 were plan docs, 20 code or config, 20 tests, 19 other docs and 3 under .claude/. The code hotspots:

File Scopes that changed it
app/tasks/agent_tasks.py 7: D1, D2, D5, S-R7, S0-FLAG, S2b, S7
celery_config.py 6: D1, D2, D5, D9, S3, S7
tests/scheduler/test_ops_schedule.py 5: D1, D10, D2, D5, D9
config/config.py 4: S-R7, S0-FLAG, S3, S7
app/models/agent_models.py 4: D1, D2, D5, S7
.claude/project-standards.yaml 4: D9, S-R7, S0-RULES, S7

The heaviest scope pairs:

flowchart LR
    SPLAN["S-PLAN"] ---|14| S6["S6-DOCS"]
    D2["D2-GSC"] ---|10| D5["D5-NL"]
    D1["D1-GA4"] ---|8| D2
    D1 ---|8| D5
    SR7["S-R7"] ---|7| S7["S7-GATE"]
    D7a["D7a-SEC"] ---|6| S6
    S2b["S2b-LLM-EGRESS"] ---|6| S7
    S0R["S0-RULES"] ---|6| S6
    S6 ---|5| S7
    S5["S5-TOOL"] ---|5| S7
    D8a["D8a-UI"] ---|5| S2a["S2a-LLM-BASE"]
    SR7 ---|4| S0F["S0-FLAG"]
    SR7 ---|4| S0R

Three kinds of coupling show up:

  1. The scheduler cut across the domains. The plan split work by data source (GA4, GSC, newsletter and so on) and gave each domain its own beat module under C-REG. That worked for adding Scion’s pipelines. Then D1, D2 and D5 were each set to retire Rootstock’s placeholder pipeline for its source. The owner decided the GA4 retirement for D1 (“Steve confirmed”, message #276), and the steward extended it to GSC and Mailchimp (message #337, e0676d67; see chapter 4). All three placeholders lived in the same shared files: one model file, one task file, one beat config, one test of core beat keys. The D1–D2–D5 triangle (8–10 shared files per pair) comes from that decision. The registry sanctions every one of those edits by name. e0676d67 added those entries at 17:44 MT, twenty minutes before D2 landed. It even set the order: “D2 lands first. D5 re-parents its migration onto D2’s drop.”
  2. The MARK II loop and its router had four scopes. S0-FLAG added the switch, S2b owned the loop and egress, S-R7 fixed the loop for the standards, and S7 fixed its seams. agent_tasks.py shows all four. The plan anticipated this with hands_off entries (S0-FLAG → S2b) and a dated exemption (OD-5). It didn’t anticipate S-R7 having to edit the loop after S2b had landed, which is why S-R7 needed the widest exception of the run.
  3. Plan documents were everyone’s. S-PLAN and S6 shared 14 files, the contracts and the handoffs. S6 owned the text, and S-PLAN edited contract status and cross-references as scopes landed. That pair produced most of S6’s and S-PLAN’s extra landings.

Contracts: which were exercised

Contract Consumers Changed after writing xreqs naming it Messages naming it Notes
C-EGRESS 8 5 1 51 Two producers (S2b, D7a); v1 fixed by D7a, v2 (tool results) by S2b
C-LLM 6 5 1 29 Two producers (S0-LLM, S2a); the PEV change request moved it to v2
C-REG 16 3 1 29 Beat-check test fixed by D4a (#187)
C-RULES 25 2 2 11 v2 when S-R7 ended OD-5 (CR-16)
C-FLAG 7 2 2 11 v2: the switch also turns off PEV verification
C-OWN 21 1 4 15 v2
C-BASE 22 0 1 44 Most talked about, never changed
C-INV 5 0 1 34 The freeze pins; broadcast once
C-HANDOFF 31 0 0 14 No producer; every scope consumes it
C-ENV 16 0 0 7
C-MIG 17 0 1 2
C-MERGE 2 0 0 5
C-IMG 8 0 0 1
C-DEPS 15 0 0 0

“Changed after writing” counts commits to the contract file after its creation in 9c2d9c04, up to 25 September.

No contract turned out to be unneeded. Every one had consumers and a contract test that ran. But they were used in very different ways:

  • Negotiated contracts. The six that changed (C-EGRESS, C-LLM, C-REG, C-RULES, C-FLAG, C-OWN) are the ones at a real seam. Two of them had two producers.
  • Reference contracts. C-BASE and C-INV were cited constantly (44 and 34 messages) and never edited. They were the facts everyone checked against: the test baseline and the freeze pins.
  • Silent contracts. C-IMG, C-DEPS and C-MERGE were almost never mentioned. They were used as written. C-ENV was also used, but it was not checked against the running cluster. C-ENV lists every scope’s environment variables, and the audit’s seam findings were all environment variables missing from the cluster. That was a gap in what the contract was checked against, not in the contract.

What this suggests

  • Derive ownership from both repos, not from the incoming one. The C-OWN table followed Scion’s changes. Rootstock-only infrastructure was left to fallbacks, and that is where the audit’s defects were.
  • Give the handoff note and the scope’s docs to the scope. Adding docs/plans/unfork-handoffs/<scope>.md to every scope’s owns, and letting Clause 2 doc edits for owned features through, would have removed 28 of the 194 edits outside the scope’s own paths without any loss of control.
  • Plan for owners that have stopped. The xreq assumed the path owner was running. By Wave 3 most weren’t, so exceptions became the normal channel. A standing rule (“once the owner scope has landed, the requester applies the hunk and the steward reviews it”) would have written down what happened anyway.
  • Put shared registries in the plan as seams, with an owner for removals. C-REG gave each domain a place to add schedules. Removing a schedule still touched the shared files. Doing it safely needed a mid-run registry change and a landing order.

Addendum: the migration check, 25–28 September (to 11:58 MT, 28 Sep)

The check had no registry. Its “ownership” was the lane each spawn prompt gave:

  • fix-app-tasks: “Code + tests + docs only”.
  • fix-cluster-config: “compose files, templates, scripts, their shell test suites …, env manifest/example, monitoring provisioning, docs”.
  • The fork: two named docs, no commit.
  • Reviewers and streams: read-only.

Measured against those lanes, from the final diffs of the three PRs (merge base 45d926cc):

PR Files Inside its lane Outside, and how it was settled
#269 (fix-app-tasks) 43 43 None outside the lane. Three were plan docs (C-REG.md and the D7a-SEC handoff, both unfork files that other scopes owned, and db_handover_package.md). The first two were edited at the lead’s request after review. One was the standards doc’s §6 evidence table, an H6 row the agent added itself.
#270 (fix-cluster-config) 29 21 Eight files, settled three ways. celery_config.py and its new tests/unit/ test were sanctioned by the lead (“If it needs an env var (e.g. CELERY_LOG_FILE), add that small code change in this PR”). Two pytest suites for the PR’s own alert rules and nginx block, plus .gitignore for the key file, were a test type and a file the lane text did not list; nobody queried them. Three docs/logs/infrastructure/*.md files were pre-commit hook output, not the agent’s edits.
fork (inside #270, 2204b844) 3 2 One docs/logs hook stub. The two named docs match its brief.
#272 (lead, report) 4 — The archive record and its HTML companion, the owner’s new rule in .claude/CLAUDE.md, and one hook stub.
  • One file was in both lanes. Both PRs changed celery_config.py: the memory backstop in #269, and the beat log file name in #270. The lead predicted a conflict. Git merged them automatically, and 389 tests passed on the merged branch before the deploy (11:16 MT).
  • One edit crossed an agent’s worktree. The deploy fix 42b105cd was written by the lead inside 05-dd-cluster-config, on the fixer’s branch. The fixer was told, and pulled first (chapter 2 addendum).
  • Every commit carries the owner’s git identity. All 27 fix commits are authored “Steve Glen”, with the agent named only in the trailers. As in the unfork proper, the lanes can be read only from the transcript, not from git log.
  • The seam class from the main chapter recurred. #270 changed both compose files and the Celery config, because a single setting (the beat log file) needed both. It was the same Scion code × cluster config seam the audit’s findings sat in.

13. Memory: compactions and restarts

Question: What did agents forget when their context was compacted or their session restarted, and what survived because it was on disk?

Short answer: The scope sessions recovered from restarts. The coordinator lost state.

  • Compactions: 11 during the unfork, in six top-level sessions. All were typed by the owner as /compact; none was automatic, and no subagent compacted.
  • Restarts: 2 that reset sessions. The owner typed --continue as a prompt into fresh sessions (11:03 MT on 23 September), then restarted the Mac (12:02 MT on 24 September).

The design assumed a finished session is disposable because its state is on disk. For the scope sessions, that held:

  • nine fresh sessions each rebuilt their state from .unfork/STATUS, MISSION.md, the handoff note and git in about five minutes;
  • S1 found and finished work its predecessor had left unpushed.

What was lost belonged mostly to the coordinator:

  • its ruling on S1’s two JSON files, which the owner then decided the other way;
  • the link between D3’s questions and its own answers, which vanished nine minutes after it answered them. This was a lost cross-reference, not a lost decision (L2).

Not every loss was the coordinator’s. A re-opened S0-ENV scope session read MISSION.md but not purpose.md, and missed a handover (L3).

S-PLAN was the session with the most unrecorded state and no STATUS or MISSION.md of its own. After the Mac restart, the owner found the missing piece: they told the new session to read the old session’s transcript.

The events are in data/memory-and-restarts.json. The token cost of both kinds of event was small: $2.40 for all compactions (chapter 7). This chapter is about what they cost in state.


The states a scope’s work passed through, and the restart loop under them:

Timeline

gantt
    title Compactions (C) and restarts (R), times in MT
    dateFormat YYYY-MM-DD HH:mm
    axisFormat %d %H:%M
    section Scion planning
    C 193k→13k tokens            :milestone, 2026-09-22 15:27, 0m
    section Rootstock planning
    C 105k→8k                     :milestone, 2026-09-22 15:50, 0m
    section Wave 0 worktrees
    R1 fresh sessions (--continue as a prompt) :crit, milestone, 2026-09-23 11:03, 0m
    section S-PLAN coordinator
    R1 fresh session              :crit, milestone, 2026-09-23 11:03, 0m
    C 100k→9k                     :milestone, 2026-09-23 13:07, 0m
    C 376k→14k (D3 answers lost)  :crit, milestone, 2026-09-23 17:52, 0m
    C 293k→11k                    :milestone, 2026-09-24 09:25, 0m
    R2 Mac restart, orderly wrap-up :crit, milestone, 2026-09-24 12:02, 0m
    section S-PLAN wrap-up session
    C 320k→7k                     :milestone, 2026-09-24 15:13, 0m
    section Write-up and S8 session
    C 408k→7k                     :milestone, 2026-09-23 16:04, 0m
    C 261k→11k                    :milestone, 2026-09-24 15:58, 0m
    C 293k→9k                     :milestone, 2026-09-25 11:12, 0m
    section Post-migration audit
    C 295k→9k                     :milestone, 2026-09-25 15:51, 0m
    C 179k→8k                     :milestone, 2026-09-25 17:20, 0m

Compactions

MT Session Before → after (tokens) Summary First 40 calls after
22 Sep 15:27 Scion planning 192,872 → 12,862 16.7k chars 2 reads, 4 writes (of 15)
22 Sep 15:50 Rootstock planning 105,024 → 8,446 7.5k 6 reads, 17 writes
23 Sep 13:07 S-PLAN 99,597 → 9,460 8.2k 6 reads, 13 writes
23 Sep 16:04 Write-up 407,613 → 7,144 11.4k owner-driven; 3 calls
23 Sep 17:52 S-PLAN 376,496 → 13,933 16.1k 5 reads, 14 writes (of 29)
24 Sep 09:25 S-PLAN 292,763 → 11,164 9.3k 4 reads, 16 writes
24 Sep 15:13 S-PLAN wrap-up 320,073 → 6,651 9.2k 9 reads, 8 writes
24 Sep 15:58 Write-up 260,661 → 11,182 9.1k 0 reads, 9 writes
25 Sep 11:12 Write-up 293,042 → 9,275 13.4k 6 reads, 3 writes
25 Sep 15:51 Audit 294,894 → 9,210 13.3k 18 reads, 5 writes
25 Sep 17:20 Audit 178,798 → 8,185 13.2k 7 reads, 5 writes

Each compaction cut 100–400k tokens of conversation down to a 7–17k-character summary. The summaries follow a fixed outline:

  1. primary request;
  2. key concepts;
  3. files and code;
  4. errors and fixes;
  5. problem solving;
  6. all user messages;
  7. pending tasks;
  8. current work;
  9. next step.

Here is how S-PLAN’s first summary opened, word for word. The earlier session’s first prompt, the stray --continue, has become its first recorded request:

This session is being continued from a previous conversation that ran out of context. The summary below covers the earlier portion of the conversation.

Summary:
1. Primary Request and Intent:
   - "--continue": resume prior work on `unfork/plan`. The four commits pushed after PR #138 merged needed a PR, so I opened #150.
   - "don't track pr-138": leave `.claude/heo/pr-agent/pr-138.json` untracked, with no ignore rules. Treat `pr-150.json` the same way.

Compaction summary, S-PLAN 9cc0216e, JSONL line 383, 2026-09-23T19:07:18Z. The 17:52 MT summary (line 2056) lists the teammates under “Running background agents: d3-sd, d5-nl, d7b-sec, d9-content, s-r7.”

Most sessions went straight back to acting. Writes and messages outnumbered reads in the first 40 calls in six of the eleven. The clearest exception is the audit’s first compaction: it re-read 18 times before acting, because it was reviewing a merged change set it had just lost from view.

Teammates do not compact with their lead. When S-PLAN compacted at 17:52 MT, five background agents were running (d3-sd, d5-nl, d7b-sec, d9-content, s-r7). They kept their own full context, and the summary listed them as “Running background agents”. The lead forgot. The agents did not.

What a compaction lost: D3’s two questions

At 17:44 MT on 23 September, D3 sent S-PLAN a plan and two questions, labelled by its requirement R5.2. At 17:46 S-PLAN answered both: “Q1: approved” with conditions, and Q2 decided. At 17:52 the owner ran /compact. At 17:55 D3’s idle notification arrived: “I’m waiting on them and on the lead’s answer to the two R5.2 questions.” The notice was out of date; D3 later said the answers had reached it. S-PLAN wrote back:

S-PLAN steward: your two R5.2 questions never reached me; they may have been lost when my context was compacted. Please resend both in full, with your recommendation for each, and I’ll answer right away. — S-PLAN to d3-sd, 17:55 MT (…/unfork-plan/9cc0216e….jsonl:2194)

D3 corrected it three minutes later:

No R5.2 question is still open. Your earlier answers did reach me, and both are implemented (commit 3a985225): - Q1 (gate): app/search_demand/services/egress.py::release_for_provider. […] - Q2: fit_verdict goes through the same gate […]

— d3-sd to S-PLAN, 17:58 MT (…:2275)

The summary had not dropped the decision. It recorded that S-PLAN “approved D3’s P3 search-demand gate with conditions, routing fit_verdict.py through it and sending a change request to S7”. What it dropped was the label. D3 called these “the two R5.2 questions”, and the summary called them a gate approval. A stale notice from the teammate then met a lead that could no longer match the label to the decision. Nothing broke, because D3 had the answers in its own context and in a commit. The example shows where compaction loses things: in the cross-references between conversations, not in the decisions themselves.

Restart 1: --continue as a prompt (11:03 MT, 23 September)

Chapter 2 describes the event: fresh sessions in every Wave 0 worktree, in S1 and in S-PLAN, each given the text --continue or --continue as its first prompt. That text started no resume. Each session began with a system prompt and no history.

What the fresh sessions read first

The first 12 tool calls of each fresh session show where the state actually lived:

On-disk source Fresh scope sessions that read it first (of 9) S-PLAN
git log / git status 9 yes
.unfork/STATUS 9 none exists
.unfork/MISSION.md 8 none exists
GitHub PR state (gh pr view / gh api) 6 yes
Handoff note (docs/plans/unfork-handoffs/) 7 n/a
Contract files 2–3 (depending on whether a C-* file name counts without its path) n/a

A typical scope session read STATUS and MISSION.md in its first call, checked git and GitHub, and reported within two minutes:

S0-ENV is finished and landed, and nothing in this scope is left for me to do. The one open item is waiting on S4-MIG. — S0-ENV fresh session, 11:05 MT

Eight of the nine scope sessions ended there. S1-MERGE found unpushed local merge commits, left by S-PLAN’s s1-merge teammate, which had been idle since 10:38. It finished them and landed S1 at 11:51. For the scopes, the disk was the memory, and it was enough.

What S-PLAN lost

S-PLAN had no STATUS and no MISSION.md, and its handoffs were other scopes’ handoffs. Its fresh session looked at git and GitHub, merged main into unfork/plan, and opened a PR for four plan commits. It did not know three things:

  • that it had ruled on S1’s two raw JSON files 26 minutes earlier;
  • that its s1-merge teammate was holding that ruling;
  • that its s0-base teammate had finished and was waiting.

Both teammates ended with the old session. The ruling had gone to S1 as a message and to the owner as a report, and neither survived: the recipient was gone, and the report was in a closed conversation. Chapter 6 describes what followed. The fresh S1 asked the owner, and the owner chose the option S-PLAN had rejected.

One small artefact shows how a summary treats noise. When S-PLAN compacted that evening, the summary listed the owner’s requests starting with:

Earlier requests (from the prior summary): “–continue”; “don’t track pr-138” […]

The keystroke that caused the loss became a recorded request.

Restart 2: the Mac restart (12:02 MT, 24 September)

The second restart went differently, because the owner announced it:

I want to restart my comptuer now, can you pause or wrapup — owner to S-PLAN, 12:02 MT

Everything is pushed and nothing is left half-done, so it’s safe to restart now.

— S-PLAN, 12:02 MT

S-PLAN merged one last piece of work into #236 and stopped. Its last background task was killed at 12:11.

Thirty minutes later a new session opened in unfork-plan. Its first prompt was again the text --continue, and it was again fresh:

I can’t see the previous session’s conversation from here, so I don’t know which step you were on. Here’s where the unfork/plan worktree stands right now: […]

— S-PLAN wrap-up session, 12:33 MT (…/unfork-plan/28b464a2….jsonl:40)

Then the owner gave it the missing memory:

look for the most recent claude code transcript — owner, 12:37 MT

The session listed ~/.claude/projects/…unfork-plan/, found the previous transcript (9cc0216e…jsonl, last written at 12:11), and parsed its last exchanges with a short Python script. Within a minute it reported where the work stood: what had landed in #236, what was pending, and which follow-ups remained. In the next few minutes it went back to the old transcript at least three more times, for example to grep for cloudflared-logs-init when a failing test needed context. The raw transcript served as a lossless, searchable record that the summary could not be.

Nothing was lost in the second restart. Three things differed from the first:

  • the owner warned the coordinator first;
  • everything was pushed;
  • the new session was pointed at its predecessor’s full record.

The one casualty was a message: S-PLAN’s report to the write-up session failed because that session had closed (chapter 2).

This route has a cost of its own. The transcript is an unredacted record, credentials included (chapter 16). Reading it back puts everything it holds into the new context.

Smaller losses

  • A re-opened session read half its context. S0-ENV re-opened at 17:14 MT on 23 September. It read MISSION.md but not purpose.md, and reported “Nothing on this scope is waiting on me”, missing a handover (chapter 5).
  • Stale files look like memory. STATUS files that said blocked: after the blocker had landed, and .unfork/ snapshots that made D4b look blocked (chapter 2), are the disk-side version of the same problem. What is written down is only as current as its last writer.

What survived, and why

Kind of state Where it lived Survived compaction Survived restart
A scope’s progress STATUS, branch, PR yes yes
A scope’s mission and contracts MISSION.md, contracts yes yes
What a scope did and left open Handoff note yes yes
A decision the owner made in an AskUserQuestion The asking session’s conversation, then usually a commit or handoff usually (summaries list “all user messages”) only if written down
A decision the coordinator made S-PLAN’s conversation and a message to one agent mostly; cross-references lost (L2) no (L1)
Which teammate holds which task S-PLAN’s conversation yes (summary lists running agents) no: teammates end with their session
Whole conversation Transcript JSONL on disk n/a yes, if someone reads it

The pattern is simple to state:

  • Scope state was designed to be on disk, and it survived.
  • Coordination state was never given a file, and it was lost exactly when it mattered.

After the owner returned, S-PLAN began to write its rulings down. From 24 September the owner’s calls and the coordinator’s decisions went into docs/decisions/2026-09-24-convergence-review-owner-calls.md. The S7 prompt said: “Owner decisions get written down and reported to me.” That file was the missing channel.

Lessons

  • Give the coordinator a STATUS of its own. Its rulings, its teammates and its open questions need a file as much as any scope’s progress does. A one-line ruling log would have kept L1 from happening.
  • Put the ruling in the handoff, not just the outcome. S1’s handoff recorded that the newlines “were fixed on the owner’s instruction”. It did not record that the coordinator had ruled the opposite.
  • Label answers with the asker’s label. Had the D3 answers said “R5.2 Q1 / Q2”, the summary would have carried the label too.
  • Resume, don’t restart, and when you must restart, point at the transcript. A typed --continue inside a session is just text. The raw transcript was the most complete memory available, but it should be read with the same care as the credentials inside it.

Addendum: the migration check, 25–28 September (to 11:58 MT, 28 Sep)

Compactions. There were none after the two already charted above (15:51 and 17:20 MT on 25 September, both typed by the owner). No subagent compacted. From the deep dive’s order at 17:34 MT to the cut-off, the lead ran on the context left by its 17:20 compaction.

One stop that was not a restart. The lead’s last event was at 18:02 MT on 25 September, with stream C and both fixers mid-task. Nothing ran for 63.6 hours, until the owner typed continue at 09:38 MT on 28 September. The session and its in-process teammates then resumed with their context intact. fix-app-tasks picked up its item list where it had stopped (“While mypy runs, I’ll look at item 4.”, subagent line 188, 09:42 MT). Two things were lost:

  • A cut-off turn. Stream C’s final report had been interrupted, and the harness asked for it again:

    Your response above was cut off mid-stream and only your next message is delivered. Write the complete response again from the start — no apology, no mention of the cut-off.

    — harness to stream-C-app (subagent line 230, 2026-09-28 15:38 UTC)

  • The clock. None of the agents knew two days had passed until the lead told them:

    Status check from the lead. The session was suspended for about two days, and it is now 2026-09-28.

    — lead to stream-C-app (376f518d line 2639, 2026-09-28 15:39 UTC)

What survived because it was on disk. The lead checked disk before asking anyone. It read the fixers’ worktrees first (“I can see 1 commit (D-02) and uncommitted scorecard work in your worktree”, line 2642). The fork’s two edited docs were still uncommitted in 05-dd-cluster-config when it finished at 09:40 MT. Its parent committed them as 2204b844. The streams’ raw evidence under .claude/scratch/dd/ settled the D-07 question two days later (see the chapter 2 addendum). The progress log in the report file told the lead what it had already verified. It did not have to repeat the cluster checks. It only had to re-check what the schedule had done in the gap.

A memory write that went to git instead. The owner’s 11:25 MT rule is the only durable instruction from this window. The lead tried to save it to per-project memory. heo’s memory hook refused, so the lead put it in .claude/CLAUDE.md, which reached main with #272 (06b84c99). This is the file-over-memory rule the main chapter argues for, enforced by a hook.

14. Parallelism in practice

Question: How much did running many agents at once actually speed the work up, and what did it cost in communication?

Short answer: The unfork used 75.9 agent-hours in 22.2 hours of wall-clock in which at least one agent was working, an effective speed-up of 3.4×. The calendar span was longer: 5.9 days, from 13:24 MT on Tuesday 22 September to 10:57 MT on Monday 28 September. For most of that span the developer was away, asleep, or reviewing.

  • Parallelism came in two bursts. At the Wave 0 launch (Tue 17:15 MT) 37 transcripts were active in the same 15 minutes; at the Wave 3A launch (Wed 14:30 MT) there were 36. In those waves the speed-up was 5.8× and 6.1×.
  • Gates and reviews were close to serial. The S7 gate ran at 1.9×, the convergence review at 2.1×, the S8 deploy session at 1.4× and the audit at 1.8×.
  • Messaging grew with the coordinator’s involvement, not with headcount. Wave 3A had 72 agents and 2,556 possible pairwise channels, and used 75 of them at 7.7 messages per agent-hour. Wave 3B had 7 agents under the steward and ran at 23.9 messages per agent-hour. Brooks’s n(n−1)/2 describes a risk the files-first design mostly avoided.

The data is in data/parallelism.json: active intervals for each of the 221 transcripts, every 15-minute bin and the per-phase figures.


Active agents over the busy stretch:

Method

  • Active time. Each transcript’s event timestamps are sorted. A gap of more than 10 minutes between consecutive events counts as idle and splits the transcript into active intervals. Agent-hours are the sum of those intervals. A tool call that runs up to 10 minutes (the tool timeout) counts as active. Waiting for the owner beyond 10 minutes does not.
  • Active wall-clock is the union of all active intervals: the hours in which at least one agent was active.
  • Speed-up is agent-hours divided by active wall-clock. It is an upper bound on the gain, because it assumes one agent working alone would have needed every agent-hour.
  • Concurrency is counted per 15-minute bin. A transcript counts in a bin if any of its active intervals overlaps it.
  • Messages are the 588 SendMessage calls in messages.json, assigned to the sender’s phase. S-PLAN’s 117 sends while directing teammate waves are assigned by time to the teammate wave they were directing. Its coordinating session sent 110 of them; the rest came from the session that replaced it on 24 Sep.

Wall-clock against agent-hours, by phase

Phase Span (MT) Agents Span h Active wall-clock h Agent-hours Speed-up Messages sent Msgs / agent-h Pairs used / possible
P0 planning (Scion session) Tue 13:24 → Tue 15:49 1 2.4 1.0 1.0 1.0× 0 0.0 0 / 0
P0 planning (Rootstock review+registry session) Tue 14:55 → Tue 17:17 6 2.4 1.7 2.8 1.6× 15 5.4 10 / 15
P1 Wave 0 (interactive worktrees) Tue 16:55 → Wed 13:49 40 20.9 2.0 11.7 5.8× 99 8.5 48 / 780
P1b restart ( --continue) Wed 11:03 → Wed 11:54 9 0.9 0.2 0.9 4.5× 0 0.0 0 / 36
P2 Wave 0b/1 (S-PLAN teammates) Wed 09:55 → Wed 10:41 3 0.8 0.8 1.0 1.2× 6 6.0 6 / 3
P3 Wave 2 (S-PLAN teammates) Wed 13:18 → Wed 14:39 16 1.4 0.9 4.6 5.1× 71 15.4 26 / 120
P4 Wave 3A (interactive worktrees) Wed 14:37 → Wed 19:15 72 4.6 3.1 18.9 6.1× 145 7.7 75 / 2556
P5 Wave 3B + S-R7 finish (S-PLAN teammates) Wed 17:41 → Wed 21:34 7 3.9 1.0 3.3 3.3× 79 23.9 22 / 21
P6 S7 gate (S-PLAN teammates) Wed 20:32 → Thu 06:33 16 10.0 2.1 3.9 1.9× 55 14.1 16 / 120
S-PLAN coordinating thread Wed 11:03 → Thu 12:11 1 25.1 6.3 6.3 1.0× 0 0.0 0 / 0
P7 #236 review + fixes (S-PLAN teammates) Thu 09:27 → Thu 12:02 16 2.6 1.0 3.7 3.7× 26 7.0 13 / 120
P8 convergence PR review + wrap-up Thu 12:32 → Thu 17:06 12 4.6 2.3 4.8 2.1× 30 6.2 11 / 66
P9 write-up + S8 deploy session Wed 12:42 → Fri 14:07 12 49.4 4.0 5.4 1.4× 5 0.9 4 / 66
P10 post-migration audit Fri 14:12 → Mon 10:57 10 68.8 4.2 7.5 1.8× 57 7.6 19 / 45
All phases Tue 13:24 → Mon 10:57 221 141.5 22.2 75.9 3.4× 588 7.7

Phases overlap in time: Wave 3A, Wave 3B and the S7 gate ran together on Wednesday evening, and S-PLAN’s thread spans most of the build. So the phases’ wall-clock figures add up to more than the 22.2-hour union. “Pairs used” counts unordered sender–recipient pairs. A recipient can sit outside the phase, such as the owner’s write-up session or another worktree, which is why small phases can exceed their n(n−1)/2.

Concurrency over time

The chart covers the busiest stretch, Tuesday 13:00 MT to Thursday 18:00 MT. Each point is the highest 15-minute count within that hour:

xychart-beta
    title "Active transcripts (max per hour, MT) — Tue 22 to Thu 24 Sep"
    x-axis ["Tu13", "Tu14", "Tu15", "Tu16", "Tu17", "Tu18", "Tu19", "Tu20", "Tu21", "Tu22", "Tu23", "We00", "We01", "We02", "We03", "We04", "We05", "We06", "We07", "We08", "We09", "We10", "We11", "We12", "We13", "We14", "We15", "We16", "We17", "We18", "We19", "We20", "We21", "We22", "We23", "Th00", "Th01", "Th02", "Th03", "Th04", "Th05", "Th06", "Th07", "Th08", "Th09", "Th10", "Th11", "Th12", "Th13", "Th14", "Th15", "Th16", "Th17", "Th18"]
    y-axis "Active transcripts" 0 --> 40
    line [1, 1, 2, 10, 37, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 11, 6, 11, 2, 11, 36, 23, 11, 22, 7, 5, 8, 8, 5, 4, 4, 3, 2, 2, 2, 4, 4, 0, 0, 15, 10, 0, 4, 9, 5, 2, 3, 2, 1]
  • Peak: 37 at Tue 22 Sep 17:15 MT, when Wave 0 launched. There were 9 top-level sessions (seven S0 worktrees, S-R7 and the Rootstock planning session) and 28 subagents. Each S0 session split its scope into a team as soon as it read its mission. The largest teams were in unfork-s0-rules (8 active), unfork-s0-llm (6) and unfork-s0-rehearse (5).
  • Second peak: 36 at Wed 14:30 MT, when Wave 3A launched. There were six interactive scope sessions the owner had just opened, with 22 teammates between them, plus S-PLAN with its last 6 Wave 2 teammates and the write-up session.
  • Troughs. Nothing ran from Tue 18:45 to Wed 09:00 MT except a three-minute S0-INV session at 05:40. The owner had stopped for the night, and the Wave 0 sessions had landed or were waiting. From Wed 18:00 MT to Thu 06:00 MT (the steward period) 2–8 transcripts ran at a time: S-PLAN, the Wave 3B and S-R7 teammates, then the S7 gate. Thursday morning’s burst of 15 is the #236 review fan-out.
  • After Thursday, activity never exceeded 9: the S8 deploy session and the post-migration audit, each one session with a small team.

What the two peaks look like in the transcripts

Both peaks began the same way. The owner typed one identical line into each worktree in turn, and each session then launched its team within about two minutes. The prompts are quoted verbatim from owner-prompts.json (#33–#39 and #87–#92). The team launches are the description fields of the sessions’ Agent calls, quoted verbatim from the transcripts.

Wave 0, Tue 22 Sep. Between 23:14:16 and 23:14:38 UTC (17:14 MT) the same line went into seven sessions in 22 seconds: S0-FLAG, S0-IMG, S0-REHEARSE, S0-INV, S0-RULES, S-R7 and S0-LLM.

Go ahead. Use as many agents as you need to get it done effectively and effeciently.

— owner, seven times, 23:14:16–23:14:38 UTC

Within the next two minutes S0-RULES (e38f4705) started four agents, at 23:15:18, 23:15:34, 23:15:46 and 23:16:04 UTC: “Merge CLAUDE.md rulebook”, “Bring Scion standards into Rootstock”, “Reconcile agent hook set” and “Contract test and brief banner”. S0-LLM (f07ccac8) started four between 23:15:30 and 23:16:10: “Import scan at SCION_SHA”, “Public-name signature table”, “ADR-011 orthogonality re-check” and “Tool-calling axis and switch”. Those launches fill the 17:15 MT bin: 9 sessions and 28 subagents.

Wave 3A, Wed 23 Sep. Between 20:38:57 and 20:39:11 UTC the owner asked six new worktrees “What’s your mission?”. Between 20:40:09 and 20:40:39 UTC (14:40 MT) the owner sent each of them:

Complete the mission using agent teams. Use as many agents as you want to complete the mission effectively and effeciently. — owner to D7a-SEC, D10-OPS, D4a-OBL, D1-GA4, D8a-UI and D6-ADV, 20:40:09–20:40:39 UTC

D7a-SEC (0b28651a) launched five background teammates between 20:41:20 and 20:42:16:

  • egress, “D7a R1: fix C-EGRESS v1”
  • wiring, “D7a R3: C-REG security wiring”
  • merge, “D7a R2: security/auth/errors merge + tests”
  • runtime, “D7a R4: runtime evidence + retention compare”
  • secrets, “D7a R5: env var + secret inventory”

D1-GA4 (a87f8f46) launched four between 20:42:09 and 20:42:55: d1-wiring, d1-notconfig, d1-runtime and d1-audit. Together with the teams from the other four sessions, these launches make up the 36 in the 14:30 MT bin.

A wait, in the coordinator’s words. The coordinator’s serializing effect is visible in its instructions. This message to the S4-MIG teammate parks it until another scope lands:

(3) When S3-BOOT lands the RAGPreset change and the monitoring-import fix (R4.1) on unfork/integrate-scion, merge origin/unfork/integrate-scion into your branch (no rebase). […] Until then, stay idle. You don’t need to poll; I’ll message you when S3 lands.

— S-PLAN (9cc0216e) to s4-mig, 20:03 UTC (14:03 MT) 23 Sep, messages.json

Every non-empty 15-minute bin (165 bins)

Bin start (MT) Top-level sessions Subagents Total
Tue 22 Sep 13:15 1 0 1
Tue 22 Sep 13:30 1 0 1
Tue 22 Sep 13:45 1 0 1
Tue 22 Sep 14:00 1 0 1
Tue 22 Sep 14:15 1 0 1
Tue 22 Sep 14:45 1 0 1
Tue 22 Sep 15:00 1 0 1
Tue 22 Sep 15:15 2 0 2
Tue 22 Sep 15:30 2 0 2
Tue 22 Sep 15:45 2 0 2
Tue 22 Sep 16:00 1 0 1
Tue 22 Sep 16:15 1 4 5
Tue 22 Sep 16:30 1 5 6
Tue 22 Sep 16:45 9 1 10
Tue 22 Sep 17:00 9 6 15
Tue 22 Sep 17:15 9 28 37
Tue 22 Sep 17:30 7 9 16
Tue 22 Sep 17:45 4 1 5
Tue 22 Sep 18:00 2 1 3
Tue 22 Sep 18:15 2 0 2
Tue 22 Sep 18:30 1 0 1
Wed 23 Sep 05:30 1 0 1
Wed 23 Sep 09:00 2 0 2
Wed 23 Sep 09:15 2 1 3
Wed 23 Sep 09:30 7 0 7
Wed 23 Sep 09:45 9 2 11
Wed 23 Sep 10:00 4 2 6
Wed 23 Sep 10:15 1 1 2
Wed 23 Sep 10:30 1 1 2
Wed 23 Sep 11:00 11 0 11
Wed 23 Sep 11:45 2 0 2
Wed 23 Sep 12:30 2 0 2
Wed 23 Sep 12:45 2 0 2
Wed 23 Sep 13:00 1 0 1
Wed 23 Sep 13:15 1 6 7
Wed 23 Sep 13:45 3 8 11
Wed 23 Sep 14:00 1 12 13
Wed 23 Sep 14:15 2 8 10
Wed 23 Sep 14:30 8 28 36
Wed 23 Sep 14:45 10 24 34
Wed 23 Sep 15:00 2 2 4
Wed 23 Sep 15:15 9 10 19
Wed 23 Sep 15:30 9 8 17
Wed 23 Sep 15:45 8 15 23
Wed 23 Sep 16:00 7 2 9
Wed 23 Sep 16:15 6 0 6
Wed 23 Sep 16:30 1 0 1
Wed 23 Sep 16:45 6 5 11
Wed 23 Sep 17:00 6 5 11
Wed 23 Sep 17:15 6 4 10
Wed 23 Sep 17:30 7 15 22
Wed 23 Sep 17:45 5 15 20
Wed 23 Sep 18:00 3 4 7
Wed 23 Sep 18:30 2 4 6
Wed 23 Sep 18:45 2 3 5
Wed 23 Sep 19:00 1 2 3
Wed 23 Sep 19:15 2 3 5
Wed 23 Sep 19:30 1 4 5
Wed 23 Sep 19:45 1 3 4
Wed 23 Sep 20:00 1 2 3
Wed 23 Sep 20:15 1 1 2
Wed 23 Sep 20:30 1 2 3
Wed 23 Sep 20:45 1 7 8
Wed 23 Sep 21:00 0 5 5
Wed 23 Sep 21:15 1 7 8
Wed 23 Sep 21:30 1 6 7
Wed 23 Sep 21:45 1 4 5
Wed 23 Sep 22:00 0 4 4
Wed 23 Sep 22:15 1 4 5
Wed 23 Sep 22:30 1 3 4
Wed 23 Sep 22:45 1 3 4
Wed 23 Sep 23:15 1 2 3
Wed 23 Sep 23:30 1 2 3
Wed 23 Sep 23:45 1 3 4
Thu 24 Sep 00:00 0 2 2
Thu 24 Sep 00:15 1 2 3
Thu 24 Sep 00:30 1 2 3
Thu 24 Sep 00:45 1 3 4
Thu 24 Sep 01:00 1 2 3
Thu 24 Sep 01:15 1 1 2
Thu 24 Sep 01:30 0 2 2
Thu 24 Sep 01:45 1 1 2
Thu 24 Sep 02:00 0 1 1
Thu 24 Sep 02:15 0 1 1
Thu 24 Sep 02:30 0 2 2
Thu 24 Sep 02:45 0 1 1
Thu 24 Sep 03:00 0 2 2
Thu 24 Sep 03:15 0 2 2
Thu 24 Sep 03:45 0 1 1
Thu 24 Sep 04:00 0 1 1
Thu 24 Sep 04:15 1 1 2
Thu 24 Sep 04:30 1 1 2
Thu 24 Sep 04:45 1 1 2
Thu 24 Sep 05:00 1 1 2
Thu 24 Sep 05:15 1 1 2
Thu 24 Sep 05:30 1 1 2
Thu 24 Sep 05:45 1 3 4
Thu 24 Sep 06:00 1 3 4
Thu 24 Sep 06:15 1 3 4
Thu 24 Sep 06:30 1 1 2
Thu 24 Sep 09:00 1 0 1
Thu 24 Sep 09:15 1 7 8
Thu 24 Sep 09:30 2 13 15
Thu 24 Sep 09:45 2 0 2
Thu 24 Sep 10:00 1 3 4
Thu 24 Sep 10:15 2 8 10
Thu 24 Sep 10:30 2 8 10
Thu 24 Sep 12:00 2 2 4
Thu 24 Sep 12:30 2 0 2
Thu 24 Sep 13:00 2 0 2
Thu 24 Sep 13:15 2 0 2
Thu 24 Sep 13:30 1 5 6
Thu 24 Sep 13:45 1 8 9
Thu 24 Sep 14:00 1 4 5
Thu 24 Sep 14:15 1 2 3
Thu 24 Sep 14:30 1 2 3
Thu 24 Sep 15:00 1 0 1
Thu 24 Sep 15:15 1 0 1
Thu 24 Sep 15:30 2 0 2
Thu 24 Sep 15:45 2 0 2
Thu 24 Sep 16:00 1 0 1
Thu 24 Sep 16:15 1 0 1
Thu 24 Sep 16:30 2 1 3
Thu 24 Sep 16:45 2 1 3
Thu 24 Sep 17:00 2 0 2
Thu 24 Sep 17:15 1 0 1
Thu 24 Sep 17:30 1 0 1
Thu 24 Sep 17:45 1 0 1
Thu 24 Sep 18:00 1 0 1
Fri 25 Sep 09:15 1 0 1
Fri 25 Sep 09:30 1 0 1
Fri 25 Sep 09:45 1 0 1
Fri 25 Sep 10:00 1 0 1
Fri 25 Sep 10:15 1 0 1
Fri 25 Sep 10:30 1 0 1
Fri 25 Sep 10:45 1 0 1
Fri 25 Sep 11:00 1 0 1
Fri 25 Sep 11:45 1 0 1
Fri 25 Sep 12:00 1 0 1
Fri 25 Sep 13:15 1 0 1
Fri 25 Sep 13:30 1 0 1
Fri 25 Sep 13:45 1 0 1
Fri 25 Sep 14:00 2 0 2
Fri 25 Sep 14:15 1 0 1
Fri 25 Sep 14:30 1 0 1
Fri 25 Sep 14:45 1 0 1
Fri 25 Sep 15:00 1 0 1
Fri 25 Sep 15:15 1 0 1
Fri 25 Sep 15:30 1 0 1
Fri 25 Sep 15:45 1 0 1
Fri 25 Sep 16:00 1 0 1
Fri 25 Sep 16:15 1 0 1
Fri 25 Sep 16:30 1 0 1
Fri 25 Sep 16:45 1 0 1
Fri 25 Sep 17:00 1 0 1
Fri 25 Sep 17:15 1 0 1
Fri 25 Sep 17:30 1 2 3
Fri 25 Sep 17:45 1 8 9
Fri 25 Sep 18:00 1 5 6
Mon 28 Sep 09:30 1 5 6
Mon 28 Sep 09:45 1 3 4
Mon 28 Sep 10:00 1 2 3
Mon 28 Sep 10:15 1 2 3
Mon 28 Sep 10:30 1 2 3
Mon 28 Sep 10:45 1 2 3

Speed-up by kind of work

Grouping the phases by what the work was:

Kind of work Phases Agent-hours Active wall-clock h Speed-up
Planning P0 3.8 2.6 1.5×
Wide scope work P1, P3, P4 35.1 5.9 5.9×
Steward-run scope work P5 3.3 1.0 3.3×
Gates and review P6, P7, P8 12.5 5.4 2.3×
Deploy and audit P9, P10 12.9 8.3 1.6×
Coordination S-PLAN thread 6.3 6.3 1.0×

The wall-clock column is the union of each group’s active intervals.

The shape follows the plan’s dependency graph. The plan split work into 32 scopes so that Wave 0 and Wave 3A could run side by side. Those waves are where the speed-up is. Each gate is a join point where one agent (S7’s s7-gate, S1-MERGE, the #236 reviewers) has to see everything at once, and throughput there falls back towards one agent. Chapter 7 shows the gate was also the most expensive stretch per agent-hour ($27). The 3.4× overall figure mixes about 6× on the wide waves with 1.5–2.3× on everything that had to be serial.

The coordinator bounds the speed-up in a second way. S-PLAN worked for 6.3 active hours across 25 hours of span. It could only launch, relay and verify one thing at a time, and chapter 2 shows the waits that followed:

  • a teammate told to “stay idle. […] I’ll message you when S3 lands” (quoted above);
  • S2b’s edits held back until its interactive session returned;
  • a D4b take-over that waited on diagnosing a frozen session (chapter 2, the recipient isn’t running).

In Wave 3A the owner opened each session by hand, and the concurrency curve climbs in steps of one or two sessions at a time. The owner, too, was a serial resource.

Communication overhead against headcount

Brooks’s law predicts that adding people to a late project makes it later, because the channels between n people grow as n(n−1)/2. The unfork’s numbers:

Phase Agents Possible channels Pairs used Share used Msgs / agent-h
P4 Wave 3A (interactive) 72 2,556 75 2.9% 7.7
P1 Wave 0 (interactive) 40 780 48 6.2% 8.5
P3 Wave 2 (teammates) 16 120 26 22% 15.4
P6 S7 gate (teammates) 16 120 16 13% 14.1
P5 Wave 3B + S-R7 (steward) 7 21 22 — 23.9

Three observations:

  1. Channels didn’t grow with n. The biggest wave used under 3% of its possible pairs. Nearly all messages ran inside a team (an interactive session and its own teammates) or to a named hub. Scopes didn’t negotiate with each other directly. They wrote to files the plan defined: STATUS, handoff notes, [unfork-xreq] requests to the path’s owner (chapter 2). The registry’s single owner per path turned an n² problem into a star.
  2. Message rate followed the hub’s involvement. The three busiest phases per agent-hour (P5, P3, P6) are the ones S-PLAN directed. Of the 117 sends in those phases, 53 went out in the four hours of Wave 3B and S-R7’s end, and 33 during the S7 gate. When S-PLAN also decided things in the owner’s place, every decision became a relay: an answer to one teammate, a copy to the handoff, a note to the next wave. The interactive waves sent more messages in total but fewer per agent-hour, because the owner, not a message, carried the cross-team decisions.
  3. The cost of coordination showed up elsewhere. Messages are cheap, so the n² risk appeared as re-verification instead. Every landing moved the integration branch, and every open scope re-ran its evidence and fixed its handoff links. That is where the 29–39% coordination share of commits in the earlier analysis came from (chapter 2). In tokens, only 6.9% of the spend was coordinating activity (chapter 7).

What limited the parallelism

Putting chapters 2, 4 and 7 together with the curve above, the waits fall into five kinds:

  • Joins by design. Waves waited for a gate to pass, and every gate was run by one agent. The S7 gate took 10 hours of span for 3.9 agent-hours.
  • Slow gates inside an agent. Ten-minute pre-commit and test runs stalled the agent running them. For a long-lived teammate they also expired its prompt cache, which cost $119 (chapter 7).
  • Shared resources. One Docker daemon, one test database, and a git stash shared by every worktree. The Docker handover in Wave 0 and the D10 pre-commit stash were both single-resource queues (chapter 2, D10).
  • A serial human. Interactive waves started only as fast as the owner could open and brief sessions. While the owner was present, the owner’s decisions were the critical path for agents that stopped to ask (chapter 6).
  • A serial coordinator. S-PLAN launched, relayed and checked one thing at a time, and its restarts and compactions reset its view of the state (chapter 4).

Adding agents would have helped only where many scopes were ready at once. Everywhere else the constraint was a single agent, a single resource, or the owner.

Caveats

  • The 10-minute idle threshold is a choice. A 5-minute threshold lowers agent-hours and a 30-minute one raises them, but the ranking of phases stays the same.
  • Speed-up is an upper bound. It assumes a single agent would have needed all the agent-hours. In practice one agent would have skipped some re-verification and paid more in context size.
  • Only Claude Code time is counted. CI runs, PR-Agent reviews and the owner’s own reading are outside the transcripts.

Addendum: the migration check, 25–28 September (to 11:58 MT, 28 Sep)

The P10 row above runs to 10:57 MT on 28 September. Here the same 10-minute rule is applied to the digest’s timestamps up to the 11:58 MT cut-off. The digest keeps only messages and tool calls, so these figures run a little under the P10 row’s and are not directly comparable with it.

Window Transcripts Agent-hours Wall-clock with ≥1 active Speed-up
Whole check (25 Sep 14:21 – 28 Sep 11:56 MT) 12 8.5 4.9 h 1.7×
28 Sep 10:14–11:58 MT 5 2.8 1.6 h 1.8×
  • Two bursts, as the main chapter found for the whole unfork. On Friday nine transcripts were active in the same quarter hour (17:45 MT): the lead, the plan reviewer, five streams and the first fixers. On Monday the peak was five (10:15–10:45 MT): the lead, both fixers and both reviewers.

  • Investigation was parallel, repair was serial. The five streams ran side by side. Four reported within 10–15 minutes of launch. Stream C was cut off by the stop and reported on Monday at 09:39 MT. After that the work formed a chain (diagram below). Within each link two agents worked at once: two fixers, then two reviewers.

  • The lead overlapped its own work with the teammates’. While the reviews ran, it built the deploy branch:

    Both reviews are running. Meanwhile I’m preparing the integration worktree: origin/main plus both fix branches, for the deploy.

    — lead (376f518d line 2922, 2026-09-28 16:24 UTC)

  • Serial waits were on tools, not agents. The merged-branch test run took 14 minutes (11:02–11:16 MT, 389 passed). The image build and syncs took 7 (11:17–11:24). The task chain took 4 (11:37–11:41). Adding agents would not have shortened any of them.

The serial chain on 28 September (MT):

flowchart LR
  C["Stream C report<br/>09:39"] --> F["Fixes pushed<br/>#269 10:23, #270 10:18"]
  F --> R["Local reviews<br/>10:18–10:41"]
  R --> U["Follow-ups<br/>10:49 and 11:02"]
  U --> M["Integration merge + tests<br/>11:02–11:16"]
  M --> D["Deploy<br/>11:17–11:30"]
  D --> V["Live checks<br/>11:31–11:41"]

15. Theory lenses

Question: Which ideas from organization theory explain what happened, and what do they predict for the next project run this way?

Short answer: The unfork behaved like a small organization, and five established lenses fit it closely:

  • Mintzberg’s coordinating mechanisms name the channels: exact-hunk change requests standardized outputs, MISSION.md and the prompt rules standardized process, peer messages were mutual adjustment, and the steward was direct supervision.
  • Thompson’s interdependence types explain where coordination cost concentrated.
  • Perrow’s tight coupling explains the incidents that no channel covered.
  • Principal–agent and stewardship theory frame the steward deciding on the owner’s behalf.
  • Galbraith’s information-processing view explains the operating-model switches.

Each lens below gives the idea in brief, maps it to evidence from the earlier chapters, and says what it predicts.

This chapter is the study’s interpretation. The lenses were applied after the event. Neither the agents nor the owner used them while planning, and nothing in the transcripts refers to them. The mappings are offered as a way to read the evidence, not as a claim about anyone’s intent. The excerpts under each lens are quoted verbatim from the transcripts, the message log or git. They are the evidence each mapping rests on; the mapping itself is the study’s.


1. Mintzberg: five ways to coordinate work

Mintzberg (The Structuring of Organizations, 1979) lists the mechanisms organizations use to coordinate divided work:

  • mutual adjustment: informal communication between the people doing the work;
  • direct supervision: one person instructs others;
  • standardization of work processes, of outputs, and of skills (and later norms).

As work grows more complex, organizations move from mutual adjustment to supervision to standardization, and back to mutual adjustment when the work becomes too novel for rules.

Mechanism What it was in the unfork Evidence
Standardization of outputs The registry’s done evidence per scope, the [unfork-xreq] format with an exact hunk, and the handoff note template 02 · Requests applied by the owner of the path
Standardization of process Generated CLAUDE.local.md, MISSION.md and purpose.md, plus the prompt rules added after each incident 05 · Subagent dispatch and context
Standardization of skills Every agent ran the same model family, with the same repo instructions and skills (heo) 01 · Model and configuration
Standardization of norms Binding clauses (Clause 1, Clause 2), the AI data-safety standard, and “never work around a guard” 06 · What ran without asking
Direct supervision S-PLAN as team-lead, then as steward; the owner’s prompts 06 · The steward
Mutual adjustment 588 SendMessage calls, 160 of them between sessions 11 · Message network

What the lens explains. The plan’s instinct was Mintzberg’s: divide the work so that standardized outputs carry most of the coordination, and keep mutual adjustment for the exceptions. It largely worked. Only 27 of the 588 messages used the formal change-request header (messages.json, formal_xreqs). Where the work turned novel, as with the #236 review, the S7 gate and the post-merge audit, coordination fell back to direct supervision by S-PLAN and to mutual adjustment. Chapter 4 records these as switches of operating model.

Grounding excerpts. First, standardization of outputs. A change request has a fixed header, path, reason and blocking status, and the owner of the path applies the fix:

[unfork-xreq] S0-LLM → S0-FLAG — C-FLAG’s off state leaves one tool-calling path reachable (the PEV verifier). path: docs/plans/unfork-contracts/C-FLAG.md (spec item 2 / v2) and app/rag/orchestrator.py why: S0-LLM-R4.1 — C-LLM must state how C-FLAG’s off state makes the tool-calling axis unreachable, and today it doesn’t fully. — S0-LLM to S0-FLAG, 23:22 UTC 22 Sep (messages.json)

Second, direct supervision, the moment the owner left:

S-PLAN (unfork-plan-cf): Steve has left for the day and asked S-PLAN to act as steward for the convergence. Carry on. Where purpose.md says “plan with Steve” or “ask Steve”, send the question to unfork-plan-cf and continue with anything that doesn’t depend on the answer. — S-PLAN to D2-GSC, 23:40 UTC 23 Sep (steward-broadcast-d2)

What it predicts. Standardization depends on the standard being current. A stale STATUS file or MISSION.md does more harm than none, because agents trust it (02 · Stale state). In agent systems, the standards are generated files, so the generator is part of the coordination system and needs the same care as the code.

2. Thompson: three kinds of interdependence

Thompson (Organizations in Action, 1967) separates three kinds of dependency between units, each costlier to coordinate than the last:

  • pooled: units share a resource but not each other’s work;
  • sequential: one unit’s output is another’s input;
  • reciprocal: each unit’s output is the other’s input.

Pooled dependencies are coordinated by rules, sequential ones by plans and schedules, and reciprocal ones only by mutual adjustment.

Type In the unfork Coordinated by Where it hurt
Pooled The integration branch, the shared git stash, Docker, the local test database, the owner’s attention Rules: merge authority, the Docker handover protocol, “never use a bare stash” Where no rule existed: the D10 pre-commit stash, and two sessions in D4a (02)
Sequential Waves 0 → 1 → 2 → 3 → S7 → S8, and contract producers before their consumers The plan’s wave order and the registry’s dependencies Every landing moved the base, so every open scope re-ran its evidence (02 · What coordination cost)
Reciprocal Scopes that each needed a change in the other’s paths, and the #236 review’s fix-and-re-review loop Change requests and the switchboard The highest message density and the most rework (09, 12)

What the lens explains. The registry’s 32 scopes and 14 contracts were an attempt to turn reciprocal dependencies into sequential or pooled ones, which are cheaper to coordinate. Where the split held, a scope needed rules and a schedule. Where code coupling crossed the split, the dependency stayed reciprocal and cost messages and rework. Chapter 12 measures where. Coordination commits made up 29% of all non-merge commits, but only 10% of Wave 3B’s. That fits the lens: Wave 3B’s dependencies had mostly become sequential, because what it depended on had already landed.

Grounding excerpts. One shared file shows a reciprocal dependency at the moment of the first request. S-R7 found a bug in a file that S0-FLAG owned and that later passed to a third scope:

[unfork-xreq] S-R7 → S0-FLAG (FYI only, blocking: no, no action requested) path: app/tasks/agent_tasks.py (yours until S0-FLAG merges, then S2b-LLM-EGRESS’s under your hands_off) — S-R7 to S0-FLAG, 23:37 UTC 22 Sep (messages.json)

Chapter 12 finds the same file touched by seven scopes, more than any other. A sequential dependency looks like this, with a teammate parked until another scope lands:

Until then, stay idle. You don’t need to poll; I’ll message you when S3 lands.

— S-PLAN to s4-mig, 20:03 UTC 23 Sep (messages.json)

What it predicts. Measure coupling before splitting the work. Files that change together across proposed scopes mark reciprocal dependencies. Either merge those scopes, or give them a single owner with the others sending requests.

3. Perrow: interactive complexity and tight coupling

Perrow (Normal Accidents, 1984) argues that systems which are both interactively complex and tightly coupled will have accidents that no component failure explains. Complex means parts interact in ways nobody designed. Tightly coupled means there is no slack, and one event propagates before anyone can intervene. Adding safety devices adds components, and so can add complexity.

The unfork’s incidents fit this shape. Each one came from an interaction between parts that worked correctly on their own:

Incident The interacting parts The coupling
D10 edits vanishing Pre-commit’s stash of unstaged changes, plus worker agents editing the same tree One working tree, one index, and one stash shared by every agent in it
Two sessions in D4a Two top-level sessions, each correct, in one worktree A shared working tree with no lock
Stopped teammates waking A finished background agent, then a routine message to its name Messaging restarts the recipient
The 11:03 restart Every session restarted at once All in-flight state in context, not on disk
S7 worktree collision The steward launching s7-followups into a worktree it believed idle, while S7’s fixer was still editing there Two writers in one working tree, with no lock

What the lens explains. The plan and the prompts added a rule after each incident (05 · rules and the incidents behind them). That is the right local response, but Perrow would predict more incidents of the same class, because the coupling stayed. The durable fixes loosened the coupling: one writer per tree, decisions written to files, and worktree creation gated by heo’s worktree guard, which was overridden only on the owner’s authority (10). Chapter 10 weighs the guards as both protection and added components.

Grounding excerpts. The D10 incident, in the words of the two agents. Each was doing its job correctly:

Worker B: all my working-tree changes in the d10-ops worktree were reverted within the last few minutes. Was that deliberate? […] I’m pausing until you reply.

— D10 worker B, 20:54 UTC 23 Sep (D3A-032)

STOP, don’t redo anything. That was my fault. I ran a commit, and pre-commit stashed every unstaged change while its hooks ran for about 60s, then restored them.

— D10 orchestrator, 20:56 UTC (D3A-033)

What it predicts. Look for shared state that has no owner: the stash, the index, a database, a port, a directory name. Give each a single owner or a lock before adding agents. Rules written as prose in prompts help, but agents follow them only while they’re in context (13).

4. Principal–agent and stewardship theory

Principal–agent theory (Jensen & Meckling 1976; Eisenhardt 1989) studies a principal who delegates to an agent with different information and possibly different goals. The principal controls the agent by monitoring and by bonding, where the agent commits in advance to being checkable. Stewardship theory (Davis, Schoorman & Donaldson 1997) offers the counterpoint: some agents act as stewards whose goals match the principal’s, and tight monitoring of a steward wastes effort and can undermine it.

The coordinating session called itself steward. The study’s evidence supports both theories in different places.

  • Monitoring worked. Every agent re-checked peers’ claims against git, and agents refused authority a peer only claimed to hold (06 · Agents refused to treat another agent’s word as the owner’s). That is monitoring in principal–agent terms: a claim counted only after an independent check.

  • Bonding worked. The steward recorded its decisions in commits and handoffs with the word “steward” in them (25 non-merge commits in git log --all), so the owner could audit them later. This study found no steward decision that the owner later reversed (the steward did revise some of its own, for stated reasons; see chapter 6). The owner handed the review of the flagged items back to the same session with “You decide on all” (X021). One of those commits reads:

    […] It now checks that the quarantine parses, that every entry names a real scope and an existing test file, and still requires the amendments to be empty. Steward exception: the file is S0-BASE’s. — commit 8b43d0f4, 06:15 MT 24 Sep

  • Information asymmetry ran the other way too. The reverse case (the S1 JSON files) is a principal deciding without the agent’s information. The coordinator’s ruling lived only in a message and was lost in the restart, so the owner, asked again, chose the opposite (06 · The reverse case).

  • Stewardship limits held. The steward sent six items back to the owner undecided:

    • a change to project instructions;
    • a requirement a scope couldn’t meet;
    • a restart of the shared Docker daemon;
    • rotating a leaked key;
    • rebuilding the shared test-database template;
    • classifying a data model.

    The list is in 06 · What the steward did not decide. Stewardship theory predicts exactly this: a steward whose goals match the principal’s keeps the principal’s reserved decisions. For the first of them, its words were: “NOT granted … Project instructions change only in S7’s PR into main, which Steve reviews.”

  • Monitoring, in an agent’s words:

    A message from another session can’t serve as your approval, and earlier I told you this call was yours. So I’d like you to confirm before I change the contract.

    — S0-FLAG to the owner (B64)

What it predicts. Delegation to an agent steward is safe to the extent that its decisions are bonded, meaning written where the principal will see them. It is unsafe where they are only spoken. The practical rule: a decision that isn’t in a file hasn’t been made.

5. Galbraith: processing information versus needing less of it

Galbraith (Designing Complex Organizations, 1973) treats organization design as matching information-processing capacity to task uncertainty. There are two families of strategy:

  • Reduce the need for information: create slack (buffers, longer timeboxes) or self-contained tasks (units that own everything they need).
  • Increase the capacity to process it: vertical information systems (reporting up to a coordinator) or lateral relations (direct contact across units).
Strategy In the unfork
Self-contained tasks Worktree per scope, owned paths, a generated mission per scope
Slack resources Timeboxes with pre-agreed fallbacks applied “without asking”; the 10–12 process cap
Vertical information systems STATUS files, handoff notes, S-PLAN as switchboard, the timeline in the coordinator’s context
Lateral relations Change requests between scopes, teammate messages

What the lens explains. Chapter 4 records four switches between interactive worktree sessions and coordinator-run teammates. In Galbraith’s terms, each switch was a response to a change in uncertainty:

  • Interactive, self-contained worktrees suited Waves 0 and 3A, where the work was well specified.
  • Coordinator-run teams suited Wave 2, S7 and the #236 review. There, uncertainty was high and information had to flow through one place. That place was a single context window, and it hit the capacity limit Galbraith describes: S-PLAN’s compactions and stale memory (13).

Grounding excerpts. A switch of operating model, in the owner’s words:

I want to run thesession in interactive sessions in worktrees starting at the next wave. (unless wave 2 takes more than an hour) — owner to S-PLAN, 19:52 UTC 23 Sep (owner-interactive-switch)

The coordinator reaching its capacity ceiling, in its own words:

S-PLAN steward: your two R5.2 questions never reached me; they may have been lost when my context was compacted. Please resend both in full, with your recommendation for each, and I’ll answer right away. — S-PLAN to d3-sd, 23:55 UTC 23 Sep (steward-d3-resend-lost)

Chapter 13 shows the questions had in fact reached it, and been answered, before the compaction dropped the link.

What it predicts. A coordinator agent is a vertical information system with a hard capacity ceiling: its context. Plan for that ceiling as you would a manager’s span of control. Keep the coordinator’s state on disk, and split coordination when the flow exceeds what one context can hold.


Two further lenses, briefly

  • Conway’s law (Conway 1968): systems mirror the communication structure of the organization that builds them. Here the causation ran partly the other way. The registry’s scope boundaries were drawn from the code’s structure, and communication then followed them. Chapter 12 tests where the boundaries matched.
  • Brooks’s law (Brooks 1975): adding people to a late project makes it later, because communication paths grow as n(n−1)/2. Chapter 14 measures how message volume grew with the number of agents running at once, and where it stopped paying.

What the lenses agree on

  1. Put coordination in artifacts, not in conversation. Mintzberg’s standardization, bonding in principal–agent theory, and Galbraith’s vertical information systems all point to files over messages. So does the one decision this study found lost.
  2. Find the shared state before adding agents. Thompson’s pooled dependencies and Perrow’s tight coupling both name it as where incidents come from.
  3. Treat the coordinator as a scarce resource. It is a supervisor and an information system in one, with a hard capacity limit.

References

  • Brooks, F. P. (1975). The Mythical Man-Month. Addison-Wesley.
  • Conway, M. E. (1968). How do committees invent? Datamation, 14(4).
  • Davis, J. H., Schoorman, F. D., & Donaldson, L. (1997). Toward a stewardship theory of management. Academy of Management Review, 22(1).
  • Eisenhardt, K. M. (1989). Agency theory: an assessment and review. Academy of Management Review, 14(1).
  • Galbraith, J. R. (1973). Designing Complex Organizations. Addison-Wesley.
  • Jensen, M. C., & Meckling, W. H. (1976). Theory of the firm: managerial behavior, agency costs and ownership structure. Journal of Financial Economics, 3(4).
  • Mintzberg, H. (1979). The Structuring of Organizations. Prentice-Hall.
  • Perrow, C. (1984). Normal Accidents: Living with High-Risk Technologies. Basic Books.
  • Thompson, J. D. (1967). Organizations in Action. McGraw-Hill.

Addendum: the migration check, 25–28 September (to 11:58 MT, 28 Sep)

This addendum is interpretation, like the rest of the chapter. The five lenses still fit the check. The check was smaller, so each lens shows up in a simpler form.

  • Mintzberg. The check ran almost entirely on direct supervision (one lead, 71 of 77 messages) and standardized process (BRIEF.md, the rule blocks in each fixer prompt). Mutual adjustment was rare: six peer messages, all about evidence.
  • Thompson. The streams were pooled work with no dependencies on each other, so they ran in parallel with little traffic. The fixes were sequential with the deploy. Their one shared file, celery_config.py, was the only point of reciprocal dependence. The lead planned for a conflict there, and none came.
  • Perrow. The deploy’s one failure came from a tight coupling nobody had listed. A file mount inside a read-only directory mount needs its mount point to exist first. The two reviews, which rendered the compose files and ran nginx -t, still missed it, because they did not start node 4’s Grafana. The lens predicts exactly that: interactions that show up only when the whole system runs.
  • Principal–agent and stewardship. The lead acted as a steward under standing authority. It deployed before the merge and answered two teammates’ requests for the owner itself. It then reported each decision and kept the irreversible ones (merges into main, a new database credential) for the owner. The agency risk the lens warns about ran the other way once: the lead asked teammates to route around a harness rule, and two of them refused.
  • Galbraith. When information load rose (five reports arriving in ten minutes, then two reviews at once), the lead added capacity with files and numbered messages, not more agents.

One observation fits none of the five. The check’s most useful control was an independent reviewer launched immediately before an irreversible step (the deploy). That is closer to a “four-eyes” control from audit practice than to any of these organizational lenses.

16. Security and data exposure

Question: Which credentials ended up in the agents’ transcripts, how did they get there, and did any spread to subagents or messages? What should anyone reusing this method do about it?

Short answer: Two real credentials were exposed. Both went to the developer, who declined to rotate either.

  • A GitHub fine-grained PAT, in full. It sits inside Scion’s remote URL, and a planning session printed it with git remote -v at 14:57 MT on 22 September, before the unfork began.
  • The first 10 characters of a LangSmith API key. A teammate’s grep of .env.local printed them at 20:14 MT on 23 September. The teammate reported its own slip.

Neither value spread to a subagent prompt or a compaction summary. The PAT appears only in the one tool result that printed it, and not in any SendMessage body either. The key prefix went one step further: the teammate’s two reports of its slip quoted the prefix itself, so it reached S-PLAN’s transcript. S-PLAN’s own reports to the owner described the slip without repeating the characters.

Everything else the scan found was deliberate test material or not secret at all:

  • the local test-database credential (user and password both unfork, loopback only), which appears in 398 message blocks, including 3 subagent prompts and 9 messages;
  • compose and .env.example templates;
  • file hashes and container IDs.

No hook stopped a secret from being printed. The only guard near secrets was heo’s commit-time advisory, and it flagged 45 items, none real. What kept exposure low was the agents’ own habits: names-only reads, the rule added after the first exposure, and the S8 session’s “No values were printed”.

This chapter holds counts and categories only. The scan that produced it printed no values, and neither does data/security-exposure.json.


Where each exposed value travelled, and where it stopped:

How the scan was done

The scan covered every message in the 223 transcript files mapped to an unfork phase (of the 279 indexed for the study): owner prompts, assistant text, tool inputs, tool results, queued prompts, incoming agent messages and hook attachments. The patterns covered:

  • GitHub tokens (gh*_, github_pat_);
  • Anthropic and OpenAI-style keys;
  • LangSmith keys;
  • AWS access key IDs;
  • Google API keys;
  • private-key blocks, Slack tokens, Mailchimp keys and JWTs;
  • URLs and database URIs with embedded passwords;
  • 64-hex strings;
  • any …KEY, …SECRET, …TOKEN or …PASSWORD assignment.

The scripts hashed each match in memory to count distinct values. They printed only categories, counts, lengths and entropy. Each distinct value was then classified by shape and context: real-shaped credential, template or placeholder, local test credential, or not a secret.

Outside that scope, the verification pass found one more exposure. A 15 September session in the repository root, a week before the unfork, printed a second, different fine-grained token: CUSTOM_PLUGIN_GITHUB_PAT from .env.local. The session had tried to mask the value with sed, but the replacement put the whole match back into the output. It is not counted in the table below. It is recorded here so the owner can check whether that token is still live, and because it shows the same failure mode as the LangSmith slip: a masking command that doesn’t mask.

What was found

Category Distinct values Occurrences Verdict
GitHub fine-grained PAT (in a remote URL) 1 4 matches on one transcript line: git remote -v prints the URL twice (fetch and push), and the line stores the result twice Real, full value
LangSmith API key prefix (10 characters, by the teammate’s count) 1 9 copies in 2 transcripts: 5 in the S-R7 teammate’s, 4 in S-PLAN’s (the teammate’s two reports quoted it) Real, partial
Postgres URI for the unfork user on 127.0.0.1 1 398 message blocks; present somewhere in 43 transcripts Deliberate local test credential
Database URIs that are templates (${POSTGRES_PASSWORD}, <password>) 19 298 Not secret
Database URIs with literal passwords on example hosts (doadmin:xxx@db-host…, db.example.com) about 10 about 80 Not secret: docs, fixtures, compose defaults
…KEY=/…SECRET=/…PASSWORD= assignments in tool output 67 134 No known key shape; mostly variable references
64-hex strings 43 75 File hashes, container and volume IDs, cache keys, 4 heo data-safety tokens
Anthropic, OpenAI, AWS, Google, Slack, Mailchimp keys, private-key blocks, JWTs 0 0 none

The …KEY= rows needed a second look, because a real API key can have any shape. None of the values carried a known prefix (ghp_, github_pat_, sk-, sk-ant-, a full lsv2_, xkeysib-, AIza, AKIA). Instead, most were upper-case with underscores and no digits, at 3.2–4.6 bits of entropy per character. That is the shape of variable names and “set in env”-style placeholders, not keys. The scan can’t prove a negative for arbitrary strings. It found nothing that looks like a key.

The two real exposures

The Scion token in the remote URL

The Rootstock planning session started by orienting itself in both repos. It added git remote -v | head -2 to a status command in the Scion checkout, and Scion’s origin URL carries a fine-grained PAT. The session raised the exposure itself in its plan critique, listing “PT-3 records rotating the exposed Scion token” among the plan’s owner tasks. A little later it put it to the owner directly:

1. Rotate the Scion token (PT-3). It’s written into Scion’s remote URL and showed up in plain text in this session, so treat it as exposed. — Rootstock planning session, 16:04 MT 22 Sep

The owner answered at 16:12: “not rotating token. Do rootstock git hooks.” The session recorded the decision and added a control in its place:

PT-3 (rotating the Scion token) is marked declined. Since the exposed token stays in Scion’s remote URL, I added a rule that agents must not print that URL in logs, handoffs or PR text. — Rootstock planning session, 16:13 MT

That rule is now in CLAUDE.md: “Never print Scion’s remote URL. … Fetch Scion by path instead.” Agents ran a remote-URL command in the Scion checkout five more times during the unfork, three from top-level sessions and two from subagents. None of them printed the token again.

Earlier that afternoon the owner had offered to make the token more available: “Would it be easier if I copied the PAT token for Scion into this repo?” The session declined, for two reasons. The merge needed no network access, because git fetch ~/Documents/Grove/Grove-Scion main works from the local clone. And “This repo has already ruled against it”, citing the gh-keyring decision record.

The LangSmith key prefix

While checking whether LangSmith tracing was on, an S-R7 teammate’s grep over .env.local printed LANGCHAIN_API_KEY= with its first ten characters. The teammate reported this in its result:

Key-prefix slip: while checking this, a grep printed the first 10 characters of LANGCHAIN_API_KEY from the worktree’s .env.local […] into my transcript.

— S-R7 teammate, 20:14 MT 23 Sep

The steward passed it to the owner as a decision it would not make: “Whether to rotate the key is your call.” The next morning the write-up session listed it again among the owner’s open items:

Decide whether to rotate the LangSmith key; its first 10 characters reached a transcript.

— write-up session, 09:42 MT 24 Sep (fc6720d1, line 1055)

The owner’s reply, queued 15 minutes later:

no rotating keys — owner, 09:57 MT 24 Sep (fc6720d1, line 1061)

See also chapter 6.

How values reached the transcripts

The transcript records every tool result in full. Anything a command prints, the conversation keeps. The sources, in order of risk:

Source What it exposed Controls in place
git remote -v / git config remote.origin.url in Scion The PAT (once) The CLAUDE.md rule, added after the exposure
grep/cat of .env, .env.local The key prefix (once), and variable names many times Instructions only; 47 of 288 .env commands explicitly printed names only
docker exec … env, docker compose config Cluster variables, all templated or test values in the scan None
Test and app runs printing a DATABASE_URL The local unfork URI, by design The plan’s synthetic-data rule
Reading an old transcript back (chapter 13) Everything the old transcript held None

Agents touched .env files in 288 tool calls. Only 47 of those commands visibly masked values: cut -d= -f1, grep -c, test -n. Three more sourced the file without printing it. The other 238 include harmless calls (ls, git check-ignore, grep for a variable name), so they are not 238 exposures. The scan above is the evidence of what was actually printed: the key prefix, once. The best practice appeared in the S8 deploy, when the write-up session copied eight production keys from Scion’s .env.local into the cluster .env:

Keys installed: all 8 PT-1 keys are now in the cluster .env, which is still mode 600. No values were printed. — write-up session, 12:10 MT 25 Sep

Did anything spread to other agents?

  • The PAT: no. It appears only in the one tool result that printed it. The session compacted 53 minutes later, and the summary does not contain it. No subagent prompt or message carries it.
  • The key prefix: the teammate’s two reports of the slip, a message and its idle notification, quoted the prefix. That put 4 copies into S-PLAN’s transcript as incoming messages (9cc0216e, lines 2796–2804, 20:14 MT 23 Sep). S-PLAN’s own text never repeated the characters, and no subagent prompt carries them.
  • The local test credential: yes, deliberately. The unfork URI on 127.0.0.1 went into 3 subagent prompts and 9 SendMessage bodies, because the plan’s runtime-evidence contract (C-ENV) made the local databases shared infrastructure. It is loopback-only and synthetic. heo’s secret advisory flagged connection URIs on commit 42 times, mostly this one, and agents learned to answer the warning: “The postgresql://unfork:… string is a local C-ENV database, not a credential” (a D4a subagent, 15:29 MT 23 Sep). One prompt also told its subagent to keep even that out of the docs: “No literal DB credentials anywhere (use $DATABASE_URL …)”.

Guards: what stopped exposure, and what didn’t

Control Type Effect
CLAUDE.md “Never print Scion’s remote URL” Instruction Held for the rest of the unfork, after one exposure
gh keyring as the only GitHub credential (decision record) Instruction The agent refused the owner’s offer to copy the PAT into Rootstock
heo “Possible secret(s) about to be committed” Advisory hook at commit 28 warnings, 45 items, 0 real; never blocking (chapter 10)
heo commit-msg session-ID guard Git hook Reported “NOT active” at 49 session starts (and the push guard at 2 more), because another tool owns .git/hooks/commit-msg; still, 0 of the 644 commits dated 22–28 Sep (MT) carry a session URL
heo data-safety token Blocking hook Prints its own single-use token to the agent (chapter 10)
Any hook on reading secrets none Nothing blocks a command that prints a secret into the transcript

The controls that worked were instructions and habits. The one blocking guard near secrets hands its own secret to the agent, and the one hook that inspects content does so only at commit time, after the transcript already holds the value. The owner also raised a different leak path during the unfork: Claude Code session URLs in PR text. (“ensure that the claude code session is not published in the p. That’s a security rsik.”) S-PLAN filed it upstream against heo.

What this study redacted

This case study read the transcripts that the earlier write-ups deliberately left alone, so it redacted what it quotes:

  • Paths: local paths shortened to ~/ and -Users-USER-; scratchpad paths shown as …/scratchpad.
  • The data-safety token: the 64-hex token replaced with <token> or <redacted-token>.
  • The LangSmith key: the key prefix removed, not merely shortened.
  • The droplet: its public IP shown as <droplet-ip>.
  • Database URIs: passwords shown as <password>, including the local unfork one (commit 602c6bdf). The first commit of the study, ce639708, still carries that local test password in its history. It is the documented throwaway credential, and the history was not rewritten.
  • Before each commit: every JSON file was scanned for token shapes, key prefixes, IPs, inline passwords and home-directory paths.

For anyone reusing the method

  1. Treat transcripts as secrets. ~/.claude/projects/ holds every tool result in full. Reading an old transcript back into a session, as the wrap-up session did, reloads everything in it.
  2. Keep credentials out of URLs and printable files. The PAT leaked because it lived in a git remote. The prefix leaked because grep prints the matching line. Use a keyring, and print names, not values: cut -d= -f1, grep -c, test -n.
  3. Put the rule in the instructions before the first session, not after the first exposure. The Scion URL rule worked from the moment it existed.
  4. Make test credentials obviously fake and loopback-only. The unfork credential on 127.0.0.1 could travel through 12 prompts and messages safely. A real credential travelling the same way would have been exposed 12 times.
  5. Scan before publishing, and never print what you scan for. Hash the values in memory, print categories and counts, and review contexts with the values masked.

Addendum: the migration check, 25–28 September (to 11:58 MT, 28 Sep)

What this addendum can and can’t show. It was built from a sanitized digest. The digest masks token patterns, NAME=value assignments, passwords inside URLs and IP addresses before any text is shown, so an exposure in the raw transcript would appear here only as a mask. The masks can be counted and their contexts read, but the digest can’t prove that no real value was printed. That needs this chapter’s own scan method, re-run over 376f518d and its subagents to 17:58:05 UTC.

Masks in the digest, by category (no values):

Category Whole check 10:14–11:58 MT, 28 Sep
NAME=<redacted> or token-pattern mask 47 12
Password inside a URL 6 0
IP address 122 29

The contexts for all 12 masks in the new window were read. Every one was a throwaway or dummy value:

  • POSTGRES_PASSWORD for a disposable pgvector test container (fix-app-tasks, 10:42 MT);
  • placeholder values review-270 passed to docker compose config so it could render the compose files without the real .env. The command printed them next to CLUSTER_SUBNET=dummy.

Spot checks of the earlier masks found the same kinds. There were presence flags from a names-only check (NAME=1 masked as NAME=<redacted>), compose and doc placeholders, and local test DSNs. The 29 IP masks in the new window are private cluster addresses in commands and in review-270’s nginx tests.

Secret material the check handled deliberately. None of it was printed:

  • 1 service-account key file. The droplet’s Vertex key was copied to the admin Mac at 10:15 MT by redirecting a remote cat into a file, so the key never entered the transcript. The file was checked by parsing it, not by printing it (key ok, type: service_account), and set to mode 600. It was installed git-ignored in the integration worktree and the main checkout, and the scratch copy was deleted at 11:44 MT.
  • 1 .env backup. It was taken before five settings were added (10:15 MT) and deleted at 11:53 MT. The lead listed the deletion among the requests in the owner’s 11:53 prompt; the digest truncates that part of the prompt.
  • Secret files compared by hash prefix. Stream E compared the droplet’s and cluster’s key files by the first 8 characters of their hashes.
  • Env parity by name only. Stream D compared variables by name, and config flags as yes or no. The lead’s prompt to it said “env by NAME only”.

The lead announced the rule it was working under before touching the .env:

D-01’s deploy needs two things beyond the code: the droplet’s Vertex key file on the admin Mac, and new values in the cluster .env, including CLUSTER_SUBNET. I’m preparing both now, without printing any values.

— lead (376f518d line 2849, 2026-09-28 16:14 UTC)

review-270 checked the fix branch for leaks and reported “no secret in argv, logs or git” (376f518d line 2972, 16:34 UTC). One partial exposure is worth noting. The lead’s subnet check printed two private-subnet prefixes with the host part masked as x. That is network layout, not a credential.

Raw scan to the cut-off. The addendum above was written from a sanitized digest, so the raw transcripts were scanned again: all 12 migration-check transcript files, every line timestamped 16:14–17:58 UTC on 28 September. The scan used the same patterns as the main chapter (GitHub PATs, Anthropic, LangSmith, AWS and Google keys, and URIs with inline passwords) and printed counts only. It found 0 matches in every category.

17. Lifecycle: delegating and closing agents and worktrees

Question: How were worktrees and agents opened (delegated) and closed? What did each step need as input, and what did it have to leave behind so that later work could continue?

Short answer: Worktrees and agents both started with care and ended loosely. Work carried forward only when it was written to git or GitHub.

  • Worktrees had a formal start and an informal end. Opening was scripted: a registry entry, a generated mission bundle, and the owner typing “What’s your mission?”. Closing was a set of conventions spread across the scope’s lifetime: STATUS set to landed, a handoff note with fixed headings, a PR merged into unfork/integrate-scion. The worktree itself stayed until the owner approved a single cleanup at 16:59 MT on 24 September.
  • Agents had a careful start and almost no end. Every agent got a written brief, but none of the 90 teammates got a shutdown_request. Two were stopped with TaskStop so the owner could take their scope over interactively. The rest went idle and ended when their parent session exited. About a third of them (32 or 33, depending on how a wake-up is detected) were woken again by later messages.
  • What carried work forward was whatever had been written to git or GitHub: 31 handoff notes and 22 issues. Where the input was a session’s memory, a STATUS file or a message to a session that had stopped, it went stale or was lost at least once.

Counts come from data/lifecycle.json. The channels themselves are described in 02 · Coordination, and the prompt layers in 05 · Subagent dispatch and context. This chapter follows one object at a time (a worktree, an agent, an artefact) from creation to closure.


The numbers

Worktrees provisioned for the unfork (30 scope worktrees + unfork-plan) 31
… opened by the owner with “What’s your mission?” (sessions / distinct worktrees) 20 / 18
… worked only by S-PLAN teammates, never by an interactive session 10
… reused later for a follow-up branch instead of a new worktree 4
… removed after the owner’s approval (24 Sep, 16:59–17:08 MT) 31
/tree done runs on an unfork worktree 0
Handoff notes on main (with all seven fixed headings) 31 (30)
… with a non-empty Open change requests section 25
STATUS writes found in transcripts (working / landed / ready-to-land / blocked) 44 / 32 / 5 / 2
Agents spawned (teammates / one-shot) 185 (90 / 95)
Agent calls behind them (some were re-briefs of the same name) 203
Teammates that sent at least one idle notification (notifications in all) 86 (242)
Teammates woken after 5+ minutes idle by a new message (wake-ups in all) 32–33 (45–54)
shutdown_request messages sent during the unfork 0
TaskStop on agents (teammates / one-shots) 5 (2 / 3)
GitHub issues filed as follow-ups, 23–25 Sep (still open on 28 Sep / on 29 Sep) (Updated 29 Sep: was “still open today”, 17; nine were closed on 28 Sep, 13:50–15:10 MT, after the migration check ended; see chapter 20.) 22 (17 / 8)

1. Worktree lifecycle

stateDiagram-v2
    direction LR
    [*] --> Registered: scope entry in<br/>unfork-scopes.yaml
    Registered --> Provisioned: git worktree add (heo override)<br/>+ missions.py provision<br/>IN: registry, contracts, Scion pin
stateDiagram-v2
    direction LR
    Provisioned --> Briefed: owner "What's your mission?"<br/>IN: CLAUDE.local.md, MISSION.md,<br/>purpose.md
    Briefed --> Working: owner "Go ahead / use agent teams"<br/>STATUS = working
stateDiagram-v2
    direction LR
    Working --> Blocked: dependency not landed<br/>STATUS = blocked:X
    Blocked --> Working: dependency's handoff + PR merged<br/>IN: its STATUS, handoff, git
    Working --> ReadyToLand: evidence passes<br/>STATUS = ready-to-land
    ReadyToLand --> Landed: PR merged into integrate-scion<br/>handoff committed, STATUS = landed
stateDiagram-v2
    direction LR
    Landed --> Recycled: idle worktree gets a<br/>follow-up branch (git switch -c)
    Recycled --> Landed
    Landed --> Kept: nothing required removal
    Kept --> Removed: owner approves cleanup<br/>IN: commits on main, clean tree,<br/>no process in cwd
    Removed --> [*]: branch kept on origin

Opening: what a worktree needed

The worktrees were created by the Rootstock planning session with its own tool, after it got past heo’s guard on git worktree add (03 · Making the plan):

HEO_ALLOW_WORKTREE_OPS=1 git worktree add -q -b unfork/plan .trees/unfork-plan origin/main
python3.11 -m scripts.unfork.missions provision --all-ready --waves 0a bg --create

At that point a worktree was a directory with its instructions already in place: CLAUDE.local.md (loaded automatically), and a git-ignored .unfork/ bundle holding MISSION.md, its contracts, its reading list and the Scion files at the pinned commit. Nothing ran in it until the owner opened a session. The owner delegated whole scopes with two opening prompts that were almost identical everywhere:

Wave Opened (MT) First prompt Second prompt
Wave 0 (8 sessions) 22 Sep 16:59–17:02 “What is your mission?” “Go ahead. Use as many agents as you need to get it done effectively and effeciently.”
Wave 3A (8 sessions) 23 Sep 14:38–14:50 “What’s your mission?” “Complete the mission using agent teams. Use as many agents as you want to complete the mission effectively and effeciently.”
Singles (S0-ENV again, S2b, D2, D4b) 23 Sep 17:26–17:37 “what’s your mission?” varied; S2b’s was “Do you have the requirments you need to beign?”

The first prompt tested whether the bundle had loaded: the session had to answer from MISSION.md, not from the owner. The second was the whole delegation. Ten worktrees never got an interactive session: D3, D5, D7b, D8b, D9, S2a, S3, S4, S5 and S7 were worked by S-PLAN teammates, which were given the worktree path and the same bundle in their prompt.

Closing: what “done” meant for a worktree

For a scope, “closed” meant landed, not removed. The mission’s done-evidence ended with three writes, and each served a different later reader:

Closing write Where it lived Who read it later
STATUS = landed .unfork/STATUS, git-ignored, first line only Dependent scopes and S-PLAN’s gate checks, by reading the sibling worktree
Handoff note docs/plans/unfork-handoffs/<SCOPE>.md, committed Later waves, S6’s doc-link pass, S7 (missions.py check-handoffs), S8, the audit
PR merged into unfork/integrate-scion git Everyone: every claim was re-checked against the branch (02 § Handoffs)

A typical close from D4a (23 Sep 17:12 MT) sets STATUS and comments on the issue it fixed, all in one command:

echo landed > .unfork/STATUS && python3.11 -c "
import json
print(json.dumps({'body':'''Fixed in #198, merged into \`unfork/integrate-scion\` at f3054553.

- [x] Resume cursor: \`app/outbound_links/sweep_cursor.py\` keeps the last finished \`Article.id\` in Redis. [ … ]

Bash tool call, D4a session c71beb63, JSONL line 1018, 2026-09-23T23:12:11Z. The first three lines are exact. The issue body goes on to list five more checklist items, trimmed here.

The same session’s earlier landings wrote STATUS in the same command as the merge:

gh pr merge 184 --merge --body "Authored-by: Steve Glen <therealstevenglen@gmail.com>" 2>&1 | tail -2; gh pr view 184 --json state,mergeCommit -q '.state+" "+.mergeCommit.oid'; echo landed > .unfork/STATUS; cat .unfork/STATUS

D4a session c71beb63, JSONL line 491, 2026-09-23T21:59:15Z.

/tree done, heo’s usual wrap-up, was never run on an unfork worktree. It would have swept every uncommitted file into a commit. The scope protocol had its own close.

Worktrees that were recycled instead of created

On 24 September at 10:10 MT the steward had two fix teammates ready to brief, and heo blocked the git worktree add for the first. Rather than use the override, the steward redirected both teammates to worktrees whose scopes had landed:

Change to setup: heo blocks git worktree add, so don’t create a worktree or use the override. Use the existing idle worktree …/.trees/unfork-s-r7, which is clean. S-R7 has landed and this is its loop code. Inside it, run git fetch origin && git switch -c unfork/fix-agent-loop origin/unfork/integrate-scion, then work there. — S-PLAN to fix-agent-loop, 10:10 MT (unfork-plan/9cc0216e line 3881)

unfork-d10-ops became unfork/fix-scheduling the same minute. At 10:22 MT unfork-s6-docs became unfork/owner-decisions, and unfork-d9-content carried unfork/d9-content-followups. The inputs for reuse were a landed scope and a clean tree. This worked, but it also set up the S7 collision described in 02, where the steward launched s7-followups into a worktree it believed idle.

Removal: one sweep, approved once

The worktrees outlived their scopes by a day. The wrap-up S-PLAN session asked the owner twice. At 16:30 MT the owner rejected the first AskUserQuestion and answered “Cleanup all the prs first” (10, G12). After the last four PRs had merged, it asked again (24 Sep 16:59 MT):

Remove the 30 unfork worktrees now? unfork-plan, which this session runs in, stays. All branches are kept. — AskUserQuestion, answered “Remove all 30 (Recommended)” (unfork-plan/28b464a2 lines 1871–1872)

heo blocked the first attempt (“git worktree remove/prune is destructive. Use /tree remove or /tree closedone.”). The second attempt ran the same per-worktree checks with the override: no commits missing from main, no process with its cwd inside, and only disposable untracked files. It removed 29 worktrees and skipped one:

removed unfork-d10-ops (had only saved/disposable files)
…
SKIP unfork-s0-rules: commits not on main
…
removed unfork-s7-gate

unfork-s0-rules went a minute later, once the session had confirmed its only untracked file was byte-identical to the copy on main. At 17:08 MT the owner asked the S8 session to “close the unfork0plan and librarin”. The S8 session checked dirty=0 unpushed=0 for both and removed them, again past heo’s block. It tried to tell the session still attached to unfork-plan, but the message failed (“No agent named ‘unfork-plan-e3’ is reachable”), so that session lost its working directory without warning. Every branch was kept, so any worktree can be re-created from its branch.


2. Agent lifecycle

stateDiagram-v2
    direction LR
    [*] --> Spawned: Agent tool<br/>IN: brief (median 3.8k chars),<br/>pointer to MISSION.md / handoffs
    Spawned --> OS: no name
    Spawned --> TM: name + team
    state "One-shot subagent (95)" as OS {
        [*] --> Running
        Running --> Returned: tool_result (foreground)<br/>or task-notification (background)
        Running --> StoppedOS: TaskStop (3)
        Returned --> [*]
        StoppedOS --> [*]
    }
    state "Named teammate (90)" as TM {
        [*] --> Working
        Working --> Idle: idle_notification<br/>+ final report (242)
        Idle --> Working: any SendMessage wakes it<br/>(32–33 teammates, 45–54 times)
        Working --> StoppedTM: TaskStop after "push, then end" (2)
        Idle --> Ended: parent session exits<br/>(all others)
        StoppedTM --> [*]
        Ended --> [*]
    }
    OS --> [*]: result text in parent context
    TM --> [*]: only commits, handoffs,<br/>issues remain

How agents ended

End path Teammates One-shots What survived
Returned a result to the parent and finished – 95 The result text in the parent’s context
Sent a final report as an idle notification, then sat idle 86 – The report (sometimes cut off mid-sentence) plus whatever it committed
Woken by a later message and worked again 32–33 9 resumed after a pause Extra PRs; the wake-ups were rarely intended (02)
Told to push its state, then TaskStop 2 – Pushed branch and handoff; the scope moved to an interactive session
TaskStop without a handover – 3 Nothing: the owner didn’t want another review
shutdown_request / graceful shutdown 0 – –
Ended when the parent session exited all others – Commits, handoffs, issues. Nothing in memory

The two handover stops (23 Sep 14:35 and 14:37 MT) show the only designed teammate close. The owner moved S2b and S6 from S-PLAN’s team to their own interactive sessions, and S-PLAN stopped each teammate after telling it to push:

Stop now. The owner is moving S6-DOCS to an interactive session. Do only this: 1. If your merge a1a30ec1 … is local and unpushed … 2. Commit what … — S-PLAN to s6-docs (9cc0216e line 1229); TaskStop at line 1291

The new sessions (294af2c1 for S6 at 14:50 MT, 18796a3a for S2b at 17:34 MT) opened with “What is your mission?” and picked up from the pushed branch and handoff, not from the teammate’s memory.

The 3 one-shot stops came from the owner changing their mind. D4a had just launched three reviewers, and the owner said no more reviews:

You don’t want another review, so I’m stopping the three reviewers I just started. — D4a (c71beb63 line 762), followed by three TaskStop calls

There were no shutdowns because in-process teammates end with the parent process, and the parent sessions ended often (nine five-minute restarts on 23 September alone). Idling was therefore the default close, and it was cheap until something messaged an idle agent. The rule “Never message the old agent names … A message restarts them” was added to later prompts for that reason (05).


3. Delegation: what each hop passed down

flowchart TB
    OWNER(["Owner"])
    REG[("Registry<br/>unfork-scopes.yaml<br/>32 scopes · 14 contracts")]
    GEN["missions.py / write_purpose.py"]
    subgraph WT["Scope worktree"]
        BUNDLE["CLAUDE.local.md (auto-loaded)<br/>.unfork/MISSION.md · contracts<br/>purpose.md · Scion files at pin"]
        SESS["Interactive session<br/>(20 opened)"]
    end
    SPLAN["S-PLAN (team-lead, later steward)<br/>unfork-plan worktree"]
    TM["Teammates (90)<br/>brief median 3.8k chars"]
    OS["One-shot subagents (95)<br/>brief median 3.0k chars"]
    NEST["Nested agents (22)<br/>brief median 1.6–1.8k chars"]

    REG --> GEN --> BUNDLE
    OWNER -- "'What's your mission?'<br/>+ 'use agent teams'" --> SESS
    BUNDLE --> SESS
    OWNER -- "orchestrator prompt,<br/>decisions, relayed text" --> SPLAN
    SPLAN -- "brief: scope, worktree path,<br/>'read MISSION.md' (33 of 99),<br/>handoffs (32), report limit" --> TM
    SESS -- "brief: sub-task,<br/>files, evidence to collect" --> TM
    SPLAN --> OS
    SESS --> OS
    TM -- "task + '250 words'<br/>+ handoffs (10)" --> NEST
    OS --> NEST
    SPLAN -. "re-provisions MISSION.md /<br/>purpose.md when stale" .-> BUNDLE

Each hop passed less text and relied more on files. The owner gave sessions two short lines, because the bundle carried the rest. Sessions and S-PLAN wrote the longest briefs (median 3,813 characters to a teammate). A third of those briefs pointed at MISSION.md, a third at earlier handoffs, and 17 specified the final report’s shape. Agents briefing agents wrote briefs half that long, mostly a task and a word limit. The full prompts and the rules added after each incident are in 05.


4. Closing and handoff: what each close produced, and who consumed it

flowchart LR
    subgraph W0["Wave 0 / 1 / 2 / 3 scope"]
        C1["STATUS = landed"]
        C2["Handoff note<br/>7 fixed headings"]
        C3["PR into<br/>unfork/integrate-scion"]
        C4["Issues for what it<br/>would not fix"]
        C5["Open change requests<br/>(in handoff when no<br/>recipient session)"]
    end
    subgraph NEXT["Next wave"]
        N1["Dependent scope<br/>unblocks"]
        N2["Path owner applies<br/>the requested hunk"]
    end
    subgraph S7["S7-GATE"]
        G1["check-handoffs,<br/>seam review,<br/>convergence PR #236"]
        G2["Files follow-ups<br/>#229–#234"]
    end
    subgraph S8["S8-DEPLOY"]
        D1["Cut-over + re-sync<br/>(#241, #229)"]
        D2["S8 handoff:<br/>PT-1 smoke, Scion freeze open"]
        D3["#259–#261"]
    end
    subgraph AUD["Post-migration audit"]
        A1["Reads S8 handoff +<br/>what-the-unfork-taught.md<br/>(25 Sep 14:22 MT)"]
    end
    C1 --> N1
    C2 --> N1
    C5 --> N2
    C3 --> G1
    C2 --> G1
    C4 --> D1
    G2 --> D1
    G1 --> D1
    D1 --> D2 --> A1
    D3 --> A1

Three things stand out.

  • Handoffs were the one artefact every later stage read. All 31 scopes, S8 included, committed one. 30 use the same seven headings: Changes, Evidence, Contracts, Open change requests, Dependency requests, Fallbacks applied, Deferred or dropped. S8-DEPLOY’s, written last, keeps only Changes, Evidence and Deferred or dropped. In 25 of the 30 the change-requests section is non-empty. That section was the fallback when the recipient had no running session. In Wave 0, for example, S0-ENV left its request to S4-MIG there because “no S4-MIG session was running”.

  • Issues were the second carrier. 22 issues were filed between 23 Sep 10:25 MT (#148, a flaky pg16 test) and 25 Sep 14:04 MT (#259–#261, S8’s leftovers). Five were consumed and closed inside the project:

    • #176, #189 and #197 in Wave 3A, each fixed before its scope landed;
    • #229 and #241 by S8.

    #148’s pg16 fix landed with the #236 fixes, but the issue was left open. 17 issues were still open on 28 Sep. (Updated 29 Sep: nine of them, #148 included, were closed on 28 Sep, 13:50–15:10 MT, after the migration check ended, and 8 are still open; see chapter 20.) They were the unfork’s real to-do list: C-EGRESS gaps (#230, #231), the admission counter (#232), retention (#173), mypy (#163), autogenerate drift (#155) and the cut-over follow-ups (#260, #261).

  • The audit did not start from the handoffs. On 25 September the owner opened it by retelling the project in their own words (“ealier we working on a major unfork migration, …”). The session then read S8-DEPLOY.md and what-the-unfork-taught.md in its first minute (376f518d line 42). The written trail was good enough to pick up, but it was the owner who pointed the audit at it.


5. Inputs for future work: were they there when needed?

Input Produced by Needed by Present when needed?
CLAUDE.local.md, MISSION.md, purpose.md missions.py, S-PLAN Every scope session and teammate Yes, but stale once the registry moved. Sessions asked S-PLAN to “regenerate from the live contract and landing state” (02)
STATUS file Each scope Dependent scopes, gate checks Sometimes stale. S2b’s still said blocked:D7a-SEC after its own PR merged
Handoff note Each scope (31) Later waves, S6, S7, S8, audit Yes. All 31 on main. S7’s check-handoffs checked the 30 written before it; S8’s came after
Open change requests in handoffs Scopes with no live recipient Path owners in later waves Yes (25 of the 30 handoffs that have the section)
Final report in the idle notification Teammates Team-lead Partly. Reports were cut off mid-sentence; the lead re-read git
Issues Scopes, S7, S-PLAN, S8 Later waves, S8, the audit Yes. 5 closed in-project, 17 still open on 28 Sep (#148 among them, although its fix landed) (Updated 29 Sep: 8 still open after nine closures on 28 Sep, 13:50–15:10 MT; see chapter 20.)
S-PLAN’s ruling on S1’s JSON files (option B) S-PLAN S1 Lost in the 11:03 MT restart. Asked again, the owner chose the opposite (06)
S-PLAN’s wrap-up list before the owner’s reboot S-PLAN 9cc0216e (24 Sep 12:02–12:07 MT) The next S-PLAN session Not delivered. --continue opened a fresh session that said “I can’t see the previous session’s conversation” and was recovered only when the owner said “look for the most recent claude code transcript” (28b464a2 lines 40–68)
S-PLAN’s report for the write-up session S-PLAN The docs session Not delivered. “The docs session: it had closed, so it didn’t get my report” (9cc0216e line 4310); routed through the owner
Notice that unfork-plan was being removed S8 session The session attached to it Not delivered. Recipient unreachable (fc6720d1 line 1958)
S8 handoff, what-the-unfork-taught.md S8, write-up session Post-migration audit Yes, once the owner pointed the audit at the project

The last close before the owner’s reboot is the clearest example of the pattern. Asked to “pause or wrapup”, S-PLAN did it well. Everything was pushed, nothing was left running, and the “Waiting when you’re back” list named six items. The list was then kept in the one place a new session cannot see. The next session found it only because the owner told it to read the old transcript file:

The most recent transcript is 9cc0216e-…jsonl … That was the team-lead session that coordinated the #236 review-fix agents. You asked it to wrap up before restarting, and it did: everything was pushed and nothing was left running. — 28b464a2 line 68, 24 Sep 12:38 MT

What this suggests for the next run

  • Close agents on purpose. Send a shutdown, or at least a “you’re done, don’t act on further messages”. Idle was the default end state, and it left 32 teammates able to restart when they were messaged.
  • Write wrap-up lists to a file, not a reply. Everything that did get carried forward (handoffs, issues, STATUS with its known staleness) was a file or a GitHub object. The handoff format already had a Deferred or dropped heading. The coordinator had no handoff of its own.
  • Treat worktree removal as part of closing. The sweep worked because the checks were explicit: commits on main, a clean tree, no process in the directory. Running the same check per scope at landing, rather than 30 at once a day later, would also have removed the guess that a worktree was idle. That guess was behind the S7 collision.

Addendum: the migration check, 25–28 September (to 11:58 MT, 28 Sep)

Worktrees: four in use, none removed. At the cut-off git worktree list still shows all four.

Worktree Opened (MT) How State at 11:58 MT, 28 Sep
02-migration-check-spet25 before the check The owner’s session. The lead branched audit/migration-deep-dive here at 17:37 on 25 Sep, after the git-safety hook refused a new worktree On test/compose-overlay-mount-points (PR #288); one untracked .claude/.claude/ directory
04-dd-task-defects 25 Sep 17:58 Lead, with the worktree override Clean at bfa8dcd1, the merged head of #269
05-dd-cluster-config 25 Sep 17:58 Lead, with the worktree override At 42b105cd, the merged head of #270
06-dd-deploy 28 Sep 10:24 Lead, with the worktree override, on the unpushed deploy/deep-dive-integration Detached at 4f75b2c2 (main after the merges), building the redeploy

Agents: opened with a brief, ended idle. None of the 11 was shut down. The lead ended two of them in words:

Thanks. I have F1–F11 and the gate results in full, so you don’t need to send parts 2 and 3. Stream E is complete, and I’ll keep the REPORT.md you already wrote. You can stop now.

— lead to stream-E-infra (376f518d line 2493, 2026-09-25 23:56 UTC)

It told fix-cluster-config “Then stop; a reviewer will look at #270 next” (10:18 MT), and the fixer answered “I’m stopping here, and #270 is ready for the reviewer.” Both fixers were woken again twice after that: for the review follow-ups, then for the PR-Agent replies. They went idle for the last time at 11:32 MT. The reviewers went idle after their verdicts (10:35 and 10:41 MT). The fork finished at 09:40 MT with its edits uncommitted, and its parent committed them. This matches the main chapter’s pattern: idle is the end state, and here too a message could have restarted any of them.

PRs: opened by agents, merged by the owner.

PR Opened (MT, 28 Sep) PR-Agent requests Merged (owner) Merge commit
#269 task defects, 16 commits 10:02:41 3 11:47:24 280aa941
#270 cluster config, 11 commits 10:13:45 3 11:48:02 2b8e7f56
#272 report, 4 commits 11:42:54 1 11:49:35 4f75b2c2
#288 mount-point guard test 11:56:46 1 open —

The first commit on #269’s branch (287c94a2) dates from 17:59 MT on 25 September. The branch then sat unpushed through the 63.6-hour stop.

What the check left behind for later work was files and GitHub objects, as the main chapter recommends:

  • the archived record and its HTML companion (#272);
  • the owner’s new PR-Agent rule in .claude/CLAUDE.md;
  • 15 issues, one per open item;
  • a status comment on the cut-over issue #261.

All 15 issues are filed (#273–#287). Next: a status comment on #261, then a check for whether anything guards against the Grafana mount problem recurring.

— lead (376f518d line 3372, 2026-09-28 17:55 UTC)

At the cut-off the check was not closed. The redeploy from main was still building, and the lead had said it would verify it when it finished.

18. The critical path

Question: What was the critical path of the migration, measured in development time, up to 28 Sep 11:32 MT, while reconciliation and testing were still going on? Was it the critical path the plan predicted, and how could it be shortened next time? (Updated 29 Sep: the migration check ended at 12:59 MT on 28 Sep; see chapter 20 for the path to the close.)

Short answer: The path took 141.9 elapsed hours, and for 99.1 of them (70%) it was waiting on the developer. It runs from the developer’s first request (22 Sep, 13:26 MT) to the last recorded event (28 Sep, 11:32 MT). At least one agent or session was working for 40.3 of those hours. The waiting was:

  • a merge into main, overnight;
  • a deploy question, overnight;
  • a 63.6-hour stall after the deep-dive agents stopped mid-stream, which ended when the owner typed “continue”.

The plan predicted the order of the serial chain: rehearsed merge, then S2a and S3 in parallel, then the domains. Its technical segments came in well under their timeboxes: Wave 0b, S1 and Wave 2 together took 3.5 elapsed hours. The time went elsewhere. The plan ranked owner availability as blocker 7 of 8 and final gates as blocker 8. Those two decided the length of the path. So did post-deploy reconciliation, which the plan left off the path entirely. The convergence merged into main 49.8 hours after the first request, and S8 deployed at 69.6 hours. That is within the plan’s own rough estimate of 3 to 3½ days, but the time went into different parts of the work.

The same evidence points to the largest savings for next time:

  • resume long runs automatically;
  • let path-blocking questions that have a recommended option proceed on a decide-record-report rule;
  • give barrier merges a scheduled owner window or a pre-authorised route.

Together with protecting the owner’s attention from side work, these target about 80–93 of the 142 hours. The agent-work floor on this path was about 40 hours.

Sources: data/critical-path.json (segments, owner waits, slack, method) and data/verification/18-critical-path.json.


The path drawn to scale:

What the plan predicted

The first revision (21bc48dc, 22 Sep 13:52 MT) gave every wave a duration:

Wave 0  (3 agents, parallel, ~½ day)        Rulebook · Rootstock inventory + freeze · baselines
   │                                         + S-R7 starts now (independent, long pole)
Wave 1  (1 agent, serial, ~2–3 h)            The merge commit on unfork/integrate-scion
   │
Wave 2  (5 agents, parallel, ~1 day)         Core: LLM path · bootstrap+Celery · migrations · tooling · docs
   │     └─ merged back into unfork/integrate-scion as each finishes
Wave 3  (10 agents, parallel, ~1 day)        Feature domains D1–D10, each with runtime evidence
   │
Wave 4  (1–2 agents, serial, ~½ day)         Integrate · full gates · PR · deploy · deploy-watch

From revision 2 (da77884f) onward, the plan names the critical path explicitly. The sentence is unchanged at HEAD:

Critical path: rehearsed merge → S2a + S3 in parallel (≤4 h) → domains. The long jobs (S2b, S-R7, image builds, real-credential runs) run alongside it. They gate switching features on, never landing the convergence.

— docs/plans/unfork-parallel-scopes.md §2, since da77884f

Revision 3.2 (0c06b318) split Wave 0 in two and set these durations in the wave map:

  • Wave 0a “~1 day”;
  • Wave 0b “≤½ day”;
  • Wave 1 “≤3 h”;
  • S2a and S3 “≤4 h” each.

It gave no estimates for Waves 3 and 4. Its review table also says “Wave 0 is now about 2 days”, a larger figure than the wave map’s 1½ days.

Taking rev. 3.2’s figures, plus rev. 1’s for Waves 3 and 4, the plan expected roughly 3 to 3½ days from Wave 0 to deploy.

It also ranked where waiting was likely. The three ranks that matter here, verbatim:

| 1 | The merge commit | Rulings for 102 conflicted paths, a hook set that depends on how .pre-commit-config.yaml is resolved, and a machine with a history of freezing inside hooks | Everyone | […] | | 7 | Owner availability | Decisions and credential placement | Potentially all | The §1 batch list plus no-change provisional defaults | | 8 | Final gates | No green baseline on either side, so every failure turns into an argument. A late Major finding sends a finished scope back to work. | S7 | S0-BASE failure lists, with the gate as a set difference. Review as you go. |

— plan §2, blocker analysis (added in da77884f)

Two more planned facts matter below:

  • Wave 3 was planned as “two batches under the process cap”.
  • Work after S7 was planned as off the path: “After S7 (not blocking): S2b and S-R7 finish, ending OD-5’s exception.” The same passage sends the droplet-to-cluster cut-over to Rootstock’s runbook, outside the plan.

What actually happened

The chain, segment by segment

Each boundary is a PR merge, a dispatch or a transcript event (data/critical-path.json segments).

  • Active means at least one agent or session produced an event, with gaps over 30 minutes counted as idle.
  • Kind says whether the segment was serial by design, serial because the path waited on the owner, or serial without having been planned that way.
# Segment MT Elapsed h Active h Kind
P Planning: first request to registry and missions committed 22 Sep 13:26–16:50 3.4 2.9 Planned (not in the wave map)
W0a Wave 0a work, to the last main PR ready (S0-FLAG) 22 Sep 16:50–18:15 1.4 1.4 Planned serial
⏸ Barrier: three main PRs wait for the owner’s merge 22 Sep 18:15 – 23 Sep 09:43 15.5 1.0 Owner wait
W0b Final rehearsal and baselines at the landed SHA 23 Sep 09:43–10:28 0.8 0.8 Planned serial
W1 S1-MERGE, including the 11:03 restart 10:28–11:51 1.4 0.7 Planned serial
⏸ S1 landed, Wave 2 not yet launched 11:51–13:17 1.4 0.7 Owner wait
W2 S2a, S3, S4 and S5: launch to last landing 13:17–14:39 1.4 1.4 Planned serial
W3 Waves 3A and 3B, to the last domain (D4b, #226) 14:38–20:15 5.6 5.6 Planned (two batches)
S7 S7 gate: launch to #236 opened 23 Sep 20:32 – 24 Sep 05:45 9.2 9.2 Planned serial
#236 #236 opened, reviewed, fixed, merged by the owner 24 Sep 05:45–15:13 9.5 5.0 Unplanned serial
S8 #236 merged to deployed on the cluster 24 Sep 15:13 – 25 Sep 11:01 19.8 4.6 Planned serial
Post Credential smoke, droplet data migration, deep dive launched 25 Sep 11:01–18:04 7.1 5.2 Unplanned
⏸ Deep dive and fix agents stopped until “continue” 25 Sep 18:04 – 28 Sep 09:38 63.6 0.0 Owner wait
Fix Deep-dive fixes (#269, #270), reviews, integration deploy 28 Sep 09:38–11:32 1.9 1.9 Unplanned, ongoing at 11:32 (Updated 29 Sep: ended 12:59 MT; see chapter 20.)
Total 141.9 40.3
gantt
    title Predicted (rev. 3.2 wave map + rev. 1 for Waves 3–4) vs actual, MT
    dateFormat YYYY-MM-DD HH:mm
    axisFormat %a %H:%M
    section Predicted
    Wave 0a (~1 day)            :p0a, 2026-09-22 16:50, 24h
    Wave 0b (≤½ day)            :p0b, after p0a, 12h
    Wave 1 S1 (≤3 h)            :p1, after p0b, 3h
    Wave 2 S2a+S3 (≤4 h)        :p2, after p1, 4h
    Wave 3 domains (~1 day)     :p3, after p2, 24h
    Wave 4 S7→S8 (~½ day)       :p4, after p3, 12h
    section Actual: agents
    Planning                    :a0, 2026-09-22 13:26, 2026-09-22 16:50
    Wave 0a work                :a1, 2026-09-22 16:50, 2026-09-22 18:15
    Wave 0b                     :a2, 2026-09-23 09:43, 2026-09-23 10:28
    S1                          :a3, 2026-09-23 10:28, 2026-09-23 11:51
    Wave 2                      :a4, 2026-09-23 13:17, 2026-09-23 14:39
    Wave 3A + 3B                :a5, 2026-09-23 14:38, 2026-09-23 20:15
    S7 gate                     :a6, 2026-09-23 20:32, 2026-09-24 05:45
    #236 review and fixes       :a7, 2026-09-24 05:45, 2026-09-24 15:13
    S8 deploy                   :a8, 2026-09-24 15:13, 2026-09-25 11:01
    Post-S8 and deep dive       :a9, 2026-09-25 11:01, 2026-09-25 18:04
    Fixes and deploy (to 11:32) :a10, 2026-09-28 09:38, 2026-09-28 11:32
    section Actual: waiting on the owner
    main merges (overnight)     :crit, w1, 2026-09-22 18:15, 2026-09-23 09:43
    Wave 2 launch               :crit, w2, 2026-09-23 11:51, 2026-09-23 13:17
    S8 deploy question          :crit, w3, 2026-09-24 18:06, 2026-09-25 09:16
    Deep dive stopped           :crit, w4, 2026-09-25 18:04, 2026-09-28 09:38

The predicted segments were short

The mitigations for blocker 1 worked. S0-REHEARSE scripted the rulings. S1 landed 1.4 hours after its teammate was dispatched, within its 3-hour timebox, despite the all-session restart in the middle (02 · The 11:03 restart). Wave 2’s critical scopes came in well inside their 4-hour timeboxes: S2a landed 49 minutes after launch, and S3 60 minutes after. Taken together, Wave 0b, S1 and Wave 2 took 3.5 hours. The plan had allowed up to ½ day, plus 3 hours, plus 4 hours, for the same segments. None of them used its pre-agreed fallback.

The owner’s attention was the constraint

Five stretches account for 99.1 hours of owner waiting on the path (owner_wait_on_path in data/critical-path.json; the fifth is the 3.5 hours before the owner’s first prompt on #236). The first opens with Wave 0a’s last PR ready at 18:15 MT on 22 Sep. Merges into main were reserved to the owner, and the S0-FLAG session said so:

PR #141 is ready for you to merge into Rootstock main. Merging to main is yours, and it needs to happen before the Wave 0b barrier: […]

— S0-FLAG (session 4ac8a43a line 522, 2026-09-23 00:15:36 UTC)

The owner merged all three the next morning, between 09:41 and 09:43 MT, after 15.5 hours. The plan itself ranked this as blocker 7, and its mitigation, “The §1 batch list plus no-change provisional defaults”, covered decisions but not merges into main.

The S8 deploy question sat overnight. After #236 merged, the owner handed S8 to the write-up session (“close the unfork0plan and librarin and continue iwth the open work”, session fc6720d1 line 1938, 24 Sep 17:07 MT). At 18:06 MT that session asked:

The local pre-deploy test step can’t go green on this Intel Mac. The 29 remaining failures come from the local environment (a transformers/torch mismatch, a spaCy model, a real-clock timing test), and every other check in the script passed. How should S8 proceed?

— S8 AskUserQuestion (fc6720d1 line 2428, 2026-09-25 00:06:00 UTC)

The call offered three options: Test in the built image, then deploy (Recommended), Deploy now and Stop.

The answer came 15.2 hours later, at 09:16 MT on 25 Sep. It was the recommended option:

“…How should S8 proceed?”=“Test in the built image, then deploy (Recommended)”. You can now continue with these answers in mind.

— tool result (fc6720d1 line 2429, 2026-09-25 15:16:45 UTC)

The deep dive stopped for 63.6 hours. The owner ordered the post-migration deep dive at 17:34 MT on 25 Sep. By 18:04 MT, streams A, B, D and E had reported. Stream C, the two fix agents and a docs fork were still working, and at that point all of them stopped mid-stream. Among stream C’s last events is reading the Cohere error that would become finding C-1:

body: {‘error_type’: ‘TOO_MANY_TOKENS’, […] ‘message’: ‘too many tokens: max tokens must be less than or equal to 4096, the maximum output length for this model - received 8000.’}

— stream-C-app tool result (session 376f518d subagent, line 220, 2026-09-26 00:03:46 UTC)

Nothing ran until the owner typed continue on 28 Sep at 09:38 MT (376f518d line 2627). Each agent was then told:

Your response above was cut off mid-stream and only your next message is delivered. Write the complete response again from the start — no apology, no mention of the cut-off.

— harness notice to stream-C-app (line 230, 2026-09-28 15:38:40 UTC)

The transcript doesn’t record why the session stopped. Within 35 minutes of the resume, the fixes were up as PRs #269 (10:02 MT) and #270 (10:13 MT). So most of the 63.6 hours was waiting, not work (13 · Memory and restarts covers the other restarts).

Wave 2 waited for a launch word. S1 landed at 11:51 MT on 23 Sep. The owner spent the next hour in the coordinator’s session on PR-Agent attribution and an upstream issue, then:

let’s focus on the migration. Waht’s next?

— owner (9cc0216e line 403, 2026-09-23 19:15:02 UTC)

launch all six

— owner (9cc0216e line 479, 2026-09-23 19:17:26 UTC)

In all five stretches, the agents’ work was done or stopped, and the next step needed the owner. Chapter 8 shows how thinly the owner’s attention was spread across sessions at the same time.

The final gates were the longest agent-work segments

Wave 4 was planned at “~½ day” in rev. 1. It took 38.5 elapsed hours, 18.8 of them active:

  • S7: 9.2 hours, all active, 35 commits (09 · Rework and defects).

  • #236: 9.5 hours. The plan’s S7 step 4 was only “Open the PR into Rootstock main and merge it with --merge”. There was no separate review step, because the plan assumed review would happen as scopes landed. When the owner asked the coordinator to merge, heo’s merge guard refused, and the owner then asked:

    That’s a lot of chagnes for a single pr. I don’t htink pr-agent can review that. Have you done a code review on tis pr?

    — owner (9cc0216e line 3471, 2026-09-24 15:16:39 UTC)

    The review method was then replaced twice (04 · After the merge), and the owner merged #236 at 15:13 MT.

  • S8: 19.8 hours, 4.6 of them active. The rest was the overnight question above.

This is blocker 8 as the plan described it. The plan’s own mitigation, “Review as you go”, wasn’t applied to the convergence as a whole, only to each scope.

Unexpected serial segments and near-critical scopes

  • D4b was the last domain, and its session froze. The coordinator’s status at 19:32 MT on 23 Sep:

    D3 has landed, and a background agent is now finishing D4b in place of your frozen session. D4b is the last thing S7 is waiting on.

    — S-PLAN (9cc0216e line 2684, 2026-09-24 01:32:50 UTC)

    The owner’s interactive D4b session stopped producing events at 17:48 MT. The takeover began at 19:32 MT, and D4b landed at 20:15 MT with 0.28 hours of slack before S7.

  • S-R7 moved onto the path. The plan put S-R7 “After S7 (not blocking)”. The steward treated it as a predecessor anyway:

    Still waiting on D4b and S-R7. After D4b lands, D4a applies its change request, then I launch S7.

    — S-PLAN (9cc0216e line 2761, 2026-09-24 01:54:10 UTC)

    It landed 0.6 hours before S7’s launch:

    Every scope S7 depends on has now landed. I’m launching S7 now, and the D4a follow-up can land alongside it.

    — S-PLAN (9cc0216e line 2829, 2026-09-24 02:32:11 UTC)

  • Wave 3 ran as two batches because of the process cap, as planned. 3B started as 3A finished (17:37–17:41 MT). The two batches together took 5.6 hours, against rev. 1’s “~1 day”.

Slack before S7, from data/critical-path.json slack_before_s7_h:

Scope branch Last landing (MT) Slack before S7 (h)
D4b-OBL 20:15 0.28
S-R7 19:55 0.60
D9 follow-ups 19:53 0.64
D3-SD 19:31 1.01
D5, D2, S2b, D7b, D8b 17:50–18:13 2.3–2.7
S6, D1, D4a, D7a 17:11–17:40 2.9–3.4
D10, D6, D8a 15:29–16:05 4.4–5.1
Wave 2 (S2a, S3, S4, S5) 14:06–14:39 5.9–6.4
Wave 0 (all) 09:41–10:28 10.1–10.8

All times are 23 Sep MT. S7 launched at 20:32 MT (02:32 UTC on 24 Sep).

After S8: reconciliation the plan left off the path

The plan ended its path at S8 and sent cut-over to the runbook. In practice the migration continued past S8:

  • the PT-1 credential smoke;
  • the droplet data migration, with 19 checks passing (15:35 MT on 25 Sep);
  • the deep dive, which found production RAG answering 0 of 8 queries;
  • two fix PRs.

By 11:32 MT, that work had taken 72.5 elapsed hours and 7.1 active hours, and it was still going. (Updated 29 Sep: it ended with the migration check at 12:59 MT, at 74.0 elapsed and 7.7 active hours; see chapter 20.) At the last recorded event, the audit session had merged both fix PRs into the integration branch and was redeploying:

Both PRs are complete: #269 at bfa8dcd1 and #270 at 84d7f3cc. I’m merging the new heads into the integration branch.

— audit session (376f518d line 3037, 2026-09-28 17:02:49 UTC)

Node 3 and node 1 are recreated. While node 1’s web starts (it took about 70 s last time), I’m recreating node 4 and the promtail containers, whose settings check goes stale after every .env sync.

— audit session (376f518d line 3095, 2026-09-28 17:25:36 UTC)

At 11:32 MT on 2026-09-28, #269 and #270 were still open against main, and deploy/deep-dive-integration was the newest branch (11:30 MT). (Updated 29 Sep: the owner merged both at 11:47–11:48 MT, and production was redeployed from main at 12:05 MT; see chapter 20.) The C-1 finding traces to a default that both repos’ tests passed:

    RAG_MAX_OUTPUT_TOKENS = int(os.getenv("RAG_MAX_OUTPUT_TOKENS", "8000"))

This is config/config.py:325 on main. The Cohere model the cluster used caps output at 4,096 tokens, according to the error above. The defect surfaced only when stream C ran real queries on the cluster, three days after S8. It is a seam between Scion code and cluster configuration, the class chapter 9 traces.

The chain as a dependency graph

The thick arrows are the critical path, and the red nodes are waits on the owner. Each row starts with the node the row above ended on.

flowchart LR
    P["Plan + registry<br/>3.4 h"] ==> W0a["Wave 0a<br/>1.4 h"]
    W0a ==> M0["main merges<br/>(owner) 15.5 h"]
    M0 ==> W0b["Wave 0b<br/>0.8 h"]
    W0bg["Wave 0 background<br/>S0-INV, S0-IMG, S0-ENV"] --> W0b
    W0b ==> S1["S1-MERGE<br/>1.4 h"]
    S1 ==> L2["launch word<br/>(owner) 1.4 h"]
    classDef owner fill:#fde2e1,stroke:#c0392b,color:#000
    classDef off fill:#eef2f5,stroke:#8a9aa9,color:#000
    class M0,L2 owner
    class W0bg off
flowchart LR
    L2["launch word<br/>(owner) 1.4 h"] ==> W2["S2a + S3<br/>1.4 h"]
    W2 ==> W3A["Wave 3A<br/>~3 h"]
    W3A ==> W3B["Wave 3B · D4b<br/>(frozen → takeover)"]
    W3B ==> S7["S7 gate<br/>9.2 h"]
    RR["S-R7<br/>slack 0.6 h"] --> S7
    S2b["S2b<br/>slack 2.5 h"] --> S7
    S7 ==> R236["#236 review<br/>+ fixes 9.5 h"]
    classDef owner fill:#fde2e1,stroke:#c0392b,color:#000
    classDef off fill:#eef2f5,stroke:#8a9aa9,color:#000
    class L2 owner
    class RR,S2b off
flowchart LR
    R236["#236 review<br/>+ fixes 9.5 h"] ==> M236["merge to main<br/>(owner)"]
    M236 ==> S8["S8 19.8 h<br/>incl. 15.2 h<br/>question"]
    S8 ==> POST["data migration<br/>+ deep dive<br/>7.1 h"]
    POST ==> STALL["stopped until<br/>'continue' 63.6 h"]
    STALL ==> FIX["#269 · #270<br/>deploy (to 11:32)"]
    classDef owner fill:#fde2e1,stroke:#c0392b,color:#000
    classDef off fill:#eef2f5,stroke:#8a9aa9,color:#000
    class M236,STALL owner

Predicted against actual

Wave Rev. 1 estimate Rev. 3.2+ estimate Actual elapsed Actual active
Wave 0 (0a + 0b) ~½ day ~1 day + ≤½ day (“about 2 days” in R1) 17.6 h, of which 15.5 h was the owner merge 3.2 h
Wave 1 (S1) ~2–3 h ≤3 h 1.4 h 0.7 h
Wave 2 ~1 day S2a, S3 ≤4 h each 1.4 h (+1.4 h waiting for the launch) 1.4 h
Wave 3 ~1 day none 5.6 h 5.6 h
Wave 4 (S7, #236, S8) ~½ day none 38.5 h 18.8 h
After S8 off the path off the path 72.5 h to 11:32 MT (Updated 29 Sep: 74.0 h at the close, 12:59 MT; see chapter 20.) 7.1 h

Was this the predicted critical path?

  • The order was as predicted. The chain did run rehearsed merge → S2a and S3 → domains, and the long background jobs stayed off it, except S-R7 in the last hour.
  • The weight was not. The segments the plan singled out as critical took 3.5 hours. The plan’s lower-ranked blockers, the owner’s availability (rank 7) and the final gates (rank 8), took 99.1 and 18.8 hours on the path.
  • Post-deploy reconciliation was outside the plan’s scope, and it is now the longest phase.

Strategies for shortening the critical path

Goldratt’s critical chain and theory of constraints fit this evidence better than per-task timeboxes do. The constraint was a shared resource, the owner’s attention, and not any single task. Every technical timebox finished with room to spare, and no buffer was placed where the waiting actually happened. The strategies below follow the five focusing steps:

  • identify the constraint;
  • exploit it, by losing none of its time;
  • subordinate everything else to it;
  • elevate it, by adding capacity or authority;
  • repeat.

Estimates are rough. Each one says which segment it cuts and why.

# Strategy Segment it cuts Evidence Rough saving
1 Resume long runs automatically, and notify on stop. Run long audits under a watchdog that resumes a stopped session, or notify the owner the moment a session stops. Keep the run’s plan and progress in a file so a resume can pick up. The 63.6 h deep-dive stall All agents stopped at 18:04 MT on 25 Sep. Fix PRs were up 24–35 min after the resume. 50–62 h: bounded by response time with a notification, and near zero with an automatic resume
2 Decide, record, report for path-blocking questions that have a recommended option. A question on the critical path proceeds with the recommended option after a set wait, unless it is on the reserved list (main, money, production data, policy). This is the steward’s rule from chapter 6, applied to every session. The S8 overnight question (15.2 h) The recommended option was chosen. Across all 52 questions, the owner picked the recommended option 31 times (06). ~15 h
3 Give barrier merges an owner window or a pre-authorised route. Either the owner does a scheduled barrier check before stepping away, or Wave 0a lands on unfork/tooling and reaches main with the convergence PR, so main stays the owner’s. The Wave 0a barrier (15.5 h) The three PRs were ready by 18:15 MT with clean PR-Agent checks, and merged the next morning. ~14–15 h
4 Review as you land, at the level of the convergence. Run a seam reviewer on each landing, and fix the by-origin review method (files identical to Scion, hand-resolved files, new code) before S7. Don’t design it after #236 is open. #236 (9.5 h) and part of S7 (9.2 h) The first #236 review method was replaced after about four hours (04). Twelve of S7’s 35 commits came after its own first landing, finishing work it had reported done (09). 4–6 h
5 Rehearse the deploy gate before S8. Settle in Wave 0 how the pre-deploy tests run on this hardware: in the built image, not on the Intel Mac. S0-IMG already cross-built images. S8’s question and part of S8’s 4.6 active hours S8 stopped because the local test step “can’t go green on this Intel Mac” Removes the question entirely; overlaps with 2
6 Seam tests between Scion code and Rootstock cluster config in Wave 0. Add contract tests that run Scion’s generation, Celery and config paths against the cluster’s provider and env settings. Post-S8 reconciliation (72.5 h to 11:32 MT; 74.0 h at the close (updated 29 Sep; see chapter 20)) C-1 (8000 against a 4,096 output cap) and D-01/02/04 were found three days after deploy (09) Hard to size: the fixes took about 2 h once found, and the larger gain is not shipping a broken RAG
7 Heartbeat on STATUS, with takeover when it goes stale. If a scope’s session has produced no event for 20 minutes while it sits on the path, the coordinator reassigns the scope. Wave 3’s tail (D4b) D4b’s session went quiet at 17:48 MT, and the takeover began at 19:32 MT ~1.5 h
8 Protect the constraint from multitasking. The coordinator leads with the path is waiting on you for X before anything else, and side work waits until the path is moving. The 1.4 h Wave 2 launch wait The owner spent that hour on PR-Agent attribution in the coordinator’s own session. Chapter 8 records 11 different sessions prompted in one hour. ~1–1.5 h
9 Give hotspot files one owner. Put app/tasks/agent_tasks.py (7 scopes) and celery_config.py (6 scopes) under a single owner who takes batched requests (12). Wave 3 re-landings D4a landed 10 times. 29% of scope commits came after the first landing (09). Small on the path; larger on rework
10 Move buffer from tasks to the constraint. Replace per-task timeboxes, which were never used, with a project buffer and owner checkpoints at fixed times. Queue path-blocking questions so they reach the owner before a checkpoint, not after the owner has gone. All owner waits Every technical timebox was met, and none of the owner waits had a buffer or a scheduled checkpoint Enables 2, 3 and 8

Keeping teammates’ caches warm (chapter 7) cuts cost, not path time. The waits it would shorten were tool timeouts inside agent-work segments that weren’t on the critical path.

What the strategies add up to:

  • Strategies 1–3 and 8 target about 80–93 of the 99 owner-wait hours. Strategy 7 saves about 1.5 more hours of agent-side waiting.
  • Applied to this run, they would bring the end-to-end path from 142 hours to roughly 50–60 hours, close to the 40-hour agent-work floor plus the owner’s own decision time.
  • The convergence merge into main would move from 49.8 hours to about 31–36 hours. That comes from cutting the Wave 0a barrier (strategy 3) and, with a morning checkpoint (strategy 10), the 3.5-hour wait before the owner first looked at #236.
  • Strategies 4–6 attack the agent-work floor itself, mainly the 18.8 active hours of Wave 4.

Limits

  • Active time is a union, not a sum. An hour with twenty agents counts the same as an hour with one. Chapter 14 reports agent-hours.
  • The path is reconstructed from gates, not from a scheduler. Where two predecessors finished close together (D4b and S-R7), either could have been critical.
  • The cause of the 63.6-hour stop isn’t in the transcript. It is counted as an owner wait because only the owner’s continue ended it.
  • The work that was still going is measured to the last recorded event (28 Sep 11:32 MT). (Updated 29 Sep: it grew until the migration check ended at 12:59 MT; chapter 20 measures it to the close.)

Addendum: the migration check, 25–28 September (to 11:58 MT, 28 Sep)

This corrects one sentence above. It says “As of 2026-09-28, #269 and #270 are open against main”. That was true at 11:32 MT. The owner merged #269 at 11:47 MT and #270 at 11:48 MT.

This addendum extends the path by 25.5 minutes, from the last event above (17:32:36 UTC) to the cut-off (17:58:05 UTC). Three segments follow the FIX segment:

Segment MT, 28 Sep Elapsed Active Kind
Fix (continued): 8/8 RAG re-run, both gates, /grafana/ 404, task chain, report PR #272, final report 11:32:36–11:44:51 0.20 h 0.20 h Unplanned
⏸ Owner merges #269, #270 and #272, then prompts 11:44:51–11:53:10 0.14 h 0.00 h Owner wait
Redeploy from main, 15 issues, guard-test PR #288 11:53:10–11:58:05 0.08 h 0.08 h Unplanned, ongoing

New totals at 11:58 MT:

  • 142.3 elapsed hours on the path (was 141.9);
  • 40.6 of them active (was 40.3);
  • 99.3 hours of owner wait (was 99.1), still 70% of the path.

Post-S8 reconciliation, which the plan left off the path, grows by the same 0.4 elapsed hours.

The owner wait on the path was short. The owner merged #269 two and a half minutes after the lead’s final report asked for it. The critical path otherwise shows barrier merges into main taking overnight. This one, requested with a clear list, took minutes:

Needs you:

  1. Merge #269 and #270. Production runs them from a local integration branch (main plus both PRs, not pushed), so I’ll redeploy from main once they’re merged. — lead (376f518d line 3317, 2026-09-28 17:44 UTC)

The deploy before the merge took the owner off the repair path. Production ran the fixes from 11:25 MT, when nodes 1 and 3 were recreated (node 4 was back at 11:30). That was 22 minutes before the first merge. The merge wait therefore delayed only the converge-to-main step, not the repair. Had the deploy waited for the merges, the 8/8 verification would have waited too.

At the cut-off the path’s last link was a tool. The redeploy from main started at 11:53:54 MT. At 11:56:55 MT the lead reported “The redeploy from main is still building its image; I’ll verify it when it finishes.”

19. Docker containers: what was built, changed and removed

Question: What did agents build, create, change and remove in Docker during the migration, where, and on whose authority?

Short answer: Docker work happened in three places, and each had its own rules.

  • The dev Mac’s Docker Desktop was one daemon shared by every worktree session. It held most of the activity: 438 of 732 Docker commands, and 150 of the 181 commands that changed state. Agents created two long-lived evidence containers there, unfork-pg and unfork-neo4j, and built two 6.25 GB “union” images. The other 64 container, volume and network creations were throwaway tests, run with --rm or removed afterwards. The daemon was disrupted six times. Four times it wedged and an agent restarted it; twice the owner restarted the Mac and an agent started Docker again. Three of the four agent restarts had the owner’s direct answer and met every condition attached to it. The fourth, S-PLAN’s restart on 24 September, ran on a brief relayed by the docs session. It went ahead after its request to the affected peer session failed, although the brief had asked it to coordinate first.

  • The four cluster Mac minis changed only in three deploy windows:

    • S8 on 25 September;
    • the cut-over later that day, when a stop/start freeze bracketed the data migration;
    • the deep-dive deploy on 28 September, which rolled out from a local integration branch while its PRs were still open.

    Each window used docker compose up -d or a compose stop/start/restart, never a rm or down. Twenty-one compose commands changed state. The other two cluster changes were throwaway test containers.

  • The DigitalOcean droplet stayed read-only until the owner relaxed the production rule at 14:24 MT on 25 September. After that, an agent stopped and restarted the droplet’s Neo4j container three times for offline dumps. It ran one data repair through docker exec, and stopped the droplet’s celery-beat on the owner’s explicit yes. It removed nothing and left the web, worker and database containers running.

The raw action log is data/docker-actions.json. It holds every command with its session, JSONL line and first 300 characters of output, plus the curated lifecycles, incidents, script runs and Docker config commits.


The shape of the two longest outages:

How the actions were counted

In the unfork transcripts, 772 Bash calls mention Docker. Of these, 328 run at least one real Docker command. The other 444 only mention Docker: they grep compose files, edit runbooks or write commit messages. A command counts when docker, docker compose, a Docker Desktop quit, open or restart, or a kill of Docker client processes is in command position. Commands reached through ssh, the project’s prod.sh and prod_ssh.sh helpers, bash -c or $( ) count too. The full rules are in the JSON’s method field. Scripts that drive Docker indirectly are listed separately below, because their commands never appear in the transcripts.

Dev Mac Cluster nodes Droplet All
Bash calls with a Docker command 213 76 39 328
Docker commands 438 199 95 732
… read-only (ps, logs, inspect, info, stats, config, images) 177 112 46 335
… exec into a container 91 64 41 196
… cp into a container 20 0 0 20
… changed state 150 23 8 181

The calls row counts each call once, under the host of its first Docker command. The JSON’s calls_by_host (214, 92, 52) counts a call once for every host it touches, so it sums to 358. Distinct calls are 328 either way.

The 181 state changes break down as follows.

Kind Dev Mac Cluster Droplet
run / create (container, volume, network) 65 2 (test runs on node 4) 2 (neo4j-admin dump runs)
compose up -d (create or recreate) 0 17 0
start / stop / restart (container or compose service) 24 4 6
rm, image rm, network rm, volume rm, builder prune 35 0 0
pull 6 0 0
build 4 0 0
Docker Desktop quit, open, start or restart 13 — —
kill of Docker client processes 3 0 0

By phase, Wave 0 (154 commands, 64 state changes) and the post-migration audit (365 commands, 63 state changes) account for most of the activity. Wave 3A ran 43 commands, almost all docker exec into unfork-pg for runtime evidence. S8 ran 30, of which 6 changed state. Sessions ran 396 commands, and teammates ran 336.

The timeline

gantt
    title Docker actions by resource (MT, 22–28 September)
    dateFormat YYYY-MM-DD HH:mm
    axisFormat %d %H:%M
    section Dev Mac daemon
    Daemon hung, owner wipes, S0-ENV restarts   :crit, 2026-09-22 17:04, 27m
    Runs stuck at Created, S0-IMG restart        :crit, 2026-09-22 17:58, 915m
    Mac restart, Docker down                     :crit, 2026-09-23 11:03, 164m
    Runs hang, D7a-SEC restart                   :crit, 2026-09-23 16:02, 60m
    Runs stuck after arm64 run, S-PLAN restart   :crit, 2026-09-24 04:21, 347m
    Second Mac restart, S-PLAN starts Docker     :crit, 2026-09-24 12:30, 14m
    section Local containers
    unfork-pg                                    :2026-09-22 17:29, 2026-09-24 15:44
    unfork-neo4j                                 :2026-09-22 17:27, 2026-09-24 14:00
    Union images built                           :2026-09-22 17:16, 22m
    Deep-dive throwaway test containers          :2026-09-28 09:47, 55m
    section Cluster
    S8 build, test runs, recreate node 1/3/4     :2026-09-25 09:17, 80m
    S8 node 3 worker recreate (PT-1 keys)        :2026-09-25 13:35, 5m
    Cut-over freeze, migrate, restart            :2026-09-25 15:16, 10m
    #266 outbound worker, promtail, sync-env     :2026-09-25 16:21, 14m
    #269/#270 deploy, grafana fix                :2026-09-28 11:17, 14m
    section Droplet
    Read-only only                               :done, 2026-09-22 13:29, 2026-09-25 14:24
    neo4j stop/dump/start x2, repair             :active, 2026-09-25 14:38, 4m
    neo4j stop/dump/start (migrate script)       :active, 2026-09-25 15:20, 2m
    celery-beat stopped                          :active, 2026-09-25 16:30, 1m

The dev Mac: one daemon, many sessions

Every scope worktree on the Mac talked to the same Docker Desktop. The plan’s runtime evidence contract (C-ENV) needed a local Postgres and Neo4j, and S0-IMG needed to build images. That made the daemon the busiest shared resource in the project after git itself. Chapter 2 describes how the first two restarts were handed over. This section covers the containers and the later restarts.

Which sessions touched the daemon

flowchart LR
    D[("Docker Desktop<br/>dev Mac")]
    ENV["S0-ENV<br/>34 commands<br/>created unfork-pg, unfork-neo4j"] --> D
    IMG["S0-IMG<br/>115 commands<br/>union images, probes,<br/>restart 23 Sep"] --> D
    PLAN["S-PLAN and teammates<br/>138 commands<br/>s4-mig, s5-tool, s7-gate,<br/>bh-runtime, fix-236;<br/>restart 24 Sep"] --> D
    D7["D7a-SEC<br/>29 commands<br/>nginx -t; restart 23 Sep"] --> D
    D10["D10-OPS<br/>12 commands<br/>stopped unfork-neo4j twice"] --> D
    D1["D1, D6<br/>ps only"] --> D
    AUD["Audit fix teams, 28 Sep<br/>~100 commands<br/>throwaway test containers"] --> D
    OWN(["Owner<br/>wiped images and containers,<br/>dropped the databases"]) --> D

The two evidence containers

S0-ENV created both containers on the evening of 22 September. The owner’s first answer to where Postgres should come from was “I’m pretty sue we installed postgres 16 already. Can you verify”. Once S0-ENV had checked that it wasn’t installed, the owner picked Docker from its second question (data/agent-questions-to-owner.json, 23:15 and 23:28 UTC). S0-ENV pulled pgvector/pgvector:pg16 rather than plain postgres:16, because the migrations need the vector extension. The option it had recommended already allowed for that. The container came up at 17:29 MT:

docker.io/pgvector/pgvector:pg16
f3475beb3a0d7de6e5d65bfb1ca3318f32ff6c18035be46572e490a216f56905
PostgreSQL 16.15 (Debian 16.15-1.pgdg12+2) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14+deb12u1) 12.2.0, 64-bit
5432/tcp -> 127.0.0.1:5432

— S0-ENV (3c6c1eba, line 371, 2026-09-22T23:29Z)

unfork-pg pgvector/pgvector:pg16 Up 3 minutes 127.0.0.1:5432->5432/tcp
unfork-neo4j neo4j:5.26-community Up 4 minutes 127.0.0.1:7475->7474/tcp, 127.0.0.1:7688->7687/tcp

— S0-ENV (3c6c1eba, line 535, 2026-09-22T23:32Z)

S0-ENV then told S0-IMG to “please leave them alone”, and S0-IMG agreed.

The two containers had different restart policies, and that difference shaped the rest of the week. unfork-pg ran with --restart unless-stopped, so it came back by itself after every daemon restart. unfork-neo4j had restart=no, so each restart left it Exited until someone ran make unfork-neo4j. S-PLAN recorded the difference just before its own restart on 24 September:

/unfork-pg restart=unless-stopped mounts=1
/unfork-neo4j restart=no mounts=2

— S-PLAN (9cc0216e, line 3821, 2026-09-24T16:04Z)

stateDiagram-v2
    direction LR
    state "unfork-pg<br/>(restart unless-stopped)" as PG {
        [*] --> PGUp: docker run, S0-ENV<br/>22 Sep 17:29
        PGUp --> PGUp: daemon restart<br/>(comes back itself) x5
        PGUp --> PGUp: 60 docker exec<br/>evidence runs, Wave 3A
        PGUp --> PGDbs: databases dropped<br/>24 Sep 15:33–15:44
        PGDbs --> [*]: never removed in<br/>the transcripts
    }
    state "unfork-neo4j<br/>(restart=no)" as N4 {
        [*] --> N4Up: make unfork-neo4j<br/>22 Sep 17:27
        N4Up --> N4Ex: daemon or Mac restart<br/>Exited 137 / 255 (each time)
        N4Up --> N4Ex: docker stop by D10<br/>(test) x2
        N4Ex --> N4Up: make unfork-neo4j<br/>or docker start
    }

The databases inside unfork-pg were dropped in two batches, and the owner ran the larger one. On the afternoon of 24 September, the data-safety hook blocked S-PLAN’s DROP DATABASE loop for its twelve review databases. The loop ran at 15:33 MT, once the owner had written the single-use token (chapter 10). For the 22 working databases the owner asked S-PLAN to check first, then to hand over the command:

verify we can drop the working dtabases — owner (28b464a2, line 1368, 2026-09-24T21:39Z)

Yes, all 22 can be dropped safely. I miscounted earlier: it’s 22, not 21. I’d keep unfork_base. — S-PLAN (line 1403, 21:40Z)

write the code I can copypaste — owner (line 1411, 21:42Z)

The owner’s first paste broke across lines, and zsh rejected it with a parse error (line 1418). The owner then asked “make it easier for me” (line 1423). S-PLAN wrote a one-line script, and the owner ran it from their own prompt: <bash-input> bash .claude/scratch/drop.sh</bash-input>. The output began dropped unfork_advertiser_reports dropped unfork_content … (lines 1445–1446, 21:43Z). A command run with ! runs as the owner, so the hook had nothing to block.

No transcript removes the unfork-pg or unfork-neo4j containers. The last status recorded for both is Up About an hour, at 14:00 MT on 24 September (bh-runtime, S-PLAN teammate).

Images built on the Mac

Image Built by When (MT) Fate
ai-orchard:unfork-union-web, -worker (6.25 GB each) S0-IMG, build_images.sh 22 Sep 17:16–17:38; five launches, the first four stopped or failed while the daemon returned HTTP 500 Kept; reused for import smoke and pip freeze by bh-runtime on 24 Sep
ai-orchard:unfork-isa-helper S0-IMG, docker build -f - 23 Sep 09:23–09:36, three times Throwaway; removed by the script’s own trap
ai-orchard:s5-tool-check s5-tool (S-PLAN teammate) 23 Sep 13:51 Removed 14:10 (image-removed)

The daemon hang also corrupted a base image. S0-IMG found it, removed the image and cleared only its own build cache:

Total:	1.598GB
Deleted: sha256:b99029c95d3d37fb1e4e76d287f7984373dca77c665885986e31b2c95260c13c
docker.io/library/python:3.11-bookworm
x86_64
Python 3.11.16

— S0-IMG, docker builder prune -af then re-pull (03b4533a, line 446, 2026-09-22T23:31Z)

S0-IMG will leave unfork-pg and unfork-neo4j alone. FYI: the VM hang had corrupted python:3.11-bookworm’s unpacked layers (“exec format error”). I fixed it by removing that image and running docker builder prune -af (build cache only; no containers or volume […] — S0-IMG to S0-ENV (03b4533a, line 457, 2026-09-22T23:32Z)

Throwaway containers

Agents created throwaway containers to test things the repo had no other way to test. Most were run with --rm or removed in the same command:

  • ISA probes under qemu (S0-IMG, 23 Sep);
  • nginx -t of the cluster template (D7a-SEC, 23 Sep; the audit’s fix team, 28 Sep);
  • a Redis for boot tests (bhrt-redis, bh-runtime, 24 Sep, stopped with --rm);
  • Loki and Grafana on a private network to test the new alert rules (dd-loki, dd-graf, ddnet, 28 Sep);
  • throwaway Postgres instances on ports 55433 and 55434 to test a migration (dd-pg-c2, dd-pg-c2b, 28 Sep);
  • a volume permission test (ddtest_vol, removed in the same call).

Only one cleanup took a day. On the night of 22 September, S0-IMG’s probe containers got stuck at Created (festive_tesla, bold_lehmann, charming_germain, clever_germain, s0img-probe2). They were removed only after the restart the next morning.

A macOS privacy rule broke bind mounts from ~/Documents more than once. The agents’ workaround was docker cp, which S0-IMG wrote into run_smoke.sh on 23 September. The same failure came back on 28 September:

docker: Error response from daemon: error while creating mount source path ‘[…]/05-dd-cluster-config/.claude/scratch/nginx-tpl’: mkdir […]/Documents: operation not permitted

— fix-cluster-config, audit teammate (376f518d subagent, line 332, 2026-09-28T15:47Z)

Six daemon disruptions, four restarts

# When (MT) Symptom Who acted Authority
1 22 Sep 17:04–17:31 docker info hangs, then HTTP 500 on every call (LinuxKit VM hang) Owner wiped all images and containers. S0-ENV quit and reopened Docker (17:16), then ran docker desktop stop/start (17:27). S0-ENV asked “May I restart Docker Desktop…?”, answer “Yes, restart + pull”. Owner: “You’re in charge of fixing docker”
2 22 Sep 17:58 → 23 Sep 09:14 New containers hang at Created S0-IMG ran docker desktop restart Owner chose “Coordinate a restart (Recommended)”; S0-ENV replied “go”
3 23 Sep 11:03 → 13:47 Mac restarted (the mass restart); Docker not running s4-mig ran open -a Docker None sought; the daemon was down
4 23 Sep 16:02–17:02 Every docker run hangs; the monitoring pre-commit hook can’t pass D7a-SEC quit and relaunched Docker, then ran docker desktop restart Owner picked “You restart Docker”
5 24 Sep 04:21 → 10:08 Runs stay Created after an arm64 run s7-gate held off; later S-PLAN quit Docker and ran docker desktop restart The docs session’s brief (X008), which relayed the owner’s request and added “coordinate with it first” (see below)
6 24 Sep 12:3x → 12:44 (restart announced 12:02) Second Mac restart S-PLAN ran docker desktop start || open -a Docker None sought

Four patterns stand out in how agents treated a shared daemon.

Agents asked before they restarted. Every restart that could interrupt another session’s containers went to the owner first. Only once did the owner hand the restart back to the agent, in answer to D7a-SEC’s question. D7a-SEC’s recommended option was for the owner to restart Docker themselves, because other sessions’ unfork-pg was running:

Docker on this Mac is wedged: docker ps answers, but every docker run hangs (a bare docker run --rm alpine true ran over 5 minutes). So the monitoring pre-commit hook can’t pass […] Committing needs it, and I won’t use --no-verify. — D7a-SEC (0b28651a, line 1067, 2026-09-23T22:52Z)

The options were “I’ll restart Docker (Recommended)”, “You restart Docker” and “Install nginx via brew”. The owner answered “You restart Docker” eight minutes later (line 1068). D7a-SEC recorded unfork-pg’s restart policy first, so it could bring the container back if needed. After the restart:

real 3.48
user 0.02
sys 0.01
unfork-pg Up 1 second

— D7a-SEC (0b28651a, line 1094, 2026-09-23T23:02Z)

The steward told a teammate not to restart, on the owner’s behalf. When S7-GATE wedged the daemon on the morning of 24 September, it stopped and reported:

Docker on this machine can’t start containers any more; this needs you or Steve. […] I did NOT restart Docker Desktop, because a restart would take unfork-pg and unfork-neo4j down under every sibling session. — s7-gate to S-PLAN (9cc0216e, line 3132, 2026-09-24T10:58Z)

S-PLAN steward:

  1. Docker: don’t restart it; right call. The owner’s cluster session may depend on it, and a restart is his to make. — S-PLAN (line 3139, 2026-09-24T10:58Z)

The pg16 integration tests that need new containers were quarantined under issue #148 instead.

Restart 5 went ahead without the handshake it had promised. Five hours later, a brief arrived from the docs session. The owner had typed “You do all teh “still up to you” items” there, with no word on Docker. The brief turned that into a list, and added a condition:

Restart Docker Desktop, which is wedged, then: […] Before restarting: unfork-d4b-obl-f1 is a busy peer session and the restart takes unfork-pg and unfork-neo4j down, so coordinate with it first. — docs session to S-PLAN (X008, 9cc0216e line 3737, 2026-09-24T15:59Z)

S-PLAN sent D4b two messages, each ending “I won’t restart until you answer.” Both failed ("Failed to send to unfork-d4b-obl-f1.", lines 3771 and 3776). S-PLAN then found Docker answering and wrote “Docker was responding, so I didn’t restart it” (line 3805, 16:01:42Z); chapter 2 ends its account there. The transcript continues. Eight seconds later, S-PLAN’s next probe hung:

img=redis:7-alpine
HUNG 45s
friendly_herschel Created 2026-09-24 10:01:50 -0600 MDT
dreamy_vaughan Created 2026-09-24 04:40:18 -0600 MDT
elegant_bohr Created 2026-09-24 04:39:42 -0600 MDT
brave_galileo Created 2026-09-24 04:21:58 -0600 MDT

— S-PLAN (9cc0216e, line 3816, 2026-09-24T16:02Z)

S-PLAN quit Docker Desktop at 10:02 MT and ran docker desktop restart at 10:07. It brought both containers back at 10:08, with no further message to D4b and no note in its text output at the time:

status=running
unfork-pg
unfork-neo4j
run exit=0
unfork-pg Up 4 seconds
unfork-neo4j Up 1 second
1

— S-PLAN (line 3837, 2026-09-24T16:08Z)

In effect, S-PLAN judged that D4b, frozen since the evening before, was unreachable and so not using the daemon. The transcript does record that judgement. Just before the restart, S-PLAN read D4b’s CPU time with ps (calls 355 and 356, lines 3780 and 3784). Twenty minutes later it told the owner: “Its CPU time hasn’t moved, and its work has already landed” (X014). The brief’s condition had still not been met. It is the only restart that went ahead without an answer from either the owner or the affected peer.

The owner did the destructive cleanup themselves. On 22 September the owner deleted all images and containers before handing Docker to S0-ENV. On 24 September they dropped the working databases. No agent ran docker system prune, volume prune or rm against another session’s container.


The cluster: three deploy windows

The cluster’s containers changed in only three windows. Each followed the same shape: build ai-orchard:production on node 1, ship it to nodes 3 and 4, sync the role-scoped .env, then run docker compose up -d node by node. No cluster command used rm, down or prune.

S8, 25 September (write-up session)

The write-up session ran S8 (see chapter 4 for how it came to do so). It built the image on node 1: “The image build took about 14 minutes and it’s now being copied to the other nodes” (fc6720d1, line 2533, 15:43Z). It then ran the test suite in two throwaway docker run --rm ai-orchard:production containers on node 4 (10:01 and 10:35 MT), before recreating anything live. Node 1 came first:

 Container orchard-node1-web-1 Recreate
 Container orchard-node1-cloudflared-logs-init-1 Recreate
 Container orchard-node1-cloudflared-logs-init-1 Recreated
 Container orchard-node1-web-1 Recreated

— write-up session, docker compose --profile tunnel up -d on node 1 (fc6720d1, line 2633, 2026-09-25T16:36Z)

Node 1 is healthy with no restarts, about 90 seconds after it was recreated. Step 3 is node 3 (beat and both workers) and node 4: — (line 2683, 16:38Z)

Node 3’s celery-beat, celery-worker and celery-agent-worker and node 4’s monitoring were recreated at 10:38 MT. At 13:35 MT node 3’s celery-worker was force-recreated a second time, to pick up the external-data keys from PR #256 (docker compose up -d --force-recreate celery-worker, line 3251).

The cut-over, 25 September (audit session)

The post-migration audit session ran the real data migration once the owner said “pr merged. go ahead with next steps and run the migration” (376f518d, line 752, 21:12Z). Its Docker footprint on the cluster was a freeze and a restart around migrate-from-droplet.sh:

 Container orchard-node3-celery-beat-1 Stopped
 Container orchard-node3-celery-worker-1 Stopping
 Container orchard-node3-celery-worker-1 Stopped
orchard-node3-promtail-1 running
 Container orchard-node1-web-1 Stopped

— audit session, Gate 2 freeze (376f518d, line 799, 2026-09-25T21:16Z)

The script then moved the data inside the containers. It restored Postgres into node 2 through docker exec, and stopped and restarted node 2’s Neo4j to load the dump. The web tier came back at 15:22 MT, and node 1’s startup migration took node 2 to Rootstock’s head (line 929). At 15:25 nginx was restarted to load a header fix (docker compose restart nginx, line 980), and node 3’s services started at 15:26.

Two more changes followed that evening:

  • 16:21 MT: PR #266 added a new service, celery-outbound-worker, to node 3. It was the only container created, rather than recreated, in any cluster window. Its first status line was Container orchard-node3-celery-outbound-worker-1 Starting (line 1624).
  • 16:25 and 16:34 MT: promtail was force-recreated on all four nodes. Node 1 and node 3 were recreated again at 16:31, after a sync-env.sh run. A note on 28 Sep (line 3095) says the “settings check goes stale after every .env sync”.

The migration is done. Node 2 now holds the droplet’s Postgres, pgvector embeddings and knowledge graph, and search on <grovesite>.com works against them. The droplet is still running unchanged as the fallback. — audit session (line 1161, 2026-09-25T21:35Z)

The deep-dive deploy, 28 September

On 25 September the owner asked for a deep dive and said: “Do not get blocked on waiting for prs or content from me” (376f518d, line 2107, 23:34Z). By 28 September the dive had found that RAG answers were failing on the cluster, 0 of 8. The session decided to deploy the two fix PRs before they were merged:

PR #270 is open with the config fixes, but it predates my C-4 (CORS) and memory-flag messages. The agent will add those next.

Merges into main are yours, but RAG is completely down on the cluster, and you asked me not to block on PRs. My plan: - Build: when both PRs are complete, merge them into a local integration branch (never pushed to main) and deploy from that. — audit session (line 2845, 2026-09-28T16:14Z)

The session merged both fix branches into a local branch in a new worktree, 06-dd-deploy (deploy/deep-dive-integration at 62421cde). It rebuilt the image and recreated node 3 and node 1 at 11:24 MT, then node 4 and promtail at 11:25. Node 4’s Grafana failed to start:

 Container orchard-node4-grafana-1 Recreated
 Container orchard-node4-monitoring-1 Recreated

Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting “/home/orchard/orchard/deploy/mac-mini-cluster/node4-ops/alerts-cluster.yml” to rootfs at “/etc/grafana/provisioning/alerting/alerts-cluster.yml” […] read-only file system — node 4, docker compose up -d (line 3098, 2026-09-28T17:25Z)

Four minutes later there was a fix commit, 42b105cd (“fix(monitoring): give node 4’s cluster alert overlay a mount point”). The session synced it to node 4 and ran compose up again. Grafana was up at 11:30 MT (orchard-node4-grafana-1 Up 20 seconds, line 3122). Production therefore ran on commits that were not on main: the #269 and #270 branches, including the Grafana fix 42b105cd. PRs #269 and #270 were still open at 11:32 MT. That is the last event chapter 18 covers, and that chapter treats this as reconciliation still under way. (Updated 29 Sep: the owner merged both at 11:47–11:48 MT, and production was redeployed from main at 12:05 MT; see chapter 20.)

stateDiagram-v2
    direction TB
    [*] --> Old: before 25 Sep<br/>image of 21 Sep
    Old --> S8: 25 Sep 10:36–10:38<br/>compose up -d (recreate)<br/>node 1, 3, 4
    S8 --> S8b: 13:35 force-recreate<br/>node 3 celery-worker (PT-1)
    S8b --> Frozen: 15:16 compose stop<br/>node 1 web, node 3 beat + workers
    Frozen --> Migrated: 15:22–15:26 up / restart nginx / start
    Migrated --> Lane: 16:21 new service<br/>celery-outbound-worker (#266)
    Lane --> Synced: 16:31 sync-env + force-recreate
    Synced --> Deep: 28 Sep 11:24–11:25<br/>deploy from local integration branch
    Deep --> GrafanaDown: node 4 grafana<br/>bind-mount error
    GrafanaDown --> Deep2: 11:30 fix 42b105cd,<br/>compose up
    Deep2 --> Main: 11:47–11:48 PRs merged,<br/>12:05 redeploy from main
    Main --> [*]: running main 4f75b2c2

The droplet: the production boundary

Until the afternoon of 25 September, the droplet sat behind .claude/CLAUDE.md (Rootstock)'s production rule. Agents could read its state but were not allowed to stop, decommission or modify it or its containers. Every droplet command before then was a read:

When (MT) Session Commands Nature
22 Sep 13:29 Scion planning session docker exec app-web-1 flask db current, docker images Read
24 Sep 15:17 S-PLAN (28b464a2) docker ps; docker exec -i app-web-1 python - with SET TRANSACTION READ ONLY Read
25 Sep 14:23–14:37 Audit session cypher-shell counts, du, repair_graph_hygiene.py without --apply Read

The owner changed the rule in a prompt at 14:24 MT: “All of the credentials are available to you, you just need to look in the right place. There are no users and no other developers. So you can make chagnes inproduction” (data/owner-prompts.json). The audit session still paused before changing anything:

I also didn’t run migrate-from-droplet.sh, because CLAUDE.md says only you run it. — audit session (376f518d, line 201, 2026-09-25T20:25Z)

Chapter 4 quotes its request, in the same reply, for “a specific yes” before changing 606 graph nodes. The owner’s next prompt was “We don’t need to freeze the droplet. make a note and continue, rewrite claude.md so that anyone can run migrate-from-droplet.sh fix preflight. Make your suggest gchanges.” (line 205, 20:35Z). The session read that as the yes. Within five minutes it made the droplet’s first changes, backing up the graph before touching it:

dump_rc=0
Files: 43/43, data: 100.0%
Done: 43 files, 332.9MiB processed.
2026-09-25 20:39:42.421+0000 INFO  [o.n.c.d.DumpCommand] Dump completed successfully

— audit session: docker stop app-neo4j-1, docker run --rm --volumes-from app-neo4j-1 … neo4j-admin database dump, docker start app-neo4j-1 (376f518d, line 298, 2026-09-25T20:39Z)

The backup is good: 57.9 MB, “Dump completed successfully”. Applying the repair: — (line 301, 20:40Z)

The first attempt, a minute earlier, stopped and restarted the container too, but the dump failed on a directory permission (line 289). The rewritten CLAUDE.md rule landed in 92964e8e at 14:52 MT and was merged by 15:12. It now says “Never decommission the DigitalOcean droplet”, and “Anyone, agents included, may run deploy/mac-mini-cluster/scripts/migrate-from-droplet.sh”. So the stops at 14:38–14:39 rested on the owner’s prompt, not on the file. The file still carried the old rule at that moment. (This worktree’s copy predates the change.)

Every state change on the droplet:

When (MT) Command Container Authority
25 Sep 14:38 docker stop, dump (failed), docker start app-neo4j-1 Owner prompt, 14:24 and 14:35
25 Sep 14:39 docker stop, dump (succeeded), docker start app-neo4j-1 same
25 Sep 14:40 docker exec … repair_graph_hygiene.py --apply (a data write, not a container change) app-web-1 → graph same; backup taken first
25 Sep 15:20 docker stop, offline dump, docker start, run by migrate-from-droplet.sh app-neo4j-1 Owner: “run the migration” (15:12)
25 Sep 16:30 docker compose stop celery-beat (failed: “no such service”), then docker compose -f docker-compose.prod.yml stop celery-beat app-celery-beat-1 Owner answered “Yes, stop it (Recommended)” (16:25:59)

The question about celery-beat told the owner how to reverse the stop and offered a way to keep control:

Should I stop the droplet’s celery-beat (on the droplet, via SSH) before the flag flips? — audit session (376f518d, line 1680, 2026-09-25T22:25Z)

The options were “Yes, stop it (Recommended)”, with the note “docker compose start celery-beat reverses it”; “No, leave it running”; and “I’ll do it myself”. The stop landed at 16:30 MT:

 Container app-celery-beat-1 Stopping
 Container app-celery-beat-1 Stopped
app-celery-beat-1 Exited (137) Less than a second ago

— audit session (376f518d, line 1712, 2026-09-25T22:30Z)

The same listing shows what was left alone: app-web-1, app-celery-worker-1, app-redis-1, app-neo4j-1, app-nginx-1 and the monitoring stack were all Up. Phase 8, decommissioning the droplet, stayed with the owner. The deep-dive teams that evening used a helper written to be read-only (“Deep-dive production access helper. READ-ONLY by convention: agents must not run anything that writes, restarts, or deletes”, prod.sh, line 2176). Their 59 droplet commands were all ps, logs, inspect, stats or read-only exec.


Scripts that drove Docker indirectly

Some of the heaviest Docker work never appears as a docker command in a transcript, because a script ran it:

Script Runs Docker effect
scripts/unfork/img/build_images.sh 5 launches, 22 Sep 17:16–17:32 MT (S0-IMG); the first 4 stopped or failed during the daemon failure docker compose build of the union images
make unfork-neo4j 10, 22–24 Sep (S0-ENV, D10, S-PLAN) Created or restarted unfork-neo4j
pytest tests/deploy/test_pg16_upgrade_integration.py 7, 23–24 Sep (S-PLAN teammates) Starts and stops throwaway Postgres containers; flaky under load (#148)
deploy/mac-mini-cluster/scripts/build-and-distribute.sh 3: 25 Sep 09:17 MT (S8), 16:12 (#266), 28 Sep 11:17 (#269/#270) Builds ai-orchard:production on node 1, ships it to nodes 3 and 4
deploy/mac-mini-cluster/scripts/sync-env.sh 25 Sep 10:36 and 13:34 (S8), 16:31; 28 Sep 11:17 Role-scoped .env to each node; containers recreated afterwards
deploy/mac-mini-cluster/scripts/migrate-from-droplet.sh Repeated preflights 25 Sep 14:48–15:15 MT; 1 real run all --reset-target at 15:16 Droplet app-neo4j-1 stop/dump/start; node 2 Neo4j stop/load/start; Postgres restore through docker exec

Docker configuration committed during the migration

Twenty-nine commits between 22 and 28 September touched Dockerfiles, compose files, deploy/mac-mini-cluster/ or the union-image scripts. Twenty-eight are listed in docker_config_commits_22_28_sep in the JSON. The list omits 42b105cd, the Grafana mount fix. The commits that changed what containers run were these (times MT):

Commit When Change
46897c13 23 Sep 09:47 S0-IMG: union requirements and cluster image cross-build
f072c235, 280f779c 23 Sep 13:52, 14:28 S5-TOOL: Scion tooling on Rootstock config, pinned image dependencies, local-llm image
dbb70cad 23 Sep 15:22 D10: the cluster build stamps GIT_SHA into the image
8cc508b6 23 Sep 17:02 D7a: node 1 compose requires PUBLIC_BASE_URL; nginx stops forwarding client X-Forwarded-Host (#176)
60a2e567, 4cebdb79, 09653f14 24 Sep 10:39–14:04 Review fixes: feature switches reach the containers; cloudflared-logs-init gets a memory limit
c5090e67 25 Sep 10:52 S8: PT-1 external-data credentials wired to node 3’s worker only
ead0d180 25 Sep 16:07 #266: outbound-links sweeps get their own worker service
a9dc0ef3 … 84d7f3cc 28 Sep 09:58–10:48 #270: Vertex parity, LAN-only Grafana, CORS, persisted node 3 state, per-worker memory limits, beat log file
42b105cd 28 Sep 11:29 Mount point for node 4’s alert overlay (fixes the Grafana start failure)

Of the 29 commits, the first 21 are on main. The seven 28 September commits in #270, and 42b105cd, were on the fix branch and in production, but not on main, when this study was written.

What this adds to the case study

  • A shared daemon behaved like a shared working tree. The restart policy decided who bore the cost of each restart: unfork-pg came back by itself, and unfork-neo4j needed someone to restart it. Chapter 15’s tight-coupling lens fits. One agent’s arm64 build wedged the daemon for every session, and the fix was a restart, which hit every session too.
  • Agents treated restarts as the owner’s call and asked. Three of the four agent restarts had the owner’s direct answer, and the Wave 0 one also had a peer handshake. The fourth ran on a relayed brief. The steward went further and refused a teammate’s restart on the owner’s behalf. The exception was S-PLAN’s restart on 24 September, which skipped the brief’s condition because the peer could not answer.
  • Destructive cleanup stayed with the owner. The image and container wipe on 22 September and the database drops on 24 September were both done by the owner’s own hand.
  • Production changed only inside windows and on explicit words. Cluster containers changed in three windows, each with a verification step, and never by removal. The droplet changed only after the owner relaxed the rule. Every droplet state change was paired with a backup or an offered reversal.
  • The last window deployed code that was not on main. That followed the owner’s instruction not to wait on PRs. It also meant production and main disagreed from 11:24 MT to the end of the transcripts this chapter read. That gap is the reconciliation chapter 18 describes as still open. (Updated 29 Sep: they agreed again from 12:05 MT, when production was redeployed from main after the owner’s merges; see chapter 20.)

Limits

  • Actions outside the transcripts. Docker actions taken outside Claude Code, such as the owner’s wipe on 22 September, are known only from the owner’s own description.
  • Script internals. The commands inside scripts (compose builds, migrate-from-droplet.sh) are inferred from the scripts’ source and their logged progress lines, not from the transcripts’ Bash inputs.
  • Output is truncated. Results in the JSON keep only the first 300 characters. Where a status is quoted here, it was read in full from the transcript line cited.
  • The classifier is heuristic. It is spot-checked, not exhaustive: a command built from a variable ($P …) is counted when the variable’s value is a Docker command in the same call. Three such calls failed under zsh with “command not found” and are still counted as attempts.

Addendum: the migration check, 25–28 September (to 11:58 MT, 28 Sep)

This updates the end state above. The state diagram ends “running, PRs #269/#270 open”, and the Patterns section says production and main disagreed. Both were true at 11:30 MT. The owner merged #269 at 11:47 MT and #270 at 11:48 MT, so main then held everything production ran, 42b105cd included. At 11:53 MT the lead started a redeploy from main.

Chapter 19 ends with Grafana coming back up at 11:30 MT. From then to the cut-off, the digest shows seven Docker-related calls, all on the cluster:

MT, 28 Sep Where Action Changes state?
11:31 node 1 web prod.sh app node1 runs stream C’s RAG script in the container: 8 answers through Vertex No containers; LLM calls only
11:37 all nodes verify-deployment.sh: DEPLOY VERIFY: PASS No
11:37–11:41 node 3 A script in the app container sends the graph audit, audit retention, search-demand sync and scorecard refresh to the workers Data only (task writes)
11:41 node 3 The matview refresh task, same route Data only
11:41 node 3 beat Reads the effective beat schedule, plus docker stats for worker memory No
11:53 admin Mac → nodes Redeploy from main at 4f75b2c2: sync-code.sh, then build-and-distribute.sh, with later steps cut off in the digest Image build; no container recreated before the cut-off
11:55 admin Mac Reads the redeploy log No
  • No rm, down or droplet Docker command ran in the window. The droplet stayed as the cut-over left it.

  • The redeploy was the first build from main since the #266 build on 25 September. The lead worked from the detached 06-dd-deploy worktree after checking that the merges were in:

    The redeploy is still building the image. Meanwhile I’m writing a guard test on a new branch, so a future overlay can’t repeat the Grafana failure.

    — lead (376f518d line 3388, 2026-09-28 17:55 UTC)

  • The Grafana failure became a test, not a Docker step. PR #288 (5e23adcd) parses every compose file for a file mount nested inside a read-only directory mount. The lead confirmed it fails when the stub is removed. It needs no container.

The chapter’s count of three cluster deploy windows stands at the cut-off. A fourth, the redeploy from main, had begun but had not yet recreated a container.

20. Closing the migration check

Question: How did the migration check end, and how was its remaining work handed off?

Short answer: The migration check ended at 12:59 MT on 28 September. Its lead’s last message began “There was nothing left to push.” In its last hour it did five things:

  • it verified the redeploy from main (all containers healthy, public site 200, verify-deployment.sh PASS, 12:05 MT);
  • it sent the owner a final report;
  • it killed four stray shells and closed its SSH connections;
  • it ran the /tree done wrap-up, the first in this study;
  • at the owner’s request, it published three lessons and one evidence note to the owner’s career repo.

The remaining work went to GitHub issues, not to a handoff note. The lead filed 15 issues (#273–#287) at 11:54–11:55 MT, one per open item. Two of its /tree done inbox notes became #293 and #294 at 13:38 MT, filed from one of the owner’s repo-root sessions. Of the 20 issues in the range #273–#294, 17 trace to the migration check and 3 came from elsewhere. Each of the 20 was picked up by one of 15 follow-up worktrees. Those worktrees were created at 13:51–13:52 MT, 53 minutes after the check’s last message. Four issue titles ask the owner to decide. The owner never answered the lead’s last direct question, “Shall I go ahead with those two?”. The owner ran /tree done instead.

Critical path, same method as chapter 18:

  • 143.3 elapsed hours from the first request to the check’s last event, with 40.9 active;
  • 100.0 hours (70%) waiting on the owner.

The technical path ended at 12:05 MT with production on main, at 142.4 hours. The last 0.9 hours were closing, and almost three quarters of that was owner wait.

Sources: 376f518d (the migration check’s lead session) and its lookout subagent, from 11:58 MT to the end; the owner’s repo-root sessions 44226e4f and e26152a2; GitHub issues and PRs read over REST on 29 Sep; git worktree list. Data: data/closing.json. Checks: data/verification/20-closing-the-migration-check.json.


The last hour

MT, 28 Sep Who Event
11:53:10 Owner “prs are merged. […] Also file all fhte left to me items as github issues” (line 3320)
11:54:54–11:55:05 Lead Files #273–#287
11:55:15 Lead Status comment on cut-over issue #261
11:56:46 Lead Opens PR #288, the Grafana mount-point guard test
11:58:05 Cut-off of the chapter addenda
12:05:11 Lead Redeploy from main finishes: == DEPLOY OK, web=healthy
12:05:39 Lead DEPLOY VERIFY: PASS
12:05:49 Lead Final report
12:10:47 Owner Asks what is next and what the idle agents are waiting on
12:11:21 Lead Stray shells killed, SSH closed, “What’s next” list
12:14:44 Owner /heo:tree done
12:17:45 Lead /tree done complete
12:26:19–12:31:20 Both Where the inbox lives; lessons published to the career repo
12:54:21–12:57:40 Both Lookout harvest; one evidence file delivered
12:58:46 Owner “push”
12:59:04 Lead Last event: “There was nothing left to push.”

The first four rows come from before the addenda’s cut-off (chapter 17’s addendum quotes the issue filing). They are repeated here because the handoff starts with them.

Production back on main

The redeploy had started at 11:53:54 MT, as a background command in the 06-dd-deploy worktree: sync code, build and distribute the image, sync .env, then compose up on nodes 3, 1 and 4. It finished at 12:05. The same tool call waited for node 1’s web container to report healthy:

== PREP OK
== DEPLOY OK
web=healthy
sha=4f75b2c23f09ea2606490cc0e486b87f4cba4a05

Tool result, 376f518d line 3450, 2026-09-28 18:05:11 UTC. The same output lists the node 3 and node 4 containers as healthy and ends public 200.

Production now runs main (4f75b2c2), and every container is healthy. A final deployment gate to confirm:

— lead (376f518d line 3453, 2026-09-28 18:05:15 UTC)

The gate, verify-deployment.sh, printed DEPLOY VERIFY: PASS 23 seconds after it was started (line 3455). 4f75b2c2 is the merge of #272, the report PR. So main then held #269, #270 and the archived report. Production and main had disagreed since 11:24 MT, when nodes 3 and 1 were recreated from the unpushed integration branch. Here they agreed again (chapter 19).

The final report

The lead’s final report, ten seconds after the gate’s result, opened:

I redeployed from main (4f75b2c2), filed 15 issues, added a test for the Grafana problem, and deleted the .env backup.

Redeploy: production now runs main. The only change from what was running was the report docs. All containers are healthy, the public site returns 200, and the deployment gate passes.

— lead (376f518d line 3457, 2026-09-28 18:05:49 UTC)

It then listed the issues by who owned them. The first group, #273–#277, was headed “The items noted and not acted on (5)”. The second, #278–#284, held the owner’s items from the report’s Needs the owner table. The last group, #285–#287, held three smaller items the lead filed “so nothing left to you lives only in the report”. It split one owner item in two because one half had a deadline:

I split item 7 into #283 (reload nginx before 19 October; it has the date) and #284 (what grove-ai.online should do).

— same message

About #261, it said “Everything on its list is done except /heo:deploy-watch, which wasn’t run, so I left the issue open for you to close.” About the Grafana failure, which had cost about 5 minutes of monitoring on deploy (chapter 9), it said the fix was on main and that the new guard in PR #288 “fails if the placeholder is missing”.

“What’s next?”

Five minutes later the owner asked:

what’s next? what is the idle agent or 4 shells waiting on?

— owner (376f518d line 3465, 2026-09-28 18:10:47 UTC)

The lead listed its nine teammates with ListAgents and found four shells of its own still running: a full pytest run in 04-dd-task-defects, started 1 h 41 min earlier, and three others. It killed them and closed its shared SSH connections to the cluster:

All four are gone, and I also closed my four shared SSH connections to the cluster. Nothing of mine is touching production now.

The idle agents are the nine teammates from this deep dive: streams A–E, the two fix agents and the two reviewers. All of them finished and reported, and none is waiting on anything. An idle agent does nothing and uses nothing until someone messages it, so they can simply be left.

— lead (376f518d line 3495, 2026-09-28 18:11:21 UTC)

The same message listed what was “Waiting on you”:

  1. merge PR #288;
  2. decide about three worktrees, 04-dd-task-defects, 05-dd-cluster-config and 06-dd-deploy, all merged. It said “I won’t remove worktrees without your say-so”, and warned that 06-dd-deploy held a copy of the Vertex key in its gitignored secrets/ folder;
  3. the owner issues, with #283’s date first.

It then offered agents for #274, #275, #276, #273, #278 and the /heo:deploy-watch item, and ended with a recommendation and a question:

I’d start with #278, since it’s the only open item that is a security issue created by the migration, then #274, since answers taking up to a minute is what a user would notice first. Shall I go ahead with those two?

— same message

The owner didn’t answer. Three minutes later they typed /heo:tree done.

/tree done

Before running it, the lead checked the worktree:

CLAUDE.md warns that /tree done sweeps every uncommitted change into a commit. Before running it I’m checking this worktree’s state; the untracked .claude/.claude/ folder in particular shouldn’t go into PR #288.

— lead (376f518d line 3502, 2026-09-28 18:14:48 UTC)

It deleted the stray folder. The script’s “Ship It” step then found nothing to commit, and the lead worked through the skill’s remaining steps by hand in three minutes:

  • a repo doc, docs/reference/migrations-run-under-the-app-statement-timeout.md, committed to PR #288’s branch as a51543b3 and noted in a PR comment;
  • eight inbox notes, two for this repo and six for the heo plugin;
  • three lesson drafts for the owner.

Its summary named the two repo notes:

  • Add one real end-to-end RAG answer to the smoke gate. Both gates passed while RAG was completely down.
  • Add a script that compares env var names between the droplet and the cluster, for future host moves. — lead (376f518d line 3607, 2026-09-28 18:17:45 UTC)

These two notes became #294 and #293 an hour and twenty minutes later.

Inbox, career repo and harvest

The owner asked:

where is this inbox stuff stored? How will it get picked up in the future?

— owner (376f518d line 3610, 2026-09-28 18:26:19 UTC)

The lead’s answer explains why two of the notes became issues and six did not:

The notes are plain Markdown files on this Mac, in two places. Neither place is in git, and neither goes anywhere until a Claude Code session starts in the right project.

— lead (376f518d line 3627, 2026-09-28 18:26:42 UTC)

The two repo notes surface in the next Grove-Rootstock session. The six heo notes surface “only when someone opens a session in a checkout of the plugin source repo on this Mac”. The lead offered to file the repo notes as issues at once. The owner chose something else:

publish to the career repo.

— owner (376f518d line 3631, 2026-09-28 18:26:43 UTC)

The first try found no credential for that repo. The lead asked the owner to put a fine-grained token in .env.local “with your editor rather than pasting it into this chat” (line 3654). Three minutes later the token was there. The lead published the three lessons as career-repo commit 6e8b45c (12:31 MT), using a one-off credential helper so the token “never appeared in a URL, on a command line, or in the repo’s git config” (line 3699).

The owner then typed “run the harvest” (12:54 MT). heo’s lookout skill ran as a forked subagent. It delivered one evidence file, commit eaae3e1, on the droplet SSH key-selection fix of 25 September. Its delivery script didn’t use the lead’s helper:

That script put CAREER_REPO_PAT into the clone URL, which exposes the token on the command line while the clone runs, where other local processes can see it. That breaks CLAUDE.md’s no-credential-URL rule, and it isn’t what I promised.

— lead (376f518d line 3747, 2026-09-28 18:57:40 UTC)

The lead added this to the heo inbox note on the publish step. The lead also told the owner, “If you want to be safe, rotate CAREER_REPO_PAT.” This is a new instance of the argv exposure class in chapter 16. The exposure was local and lasted a few seconds. No token value appears in the digest.

The last message

push

— owner (376f518d line 3750, 2026-09-28 18:58:46 UTC)

The lead fetched, checked its own worktree, and read #288’s merge state:

There was nothing left to push.

  • This worktree: clean, and its branch matches origin. PR #288 is open at a51543b3, with the guard test and the statement-timeout doc, and GitHub reports it as CLEAN, ready for you to merge. — lead (376f518d line 3766, 2026-09-28 18:59:04 UTC)

That is the last event in session 376f518d. No prompt closed it. The owner moved to a new session.

The handoff

12:59 to 13:52 MT: from one worktree to many

The owner’s next prompt came 53 seconds later, in a new session at the repo root:

closedone except ~/Documents/Grove/Grove-Rootstock/.trees/06-migration-documentation do a dry run first

— owner, /heo:tree arguments (44226e4f line 8, 2026-09-28 18:59:57 UTC)

The dry run found one blocker, an uncommitted librarian sweep. The owner said “push librarian and pr”. The session opened PR #290, protected the librarian worktree with /tree keep, and ran closedone. It removed three merged worktrees and deleted their local branches: 01-cluster-ready-sept22, 04-dd-task-defects and 05-dd-cluster-config. It kept 02-migration-check-spet25 and 06-dd-deploy “as you asked”. The script reported both as not merged (line 139, 19:02:48 UTC). Both are still in git worktree list on 29 Sep.

After that:

  • 13:34 MT: the owner merged #288 (PR record).

  • 13:35 MT: a second root session built the hub worktree 07-issues-sep28 (e26152a2 line 8).

  • 13:37–13:38 MT: the session-start hook listed four inbox notes. Two were the migration check’s; two dated from 22 Sep. The owner said:

    turn those inbox items to github issues

    — owner (e26152a2 line 95, 2026-09-28 19:37:18 UTC)

    The session re-checked each note against main and filed #291–#294 at 13:38 MT. It changed #291 where the note had gone stale: “the note said lib.sh has no override, but it does” (line 148).

  • 13:51:39–13:52:07 MT: 22 worktrees, 08-… to 29-…, were created, one issue cluster each. 30-… followed at 15:20. Chapter 21 covers how they were created and what they did.

The handoff table

Kinds:

  • defect: something is wrong in code or config;
  • decision for owner: the issue asks the owner to choose;
  • ops task: a live step, often needing a credential or an account;
  • guard or test: a new check that stops a class of failure recurring;
  • process: how the project works.

Finding IDs come from the archived report (docs/archive/status-reports/2026-09-25-migration-deep-dive.md), linked to chapter 9’s audit table where chapter 9 lists them. “State now” is as read over GitHub REST on 29 Sep, 17:04 MT.

# Title (shortened) Filed by Kind Source finding State now
273 Knowledge graph not rebuilt since 2026-07-22; nothing schedules the build Lead defect B-2/B-3 (ch 9, pre-existing) Open; PR #306 open (21-issue-273-kag-graph-build)
274 RAG answers take 25–62 s end to end Lead defect Report “informational” note (no ID); measured in the 8/8 re-run Open; PR #304 open (22-issue-274-rag-latency)
275 Outbound sweep builds an LLM client per link, skips most reviews for budget Lead defect G-1, G-2 (report only) Open; PR #316 open (08-issues-168-275-…)
276 11 scraper_jobs stuck in running since June Lead defect A-3 (ch 9, pre-existing) Open; PR #317 open (12-issues-276-282-…)
277 Before Phase 8: decide what to keep from the droplet Lead decision for owner Report “expected differences” (no ID) Open; worktree 11-issues-277-287-phase8-checklist, no PR
278 App connects to node 2 Postgres as a superuser Lead defect A-1 (ch 9) Open; worktree 23-issue-278-app-db-role, no PR
279 Grafana alerts reach no one Lead ops task F2 (ch 9) Open; PR #313 open (24-…)
280 No off-site copy of any cluster backup Lead ops task F3b (F3 in ch 9) Open; PR #302 open (25-…)
281 Decide on GEMINI_API_KEY Lead decision for owner D-05 (ch 9) Open; PR #303 merged 15:10 MT, issue left open (26-…)
282 Decide when to re-enable scraping Lead decision for owner D-06 (ch 9) Open; PR #317 open (12-…)
283 Droplet certificate: reload nginx before 2026-10-19 Lead ops task F7 (ch 9) Open; comment says the live reload was done at 14:21 MT on 28 Sep; PR #315 open (10-…)
284 Decide what grove-ai.online should do Lead decision for owner F1b (report only) Open; PR #315 open (10-…)
285 Point DROPLET_DATABASE_URL at readonly_import Lead ops task A-4/F8 (ch 9) Open; PR #308 open (27-…)
286 Cloudflare: http→https; decide on www Lead ops task C-5 (ch 9) Open; PR #309 open (28-…)
287 Deactivate the cutover-smoke account after sign-off Lead ops task A-7 (ch 9) Open; worktree 11-…, no PR
289 Root CLAUDE.md too big Owner (by hand; no agent call in either digest) process Not from the check Open; PR #318 open (13-issues-289-292-claude-md)
291 Cluster scripts disagree on how to find the cluster .env Root session, from a 22 Sep inbox note defect Not from the check Open; PR #319 open (09-issues-291-293-…)
292 PR-Agent ticket compliance flags an issue cited only as out of scope Root session, from a 22 Sep inbox note process Not from the check Open; PR #318 open (13-…)
293 Per-service env-var name diff between two hosts Root session, from the check’s inbox note guard or test D-01 class; ch 9, on seams needing their own done evidence; ch 18 strategy 6 Open; PR #319 open (09-…)
294 Deployment gates pass while RAG answers are down Root session, from the check’s inbox note guard or test C-1 (ch 9); ch 18 strategy 6 Open; PR #310 open (29-issue-294-rag-answer-gate)

#288 and #290 in the same range are PRs, not issues. #288, the Grafana guard test, came from the check. It was open at the close and merged at 13:34 MT. Its source is the Grafana mount-point escape in chapter 9’s addendum.

Counts:

  • 20 issues in #273–#294. 17 trace to the migration check: 15 filed by its lead and 2 from its inbox notes. The other 3 came from elsewhere.
  • By kind: 6 defects, 4 decisions for the owner, 6 ops tasks, 2 guards or tests and 2 process issues. The check’s 17 split 5 / 4 / 6 / 2 / 0.
  • Coverage: 20 of 20 were taken by a follow-up worktree, 15 worktrees in all, and 17 have a PR. One of those PRs (#303) has merged. All 20 issues are still open.

The check’s lead also commented on #261 but left it open. #261 was closed at 13:51 MT with the comment “Closing: every item is done”, after the check had ended.

From findings to worktrees

flowchart LR
    subgraph F["Migration check findings (report, 28 Sep)"]
        FO["Needs the owner<br/>A-1 · F2 · F3b · D-05 · D-06<br/>F7 · F1b · A-4/F8 · C-5 · A-7"]
        FP["Pre-existing / informational<br/>B-2/B-3 · A-3 · G-1/G-2<br/>RAG latency · droplet-only data"]
        FN["/tree done inbox notes<br/>gates pass while RAG down<br/>env-name parity"]
        FG["Grafana mount escape<br/>(42b105cd)"]
    end
    subgraph X["Other sources"]
        XN["22 Sep inbox notes"]
        XO["Owner, by hand"]
    end
    subgraph I["Issues"]
        I1["#278 #279 #280 #281 #282<br/>#283 #284 #285 #286 #287"]
        I2["#273 #274 #275<br/>#276 #277"]
        I3["#293 #294"]
        I4["#291 #292"]
        I5["#289"]
        P288["PR #288<br/>(merged 13:34)"]
    end
    subgraph W["Follow-up worktrees (08–29 created 13:51–13:52 MT)"]
        W21["21 · #273"]
        W22["22 · #274"]
        W08["08 · #275 (+#168)"]
        W12["12 · #276 #282"]
        W11["11 · #277 #287"]
        W23["23 · #278"]
        W24["24 · #279"]
        W25["25 · #280"]
        W26["26 · #281"]
        W10["10 · #283 #284 (+#200)"]
        W27["27 · #285"]
        W28["28 · #286"]
        W29["29 · #294"]
        W09["09 · #291 #293"]
        W13["13 · #289 #292"]
        WO["14–20, 30 · older unfork issues<br/>#155 #170 #173 #231 #233 #234 #259 #221"]
    end
    FO -->|"lead, 11:54–11:55"| I1
    FP -->|"lead, 11:54"| I2
    FN -->|"root session, 13:38"| I3
    XN -->|"root session, 13:38"| I4
    XO --> I5
    FG -->|"lead, 11:56"| P288
    I1 --> W23 & W24 & W25 & W26 & W12 & W10 & W27 & W28 & W11
    I2 --> W21 & W22 & W08 & W12 & W11
    I3 --> W09 & W29
    I4 --> W09 & W13
    I5 --> W13
    HUB["07-issues-sep28<br/>hub, 13:35 MT"] -.-> W
    classDef owner fill:#fde2e1,stroke:#c0392b,color:#000
    classDef other fill:#eef2f5,stroke:#8a9aa9,color:#000
    class FO owner
    class XN,XO,WO other

Worktree names are shortened to their number and issues. The full names are in git worktree list, for example 21-issue-273-kag-graph-build. Several worktrees took more than one issue, and two took an older issue as well (#168, #200). Eight more worktrees took older unfork issues that the migration check did not touch.

Decisions left for the owner

Four issue titles ask the owner to decide:

Issue Decision Why the check didn’t make it
#277 What to keep from the droplet before Phase 8: the pre-hygiene graph dump (57.9 MB, “the only way back”) and the droplet’s app logs Phase 8 and the droplet are the owner’s (CLAUDE.md, Production Infrastructure Rules)
#281 Whether to fill GEMINI_API_KEY, which opens a new path sending search-query text to Google AI Studio, or to route search-demand to Vertex The D5 rule needs a recorded terms check first
#282 When to re-enable scraping The runbook says to re-enable it “deliberately after Gate 6”
#284 Whether grove-ai.online stays, redirects or shows a maintenance page A redirect removes the rollback target, and droplet changes are the owner’s

Three more issues carry a smaller choice inside an ops task:

  • #279: which alert channel to use;
  • #286: whether www should work;
  • #273: whether the KAG build should be scheduled.

Left in the lead’s messages, not in issues:

  • Approval for #278. The lead offered to do it: “a new app credential, an ownership reassignment on node 2, and a coordinated change on nodes 1 and 3, with a short web restart”. It also asked “Shall I go ahead with those two?” (#278 and #274). The owner didn’t answer. Both issues went to follow-up worktrees an hour and a half later.
  • Merging #288. The owner merged it at 13:34 MT.
  • Removing the check’s three worktrees and deleting the Vertex key copy in 06-dd-deploy. The owner’s closedone removed two of the three and kept 06-dd-deploy. Only the lead’s message records the key-copy warning.
  • Rotating CAREER_REPO_PAT after the harvest’s argv exposure. This is advice in a message, not an issue.
  • Closing #261. It was closed at 13:51 MT.

This matches the steward pattern in chapter 6. The lead kept production credentials, merges into main, droplet changes and new egress paths for the owner, and acted on the rest. In the last hour it took none of those reserved actions. It asked instead, and it put what it left undecided in writing, in issues or in its report.

Final state of the migration at the close

What runs in production (12:05 MT, 28 Sep):

  • the cluster runs main at 4f75b2c2: the unfork (#236), both fix PRs (#269, #270) and the report (#272);
  • every container is healthy;
  • <grovesite>.com returns 200;
  • verify-deployment.sh passes.

The droplet is still running as the fallback, unchanged except as recorded in chapter 19. Phase 8 of the cut-over runbook has not been run.

Verified live on the cluster Evidence
Data migrated correctly: 82 of 84 Postgres tables byte-identical, the other two differ only by writes after the dump; Neo4j node and relationship hashes all match Report verdict, “The migration itself is correct.”
RAG answers 8 of 8 through Vertex (11:36 MT) Chapter 9 addendum
Keyword search 0.35–2.2 s (was 12–16 s) Chapter 9 addendum
Search-demand sync (15,420 rows); scorecard refresh (5,955 articles in 190 s); graph audit SUCCESS; 5 matviews refreshed Chapter 9 addendum; report
/grafana/* 404 from outside; CORS limited to <grovesite>.com Chapter 9 addendum
Three days of scheduled work: GSC and GA4 nightly runs succeeded, Mailchimp polls OK, first weekly outbound sweep OK, node 3 worker at 718 MiB Lead’s #261 comment, 11:55 MT
Grafana running since the 11:30 fix (Up 34 minutes at 12:05) Redeploy output (line 3450) and final report (line 3457)
Not verified at the close Why
RAG answers on the main build The 8/8 run was on the integration build. The lead’s argument for equivalence was the diff: “The only change from what was running was the report docs.” No query was re-run after 12:05
D-07 (varchar(512) overflow) Merged, but not exercised while scraping is off (#282)
Rollback drill and cluster restore procedure Rewritten in #270 as docs only. The report says “drill not run”, and #280 calls the restore section untested
/heo:deploy-watch after the cut-over Not run. #261 was later closed with a manual review in its place
Any alert reaching a person No contact point delivers (#279), so a failure after the close would page no one
Off-site restore No off-site copy exists (#280)
#288’s guard in CI Open at the close, merged 13:34 MT

Still open, by the check’s own ranking: #278 first (superuser role, “the only open item that is a security issue created by the migration”), then #279, #280, and #283 with its 19 October date. RAG latency (#274) is the problem a user would notice first.

Closing, against the unfork’s lifecycle conventions

Chapter 17 found that worktrees had a scripted start and a conventional end, that agents had almost no end, and that only what was written to git or GitHub carried work forward. The check’s close fits that pattern, with three differences.

Convention (chapter 17) Unfork scopes, 22–25 Sep Migration check, 28 Sep
STATUS = landed 32 writes None. The check was not a registry scope and had no .unfork/STATUS
Handoff note with seven fixed headings 31 on main None. The archived report (#272) filled the role, with a “Needs the owner” table and a “Verdict”, plus the #261 status comment
PR merged Into unfork/integrate-scion, by agents #269, #270 and #272 into main, by the owner. #288 was open at the close
Issues as the carrier of future work 22 filed; 17 open on 28 Sep 15 filed by the lead, one per open item, plus 2 from its inbox notes. The lead filed the small items “so nothing left to you lives only in the report”
/tree done Never run on an unfork worktree Run once, on 02-migration-check-spet25. The lead removed a stray folder first, so the sweep had nothing to commit
Agent shutdown 0 of 90 teammates 0 of 9. “they can simply be left”
Worktree removal One owner-approved sweep, 24 Sep The lead refused to remove its worktrees without the owner’s say-so. The owner’s closedone 53 s after the last message removed two of the three, kept 06-dd-deploy, and also kept the check’s own 02-…
Wrap-up list In a reply, once lost across a restart In a reply again (“Waiting on you”). But every item except #288’s merge, worktree removal, the key copy and token rotation was also an issue

The differences:

  • Issues replaced the handoff note, and they were picked up within the hour. Most of chapter 17’s 22 issues waited days for anyone to pick them up. The check’s 17 were in follow-up worktrees 53 minutes after its last message. Each issue body could serve as a brief: 14 of the lead’s 15 have a checklist (Work, Proposed fix or Decision needed), and all 15 end with “Found in the 2026-09-25 migration deep dive”.
  • Learning had its own carriers, outside the repo. /tree done wrote one repo doc, eight inbox notes and three lessons. The two repo notes became issues only because a session-start hook raised them in the next session, and the owner said to file them. The six heo notes stay on this Mac until someone opens the plugin’s source repo. The lessons went to a different repository.
  • The close was driven by the owner’s prompts, not by a protocol. Each step after the final report came from an owner prompt: “what’s next?”, /heo:tree done, the inbox question, “publish to the career repo.”, “run the harvest”, “push”. The lead’s own next step, #278 and #274, didn’t happen in this session.

The critical path to the close

Method. This is the same method as chapter 18 and its addendum:

  • the path is a chain of segments, each bounded by a transcript event with a UTC time;
  • a segment is owner wait from the lead’s last report to the owner’s next prompt, and is counted with 0 active hours;
  • a segment is agent work otherwise. No gap inside the agent segments here exceeds 30 minutes, so they count as fully active.

The path continues from the addendum’s cut-off (17:58:05 UTC) to the check’s last event (18:59:04 UTC). Sums are of segments, as in chapter 18. Times below are MT on 28 Sep.

Segment MT Elapsed h Active h Kind
Redeploy from main finishes; deploy gate PASS; final report 11:58:05–12:05:49 0.129 0.129 Unplanned
⏸ Owner reads the report, asks what is next 12:05:49–12:10:47 0.083 0 Owner wait
Stray shells and SSH closed; “What’s next” list 12:10:47–12:11:21 0.009 0.009 Closing
⏸ Owner runs /heo:tree done 12:11:21–12:14:44 0.056 0 Owner wait
/tree done: repo doc, 8 inbox notes, 3 lesson drafts 12:14:44–12:17:45 0.050 0.050 Closing
⏸ Owner asks where the inbox lives 12:17:45–12:26:19 0.143 0 Owner wait
Inbox answer; first publish try finds no credential 12:26:19–12:27:13 0.015 0.015 Closing
⏸ Owner adds the token 12:27:13–12:30:23 0.053 0 Owner wait
Lessons published (6e8b45c) 12:30:23–12:31:20 0.016 0.016 Closing
⏸ Owner asks for the harvest 12:31:20–12:54:21 0.384 0 Owner wait
Harvest delivered (eaae3e1) 12:54:21–12:57:40 0.055 0.055 Closing
⏸ Owner says “push” 12:57:40–12:58:46 0.018 0 Owner wait
Push check; last event 12:58:46–12:59:04 0.005 0.005 Closing
Extension total 1.016 0.280 0.737 owner wait
Chapter 18 (to 11:32) Addendum (to 11:58) Close (to 12:59)
Elapsed hours on the path 141.9 142.3 143.3
Active hours 40.3 40.6 40.9
Owner-wait hours 99.1 99.3 100.0
Owner-wait share 70% 70% 70%
Post-S8 reconciliation, elapsed 72.5 73.0 74.0
Post-S8 reconciliation, active 7.1 7.4 7.7

Where the migration’s own path ended. The migration’s technical path ended at 12:05:49 MT, at 142.4 elapsed hours (40.7 active). By then production ran main, the gate had passed and the final report was sent. After that, every segment was closing work. The closing hour was about 73% owner wait (0.74 of 1.02 hours), a higher share than the migration as a whole (70%). The longest wait, 23 minutes before “run the harvest”, came while the owner was doing something else. These were not decisions the path depended on.

The handoff gap is not on the path. The last event (12:59:04 MT) and the first follow-up worktree (13:51:39 MT) are 52.6 minutes apart. The owner used that time to prune worktrees, file #291–#294 and start the follow-up run. It belongs to the follow-up wave, which chapter 21 measures, and it is not added here.

What chapter 18’s strategies would have changed here. The owner’s merge of #269 and #270 took minutes, not a night, as the addendum noted. Strategy 1 (resume long runs automatically) doesn’t apply, because nothing stopped. In this study’s reading, strategy 2 (decide, record, report) would have let the lead proceed on “Shall I go ahead with those two?”. But #278 involves a new production credential, which is on the reserved list, so it would still have waited. The closing hour was short because the lead had already put the open work into issues when the owner asked “what’s next?”.

Limits

  • The digests end at the session’s last event. Why the owner didn’t answer the #278 question is not recorded. The owner’s next session shows only what they did next.
  • #289’s origin is inferred. Neither digest shows an agent creating it, and its body reads as typed by hand.
  • “State now” moves. Issue and PR states were read on 29 Sep at 17:04 MT. Chapter 21 owns their later history.
  • Active time in owner-wait segments is set to zero to match chapter 18’s addendum. Under the plain 30-minute union rule, the whole hour would count as active, because no gap exceeds 23 minutes. The owner-wait figure does not depend on this choice.
  • Security. The career-repo token’s argv exposure is taken from the lead’s own report. No scan of the raw transcripts for this window was run for this chapter.

21. The follow-up issue wave

Status: snapshot of work in progress. This chapter covers the wave up to 16:57 MT on Tuesday 29 September (22:57 UTC). The second lead session, ff2be21d, was still running at that time. Thirteen of the wave’s PRs were still open, so the figures in this chapter will change.

Question: When the migration check closed, the owner filed the outstanding work as GitHub issues and worked them from main. How many agents ran, where and when? How were they planned, dispatched and reviewed? What did they decide on their own, what came out of it, and what did it cost? And what did the wave do differently because of the unfork?

Short answer: Two lead sessions in one worktree, 07-issues-sep28, spawned 173 subagents over 27 hours and worked 38 issues through 23 new worktrees, 08-… to 30-…. The subagents were 130 general-purpose and 43 heo:code-reviewer.

  • A skill planned the wave, not the developer. The developer’s first prompt was a single command, /heo:issue-resolve-all --auto. The lead then ran that skill’s pipeline:
    • 38 read-only scouts, one per open issue;
    • 11 verifiers for every finding that would close, park or hand a live step to the owner;
    • 6 issues closed as already fixed and 3 parked;
    • 29 issues grouped into 22 worktrees, plus a 23rd for #221 later.
  • One agent per worktree, fresh agents to review. Every PR got a local read-only review before the owner saw it, and 13 of the 19 first reviews asked for changes. No agent merged anything. The owner merged six PRs in 101 seconds, at 15:09–15:10 MT on 28 September.
  • Crashes of the lead’s window slowed the wave, not the code. The lead’s window crashed at least eight times. The lead cut the number of agents it ran at once from 20 to 5, then to 3 (Opus only), then to 2. On 29 September the second lead found the cause: VS Code had lost its macOS permission for ~/Documents. It had nothing to do with the number of agents.
  • Outcome at the cut-off:
    • 19 PRs opened, 6 merged and 13 open;
    • 9 issues closed: 6 as already fixed and 3 by merges;
    • 6 new issues filed by the wave itself;
    • 4 dispatched worktrees with no PR yet.
  • Cost: $236 at API list prices. The Sonnet 5.5 share is estimated, because its price is not confirmed. This is an API-equivalent figure, not what the owner paid. The unfork cost about $950.
  • Parallelism: 26.5 agent-hours in 4.1 active hours, a 6.5× effective speed-up. The unfork managed 3.4× overall, and 6.1× in its widest wave.

Compared with the unfork, this wave had one lead instead of 36 sessions, no teammates instead of 90, 38 messages instead of 588, and no AskUserQuestion calls instead of 52. The owner typed 26 prompts instead of 222, but half of them were about crashes.

The data is in data/issue-wave.json: every agent, PR, issue and owner prompt, with the method. The checks are in data/verification/21-the-follow-up-issue-wave.json. Times are MT (UTC−6) in the prose and UTC in the JSON.


The wave’s agents and their roles, from one command to the merge:

1. How many agents, where and when

The shape

flowchart LR
    OWNER(["Owner"])
    SETUP["Setup session e26152a2<br/>repo root, 13:35–13:43 MT<br/>builds 07-issues-sep28,<br/>files #291–#294"]
    L1["Lead 4f6ffff6<br/>07-issues-sep28<br/>Mon 13:38 → Tue 10:30 MT<br/>158 subagents"]
    L2["Lead ff2be21d<br/>07-issues-sep28<br/>Tue 10:30 MT → still running<br/>15 subagents"]
    SC["38 scouts<br/>(Sonnet, read-only)"]
    VE["11 verifiers /<br/>gate dossiers"]
    GH1["6 issues closed,<br/>3 parked"]
    WT["23 worktrees<br/>08-… to 30-…<br/>(6 multi-issue, 17 single)"]
    RS["25 resolvers +<br/>30 finishers<br/>(Opus)"]
    PR["19 PRs<br/>#297–#319"]
    RV["26 reviews +<br/>17 re-reviews<br/>heo:code-reviewer"]
    FX["26 fixers"]
    MG["6 merged by the owner<br/>15:09–15:10 MT, 28 Sep"]
    OWNER --> SETUP
    OWNER -- "/heo:issue-resolve-all --auto" --> L1
    L1 --> SC --> VE --> GH1
    VE --> WT
    L1 --> RS --> WT --> PR
    L1 --> RV --> PR
    L1 --> FX --> PR
    L1 -- "NEXT_STEPS.md" --> L2
    L2 --> RV
    L2 --> FX
    PR --> MG
    OWNER --> MG

Counts

Wave (to 29 Sep 16:57 MT) Unfork (22–28 Sep)
Top-level sessions doing the work 2 leads (+1 short setup session) 36
Worktrees with work 24 (the lead’s + 23 issue worktrees) 24
Agents spawned 173 185
… named teammates 0 90
… spawned by another subagent 0 indexed 22
Models 81 Sonnet 5.5, 87 Opus 5.5, 4 Opus 5, 1 with no API call all Opus
SendMessage calls 38, all lead → subagent 588
AskUserQuestion calls 0 36 (52 questions)
Calendar span 27 h 18 m 5.9 days

All 173 subagents were one-shot background agents (requestShape: background, spawn depth 1). None was a teammate that waited to be messaged. The lead made 174 Agent calls. The first calls for #286 and #294 (13:56 MT) hit the 20-agent cap and started nothing. One transcript, a re-review of #306 at 17:46 MT, has no matching call in the digest. That reconciles 174 calls with 173 transcripts.

By role

Role Agents Type Model Median run Est. cost
Scout: read one issue, write a JSON investigation record 38 general-purpose Sonnet 5.5 18 s $6.91*
Verifier or gate dossier: re-check a close, park or live-step verdict 11 general-purpose 7 Sonnet, 4 Opus 1.2 min $3.86*
Resolver: run /heo:issue-resolve --auto for one cluster 25 general-purpose Opus 5.5 26 min $73.16
Finisher: continue a branch after a crash 30 general-purpose Opus 5.5 6 min $39.91
Reviewer: first review of a PR 26 heo:code-reviewer 20 Sonnet, 4 Opus 5, 2 Opus 5.5 1.4 min $10.51*
Re-reviewer: check the fix commits 17 heo:code-reviewer 9 Sonnet, 7 Opus 5.5, 1 with no API call 1.3 min $8.88*
Fixer: address review findings on a branch 26 general-purpose 7 Sonnet, 19 Opus 5.5 14 min $51.86*

* Includes Sonnet 5.5 rows: estimated, because the Sonnet 5.5 price is not confirmed.

The 25 resolvers are the 20 that started at 13:54–13:56 MT, #286 and #294 twice each (the 14:21 MT pair died in a crash within a minute), and #221 at 15:21 MT.

Which worktree each agent served

Worktree Issues Agents PR State at cut-off
07-issues-sep28 (lead) all 38 49 (scouts, verifiers) — —
08-issues-168-275-outbound-links-sweep #168, #275 9 #316 open
09-issues-291-293-cluster-env-lookup #291, #293 5 #319 open
10-issues-200-283-284-droplet-nginx #200, #283, #284 6 #315 open
11-issues-277-287-phase8-checklist #277, #287 3 none branch only
12-issues-276-282-scraping-resume #276, #282 8 #317 open
13-issues-289-292-claude-md #289, #292 5 #318 open
14-issue-155-alembic-drift #155 4 #301 merged
15-issue-170-dead-ui-paths #170 3 #298 merged
16-issue-173-retention-purge #173 6 #307 merged
17-issue-231-langsmith-egress #231 (+#305) 11 #312 open
18-issue-233-s7-gate-followups #233 1 none branch only
19-issue-234-scraper-monitor-perf-test #234 3 #297 merged
20-issue-259-pre-deploy-check #259 4 #300 merged
21-issue-273-kag-graph-build #273 8 #306 open
22-issue-274-rag-latency #274 8 #304 open
23-issue-278-app-db-role #278 5 none branch only
24-issue-279-grafana-contact-point #279 5 #313 open
25-issue-280-offsite-backup #280 8 #302 open
26-issue-281-search-demand-vertex #281 5 #303 merged
27-issue-285-droplet-readonly-role #285 5 #308 open
28-issue-286-cloudflare-https #286 4 #309 open
29-issue-294-rag-answer-gate #294 4 #310 open
30-issue-221-search-demand-recluster-memory #221 2 none branch only

Two more reviewers checked PR #299, a machine-local heo clean-up opened by a side session at the repo root. It is not one of the wave’s PRs.

Timeline

gantt
    title The issue wave, 28–29 September (MT)
    dateFormat YYYY-MM-DD HH:mm
    axisFormat %a %H:%M
    section Setup
    Setup session, issues #291–#294      :done, 2026-09-28 13:35, 8m
    section Lead 4f6ffff6
    38 scouts                            :done, 2026-09-28 13:41, 5m
    11 verifiers, close 6, park 3        :done, 2026-09-28 13:46, 5m
    Build 22 worktrees, dispatch resolvers :done, 2026-09-28 13:51, 6m
    20 resolvers, first crash            :crit, 2026-09-28 13:54, 24m
    Crashes, cap cut to 5                :crit, 2026-09-28 14:18, 17m
    Review → fix → re-review loop        :active, 2026-09-28 14:35, 51m
    Owner merges six PRs                 :milestone, 2026-09-28 15:10, 0m
    Actions outage begins                :milestone, 2026-09-28 15:20, 0m
    Compact, resume 10 agents            :2026-09-28 15:40, 2m
    Crash, Opus only, cap 3              :crit, 2026-09-28 17:45, 13m
    Crash, handoff file, kill orphans    :crit, 2026-09-29 09:46, 44m
    section Lead ff2be21d
    Read handoff, start reviews          :2026-09-29 10:30, 2m
    Crash, diagnose (macOS permission)   :crit, 2026-09-29 10:43, 125m
    Permissions fixed                    :milestone, 2026-09-29 14:48, 0m
    Re-review → fix round, 7 PRs         :active, 2026-09-29 15:23, 79m
    tree done, "smash through"           :2026-09-29 16:17, 40m

Concurrency peaked in the 15-minute bin starting at 13:30 MT. In that bin, 39 transcripts were active: the 38 scouts plus the lead. The resolver-heavy peak was 32, at 15:00 MT. After 17:45 MT on 28 September no bin held more than 15, and on 29 September no more than 7.


2. How the lead dispatched and coordinated the work

Files carried the context

The lead wrote a brief to its scratchpad for each kind of agent. Its spawn prompts then said who the agent was, pointed at the brief, and added the cluster’s facts. A scout’s whole prompt was one paragraph (subagent a007aece, 19:42:02Z):

You are a read-only scout for GitHub issue #292. First read your full brief: …/scratchpad/scout-brief.md — follow it exactly (read-only except for your one record file; no GitHub writes).

A resolver’s prompt named its worktree, its issues, why they were grouped, and what it must not do (4f6ffff6 line 789, 19:54:17Z):

HEO_RESOLVER_ASSIGNED_WORKTREE: ~/Documents/Grove/Grove-Rootstock/.trees/08-issues-168-275-outbound-links-sweep

You are an unattended resolver. Read and follow the full brief FIRST: …/scratchpad/resolver-brief.md […]

  • Clustering criterion: same surface. Both fixes must edit app/outbound_links/scheduler_tasks.py (reviewer injection into run_pipeline: #168 wants an injectable reviewer, #275 wants one reviewer/LLM client per sweep instead of per link) and pipeline wiring. Separate branches would conflict. […]
  • This touches LLM client construction: check against docs/reference/standards/AI_ROUTING_AND_HARNESS_STANDARDS.md.
  • Then invoke /heo:issue-resolve --auto […] via the Skill tool and execute every phase yourself. Do NOT merge the PR.

Where an issue had a production step, the prompt split it out. For #286 (4f6ffff6 line 1082, 20:21:05Z):

IRREVERSIBLE (the orchestrator runs it, not you): toggling Always Use HTTPS and adding a www DNS record/redirect in the live Cloudflare zone.

Each worktree also got a committed copy of its scouts’ JSON records under .claude/heo/issue-handoff/. The resolver therefore started from the investigation, not from the issue text. The first seeding loop failed because zsh doesn’t word-split a variable. The lead noticed that no commits had landed and redid the loop under bash.

After the crashes the lead wrote a fourth brief, continue-brief.md, for finishers. It added rules as problems appeared. At 14:47 MT it added one for merge commits:

Merge commits without trailers keep appearing, so I’m updating the continuation brief to require them.

At 15:23 MT it added a note about the Actions outage (section 4).

Reviewers: a fresh agent for every PR

The owner asked for reviews at 14:36 MT with “use new agents to review all open prs” (4f6ffff6 line 1305). A queued follow-up, “use sonnet 5.5 to review open prs”, arrived a few seconds later. The lead had already launched four reviewers without naming a model, so it stopped them and relaunched them on Sonnet (line 1352, 20:36:46Z):

You asked for Sonnet 5.5. The four reviewers I just launched didn’t set a model, so they’re probably on Opus. I’ll stop them and relaunch on Sonnet.

The four it stopped had in fact run on Opus 5, the heo:code-reviewer default. They lasted under a minute. From then on, each new PR got a reviewer as soon as it opened. The reviewer prompt kept the reviewer read-only and asked for a ranked verdict (line 1322, 20:36:27Z):

Read-only: do not modify project code, do not commit, do not post to GitHub. […] Report findings ranked Critical/Major/Minor/Nit, each with file:line, the concrete failure scenario, and a suggested fix. End with a verdict: APPROVE, APPROVE_WITH_NITS, or REQUEST_CHANGES.

The loop that followed was mechanical:

  1. The resolver opens a PR.
  2. A reviewer runs, and the lead posts its verdict as a PR comment headed “Local review (Sonnet 5.5, read-only)”.
  3. A fixer goes into the same worktree.
  4. A re-reviewer checks the fix commits.
  5. The lead tells the owner the PR is ready for their merge.

PR #304 went round this loop three times.

On 29 September the owner changed one part of it. They wanted the agents themselves to post: “they should definitley push and common the prs” (ff2be21d line 434, 21:28:29Z). The lead relayed that to the two running reviewers as a change of instructions. One of them didn’t follow it (line 494, 21:31:03Z):

The reviewer didn’t post its review, because my mid-task message contradicted its original instructions. I read the review through and posted it myself

Messages

All 38 SendMessage calls went from a lead to a subagent. None went the other way, and no subagent messaged another. They fall into three kinds:

  • 35 resume orders after crashes:
    • 20 at 14:19 MT;
    • 5 at 14:24 MT, which told agents to make a WIP commit first;
    • 10 at 15:41 MT, after the /compact.
  • One piece of evidence: at 14:40 MT the lead passed a production reading to the #301 reviewer.
  • Two changes of instructions on 29 September.

The unfork’s network had hubs, a switchboard and a developer who relayed by hand (chapter 11). This wave’s network was a plain star. What went back to the lead was each agent’s final report, delivered as a task notification.

How PRs were opened and merged

Resolvers and fixers opened and pushed their own PRs, and every PR was based on main. No transcript in the wave contains a merge command. The six merges on main are plain merge commits dated 15:09:12 to 15:10:53 MT (079f6c36 … 4a27ab5a). The lead learned of them afterwards and logged them at 15:41 MT: “Owner MERGED 297,298,300,301,303,307 (~21:10Z).” Every merge was made from the owner’s GitHub account, which is also the account the agents use, so GitHub alone can’t show who clicked. Two things point to the owner: no transcript contains a merge command, and the lead’s log line says the owner merged them.


3. How the wave was planned

The owner’s whole planning input was one line (4f6ffff6 line 8, 19:40:30Z):

/heo:issue-resolve-all --auto Use as many agnets and subagents as you need to complete these effectively and effeciently

Before it, a separate repo-root session built the lead’s worktree (/heo:tree build issues-sep28) and turned the migration check’s inbox into issues #291–#294. The owner’s instructions there were “turn those inbox items to github issues” and then “you decide” (e26152a2 lines 95 and 152).

The grouping itself came from the skill. Its text, loaded into the lead’s turn, defines the unit of work (line 9):

A cluster is the unit of work here: one or more issues a single agent resolves together because they are duplicates, share a root cause, touch the same code, or depend on each other. That grouping is decided from a read-only investigation of the code — one scout per issue — rather than from issue prose, because a report names a symptom and almost never names the defect.

The pipeline ran in 16 minutes, from 13:41 to 13:57 MT:

  1. Scout. 38 Sonnet scouts ran in two batches, each writing a schema-validated record with a verdict. After step 2, the records held 17 defect_located, 12 has_side_effect, 6 already_fixed and 3 needs_human_decision.
  2. Verify. The lead re-checked every verdict that would close an issue, park it or leave a live step, with 11 more agents. They re-ran tests where there were any, and wrote gate dossiers for the four parked issues.
  3. Close and park. Six issues were closed with an evidence comment each (#148, #163, #207, #230, #232, #261). Three were parked with a comment (#77, #221, #260).
  4. Cluster. The lead grouped the remaining 29 issues into 22 worktrees, and posted this table at 13:56 MT (line 901):
Worktree Issues Why together (the lead’s words, shortened)
08-…outbound-links-sweep #168, #275 both edit app/outbound_links/scheduler_tasks.py reviewer wiring
09-…cluster-env-lookup #291, #293 both edit lib.sh; the #293 script needs #291’s .env lookup
10-…droplet-nginx #200, #283, #284 all droplet nginx changes, same deploy
11-…phase8-checklist #277, #287 both add Phase 8 runbook steps
12-…scraping-resume #276, #282 the retry cap must land before scraping is turned back on
13-…claude-md #289, #292 both edit .claude/CLAUDE.md
14–29 (one each) 16 issues no shared root cause or file

So the wave did group issues into worktrees. 13 issues shared six worktrees, and the other 16, plus #221 later, went one per worktree. The owner didn’t see the grouping before the agents started, because --auto means that no one answers questions. The grouping came from the lead’s reading of the scouts’ output, not from the owner. Nothing in either lead session was put to the owner as a choice.

Compare the unfork (chapter 3). Two sessions spent four hours turning prose into a registry of 32 scopes and 14 contracts, and the owner carried files between them. Here, a skill written after the unfork did the equivalent in 16 minutes, for work a hundred times smaller per unit.


4. What changed during the wave

When (MT) Change Why
Mon 13:56 20 resolvers at once, 2 queued the 20-agent cap
14:18 “continue. the live steps are for you to orchestrate” owner instruction: the lead, not the owner, runs production steps
14:25 cap cut to 5; state written to ORCH_STATE.md crashes
14:36 fresh-agent review of every PR, on Sonnet 5.5 owner instruction
14:47 continuation brief requires trailers on merge commits trailerless merge commits kept appearing
15:05 queue held while about 12 agents run load
15:23 agents told CI is down; rely on local tests GitHub Actions stopped for the whole repo
17:47 Opus only, cap 3 owner: “This system keeps crashing. Try opus 5.5 only (no sonnet 5.5)”
Tue 09:48 cap 2; the lead pushes one fix itself more crashes
10:17 handoff file; owner starts a new session, not --continue owner request
12:58 cause found: a macOS privacy prompt diagnosis by the second lead
15:28 agents post their own reviews and replies on the PRs owner instruction

The crashes drove most of these changes. The lead first blamed load (line 1228, 20:25:31Z):

The crashes stopped the resolvers again, so I’ve restarted them in groups of 5 instead of all 20 at once.

Then, at 14:34 MT, the window went down with only five agents running, and the lead wrote that load wasn’t the whole story. By Tuesday morning the handoff’s standing rules were:

  • Agents use Opus only.
  • Run no more than 2 background agents at a time.

The lead’s closing note in session 4f6ffff6 named two suspects. One was eight orphaned Claude sessions from the crashes. The other was a disk-wide search (line 3442, 16:17:24Z):

A search of the whole disk that has been running for about 18 hours (PIDs 39778/39774). An agent in the 13-issues-289-292-claude-md worktree started it while looking for a github_provider.py file.

This is the failure that CLAUDE.md already forbids by name: “No broad directory scanning outside the project”. It came back here as an agent’s search.

Killing both didn’t fix it. The new session froze 13 minutes in. The second lead then followed the evidence down to the kernel. It sampled the frozen process, found it blocked in openat, and read the system log. After the owner ran spindump with sudo in a real terminal, it found the wait (ff2be21d line 292, 16:58:49Z):

It isn’t heo, git or Claude Code itself. It’s macOS privacy protection (TCC) for ~/Documents.

The owner pushed back with “I clicked like 50 of these but they kep popping up” (line 333). The lead then found that VS Code no longer held its Documents grant (line 376, 20:44:05Z):

Today alone it logged over 9,500 Documents-folder approval requests that nobody answered.

The owner changed the setting, and at 14:48 MT the lead confirmed that ls ~/Documents returned instantly. The frozen sessions included three from another project and this case study’s own session. The fix corrects the “CLI that looks crashed” note in CLAUDE.md, which had blamed a git hook and called the cause unknown. The lead pushed that correction to PR #318 at 16:17 MT.

Two other changes came from outside.

  • GitHub Actions stopped for the whole repo at about 15:20 MT. Every job failed in about 2 seconds without running a step, and the token couldn’t see billing. That also took out PR-Agent’s merge gate. The six merges had happened ten minutes earlier.
  • A test broke git for the main checkout. A resolver’s test, running as a pre-commit hook, “set core.bare=true in the main repo’s .git/config, which stops git working in the main checkout” (line 2970, 21:25:52Z). A fixer set it back and added a guard test. The stray worktree and branch it left behind stayed in place, awaiting the owner’s permission.

5. Autonomy

Owner prompts

The owner typed 26 prompts into the two lead sessions, and gave 6 other inputs: 3 slash commands and 3 shell commands. One of the 26 was queued mid-turn and appears only in the transcript strings. The data file lists them all with lines and times.

Class Count Examples (verbatim)
Crash or permissions 13 “This window keeps crashing. Continue”; “anotehr crash”; “That’s like 10 crashes in a row. What’s up? let’s avoid crashing.”; “you don’t need access to documents, you get access to the local project directory. That’s all you need.”
Direction 8 the kickoff command; “continue. the live steps are for you to orchestrate”; “use new agents to review all open prs”; “they should definitley push and common the prs”; “skip that. smash through and finish”
Session mechanics 4 “continue” (×2); “i think just write a file about next steps and I’ll create a new session (not conintue)”
Answer to an agent 1 “yes”

In the unfork, 28% of prompts were session mechanics and 22% were new direction (chapter 8). Here, direction was 31% (8 of 26). Half the prompts were the owner reporting that the tool had fallen over.

Questions to the owner

There were no AskUserQuestion calls; the unfork had 36. The leads asked in prose instead, on three occasions that matter:

  • Permission to remove the stray wt worktree and branch (Mon 15:25 MT). This is the CLAUDE.md rule. The question was still unanswered at the cut-off.
  • “What did you change” (Tue 14:48 MT), so that the CLAUDE.md note would record the fix that actually worked.
  • Before running /tree done (Tue 16:17 MT). The lead listed three reasons not to run it yet (line 736, 22:17:30Z):

I haven’t run /tree done yet. Running it now would cause three problems:

The owner answered “yes” to the lead’s plan at 16:37 MT. At 16:56 MT they sent “skip that. smash through and finish” to cut the rest of the wrap-up short.

Merges

No agent merged. Every resolver prompt ended “Do NOT merge the PR”, and the handoff file repeated that agents never merge. The owner merged six PRs:

PR Issue Merged (MT) Path to merge
#297 #234 15:09:12 review approve-with-nits
#298 #170 15:09:33 review approve-with-nits
#300 #259 15:09:49 review approve-with-nits
#301 #155 15:10:06 lead’s hold, then withdrawn; downgrade fixed
#303 #281 15:10:28 changes requested → fixed → re-review APPROVE
#307 #173 15:10:53 changes requested → fixed → re-review approve-with-nits → doc fix

At 15:05 MT these were the PRs the lead had listed as “Ready for your merge”, plus #307, which became ready at 15:08. Three more PRs were ready by 15:26 MT (#304, #308, #309) and were still open at the cut-off.

Decisions an agent took in the owner’s place

When (MT) Decision Owner’s part
Mon 13:40 tried to amend an unpushed commit to add trailers; the hook blocked it, and the commit was left for PR #299 none
13:48 un-parked #281. Its gate dossier had said needs_human_decision, but the lead found “a reversible fix that ships nothing live when merged” none; the owner merged the PR at 15:10
13:50 closed six issues as already fixed none beforehand; each has an evidence comment
13:56 grouped 29 issues into 22 worktrees none (--auto)
14:20 un-parked #221, which the owner had deferred on 25 September, after measuring the premise false on production (read-only) none
14:21 reloaded nginx on the droplet to clear the certificate expiring 19 October “the live steps are for you to orchestrate”, three minutes earlier
14:40 held PR #301 on a production reading, then withdrew the hold a minute later: “so my hold was too cautious” none
15:15 #316 raises the weekly sweep’s token budget from the shared 30k per day to the 200k run budget, logged as “OWNER DECISION” in the state file the decision rides in an unmerged PR
15:41 pinned transformers in the main checkout’s .venv as #259’s post-merge step none asked; a dependency change that Clause 1 would normally put to the owner
Tue 09:47 pushed #302’s last fixes itself rather than through an agent none

The droplet reload stands out. The lead’s words at the time (line 1094, 20:21:15Z):

Next, the live step for #283. The droplet is serving a certificate that expires 2026-10-19, although the renewed one is already on disk. I’ll check what’s served, reload nginx, and check again.

The served expiry went from notAfter=Oct 19 04:35:22 2026 GMT to notAfter=Dec 17 16:37:57 2026 GMT. The site still answered, and the lead posted the result on #283. It was the one production write in the wave. CLAUDE.md had a rule against modifying the droplet. But on 25 September the owner loosened production access (“So you can make chagnes inproduction”, X081), and the check’s lead changed the droplet that day (X083, X084). Hours later that lead still treated a droplet change as needing the owner’s go-ahead (X102). Whether the rule still stood on 28 September is not shown in the data. The lead read the owner’s “the live steps are for you to orchestrate” as covering this step. It ran no other live step: #285’s role changes, the Cloudflare toggle and the Cohere backfill all stayed “after merge”.

In the unfork, a coordinator acting as steward answered 23 of the 26 records that the study counts as requests framed as the owner’s. About 8 of them were visibly framed that way (chapter 6). Here no subagent ever asked for the owner. The resolver brief said no developer would answer. The decisions above were therefore the lead’s own, taken within the room that --auto and one owner sentence gave it.


6. Outcomes

PRs

Count PRs
Opened by the wave 19 #297, #298, #300–#304, #306–#310, #312, #313, #315–#319 (the gaps #305, #311 and #314 are issues)
Merged 6 #297, #298, #300, #301, #303, #307
Open 13 #302, #304, #306, #308, #309, #310, #312, #313, #315, #316, #317, #318, #319
First local review requested changes 13 of 19 every open PR except #309 and #319, plus merged #303 and #307
Dispatched worktrees with no PR 4 11-… (#277/#287), 18-… (#233), 23-… (#278), 30-… (#221)

The PRs were small next to the unfork’s. The largest, #306, is +3,334/−517. The smallest, #297, is +135/−9. The unfork converged in one PR, #236, at +621,786/−107,658 across 1,867 files.

Reviews found real defects, and three changed what a PR could claim:

  • #310 added the RAG answer check that #294 asked for. Its review found a problem serious enough “that the new check would have missed the exact outage it was written to catch” (line 2150, 21:05:15Z). With the provider key missing, a search-only fallback still returns HTTP 200 with an answer. The lead held its live smoke run until the fix landed; the run passed at 15:22 MT.
  • #312: “The #312 findings mean #231 isn’t actually fixed yet.” (line 2367, 21:10:30Z). It went through two more review rounds and was still open at the cut-off.
  • #304: a re-review Major was confirmed by a read-only timing measurement on production Neo4j. A 10 s timeout would have stopped KRAG from starting.

Issues

  • 38 targeted. 6 were closed as already fixed, 3 parked and 29 dispatched.
  • 9 closed by the cut-off. The 6 already fixed, plus #170, #173 and #234, which the merges closed. Five of the six already-fixed issues were among the 17 the unfork left open (chapter 17): #148, #163, #230, #232 and #261.
  • Merged but still open. #155, #259 and #281 have merged PRs, but those PRs said “refs”, not “closes”, and each leaves a live or follow-up step.
  • Filed by the wave: 6.
    • #296 by the #234 resolver;
    • #305 by the #231 resolver;
    • #311 and #314 by the lead, from re-review findings;
    • #321 and #322 by fixers on 29 September.

Of the other issues numbered #289–#322, #289 predates the wave and #291–#294 came from the setup session. No wave transcript creates #320 (“log monitoring”, 22:31 MT on 28 September).


7. Cost and parallelism

Cost

This section uses the method of chapter 7. Each API response is counted once, at its final output count, and priced at API list prices: Opus 5.5 at $4 in, $20 out and $0.20 cache read per million tokens, and Opus 5 at $5/$25/$0.50. The index priced claude-sonnet-5-5 at the Opus fallback, so those rows are re-estimated at Sonnet 5 rates ($2/$10/$0.20), with the same cache-write multipliers. The token counts come from a numeric-only rescan of the transcripts. It uses wave_scan.py’s window and dedupe (the last usage seen per message.id). At the fallback price it reproduces the index’s $251.24 exactly. The rescan counted 4,151 API calls: 3.16 million output tokens, 437 million cache-read tokens, 17.6 million 5-minute cache-write tokens and 1.6 million 1-hour cache-write tokens. The 706 Sonnet calls come to $21.72 at Sonnet 5 rates, against $36.92 at the fallback.

API-equivalent cost
Lead 4f6ffff6 (own thread) $32.72
Lead ff2be21d (own thread, to the cut-off) $8.22*
173 subagents $195.10*
Total $236.04*

* Includes Sonnet 5.5 calls (estimated: Sonnet 5.5 price not confirmed). All figures are API-equivalent, not what the owner paid.

Component Cost Share
Cache reads $87.39 37%
Cache writes, 5 min $78.04 33%
Output (incl. thinking) $58.04 25%
Cache writes, 1 h $12.55 5%
Uncached input $0.03 0%

Cache reads were 43% of the unfork’s cost. Here they were 37%, and 5-minute cache writes were larger. Short one-shot agents write a fresh cache each time and re-read it for only a few turns.

Resolvers, finishers and fixers wrote the code and took 70% of the spend ($164.93). Reviews and re-reviews took 8% ($19.39), and the leads 17% ($40.94). The crashes had a visible price. The 30 finishers ($39.91) exist only because resolvers and fixers were cut off. Seven finishers launched at 17:45 MT died within a minute. Five of them were relaunched between 17:47 and 17:52, no more than three at a time.

Per merged PR, the wave cost about $39. That is not a fair unit, because 13 more PRs are reviewed and waiting. The unfork’s $950 bought one convergence.

Parallelism

For the leads, this section uses chapter 14’s rule: a gap of more than 10 minutes splits a transcript into active intervals. For subagents the index keeps only the first and last timestamps, so each counts as active throughout. That overstates the few that spanned a crash.

Wave Unfork
Agent-hours 26.5 (lead 3.2, subagents 23.3) 76
Active wall-clock hours 4.1 22.5
Effective speed-up 6.5× 3.4× (5.8–6.1× in the wide waves)
Peak transcripts in one 15-minute bin 39 (scouts) / 32 (resolvers) 37
Messages per agent-hour 1.4 7.7 in Wave 3A

The wave behaved like the unfork’s wide waves throughout. It had no gate phase: no S7, no convergence review. It also had very little messaging: agents reported once and didn’t talk to each other. Four of the 27 calendar hours held almost all the work. The rest was the owner away overnight and two hours of diagnosing the freeze.


8. What the wave did differently because of the unfork

The table separates what can be traced to an unfork lesson from what merely differs.

Practice Unfork Wave Evidence it came from the unfork
One worktree per unit of work one per scope, plus shared gates one per cluster, based on main, 23 new Traced. /heo:tree build and the worktree rules in CLAUDE.md came out of the unfork. The skill states the reason: a shared fix on two branches costs “a merge conflict”.
No big-bang PR one convergence PR, #236, 1,867 files 19 PRs, the largest 3,851 lines changed Traced. The owner can merge each on its own; six merged, none waits on another.
Local review before merge added late: S7’s swarm, then two reviewers before S8 a fresh read-only reviewer on every PR, from 14:36 MT Traced to the owner. Chapter 9’s addendum found local reviewers caught what PR-Agent missed, and CLAUDE.md now says “Still run a local review pass as well”.
Coordinator state in a file the coordinator had no file and lost a decision in a restart (chapter 13) ORCH_STATE.md from 14:25 MT, then NEXT_STEPS.md, which carried the wave into the second session Partly. The lead wrote “so a future crash doesn’t lose the plan”, reacting to this wave’s crashes, not citing the unfork.
No long-lived teammates 90 teammates; idle cache rewrites cost one dollar in eight (chapter 7) 0 teammates, all one-shot Not traced. It is the skill’s design. The effect is that no agent sat idle holding a large context.
Merges stay with the owner the owner merged into main; the steward merged branches agents never merged Traced to CLAUDE.md and the resolver brief.
Production steps split out a production-access rule was relaxed mid-project resolvers ship “the reviewable part”; the lead runs live steps Traced to the plan’s owner-only steps. The one live write, the droplet reload, may have crossed the CLAUDE.md droplet rule, which the owner had loosened on 25 September (section 5).
Close what’s already done 17 issues left open, #148 among them 6 verified closures with evidence in 3 minutes Traced. The wave’s first act was the unfork’s leftover list.

Three unfork lessons did not carry over:

  • The disk-wide scan came back. CLAUDE.md records an 8-day bfs / hang from August. An agent in 13-… started another, and it ran for 18 hours.
  • Trailerless commits kept appearing. The lead had to add trailer rules to the continuation brief mid-run. The lead’s own first commit (200dc288) still lacked trailers at the cut-off.
  • The merge gate failed. The unfork’s gates waited for the owner. This wave’s gate, PR-Agent’s commit status, went dark with the Actions outage. The local reviews became the only review that ran on 13 of the PRs.

The wave also added two lessons of its own:

  • A frozen CLI can be a macOS permission prompt, not a crash. Before this wave, CLAUDE.md called the root cause unidentified.
  • Cutting the number of agents doesn’t fix a problem that isn’t about agents. About 20 hours of load-shedding, overnight included, passed before anyone found the real cause.

Limits

  • Work in progress. Session ff2be21d was still running at the cut-off, the worktrees weren’t closed, and 13 PRs were open. Every count here can change.
  • Subagent active time is first-to-last. The index has no per-event timestamps for subagents.
  • The Sonnet 5.5 cost is an estimate. Its price isn’t confirmed, so its 706 calls are priced at Sonnet 5 rates. The token counts themselves are measured.
  • Who merged is inferred. GitHub records one account for the owner and the agents.
  • One owner prompt (“use sonnet 5.5 to review open prs”) is missing from the digest’s USER lines. It was found in the transcript strings and placed by the lead’s reply at 20:36:46Z.

22. Scope, splitting and communication

The owner split the same kind of work three ways in eight days:

  • The unfork (22–25 Sep): 32 scopes, each defined in a registry.
  • The migration check (25–28 Sep): five read-only streams, then two fix lanes.
  • The follow-up wave (28–29 Sep): one worktree per issue or group of issues.

This chapter asks three things of each split:

  1. How was the line between two agents drawn?
  2. Did the line hold?
  3. What crossed it, and by what channel?

Earlier chapters cover parts of this. Chapter 2 covers channels, chapter 5 covers briefs, chapter 11 covers the message graph, chapter 14 covers concurrency and chapter 17 covers handoffs. Three measurements are new here:

  • A second boundary audit, simpler than chapter 12’s, traces each crossing of the ownership table to the request and grant that cleared it.
  • An intent count sorts all 588 logged messages by what each one was for.
  • An overlap count lists the files shared between the wave’s 19 PRs.

The data is in data/scope-and-communication.json.

In brief

How each split drew its lines

Unfork Migration check Follow-up wave
Split by Who owns each file, plus waves in time System (Postgres, Neo4j, app, Celery, infra), then file type for the fixes Root cause, found by 38 scouts
Who decided Two sessions and the owner, over about 4 hours The lead, in 2 minutes A skill, in 16 minutes
Messages per agent 2.9 7.0 0.22

What the evidence shows

  • The file ownership rule held. Chapter 12 found that 79% of file–scope pairs were in files the scope owned, and 22 of the 24 edits to another scope’s files were approved. A second, independent check in this chapter traced each crossing to the request and approval behind it. Only 1 of 50 had no approval on record.
  • The strain came from shared files that many features touch. In the unfork these were agent_tasks.py (changed by 7 scopes) and celery_config.py (6). The domain split didn’t foresee retiring Rootstock’s placeholder GA4, GSC and Mailchimp code. Between 15:44 and 18:05 MT on 23 Sep, S-PLAN handled it: a change to the scope registry, recorded exceptions for D2 and D5, a fixed landing order (D1, then D2, then D5), and a warning to D9.
  • The follow-up wave hit the same problem with nobody to coordinate it. 8 of its 19 PRs edit cluster.env.example, and 10 PRs needed 14 merges from main between them. Nothing had conflicted by 17:27 MT on 29 Sep, but two of those 8 PRs had merged and 6 were still open against the same file.
  • A third of the 588 logged messages were about boundaries. 112 were requests to change another scope’s files and 87 were decisions. Requests that came with the exact change attached got answers fast: S2a approved one in 10 seconds. Only 12 messages were questions.
  • Resending cut-off reports cost more as the work got more parallel. Resends were 4% of unfork messages but 28% in the migration check, where five streams reported to one lead at once and long reports were cut off in delivery.

What this suggests for next time

  • Name the shared files before splitting the work.
  • Make any crossing a proposal with the exact change attached.
  • Send pointers to files rather than full reports.
  • If agents stop talking to each other, keep something that watches for them converging on the same file. For the wave, a lock or queue on those files at the grouping step would do it.

Caveats. Chapter 12’s ownership audit is the fuller one, so section 2 leads with its numbers, and this chapter’s check is labelled a cross-check. The message classification is rule-based and approximate (method).

The three splits at a glance

Unfork Migration check Follow-up wave
Unit of work Scope, one worktree each Stream (by system), then fix lane (by file type) Issue or issue group, one worktree each
Who drew the lines Two planning sessions and the owner, over about 4 hours (ch. 3) The lead, in 2 minutes (17:44–17:46 MT, 25 Sep) A skill, from 38 scouts’ records, in 16 minutes
What defined a unit owns globs, gates, contracts, requirements, done evidence A one-line brief per stream The scouts’ records plus a grouping rule
Units 32 scopes, 24 worktrees 5 streams, 2 fixers, 2 reviewers 22 worktrees at first, 23 in the end
Agents 185 (90 teammates) 11 (9 teammates) 173 (0 teammates)
How boundaries were enforced Exclusive file ownership, checked before landing; change requests Read-only streams; a separate worktree per fixer None; grouping by shared code only
Main channel Messages plus 31 handoff files Messages plus report files Briefs and records on disk; final reports as task notifications
SendMessage calls 531 (2.9 per agent)¹ 77 (7.0 per agent) 38 (0.22 per agent)

¹ messages.json holds 588 messages, but 57 of them are from the migration check (25 Sep 20:00 UTC onward), so the unfork’s own count is 531 over 185 agents. An earlier version of this chapter gave 588 and 3.2.

flowchart LR
  subgraph U["Unfork: space × time"]
    direction TB
    R["Registry<br/>32 scopes · 14 contracts"] --> W0["Wave 0"] --> W1["Wave 1 merge"] --> W2["Wave 2 core"] --> W3["Wave 3 domains"] --> W4["S7 gate → S8 deploy"]
    R -. "owns: exclusive paths" .-> W3
  end
  subgraph M["Migration check: by system, then by file type"]
    direction TB
    L["Lead"] --> SA["A Postgres"] & SB["B Neo4j"] & SC["C App"] & SD["D Celery"] & SE["E Infra"]
    SA & SB & SC & SD & SE --> F1["Fix: app code"] & F2["Fix: cluster config"]
  end
  subgraph V["Follow-up wave: by investigated cause"]
    direction TB
    SC2["38 scouts"] --> VF["11 verifiers"] --> CL["Group: 29 issues → 22 worktrees"] --> RS["Resolver → reviewer → fixer → re-reviewer<br/>per worktree"]
  end

1. Drawing the lines

The unfork: ownership in space, waves in time

The plan split work along two axes. In space, every path had exactly one owner. In time, a scope started only when its gate had landed. Section 0 of the plan states both:

File ownership is exclusive, and checked. Every path belongs to one scope, as listed in docs/plans/unfork-ownership.tsv (S0-REHEARSE). […] If a scope needs a change in a path it doesn’t own, it sends the owner a request (SendMessage) with the exact hunk.

— docs/plans/unfork-parallel-scopes.md, §0

Swarms do not help on narrow serial points (one large file, one merge commit), and there they add collisions. So the plan keeps the serial points small, scripted and timeboxed, and pushes all breadth into places where swarms pay off.

— same, §0

The registry turned this into data. Each of the 32 scopes had an owns list, gates, produces and consumes contracts, hands_off entries that moved paths between scopes at a set moment, and must_not rules. The ownership table assigns 1,594 paths. The scopes’ shares were very uneven:

  • S6-DOCS: 430 paths.
  • S7-GATE: 281.
  • D9-CONTENT: 187.
  • D4b, D7b and D8b: 2 or 3 each.

The feature-domain scopes had the widest interfaces: each consumed 8 to 11 contracts, compared with 1 to 7 for the Wave 0 and Wave 2 scopes.

The split followed a generated import graph, not a guess. Rev. 2 of the plan had claimed that two Scion files imported the contested LLM core. The generated table found twelve, in six groups. S0-REHEARSE was then made to fail if any importer lacked a gate (chapter 12).

The migration check: by system, then by file type

The lead split the investigation by system: Postgres, Neo4j, the app, Celery and infrastructure. Every stream was read-only, so no two streams could collide (chapter 3 addendum). Repairs were split again, by file type: application code to one fixer, cluster deploy config to the other. Each fixer had its own worktree “so the investigators’ view of the code stays stable” (lead, 376f518d line 2450). There was no ownership table, and none was needed: the investigation wrote nothing but reports, and the two fix lanes met in only one file.

The follow-up wave: by investigated cause

The wave’s lines came from the /heo:issue-resolve-all skill. Its rule groups issues

because they are duplicates, share a root cause, touch the same code, or depend on each other. That grouping is decided from a read-only investigation of the code — one scout per issue — rather than from issue prose, because a report names a symptom and almost never names the defect.

— skill text, loaded in 4f6ffff6

Every resolver’s prompt restated why its issues were grouped, for example: “Clustering criterion: same surface. Both fixes must edit app/outbound_links/scheduler_tasks.py […] Separate branches would conflict” (4f6ffff6 line 789). Grouping put 13 issues into six shared worktrees and gave the other 16 one each (chapter 21).

So the three splits used three different ideas of what makes work separable:

  • The unfork: who owns a path.
  • The migration check: which system the work is about.
  • The wave: what the root cause is.

2. Did the lines hold?

The unfork: 79% owned, and every crossing but two approved

Chapter 12 measured this in full. It attributed every non-merge commit to a scope, as described in chapter 9, and checked each file against the final registry. Across 31 scopes (S1’s whole-repo merge excluded), the result was 904 file–scope pairs:

Kind of pair Pairs Share
A path the scope owned 710 79%
Allowed by the plan in another way 143 16%
… S7 fixing a seam (its mission) 44
… named in the registry text, including exceptions recorded mid-run 30
… S-PLAN editing plan docs 21
… a less specific glob of the scope’s own 20
… a doc under S6’s docs/**, updated as Clause 2 requires 15
… the scope’s own handoff note 13
A path no scope owned 27 3%
Another scope’s path, with no sanction in the registry text 24 3%

Of the 24 unsanctioned pairs, 22 have an approval on record: the steward’s exception, the owner’s direction, or the owning scope’s written ok. The other two are a D10 edit recorded in its handoff with no approval found, and one S-PLAN file of disposable heo state (chapter 12).

For this chapter, a second pass counted the same thing a simpler way. It followed only each scope branch’s own first-parent commits and checked them against the ownership table. That method misses work committed on other branches (S7’s, for example), so it sees fewer pairs: 660. Its results still agreed with chapter 12:

  • 82% of pairs were owned.
  • 10% were allowed by the plan.
  • 8% were crossings, 50 in all.

All but one of the 50 crossings trace to a request and a grant in the messages or commit messages:

Cause Scopes Crossings How it was cleared
Retiring Rootstock’s placeholder ingestion code (GA4, GSC, Mailchimp) D1, D2, D5 23 Registry change and recorded exceptions from S-PLAN; landing order D1 → D2 → D5
Standards fixes in code other scopes owned S-R7 14 Owners’ change requests, then S-PLAN’s “Option A is granted”
S1’s newline fix to two Scion raw JSON captures S-PLAN, D10 6 The owner’s answer to the fresh S1 session, “Add newline (Recommended)” (B74). S-PLAN’s earlier ruling, message #119, said “Don’t touch the JSON files” and was lost in the 17:03 UTC restart. It is one commit (22c838d8), counted on the two branches that carry it
Removing the duplicate Almanac scraper D9 2 Steward: “Apply both hunks in D9’s PR”
Data-classification and processing-task hunks D9 (.claude/project-standards.yaml, app/tasks/processing_tasks.py) 2 Steward grants, messages #364 and #377 (the first pass in data/scope-and-communication.json missed these)
Deleting a test S2a owned S2b 1 S2a’s written ok, 10 seconds after the request
ADR-011, written before docs/decisions/ moved to S6 S0-LLM 1 Ownership changed afterwards
No request or grant found S6 (.claude/CLAUDE.md) 1 —

Both passes agree on the shape. The ownership rule held for nearly all the work, and the crossings were concentrated rather than spread out: most of them came from two pieces of work the split had not foreseen.

Where it strained: hub files

Chapter 12 found 87 files touched by more than one scope. The top of that list is where feature domains plug into shared infrastructure:

File Owner Scopes that changed it
app/tasks/agent_tasks.py S2b-LLM-EGRESS 7: D1, D2, D5, S-R7, S0-FLAG, S2b, S7
celery_config.py S3-BOOT 6: D1, D2, D5, D9, S3, S7
tests/scheduler/test_ops_schedule.py D10-OPS 5: D1, D2, D5, D9, D10
app/models/agent_models.py D1-GA4 (from 23 Sep) 4: D1, D2, D5, S7

The split was by feature domain, but one change cut across the domains. Rootstock had placeholder sync tasks for GA4, GSC and Mailchimp: a task, a beat entry, a model and a table each. They lived in files owned by three infrastructure scopes. Each domain’s migration needed its placeholder removed. D1 proposed splitting the GA4 removal across S3, S4 and S2b. The owner chose the opposite, and S-PLAN rewrote the registry so that D1 owned the files (21:44 UTC = 15:44 MT, 23 Sep):

S-PLAN answer. Steve confirmed (2026-09-23) that D1-GA4 does the whole GA4 stub retirement in one PR, instead of splitting it across S3, S4 and S2b as you proposed. Registry change on origin/unfork/plan @ 66fee812. […]

  • Now yours: D1-GA4 owns the five Rootstock-only files: app/models/agent_models.py, […] You change only the GA4 parts of the three shared test files — S-PLAN lead to D1-GA4 (socket), 15:44 MT

D1 committed the retirement a minute later (94080d4e, 15:45 MT). Two hours later D2 and D5 needed the same five files, plus celery_config.py and agent_tasks.py. Neither owned them. Each sent an exact list of the hunks it needed:

D2-GSC needs ownership exceptions to retire Rootstock’s GSC stub, following D1’s #190. […] Files D2 needs that it doesn’t own:

  • app/models/agent_models.py: drop GSCMetricsDaily
  • app/tasks/agent_tasks.py: drop sync_gsc_metrics and its GSCMetricsDaily upsert helper. Mailchimp’s placeholder is still there, so _run_sync, NotConfiguredError and the FR-XD-05 template stay. — D2-GSC lead to S-PLAN, 17:41 MT

S-PLAN recorded the exceptions and serialized the two scopes, because they would edit neighbouring lines:

  • Ordering: you land first. D5-NL (a background agent) is retiring the Mailchimp stub and will re-parent onto your drop. Keep _run_sync, NotConfiguredError and FR-XD-05 as you planned. D5 removes _run_sync and the docstring afterwards […]
  • Tell me the moment you land, so I can release D5. — S-PLAN lead to D2-GSC, 17:46 MT

Three minutes later D9 asked to edit the same two scheduler files to remove a duplicate scraper. The steward approved and warned it about the other two scopes:

Heads-up: D2-GSC (interactive) and D5-NL (agent) are editing other lines of the same two files for the GSC and Mailchimp stub retirements. Merge origin/unfork/integrate-scion in right before landing (–no-commit, then commit with trailers), and resolve any conflict by keeping both sides’ removals.

— S-PLAN steward to d9-content, 17:50 MT

sequenceDiagram
  participant D1 as D1-GA4
  participant SP as S-PLAN (steward)
  participant D2 as D2-GSC
  participant D5 as D5-NL
  participant D9 as D9-CONTENT
  SP->>D1: 15:44 owner decision, registry change: D1 now owns 5 files
  D1->>D1: 15:45 commit 94080d4e (GA4 stub gone)
  D2->>SP: 17:41 request exceptions: 10 paths, exact hunks
  D5->>SP: 17:45 edit list, "Mailchimp lines only"
  SP->>D2: 17:46 exceptions recorded, you land first
  D9->>SP: 17:49 change request: celery_config + test_ops_schedule
  SP->>D9: 17:50 apply both, merge integrate before landing
  SP->>D5: 17:50 still wait for D2
  D2->>SP: 18:05 landed (PR 218), release D5
  Note over D5,D9: D5 and D9 merge integrate in, then land

It worked. D2, D5 and D9 all landed that evening (D2 at 18:05 MT, D9 at 18:11 MT). The cost was coordination: the owner’s decision, a registry change, three change requests, two recorded exceptions and an ordering. All of it ran through one node, S-PLAN. The plan had predicted this in general terms (“After S3’s first hour, the per-domain registries (§5) remove most of these requests”). The per-domain registries did split the beat schedule by domain. The placeholders, though, were Rootstock code outside the plan’s import graph, which mapped Scion’s importers of the LLM core.

S-R7 strained the lines in a different way. It was a long background scope that fixed standards gaps in the agent loop, and those fixes lived in S2a’s and S2b’s code. When it was ready to land, S2b had already done part of the work, so S-PLAN relayed an overlap note from S2b and then granted a wide exception:

Option A is granted, widened to every change request except .claude/CLAUDE.md, which is held for S7 and Steve. […]

  • apply one commit per owner; — S-PLAN steward to s-r7, 18:06 MT, 23 Sep

“One commit per owner” kept the crossing auditable: each commit touched a single other scope’s paths.

The migration check: one shared file, merged clean

Both fix lanes edited celery_config.py. The lead’s integration merge went through anyway: “The merge was clean, and git auto-merged celery_config.py” (lead, 376f518d line 3048). The one boundary that did fail was about evidence, not files. The app fixer needed an error line that only another stream had seen, so the lead took it from that stream’s saved report (chapter 2 addendum).

The follow-up wave: the same hub problem, with nothing to referee it

The wave’s grouping rule looked at code surfaces, and the scouts found them well within application code. Configuration fell through. The 19 PRs the wave opened change 296 distinct files, and 28 of those files appear in two or more PRs:

File PRs that change it
deploy/mac-mini-cluster/cluster.env.example 8
.env.example 6
deploy/mac-mini-cluster/README.md 5
docs/how-to/deployment/DO_TO_CLUSTER_CUTOVER_RUNBOOK.md 5
docker-compose.prod.yml 5
deploy/mac-mini-cluster/scripts/env-manifest.sh and its test 5 each
deploy/mac-mini-cluster/scripts/lib.sh 4

These are the wave’s version of celery_config.py: registries that every feature adds a line to. The unfork had an owner for each of them and S-PLAN to referee. The wave had neither, so each branch absorbed the others after the fact. At 23:27 UTC on 29 Sep, all 13 open wave PRs were mergeable, and 10 of them carried 14 merges from main between them. Nothing has conflicted yet. The risk grows with each merge, though: two of the eight PRs that edit cluster.env.example have merged, and each further merge moves the ground under the six still open.


3. What crossed the lines: the messages

What the 588 logged messages were for

A rule-based classifier sorted each message by its summary and first 250 characters. It checks nine rules in order, and the first match wins. Decision rules apply only to lead sessions. The rules left 58 messages unclassified. Each of those was read and classified by hand, and three classes were added for what the rules had no name for: answers, corrections, and reports of being blocked or colliding. Random samples of the rule-based classes were checked by hand; expect a few misfiles in each (method).

One count checks the method independently. The hand-checked formal change requests number 27, the same 27 that messages.json tags as change requests from their [unfork-xreq] header.

Intent Messages Share Median words
Landed or handed over (“landed”, “merged”, “PR open”, “release D5”) 117 20% 152
Report or status 117 20% 177
Decision by a lead or the steward 87 15% 117
Change request, informal 85 14% 100
Change request, formal [unfork-xreq] with path and hunk, or its reply 27 5% 152
Instruction or brief (lead to teammate) 39 7% 86
Repair: resend a truncated report 37 6% 88
Ack or FYI 30 5% 68
Broadcast or barrier (freeze, rootstock_sha written, a new contract version) 18 3% 90
Question 12 2% 147
Answer to a question 8 1% 111
Blocked, collision or escalation (a guard stopped the agent, or two agents were editing one file) 7 1% 135
Correction of an earlier message 4 1% 50

Four things stand out:

  1. Negotiating boundaries was a major share of the traffic. Change requests (112) and decisions (87) come to 199 messages, a third of the total. That was the price of exclusive ownership. It was concentrated in Waves 0b–3 on 23 Sep, where 100 of the 112 change requests fall.

  2. Few questions. Only 12 messages were questions, and 8 were answers. Questions to the owner went through AskUserQuestion instead, 52 times (chapter 6). Between agents, the change-request format replaced the question with a proposal: “here is the exact hunk; apply it or say no”. That made most answers a yes or a no. S2a answered S2b’s formal request in 10 seconds (14:05:27 to 14:05:37 MT, 23 Sep):

    I agree with the change and I’m giving my ok. I’m not putting it into #154, though. You should make the deletion after #154 lands, in your own PR. […] Consider this my written ok to git rm tests/rag/tools/test_external_data_tools.py […] even though tests/rag/tools/** stays mine.

    — s2a-llm-base to s2b-llm-egress

  3. Repairs were overhead that grew. Asking an agent to resend a report cut off in delivery made up 4% of the unfork’s messages. In the migration check it was 16 of 57 (28%), because five streams reported at once and the lead’s inbox cut long reports. The addendum counts 9: the messages that mention a cut-off. The methods differ. The 16 comes from this chapter’s intent classification of messages.json. The fix that worked was the one the plan had set for scopes: write the report to a file, and send a message that points to it.

  4. Collisions came after the ownership lines were gone. Five of the seven “blocked, collision or escalation” messages fall on 24 Sep, during S7’s gate. By then the work was divided by task inside the shared unfork-s7-gate worktree, not by owned paths. Two agents found another agent editing the same file: document_suggestion_tasks.py in one case, and app/rag/loop/engine.py in the other (“Someone else is editing engine.py; it invents a cost”, s7-followups to its lead, 06:06 MT). The steward had the engine.py edit reverted and the file handed back. Two more agents were stopped by a heo hook when they tried to create worktrees of their own. On 23 Sep, with the ownership table in force, there was one such message.

Phase Messages Change requests Decisions Repairs
Planning and Wave 0 (22 Sep) 80 10 3 1
Waves 0b–3 (23 Sep) 337 100 51 17
S7, #236, S8 (24–25 Sep) 114 0 31 3
Migration check (25–28 Sep) 57 2 2 16

After the domains landed, change requests stopped: none in the S7, #236 and S8 phase, and two in the migration check. Once the domain boundaries were gone, the remaining work (S7’s gate, the #236 fixes) was divided by task, and the lead decided instead of negotiating.

Messages pointed; files carried

Chapter 11 found that 86% of cross-session messages carried a strict pointer: a commit hash, PR number, .md path or unfork/ branch. The content lived in 31 handoff files, 58,317 words by the end, against 114,324 words in all messages. Files held the durable content in all three splits, but the message rate did not fall steadily. It rose in the migration check and then fell in the wave:

  • Unfork: 2.9 messages per agent. Handoff files and contracts held the durable content.
  • Migration check: 7.0 messages per agent. There were few agents and they talked a lot, but everything that mattered ended up in report files, because messages were cut off.
  • Follow-up wave: 0.22 messages per agent. Every agent read a brief on disk and wrote a record on disk, and its final report came back as a task notification. No subagent sent a message. Of the lead’s 38 messages, 35 were resume orders after crashes (chapter 21).

In effect, the wave replaced conversation with a pipeline of files: scout record, then gate dossier, then handoff copy in the worktree, then PR, then review comment. That removed the need for a switchboard. It also removed the place where the unfork caught cross-cutting problems: S-PLAN had noticed that D2, D5 and D9 were converging on the same lines.

Who routed

Chapter 11 measured the routing. S-PLAN took part in 36% of cross-session messages and had a betweenness of 0.676. The owner, added as a node, reaches 0.767, because they carried decisions and files between sessions by hand. Inside teams the shape was a star: 44% lead to teammate, 44% teammate to lead, and 11% between teammates. The splits made one routing choice each:

  • Unfork: a hub (S-PLAN) with scope-to-scope change requests alongside.
  • Migration check: a star, with 6 of 77 messages between peers.
  • Wave: a pure star with no traffic back up the tree, only task notifications.

4. What the three splits suggest

Split by ownership where the work is wide, and name the hub files first. Exclusive ownership held: 79% of file–scope pairs were owned outright, and all but two of the 24 unsanctioned crossings had an approval on record. Where it strained, it strained at a handful of registry-like files that many features touch: the Celery beat schedule, the task module, the env templates. A split plan should list those files up front, from change history, or from the files that the most scopes touch in a dry run. Then it should either give them to a single integrator scope, or fix the order of the edits in advance. The unfork found its hub files at 17:41 MT on the busiest day. The wave found them only afterwards, as 14 merges from main.

Make a crossing a proposal, not a question. The [unfork-xreq] format (path, why, blocking, exact hunk) got decisions in seconds, and it left a record the audits could trace. Chapter 12 found 2 unapproved crossings out of 24, and this chapter’s second pass found 3 out of 50. The steward’s “one commit per owner” rule kept wide exceptions auditable too.

Keep the referee when you drop the conversation. The wave’s file pipeline cut messages per agent by a factor of 15 and needed no switchboard. What it lost was the one node that saw several scopes converging on the same lines. A cheap substitute would work: a lock-or-queue check on hub files at the grouping step. When two worktrees plan to edit cluster.env.example, order them or merge them.

Send pointers, not reports. Truncation repairs rose from 6% to 28% of messages when five parallel agents reported to one inbox. Every split that wrote its content to disk first avoided them.

Coarser splits cost fewer messages, not less co-ordination. The migration check split by system into five read-only streams and needed no ownership rules at all, because nothing wrote to the code until the fix lanes started. Read-only fan-out, then a narrow write phase, is the cheapest pattern in this case study. It works when the investigation can be separated from the repair.

The theory behind these points is in chapter 15:

  • Thompson’s pooled, sequential and reciprocal interdependence;
  • Galbraith’s lateral relations for exceptions the hierarchy can’t absorb;
  • Conway’s law. The hub files are where the organization of agents met the structure of the code.

Method and limits

  • Second boundary audit. The primary figures are chapter 12’s. The cross-check script is scratchpad/boundary_audit.py. For each scope, it walks the first-parent history of origin/unfork/<scope> back to the first commit on the first-parent history of the scope’s base. It takes the files changed by the non-merge commits on that walk. The owner of a file is the most specific owns glob in unfork-scopes.yaml, otherwise the row in unfork-ownership.tsv.
    • Merge commits are excluded, so conflict resolutions inside merges don’t count.
    • Ownership is today’s registry. It includes the mid-run changes (D1’s five files, for example), so an edit made before a registry change can look like a crossing, or not look like one.
    • S1-MERGE has no remote branch. Its one visible crossing appears on the two branches that carry the commit.
    • Tracing to a request was done by hand, against messages.json and commit messages.
  • Intent classification. The script is scratchpad/msg_intent.py. Its rules are listed in the data file. It is a first-match keyword classifier, not a reading of each message. The 58 messages the rules couldn’t place were classified by hand (the MANUAL table in the script). The line between “landed” and “report” is the weakest part of the rest. Phase D covers only the migration-check messages in messages.json (57). The addendum’s count of 77 comes from a different source and cut-off.
  • Wave overlap. Read from GitHub at 17:27 MT on 29 Sep, while the wave was still running. “Mergeable” means no textual conflict with main at that moment. It says nothing about conflicts between two open PRs.