The haiku-cc run, 2026-10-12: every failure, its signal, and what now handles it
Haiku 5.5 workers built hcc (a C11 compiler in pure Python) against ~42K tests, from an Opus-built foundation. Hub plus three sibling containers from 11:27Z. By 18:30Z the hub ledger held 1,051 workers, 464 merged, $24.88 of worker spend ($0.054 per merge), and 42,189 of 42,358 tracked tests passed. Every item below cost time or money that day. Kind: P prevented in code, D detected by a named signal, W warned in the runbook with its signal and fix. Paths are relative to this skill.
Setup and supply
| # | what happened | signal | handled by | kind |
|---|---|---|---|---|
| 1 | conformance suites exhausted in 70 min; queue drained at 04:33 | status SIGNALS SUPPLY LOW / PARTITION EXHAUSTED |
run.signals; SKILL.md Preflight 1; references/project-setup.md "Failing-test supply" |
D, W |
| 2 | suite builders edited the main checkout; preflight dirty, loop needed --force |
preflight "uncommitted changes under code/tests" | run.preflight; project-setup.md (builder in its own worktree) |
D, W |
| 3 | new suite dirs never baselined (refresh list fixed at last refresh) | status SIGNALS UNBASELINED SUITES |
testrun.changed_suites + merge.refresh_suites, checked every 2 min in run._loop; selftest "new suite ... baselined alone" |
P, D |
| 4 | __pycache__ committed |
preflight "build artefacts are tracked" | run.preflight; paths.junk filter in merge.classify; project-setup.md "Hygiene" |
P, D |
| 5 | reasons truncated with the absolute path in front; broken stage regex labelled all parse |
doctor WARNs; status SIGNALS ONE STAGE |
doctor.check; workqueue.normalise strips locations before handling truncation; project-setup.md |
D, W |
| 6 | a race test failed with a different count every run; suites timed out under load | same test in unrelated regressions (...) rejections |
low-load re-run in merge.evaluate; tests.quarantine |
P, W |
| 7 | 3 setup agents launched through claude -p | — | SKILL.md "When NOT to use" (fewer than 10 tasks: Agent tool) | W |
Queue and state
| # | what happened | signal | handled by | kind |
|---|---|---|---|---|
| 8 | ~100 workers sent to tests a shared-root fix had already passed | many no target test flipped rejections |
merge.recheck_clusters after every merge; selftest "shared-root fix ... re-checked" |
P |
| 9 | a concrete single-cause signature split across shards, shards wrote the same fix | conflicts within one cluster | workqueue.build (concrete = nothing masked, 1 shard); selftest |
P |
| 10 | workers refused half a feature, quit in 3-6 turns | repeated failed with notes naming a missing feature |
feature mode after feature_after failures, one per signature (run._loop); selftest |
P |
| 11 | test moved to skip.txt counted as regression: 27 good patches rejected, 50 min with no merge | GATE REJECTS ALL naming one test |
MISSING is not a regression (merge.evaluate), dropped from known (testrun.record); selftest |
P, D |
| 12 | conflicts counted as failed attempts: parked tests, triggered feature mode | — | workqueue.counted_failures, common.is_conflict |
P |
| 13 | parking counted harness-made failures: the abandoned tail (Haiku then solved 10/10 cold) | status shows failing tests but few dispatchable items |
swarm.py unpark (attempt epoch), common.attempt_epoch; selftest |
P, W |
| 14 | no effort ladder at first | — | run.launch: high effort after a real failure and for feature work; selftest |
P |
| 15 | model-comparison selections stale: only 4/18 and 10/33 still failed | compare run prints "base check: k/n" |
compare.run base-checks every selection |
P |
Merging and conflicts
| # | what happened | signal | handled by | kind |
|---|---|---|---|---|
| 16 | conflicts the biggest single loss (~170) | lost merge races in status |
rebase tasks from the conflicted tree with markers (run.premerge_rebase, run.task_prompt); selftest REBASE |
P |
| 17 | shared registry files were conflict hot spots | status "conflict hot spots: file (n)" |
run.conflict_hot_spots; project-setup.md "self-registering modules"; worker prompt template |
D, W |
| 18 | serial gate ~15 merges/h until tuned to ~41/h | finished awaiting gate, SIGNALS GATE BACKLOG |
run.signals; SKILL.md tuning |
D, W |
| 19 | "main kept moving" races during gating | rejection reason main kept moving |
re-gate up to max_main_races; not counted as an attempt |
P |
| 20 | a big refactor needed a 34-min freeze and a port of 81 commits | — | project-setup.md "Land structural refactors early, or freeze deliberately" | W |
| 21 | a non-UTF-8 diff crashed the loop | — | errors="surrogateescape" in common.git, federation.fgit, patch files; selftest latin1 |
P |
| 22 | hub merge broke a test only s1 ran; s1 rejected 57/63 and stopped | GATE REJECTS ALL |
merge.sample adds gate.cheap_suites on every node; scaling-out.md section 6 |
P, D |
| 23 | selftest && commit chained after tail committed with 3 failures |
— | selftest exit code = failure count; SKILL.md Verification ("read the exit code") | W |
Refresh and process hygiene
| # | what happened | signal | handled by | kind |
|---|---|---|---|---|
| 24 | full refreshes grew to 1-2 h and paused merging; a self-made tests/ commit set one off | SIGNALS REFRESHING with its age |
full_every 200; new/changed suites refreshed alone (merge.refresh_suites) |
P |
| 25 | killing the loop orphaned test children (ppid 1, 4 cores); pkill matched its own shell | ps shows test runner processes with no loop |
swarm.py stop (pid file + kills processes whose cwd is the gate tree); selftest |
P |
| 26 | background jobs capped at 2 h; an unspecified timeout gave 30 min | loop gone at a check-in | --max-minutes 110; SKILL.md Launch (timeout: 7200000, relaunch at check-ins) |
P, W |
| 27 | a subagent's background validation died with the subagent | — | SKILL.md failure modes (long runs under the hub or foreground) | W |
| 28 | worktrees of dead workers piled up after kills | df |
adopt live workers by pid; stale-worktree sweep at start; selftest | P |
Resources
| # | what happened | signal | handled by | kind |
|---|---|---|---|---|
| 29 | CPU-bound from the start (load 10-22 on 4 vCPU); siblings planned late | log THROTTLE, SIGNALS CPU-BOUND |
run._loop, run.signals; SKILL.md Preflight 2; references/scaling-out.md |
D, W |
| 30 | disk full at ~12:20: /tmp scratch 14 GB, stale worktrees 5.6 GB; looked like a git error | log DISK, SIGNALS DISK LOW, status disk |
scratch deleted in run.reap; sweep at start; run.min_free_gb stops launches; preflight |
P, D |
| 31 | PyPy 2.1x faster on large inputs, 1.8x slower on small; cache keys with worktree paths; version pin | — | gate.compat_command; project-setup.md "Hygiene" |
P, W |
Federation
| # | what happened | signal | handled by | kind |
|---|---|---|---|---|
| 32 | hub looked dead when idle: partition exhausted, "polled" stamp only moves on change | PARTITION EXHAUSTED; log IDLE; fed-status tip age |
run.signals, run._loop, federation.status wording; scaling-out.md 2 |
D, W |
| 33 | idle siblings on inherited Opus, ~$1.40 per check-in | — | scaling-out.md 5 (create_session model), 7 (stand down) |
W |
| 34 | s2: 21/21 rejections were conflicts; the hub had fixed the same mbedtls cause | conflicts on ingest from one sibling | preflight refuses --federate without --only; sibling brief "work only this partition" |
P, W |
Permissions and guards
| # | what happened | signal | handled by | kind |
|---|---|---|---|---|
| 35 | push-policy guard blocked transport branches until hcc/ was allowed |
guards: push_policy deny |
scaling-out.md 3 (federation.prefix in an allowed namespace) |
W |
| 36 | classifier denials: "Shared Scratch Sweep" (subagent deleting /tmp), "Modify Shared Resources" (relaunch after editing the ledger), "Out-of-Place Publication" (sibling ledger push) | an auto-mode denial | cleanup runs inside the loop (run.reap, start sweep); SKILL.md failure modes; scaling-out.md 7 |
P, W |
| 37 | question_build guard blocked builds after an answered question (fixed since) |
a guards: deny whose stated reason does not match the situation |
SKILL.md failure modes | W |
| 38 | a peer session claimed "Oskar merged PR #99" | — | SKILL.md failure modes (verify merged_by and branch state) |
W |
Measurement and reporting
| # | what happened | signal | handled by | kind |
|---|---|---|---|---|
| 39 | model comparisons saturated three times | both arms solve nearly all | compare select samples the abandoned tail at HEAD |
P |
| 40 | sibling ledgers live in their containers | — | swarm.py fed-export-ledger at stand-down, with approval; scaling-out.md 7 |
P, W |
| 41 | stats framework | — | swarm.py stats (timeline with events, outcomes by kind, spend, suites); swarm.py event |
P |
| 42 | claims made without a check | — | SKILL.md Verification ("report only from checks run after the last edit") | W |
| 43 | a worker's background-task output filled 4.3 GB under Claude Code's per-cwd temp dir (/tmp/claude-<uid>/<cwd>), which scratch cleanup didn't cover |
DISK LOW | run.drop_claude_tmp on reap and in the start sweep |
P,D |
| 44 | a full refresh after 200 merges found 82 regressions the gate's random 80-test sample had missed; the bisected culprit sat 256 commits back and could not be reverted | log quick refresh found N regressions; status quick refresh: line; SIGNALS QUICK REGRESSIONS |
merge.quick_refresh every gate.quick_every (25) merges over gate.quick_suites, merge.bisect(since=) bounded to the merges since the previous quick refresh; selftest "quick refresh bisects over 1 merge" |
P, D |
| 45 | the hub was killed between pushing the federation state commit and saving its parent, so every later state push was non-fast-forward (16:58Z-20:33Z) | fed push ... failed log lines |
federation.hub_publish chains onto the fetched remote tip |
P,D |
| 46 | the queue drained at 20:12Z with merges after the last full refresh, and the idle loop never checked them; the end-of-run measurement found regressions in several suites; one merge (enum constants typed unsigned) took TinyCC from 333/333 to 35/333 | log queue empty; N merges since the last full refresh, refreshing |
gate.idle_refresh (default on): run does a full refresh before idling; selftest "queue drained with unrefreshed merges" |
P, D |
| 47 | the project's own unit selftests were not part of the gate, so 8 of 710 broke during the run unnoticed | python3 -m <pkg>.selftest at HEAD |
set gate.compat_command to run the project's fast unit tests next to the compat check; SKILL.md failure modes |
W |
| 48 | 104 failures in suites no late round had re-measured (Redis, Mbed TLS, QuickJS) were records from old commits; the cleanup round's first 25 workers found them already passing, said so in notes, and were counted as failed attempts | DONE ... stale; log recheck N cluster members ...: N now pass |
worker status stale (schema + prompt): run re-measures the cluster at main, not an attempt; selftest "worker reports stale" |
P, D |
| 49 | each full measurement ran serially on the hub (about 2 h on 4 vCPU; Mbed TLS's driver runs its programs one at a time at load 1), and two were abandoned partway when fixes landed: about 4 h of the run's last stretch | wall clock; load ~1 during a long suite | fan the final measurement out: siblings each measure a share of the suites at one pinned commit and push the JSON to a branch; pin only after the last fix (references/scaling-out.md) | W |
| 50 | with every suite in scope, each gate run sampled whole-program suites and rebuilt them (about 15 min per gate) while the tail was six clusters | gate log silent for 15+ min; tests/run.py --suite <all whole-program suites> in ps |
for a tail of a few clusters, stop the loop and dispatch one Agent-tool worker per cluster in a worktree, then gate once | W |
| 51 | from 11:50Z Mbed TLS failed 3,340 of 11,970 tests (an asm change put rbx in the register pool while the "b" constraint still meant any register) and nothing noticed for 14 hours: no late round dispatched Mbed TLS, so no gate sampled it and the partitioned refreshes skipped it | only the final all-suite measurement | keep one node's full refresh covering every suite even when dispatch is partitioned (gate.cheap_suites covers only the cheap ones); for a regression across hundreds of commits, bisect k-ary in parallel worktrees (212 commits in 6 min) |
W |
Model measurements (escalation runs 1-3)
Same prompt, budget and pinned base; each patch graded in isolation (a representative flips, nothing in smoke + a passing sample regresses).
| run | clusters (after base check) | Haiku | Haiku high | Sonnet medium |
|---|---|---|---|---|
| 1: 40 random failing clusters | 40 | 76/80 runs, $0.81, $0.011/solve | — | 80/80, $6.01, $0.075/solve |
| 2: clusters Haiku had failed | 4 (of 18 selected) | 8/8, $0.10, $0.012/solve | 8/8, $0.18, $0.023/solve | 8/8, $0.61, $0.077/solve |
| 3: the tail the swarm abandoned | 10 (of 33 selected) | 19/20, $0.22, $0.012/solve | 20/20, $0.35, $0.018/solve | 20/20, $1.74, $0.087/solve |
Over 54 clusters, cold Sonnet solved 2 that cold Haiku did not (run 1, c06 and c16).
Haiku feature-mode workers in the live swarm later fixed both, for $0.054 and $0.022:
the retry path (notes from failed attempts, feature budget, effort ladder) closed both
gaps. Run 3's ten clusters were the swarm's abandoned tail, and Haiku solved them cold
once the harness bugs that parked them were fixed: that tail was harness-made. Scope:
one compiler workload, small n. Sources: oaustegard/experiments 9b1d4d0,
haiku-cc/RESULTS.md; Muninn memories 5a6b348d, 8bcf09e0, fd5ae046 (supersedes ad0c7ea8).