R10 - Campaign efficiency
Purpose: Where the dollars, tokens and minutes of a campaign go, why
campaign I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 cost about twice as much per pull request as I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2, why
three of I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40’s five waves picked two issues, and which harness changes
would cut cost or time most at the same quality. Measured over the four
campaigns I604I604 (closed): Campaign 2026-11-08 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 2 --usd 30 --issues 10 --prs 10, I622I622 (closed): Campaign 2026-11-09 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 3 --usd 300 --issues 30 --prs 30, I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 and I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 (2026-11-08 to 2026-11-29), from
their ledgers, the Claude Code transcripts and GitHub. Issue I817I817 (closed): R10: where campaign dollars and time go, and which harness changes would help mostA research note for the researcher agent: R10, docs/research/R10-campaign-efficiency.md.,
under I816I816 (closed): Harness experiments: review lanes, cheaper models, and a campaign efficiency baselineTracks a set of experiments on the agent harness.. The scripts and the aggregate outputs are on the kept
branch spike/r10-campaign-efficiency.
Requirements: none. The note measures the agent harness, not the
product. Every SEC* control stays as it is under each recommendation.
In short
Section titled “In short”- One pull request costs about 8.80 dollars plus 5.25 per 1,000 lines of code (I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 and I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40, 26 pull requests, r = 0.82). The fixed part is mostly the security review (3.20), the build (1.90), the wave’s lead and dispatcher (1.50) and the code review (1.20).
- I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 cost more per pull request because its pull requests were bigger. Its median pull request changed 678 lines of code against 155 in I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2, and 21,410 in total against 4,694. Per 100 lines I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 was cheaper, 1.12 dollars against 2.70. Bigger builds explain half of the difference, and more fix rounds and security review rounds the rest.
- The security review is the largest role, 36% of the cost of the pull requests, and about 3 dollars even on pull requests under 100 lines (2.40 at the least, on a 29-line change).
- Five of nine waves ran short, and the pick rule explains two. In
I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 waves 1 and 4 the rule skipped issues that shared a
comp:label with one already picked. It fills from the next milestone only when fewer than half the places are full, so a wave of two out of four stayed at two. For I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 waves 3 and 4 and I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 wave 2, neither the ledger nor the dispatcher’s transcript gives a reason. Two-issue waves made 1.6 pull requests an hour, four-issue waves 2.4. - The timing suggests waves run in lock step. Every lead spawned its builders as one foreground batch, and in all nine waves the first reviews started within a minute of the batch’s last builder handing back. Pull requests waited 0 to 33 minutes between opening and their first review, 162 minutes over 26 pull requests, most of it in three waves with one slow builder.
- The worktree guard refused 243 commands in the waves of I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 and I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40, about 6% of their cost.
Baseline: cost by role and pull request size
Section titled “Baseline: cost by role and pull request size”Dollars at list price from the transcripts (see “Method”), for the 26
pull requests that I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2’s and I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40’s waves built. “Code lines” leaves
out Markdown, MDX, SVG, the word lists and github-refs.json. Medians,
with the range in brackets where it matters.
| Code lines | Pull requests | First build | Fix rounds, per pull request | Code review, round 1 | Security review, round 1 | Total per pull request |
|---|---|---|---|---|---|---|
| under 100 | 8 | 1.08 | 0.27 | 0.71 | 3.18 [2.40 to 4.28] | 5.93 |
| 100 to 499 | 5 | 2.21 | 1.10 | 1.04 | 4.27 | 10.30 |
| 500 to 1,499 | 7 | 3.59 | 1.73 | 1.30 | 4.36 | 12.48 |
| 1,500 and up | 6 | 7.92 | 4.12 | 1.80 | 5.26 | 24.32 [17.61 to 45.24] |
| all | 26 | 3.16 | 1.06 | 4.29 | 11.22 |
- The code review includes the forked
code-reviewskill run. - One fix round costs 1.15 dollars at the median, a later code review round 0.61, and a later security review round 2.97.
- The security review of a pull request that got one cost 5.40 dollars at the median over all its rounds [2.40 to 17.67].
- The total includes the pull request’s share of its wave’s lead and
dispatcher, split evenly over the wave’s pull requests. For PR740PR740 (merged): feat(hostd): hold back an event sender that ignores its budgetA compromised network daemon could send well-formed audit records as fast as it liked and ignore every budget notice, and the host daemon would queue them all in memory. and
PR747PR747 (merged): fix(vmd): keep a passed descriptor until wb-hostd acknowledges itOn the newest macOS the kernel can throw away a socket that is in transit between two processes once the sender has closed its copy, so a guest connection or the VM's network link could reach the host daemon already… it also includes the agents the manager spawned for them in
I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2, about 9.40 dollars for a test fix, a rebase and a re-review
(
perpr.py,manager_side). The manager column under “Totals” counts the same dollars.
A linear fit of each part on the code lines, over the same 26 pull
requests (fit.py):
| Part | Fixed, dollars | Per 1,000 lines | Sum, dollars |
|---|---|---|---|
| Security review | 3.19 | 1.81 | 130.34 |
| First build | 1.88 | 1.97 | 100.40 |
| Lead and dispatcher | 1.48 | -0.03 | 37.70 |
| Code review | 1.20 | 0.39 | 41.42 |
| Fix rounds | 1.01 | 1.12 | 55.56 |
| Total | 8.78 | 5.25 | 365.43 |
The total is a fit of its own, so the parts add up to it only to rounding.
Method
Section titled “Method”- Ledgers.
.scratch/campaign/<n>/ledger.jsonin the main checkout, final for all four campaigns: each wave’s start, end, issues, result andtotal_cost_usdfromclaude -p(scripts/campaign.mjs). The ledger doesn’t meter the manager’s interactive session. - Transcripts. Every session under
~/.claude/projects/for this repository between the campaign’s start and end: the four manager sessions, 14 wave sessions (dispatchers) and their subagents, 178 agents in all.extract.pyreads each API call’susage, deduplicated by message ID, and the agent’s type, description and parent from its.meta.json. A forkedcode-reviewskill run is ageneral-purposeagent whose parent is acode-reviewer. The note quotes no transcript text except the harness’s own refusal messages and agent descriptions. - Prices. USD per million tokens, from the pricing page (https://platform.claude.com/docs/en/about-claude/pricing, read 2026-11-29), each call priced by the model it names: Opus 5.5 at 4 input, 5 for a 5-minute cache write, 8 for a 1-hour write, 0.20 read and 20 output, Fable 5.2 at 8, 10, 16, 0.20 and 40, and Fable 5.1 at 10, 12.50, 20, 0.25 and 50. The security reviewers ran on Fable 5.1 in I604I604 (closed): Campaign 2026-11-08 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 2 --usd 30 --issues 10 --prs 10 and I622I622 (closed): Campaign 2026-11-09 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 3 --usd 300 --issues 30 --prs 30 (78 calls) and on Fable 5.2 in I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 and I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 (858 calls: 818 in the waves and 40 by the manager’s own reviewer in I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2), and every other agent on Opus 5.5. The first version of this note priced Fable 5.2 at Fable 5.1’s rates, and this one corrects it.
- Check against the ledger. Transcript cost over ledger cost, per
wave (
calib.py): 1.00 for I604I604 (closed): Campaign 2026-11-08 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 2 --usd 30 --issues 10 --prs 10, 0.99 for I622I622 (closed): Campaign 2026-11-09 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 3 --usd 300 --issues 30 --prs 30, 0.99 to 1.00 for I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2’s four waves and 0.87 to 0.96 for I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40’s five. The figures below are transcript dollars, so I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40’s are 4 to 13% below its ledger. - Pull requests.
gh pr view --jsonfor the 35 pull requests whose body names one of the campaigns, with reviews and comments, andgh run listandgh run view --json jobsfor their 180 CI runs and the trains’ runs. A review round is a posted review whose first line isCode review, round <k>orSecurity review, round <k>: 54 code and 41 security reviews. PR626PR626 (merged): docs(spec): Xcode image from a host-built read-only diskAn image that needs full Xcode now gets it from the Mac it runs on, never from the internet.’s security round 3 was posted twice and counts twice. A finding is a line that opensF<k>, with its rating. No later round repeats an earlier finding’s line, so eachmust-fixline is one finding (mustfix.py). PR740PR740 (merged): feat(hostd): hold back an event sender that ignores its budgetA compromised network daemon could send well-formed audit records as fast as it liked and ignore every budget notice, and the host daemon would queue them all in memory.’s code round 3 was posted as an issue comment, so it isn’t a review round here, and itsF12, amust-fix, is added by hand. - Totals in the sibling notes. This note’s four campaigns cost
520.48 transcript dollars, 9.83 more than R12-model-fit-by-roleR12-model-fit-by-role: Model fit by agent roleWhich agent roles could run on Sonnet 5.5, or at a lower effort, at the same quality, what each move would save, and how to test each one before deciding.’s
510.65, because that note cuts each manager session when the
campaign’s report was written and this one counts the whole session
(
extract.py). - Counts in the sibling notes. The review overlap note (I818I818 (closed): R11: overlap of code and security reviews, review lanes, and a reference defect listA research note for the researcher agent: R11, docs/research/R11-review-overlap.md.)
counts 54 code and 39 security reviews and 8 security
must-fixin I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40, because it leaves some security findings out by its task. R12-model-fit-by-roleR12-model-fit-by-role: Model fit by agent roleWhich agent roles could run on Sonnet 5.5, or at a lower effort, at the same quality, what each move would save, and how to test each one before deciding. counts 54 code and 39 security reviews and 35re-checked:comments over 34 pull requests, or 52 and 38 by the highest round per pull request. This note counts 9 securitymust-fixin I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 and 6 codemust-fixin I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2. - Agents to pull requests. By the pull request or issue number in
the agent’s description, and by hand for 10 descriptions that named
another issue (
perpr.py,MANUAL). - Rounds. An agent’s calls split at each message from another
agent: a builder’s first part is its first build, the later ones are
fix rounds, and a reviewer’s part
kis its roundk. - Cold calls. A call is cold when it reads less than half of its context from the cache, as in R03-fix-rounds-compactionR03-fix-rounds-compaction: Fix rounds and compactionWhen a wave lead should resume a builder for review findings and when it should start a fresh one, and what Claude Code's compaction and prompt cache settings do for builders, reviewers and leads..
- Time. Minutes from the wave’s start in the ledger. A pull request
is done when its last agent call or CI run ends (
timeline.py). Every minute in the note is active time inside a wave. The waves of I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 and I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 followed each other with 1 or 2 minutes between them. - Scripts. Python 3, run with
python3 -I, on the kept branchspike/r10-campaign-efficiencyinresearch/r10/. The raw transcripts, review texts and CI logs stay on the maintainer’s Mac.
Results
Section titled “Results”Totals and what ended each campaign
Section titled “Totals and what ended each campaign”- The manager column is transcript dollars for the manager’s session and the agents it spawned itself. It holds the train reporter (8.85, 7.26 and 7.04 dollars in I622I622 (closed): Campaign 2026-11-09 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 3 --usd 300 --issues 30 --prs 30, I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 and I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40) and hand work outside the waves: 34.15 dollars in I604I604 (closed): Campaign 2026-11-08 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 2 --usd 30 --issues 10 --prs 10 to finish the wave, 13.78 in I622I622 (closed): Campaign 2026-11-09 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 3 --usd 300 --issues 30 --prs 30, 9.39 in I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 for a test fix on PR740PR740 (merged): feat(hostd): hold back an event sender that ignores its budgetA compromised network daemon could send well-formed audit records as fast as it liked and ignore every budget notice, and the host daemon would queue them all in memory. and a rebase and re-review of PR747PR747 (merged): fix(vmd): keep a passed descriptor until wb-hostd acknowledges itOn the newest macOS the kernel can throw away a socket that is in transit between two processes once the sender has closed its copy, so a guest connection or the VM's network link could reach the host daemon already…, and none in I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40.
- I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 and I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 ran unattended, and their managers cost 11.42 to 27.63 dollars. The report’s 5% reserve is 12 to 15 dollars. I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2’s manager spent about twice that, a third of it on hand work. That hand work is in the per pull request figures too (“Baseline”).
Cost by role
Section titled “Cost by role”All four campaigns, transcript dollars (roles.py). The number of
agents is in brackets. The rows add up to each campaign’s transcript
total: 62.88, 61.74, 145.54 and 250.32 dollars. No researcher ran in
these campaigns.
-
I604I604 (closed): Campaign 2026-11-08 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 2 --usd 30 --issues 10 --prs 10’s wave is the builders, the spike builders, the lead and the dispatcher, 11.92 dollars against a ledger of 11.89. The manager finished it by hand, with agents of its own (last row).
-
Cache reads are 97% of a builder’s input tokens in its first build, 99% in its fix rounds and 94% for a security reviewer.
-
Where a role’s dollars go (I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 and I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 waves,
components.py): the security reviewer spends 45% on cache writes, 40% on output and 16% on reads, over 818 calls in the waves with 127k tokens of context and 1,535 output tokens each. A builder spends 34% on writes, 39% on reads and 28% on output, over 3,105 calls with 95k of context and 663 output tokens each. -
Cold starts (
cold.py, I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 and I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40). A security reviewer resumed for round 2 or 3 after 5 to 25 minutes rewrites its whole context: 10 calls, 1.86M tokens (186k each), 18.78 dollars, about 1.88 dollars a round. Code reviewer resumes: 11 calls, 4.24 dollars. Builders: 22 cold calls after a compaction, 5.51 dollars. The builders’ one-hour cache (R03-fix-rounds-compactionR03-fix-rounds-compaction: Fix rounds and compactionWhen a wave lead should resume a builder for review findings and when it should start a fresh one, and what Claude Code's compaction and prompt cache settings do for builders, reviewers and leads.) keeps their resumes warm. -
Compaction. Builders compacted 4 times in I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 and 20 times in I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40, 6 of them in PR804PR804 (merged): feat(egress): number hand-off sockets, acknowledge both ends, run the end exchangeEach VM's hand-off socket now has a number that rises and is never reused, and every acknowledgment and close notice names it.’s builder (4,879 lines).
-
What a reviewer reads (
reads.py, round 1, by characters of tool results). Security reviewer: code 54%, specs and threats 25%, git diffs and logs 14%, GitHub 4%, harness pages 2%. Builder: code 57%, specs 15%. The harness’s own pages aren’t where the context goes.
Why I792 cost twice as much per pull request
Section titled “Why I792 cost twice as much per pull request”| Mean per pull request | I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 | I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 | Difference |
|---|---|---|---|
| First build | 1.99 | 5.47 | +3.48 |
| Fix rounds | 1.51 | 2.68 | +1.17 |
| Code review | 1.45 | 1.71 | +0.26 |
| Security review | 4.13 | 5.77 | +1.64 |
| Lead and dispatcher | 1.47 | 1.43 | -0.04 |
| Total | 10.54 | 17.06 | +6.52 |
- Size. The fit predicts 10.8 dollars for I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2’s mean of 391 code lines and 16.8 for I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40’s mean of 1,529, close to the measured 10.54 and 17.06. I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 had many small fixes of flaky tests: PR725PR725 (merged): test(swift): wait for wb-hostd's close before the hand-off send failsTwo wb-vmd tests check that a hand-off send to a wb-hostd that is gone is refused. and PR726PR726 (merged): test(guestlink): wait through CONNECTING before the drop in TestDialerRefusesSecondCallOne of the fifteen flaky CI runs in the week of 2026-10-26 came from a test of the guest link's dialer that has no issue of its own. cost about 3 dollars each. I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 built features, among them PR804PR804 (merged): feat(egress): number hand-off sockets, acknowledge both ends, run the end exchangeEach VM's hand-off socket now has a number that rises and is never reused, and every acknowledgment and close notice names it. (4,879 lines, 45.24 dollars) and PR814PR814 (merged): feat(download): wb-download, its entries, confinement, fetches and recordsThis adds wb-download, the one program that fetches what an image build needs from the internet: Apple's restore image catalog and a restore image, or the Claude Code channel file and a release. (6,174 lines).
- Security rounds. I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2’s security reviews found one
must-fix, and I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40’s found nine. I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 had seven second rounds and one third round, I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 three second rounds. - Not the overhead. The lead and dispatcher cost about 1.45 dollars per pull request in both.
- Hand work. I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2’s mean holds 0.78 dollars of the manager’s hand work on PR740PR740 (merged): feat(hostd): hold back an event sender that ignores its budgetA compromised network daemon could send well-formed audit records as fast as it liked and ignore every budget notice, and the host daemon would queue them all in memory. and PR747PR747 (merged): fix(vmd): keep a passed descriptor until wb-hostd acknowledges itOn the newest macOS the kernel can throw away a socket that is in transit between two processes once the sender has closed its copy, so a guest connection or the VM's network link could reach the host daemon already…. Without it, I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2’s mean is 9.76 and the difference 7.30.
Time per wave
Section titled “Time per wave”From timeline.py. Minutes from the wave’s start. “Builders back” is
when the last builder of the lead’s first batch handed back. “Last
opened” is when the last builder’s pull request opened. “To first
review” is the sum, over the wave’s pull requests, of the minutes
between each one’s opening and its first review. “Waiting” is the sum, over
the wave’s pull requests, of the minutes between each one’s end and the
slowest one’s end.
- Phases. A first build took 8 to 42 minutes. A first review round took 4 to 15. A fix round with its CI took 10 to 25. CI on a pull request took 8.4 minutes at the median in I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 and 9.1 in I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2. After the lead ended, the dispatcher’s merges and the wave’s end took 1 to 25 more minutes, 11 at the median.
- Reviews wait for the last builder. Every lead spawned its
builders in one assistant message as foreground Agent calls, and its
reviewers the same way (
spawns.py: 81 of 86 spawns in the waves were in the foreground). In all nine waves the first reviews started within a minute of the last builder of that batch handing back. In I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 wave 5, PR810PR810 (merged): feat(swift): run ProvisioningCheck in wb-vmd's start pathThe build VM's wb-vmd now really starts a VM with the macOS provisioning options, the step that creates the guest admin user and turns on remote login for the image build's one SSH session. opened at minute 17 and PR812PR812 (merged): feat(proxyd): HTTP/1.1 on inspected streamswb-proxyd can now serve HTTP/1.1 on an inspected stream. at 28, and both got their first review at 45, after PR814PR814 (merged): feat(download): wb-download, its entries, confinement, fetches and recordsThis adds wb-download, the one program that fetches what an image build needs from the internet: Apple's restore image catalog and a restore image, or the Claude Code channel file and a release.’s builder handed back at 44. The timing suggests a batch that returns to the lead only when its last agent does. That is an inference, and no documentation was checked for it. Over the 26 pull requests, 162 minutes went between opening and the first review, 6 per pull request on average and 33 at most. I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 wave 5 (62), I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 wave 3 (36) and I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 wave 1 (24), each with one slow builder, hold 122 of them. - I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 wave 3 is the one wave with background spawns, and they came after the foreground batch. Its four builders returned together at minute 42 with two pull requests open: PR803PR803 (merged): fix(guestd): hold back two guestsock conformance checks and record T22A guest-side operation on one guest macOS version stopped the guest's kernel, and two in-guest conformance checks are held back until the cause is narrowed down.’s builder had stopped at minute 5 and PR804PR804 (merged): feat(egress): number hand-off sockets, acknowledge both ends, run the end exchangeEach VM's hand-off socket now has a number that rises and is never reused, and every acknowledgment and close notice names it.’s had reached its turn limit at 36. PR801PR801 (merged): docs: list the V1 limits on a user docs pageThe user documentation gets a page of V1 limits, linked from the front page and the sidebar. waited 33 minutes, from minute 10 to 43, for that batch. The lead then resumed PR803PR803 (merged): fix(guestd): hold back two guestsock conformance checks and record T22A guest-side operation on one guest macOS version stopped the guest's kernel, and two in-guest conformance checks are held back until the cause is narrowed down.’s builder in the background at 48 and spawned the reviewers of PR803PR803 (merged): fix(guestd): hold back two guestsock conformance checks and record T22A guest-side operation on one guest macOS version stopped the guest's kernel, and two in-guest conformance checks are held back until the cause is narrowed down. and PR804PR804 (merged): feat(egress): number hand-off sockets, acknowledge both ends, run the end exchangeEach VM's hand-off socket now has a number that rises and is never reused, and every acknowledgment and close notice names it. in the background at 57 and 58, a minute after each opened. A minute is also what the last pull request of a foreground wave waits, so the wave doesn’t compare batch and background spawns.
- Fix rounds wait for the slowest review. The lead sent the findings of a wave in one batch too. The fix round started 1 to 14 minutes after the pull request’s own reviews ended, 127 minutes in all, part of which is the lead posting reviews.
- Effect on the wave. The slowest pull request sets the length of the wave, and it waits little in either batch. So the lock step costs the other pull requests time, and the wave only a few minutes. The lock step matters for what comes after: no place frees for the next issue until the whole wave ends.
Wave fill
Section titled “Wave fill”Each wave had 4 places (fill.py, ledger results).
- The rule is
.claude/skills/wave/SKILL.md, “Pick”, step 4 (skip an issue that shares acomp:label or a hot file) and its campaign exception “Fill the wave” (take from the next milestone only when the milestone fills fewer than half the places). - The rule is the recorded reason in two of the five short waves,
I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 waves 1 and 4. For I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 waves 3 and 4 and I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 wave 2, the
ledger gives no reason, and the dispatchers’ transcripts hold none
either: their written text starts after the pick (
pickwhy.py). Why those three waves picked fewer isn’t known. - What a short wave costs. I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40’s three two-issue waves made 6 pull requests in 231 minutes, 1.6 an hour. The four-issue waves of both campaigns made 15 in 373 minutes, 2.4 an hour. The lead and dispatcher cost about 4 dollars a wave whatever its size, 2.00 dollars per pull request in a two-issue wave and 1.00 in a four-issue one.
From ci.py over 180 runs.
- Job time, median minutes: Swift 7.9, Go on
xcode-276.5, Go on Windows 5.8, Go on Ubuntu 4.4, fuzz smoke 2.9 to 4.2, Docs 1.4. A pull request’s run took 8.4 minutes at the median in I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 (11.9 at most) and 9.1 in I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 (39.6 at most). - Reruns: one on I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2’s pull requests, none on I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40’s, one on I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40’s train (the dispatcher, I797I797 (closed): wb-netd: TestAnswerBlocked/report_blocked refused after 1 s instead of 100 ms on CI (flaky)TestAnswerBlocked/report_blocked (packages/wraithbox-go/internal/netd/hostlink/order_darwin_test.go:236) failed once on train/792 at 4e66afcfa132e52e76b5277ff4cd000299d82fb7, job Go (xcode-27) of run 46187520268:).
- Failures from outside the pull request.
- A word on the train’s report page that the spell list didn’t have turned red the Docs job of every pull request based on the train: PR740PR740 (merged): feat(hostd): hold back an event sender that ignores its budgetA compromised network daemon could send well-formed audit records as fast as it liked and ignore every budget notice, and the host daemon would queue them all in memory., PR746PR746 (merged): fix(netd): keep a handed-off stream's end open until wb-proxyd holds itThe network daemon used to close its own copy of each connection's socket the moment it passed that socket to the proxy. and PR747PR747 (merged): fix(vmd): keep a passed descriptor until wb-hostd acknowledges itOn the newest macOS the kernel can throw away a socket that is in transit between two processes once the sender has closed its copy, so a guest connection or the VM's network link could reach the host daemon already… in I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2, PR798PR798 (merged): fix(netd): decide a late write or send on the clock, not ctx.Err()A record write to the host or a send to the proxy that takes longer than its 100 ms bound must count as failed, so the DNS answer it backs is refused. and PR799PR799 (merged): feat(hostd): stop the VM whose event sender ignores its budgetBefore this change, a guest's network daemon that kept sending audit records past its VM's budget could get the host to pause reading the shared proxy's records, and that froze the network of every VM. in I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40. In I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 wave 4 nothing merged, and the manager rebased and re-reviewed PR747PR747 (merged): fix(vmd): keep a passed descriptor until wb-hostd acknowledges itOn the newest macOS the kernel can throw away a socket that is in transit between two processes once the sender has closed its copy, so a guest connection or the VM's network link could reach the host daemon already… by hand for about 6 dollars.
- Go on Ubuntu failed on all three I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 pull requests open at 18:21.
- The I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 train:
TestAnswerBlockedonxcode-27(I797I797 (closed): wb-netd: TestAnswerBlocked/report_blocked refused after 1 s instead of 100 ms on CI (flaky)TestAnswerBlocked/report_blocked (packages/wraithbox-go/internal/netd/hostlink/order_darwin_test.go:236) failed once on train/792 at 4e66afcfa132e52e76b5277ff4cd000299d82fb7, job Go (xcode-27) of run 46187520268:) andTestC11StoppedUnexpectedlyon Windows (I815I815 (closed): wb-hostd: TestC11StoppedUnexpectedly reads the log before the stop is loggedTestC11StoppedUnexpectedly (packages/wraithbox-go/internal/hostd/vm/vm_test.go:554) failed on train/792 at 0f9b2314, job Go (windows-2025) of run 46213043888:), which ended the campaign.
- Closes and reopens: 7, all in I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2: PR740PR740 (merged): feat(hostd): hold back an event sender that ignores its budgetA compromised network daemon could send well-formed audit records as fast as it liked and ignore every budget notice, and the host daemon would queue them all in memory. three times, PR746PR746 (merged): fix(netd): keep a handed-off stream's end open until wb-proxyd holds itThe network daemon used to close its own copy of each connection's socket the moment it passed that socket to the proxy. and
PR747PR747 (merged): fix(vmd): keep a passed descriptor until wb-hostd acknowledges itOn the newest macOS the kernel can throw away a socket that is in transit between two processes once the sender has closed its copy, so a guest connection or the VM's network link could reach the host daemon already… twice each (
gh api …/issues/<n>/events). None in I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40.
Reviews
Section titled “Reviews”From reviews.py and mustfix.py. I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2’s code must-fix count
holds PR740PR740 (merged): feat(hostd): hold back an event sender that ignores its budgetA compromised network daemon could send well-formed audit records as fast as it liked and ignore every budget notice, and the host daemon would queue them all in memory.’s round 3 F12, posted as an issue comment (“Method”).
| I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 | I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 | |
|---|---|---|
| First code review approves | 7 of 12 | 9 of 14 |
| First security review approves | 9 of 10 | 4 of 11 |
Code must-fix findings |
6 | 8 |
Security must-fix findings |
1 | 9 |
| Pull requests with a second or third security round | 3 | 7 |
re-checked: comments |
10 | 14 |
- Failed
code-reviewskill runs: none. Every code reviewer in the waves of I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 and I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 forked one skill run in its first round, and no review was done by hand instead. - Turn limits. The builders of PR804PR804 (merged): feat(egress): number hand-off sockets, acknowledge both ends, run the end exchangeEach VM's hand-off socket now has a number that rises and is never reused, and every acknowledgment and close notice names it. (I728I728 (closed): Hand-off socket contract of S07-20: socket number, HandoffSocketHeld, states, close reports, and a VM's endBuilds the hand-off socket contract of S07-20-handoff-sockets and the end exchange of S07-21-vm-end (#754, PR #758) in one change, before #480.) and PR814PR814 (merged): feat(download): wb-download, its entries, confinement, fetches and recordsThis adds wb-download, the one program that fetches what an image build needs from the internet: Apple's restore image catalog and a restore image, or the Claude Code channel file and a release. (I650I650 (closed): wb-download: the program, its two entries, confinement, host checks, deadlines, the fetches and its recordsPackage IMG.1 of docs/implementation-plan.md, part 1 of 4 (IMG.1a).) reached the builder’s 200 turns in their first build. The lead resumed both, as R03-fix-rounds-compactionR03-fix-rounds-compaction: Fix rounds and compactionWhen a wave lead should resume a builder for review findings and when it should start a fresh one, and what Claude Code's compaction and prompt cache settings do for builders, reviewers and leads. recommends. No reviewer or lead came near its limit.
Refused commands
Section titled “Refused commands”From refusals.py, errors.py and iso.py, over tool results marked
as errors.
- The worktree guard refused 299 commands over the four campaigns, 243 of them in the waves of I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 and I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40: 126 from builders, 80 from security reviewers, 19 from code reviewers, 13 from leads and 5 others. 90 agents hit it, one 14 times. The harness’s message says why, in variants such as “this command is too complex to verify that it stays inside the worktree”, “changes directory to the shared checkout before running git”, “points git at a directory computed at runtime (-C ..)” and “runs gh with the text … inside a construct too complex to verify”. All but three were Bash commands.
- Their cost, estimated as one call each at the role’s mean cost
per call (0.155 dollars for a security reviewer, 0.048 for a
builder): about 20 dollars of the 357 in those waves, 6%, or 0.80
dollars per pull request. The time per refusal isn’t measured. This
note’s own scripts hit the guard once, on a path that contains
git. - The permission system refused 3 commands in the same waves, all from builders, and I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40’s report page (W792-network-floor-macW792-network-floor-mac: Campaign 792: network floor, lane macHand-off sockets between the network daemons get numbers and an end exchange, a VM whose audit sender ignores its budget is stopped instead of holding the shared proxy, and stream writes get a bound.) counts refused probe writes in 7 security reviews. These are by design.
How the candidates compare
Section titled “How the candidates compare”R12-model-fit-by-roleR12-model-fit-by-role: Model fit by agent roleWhich agent roles could run on Sonnet 5.5, or at a lower effort, at the same quality, what each move would save, and how to test each one before deciding. ranks cheaper models per role, with savings of 5.5 to 74 dollars over the four campaigns, 0.16 to 2.20 dollars per pull request over its 34, each with a quality risk that a test has to rule out. The review overlap note (I818I818 (closed): R11: overlap of code and security reviews, review lanes, and a reference defect listA research note for the researcher agent: R11, docs/research/R11-review-overlap.md.) asks how much the two reviews find twice. The candidates here change the order of work and the harness’s rules, not the model or what a review covers. They save less in dollars and more in minutes. Only the last needs a quality test, and the fourth needs a trial wave because of a known failure.
| Rank | Candidate | Dollars per pull request | Minutes | Quality risk |
|---|---|---|---|---|
| 1 | Fill from the next milestone whenever a place is empty | about 1.00 in a short wave | about 13 wave minutes per pull request in a short wave | an issue of a later milestone runs early |
| 2 | Check the report page in campaign.mjs before it’s committed |
about 0.23, and no lost wave | 10 to 20 per affected pull request | none |
| 3 | Command forms the worktree guard accepts | about 0.80 | not measured | none |
| 4 | Hand back as each agent finishes | 0 | 6 per pull request on average, a few per wave | an interim notice can end the lead’s wait and leave a pull request without a review (I631I631 (closed): Campaign waves end when the wave lead waits on its own background work: claude -p exits on its interim resultWave 1 of campaign #622 ran claude -p "/wave ...), and the lead’s context grows |
| 5 | Re-check a security round fresh, scoped to the fix | up to 0.58 | none | a re-check that misses context |
The first version of this note also proposed letting two issues with
one comp: label into a wave. It is now under “Not recommended”.
Limits
Section titled “Limits”- The comparison rests on I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 and I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40. I604I604 (closed): Campaign 2026-11-08 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 2 --usd 30 --issues 10 --prs 10 and I622I622 (closed): Campaign 2026-11-09 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 3 --usd 300 --issues 30 --prs 30 each ran one wave and ended early, so their per pull request figures are left out.
- The fit has 26 points and one pull request of 6,174 lines. Its fixed part is the useful number. The slope above 2,000 lines rests on four pull requests.
- Transcripts and ledger differ by up to 13%. For I604I604 (closed): Campaign 2026-11-08 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 2 --usd 30 --issues 10 --prs 10, I622I622 (closed): Campaign 2026-11-09 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 3 --usd 300 --issues 30 --prs 30 and I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 they agree within 1%. For I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 the transcripts are 4 to 13% below the ledger. Auto mode’s classifier calls and other side calls don’t appear in the transcripts, and I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 wave 1, the lowest at 0.87, logged a classifier error. That is the likely cause, but it isn’t measured. I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40’s dollars in this note are low by that much.
- Time per refusal and the manager’s active time aren’t measured.
- Five I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 pull requests are still open (PR803PR803 (merged): fix(guestd): hold back two guestsock conformance checks and record T22A guest-side operation on one guest macOS version stopped the guest's kernel, and two in-guest conformance checks are held back until the cause is narrowed down., PR806PR806 (merged): feat(netd): ActivePeriodStart clears a running wb-netd's wildcard debitsThe network daemon used to keep the names it had charged to a VM's wildcard budget until it restarted, because nothing could tell a running daemon that a new active period began., PR812PR812 (merged): feat(proxyd): HTTP/1.1 on inspected streamswb-proxyd can now serve HTTP/1.1 on an inspected stream., PR813PR813 (merged): feat(guestroot): add wb-guestroot, the guest end of the admin pathThe guest now has a second daemon of its own, wb-guestroot, that gives the host a root login shell on a terminal., PR814PR814 (merged): feat(download): wb-download, its entries, confinement, fetches and recordsThis adds wb-download, the one program that fetches what an image build needs from the internet: Apple's restore image catalog and a restore image, or the Claude Code channel file and a release.). Their cost so far is counted, and later rounds aren’t.
- Lead and dispatcher cost is split evenly over a wave’s pull requests, not by what the lead did for each.
Recommendations
Section titled “Recommendations”Each changes a harness file and goes to main between campaigns
(docs/agents/campaigns.md, “What may ride the train”). Ranked by
what each saves, wave minutes and lost waves first and dollars second,
and then by risk: a change that needs a trial for a known failure
ranks below the ones that don’t.
- Fill the wave from the next milestone whenever a place is empty.
In
.claude/skills/wave/SKILL.md, “Fill the wave”: take from the next milestone whenever the pick leaves a place empty, not only when the milestone fills fewer than half, with the same rules. Thecomp:and hot-file rule (docs/agents/orchestration.md, “A wave”, step 2, anddocs/agents/planning.md, “Where work comes from”, step 4) stays as it is. Evidence: five of nine waves ran at two or three issues of four, at 1.6 pull requests an hour against 2.4. The half rule is the recorded reason in two of them, I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 waves 1 and 4. For the other three the reason isn’t known, so the change may fill fewer waves than five. Saving: about 13 wave minutes and 1.00 dollar per pull request that would have run in a short wave. Risk: low, an issue of a later milestone runs before its milestone’s turn. Trial: the next campaign’s waves pick 4 of 4 whenever the next milestone has ready issues. - Check the report page in
campaign.mjsbefore it’s committed. Inscripts/campaign.mjsanddocs/agents/campaigns.md, “The report”: runmise run prose:spellandprose:linton the rendered page and refuse to commit on an error. The train reporter is already told to run both (.claude/agents/train-reporter.md, “Check before you hand back”, step 2, since before I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2), and the manager has checked by hand since I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 wave 1. The page still turned the Docs job red on 5 pull requests in I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 and I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 and left I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 wave 4 with nothing merged. An instruction wasn’t enough. A check in the script that commits the page runs every time. Saving: PR747PR747 (merged): fix(vmd): keep a passed descriptor until wb-hostd acknowledges itOn the newest macOS the kernel can throw away a socket that is in transit between two processes once the sender has closed its copy, so a guest connection or the VM's network link could reach the host daemon already…’s rebase and re-review by hand cost about 6 dollars, 0.23 per pull request over the 26, and a lost wave now and then. Risk: none. Trial: no Docs failure from the report page in the next campaign. - Tell agents the command forms the worktree guard accepts. In
docs/agents/working.mdand the agent files: one git orghcommand per Bash call, run from the worktree, nocdbefore git, nogit -Cwith a computed path, and a script file instead of a loop or a here-document aroundgh. Evidence: 243 refusals in two campaigns, about 6% of their cost. Saving: about 0.80 dollars per pull request. Risk: none, the guard stays. Trial: refusals per agent under one. - Handle each hand-back as it comes. In
.claude/agents/wave-lead.md, steps 1 and 2, anddocs/agents/orchestration.md, “A wave”: spawn each builder and reviewer withrun_in_background, and spawn a pull request’s reviewers, or send its findings, the moment its own agent hands back. Evidence: 81 of 86 spawns were foreground batches. In all nine waves the first reviews started within a minute of the batch’s last builder handing back, which suggests the batch held them. Pull requests waited 162 minutes for their first review, 122 of them in three waves with one slow builder, and 127 for their fix rounds. No wave tried background spawns for its builders, so the saving is an estimate. Saving: no dollars, about 6 minutes per pull request and a few per wave, because the slowest pull request, which sets the wave’s length, waits little. It also opens a later step, the wave refilling a place when its pull request is done. Risk: the known failure of background agents (docs/agents/orchestration.md, “Working with the platform”, “An interim notice is not a hand-back”). An agent that ends its turn while its own background command runs sends an interim notice, and a lead with nothing of its own running is told to report, so a pull request opened later is never reviewed. That ended I622I622 (closed): Campaign 2026-11-09 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 3 --usd 300 --issues 30 --prs 30 (I631I631 (closed): Campaign waves end when the wave lead waits on its own background work: claude -p exits on its interim resultWave 1 of campaign #622 ran claude -p "/wave ...). The lead has to keep its own wait running until every agent has handed back (wave-lead.md, “Waiting”), and more notices fill its context, whose limit is 300 turns. This is ranked fourth for that risk and the small saving. Trial: one wave with background builders, where every pull request gets its reviews and the minutes from opening to first review fall under 3 at the median. - Re-check a security round with a fresh reviewer scoped to the
fix. In
docs/agents/orchestration.md, “A wave”, step 5, and.claude/agents/wave-lead.md, step 4, which both send a round afterneeds changesback to the same reviewer: a freshsecurity-reviewergets the earlier findings, the range diff of the fix and the files it touches. Today’s resume rewrites the reviewer’s whole context cold, 186k tokens a call. A one-hour cache isn’t the answer for this role: Fable’s one-hour write costs 1.6 times the five-minute one, more than the cold rewrites save. Evidence: I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 and I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 had 11 later security rounds, 8 of them afterneeds changes(the other 3 followed an approve), at 2.97 dollars each at the median. 10 later rounds opened with a cold call, 1.88 dollars each on average. Saving: at most the cold rewrite of the 8 rounds, 8 × 1.88 = 15 dollars, or 0.58 per pull request, less what the fresh reviewer spends reading the fix. Risk: the re-check misses context the first round had, so it needs a replay against the 9must-fixfindings of I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 first. The review overlap note (I818I818 (closed): R11: overlap of code and security reviews, review lanes, and a reference defect listA research note for the researcher agent: R11, docs/research/R11-review-overlap.md.) should decide the form.
Not recommended:
- Two issues with one
comp:label in one wave. The first version of this note proposed it, for when the next milestone has nothing either. It relaxesdocs/agents/orchestration.md, “A wave”, step 2 (“Avoid two issues with the samecomp:label”) anddocs/agents/planning.md, “Where work comes from”, step 4. The second pull request to merge rebases onto changes to the same code, and that gets a new review round (wave-lead.md, step 4): by the medians above 0.61 for code, 2.97 for security and 1.15 for the fix round, about 4.73 dollars, more than the 1.00 a fuller wave saves. A pull request that conflicts rebases only in the next wave and takes a place there. Two pull requests can each pass review and CI alone and fail together on the train, and a train failure ended I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 (I815I815 (closed): wb-hostd: TestC11StoppedUnexpectedly reads the log before the stop is loggedTestC11StoppedUnexpectedly (packages/wraithbox-go/internal/hostd/vm/vm_test.go:554) failed on train/792 at 0f9b2314, job Go (windows-2025) of run 46213043888:). The labels most likely to pair are the security-sensitive processes (comp:wb-netd,comp:wb-proxyd,comp:wb-guestd), where each reviewer would read a base without the other’s change. The rule stays as it is. - Splitting large issues to save money. Every pull request pays the fixed 8.78 dollars, so two halves cost more than the whole. Split for review quality, if at all.
- Trimming the agent pages. Harness pages are 2% of what a reviewer reads in its first round.
Proposed issues
Section titled “Proposed issues”harness: fill a campaign wave from the next milestone whenever a place is empty(recommendation 1).campaign: check the report page's prose before committing it(recommendation 2).harness: document the command forms the worktree guard accepts(recommendation 3).harness: trial a wave lead that handles each hand-back as it comes(recommendation 4).harness: replay a fresh, scoped security re-check against I792's must-fix findings(recommendation 5, after I818I818 (closed): R11: overlap of code and security reviews, review lanes, and a reference defect listA research note for the researcher agent: R11, docs/research/R11-review-overlap.md.).
Status: Measured 2026-11-29 over campaigns I604I604 (closed): Campaign 2026-11-08 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 2 --usd 30 --issues 10 --prs 10, I622I622 (closed): Campaign 2026-11-09 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 3 --usd 300 --issues 30 --prs 30, I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 and I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40 (178 agents, 35 pull requests). A pull request costs about 8.80 dollars plus 5.25 per 1,000 code lines, and I792I792 (closed): Campaign 2026-11-28 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2 --hours 12 --usd 300 --issues 40 --prs 40’s larger pull requests explain its higher cost per pull request. Recommends five harness changes, ranked by wave minutes and lost waves saved, then dollars, then risk, and keeps the comp: rule.