Index of every page on this site: llms.txt
All skills
oaustegard avatar

/swarming-to-green

@b9eb735
Run it yourself

Runs a long swarm of hundreds to thousands of cheap headless coding workers that drive a large failing-test backlog to green. Failures are clustered by signature, each worker fixes one cluster in its own git worktree, a serial no-regression merge gate lands the fixes, the loop resumes across restarts for hours, and it federates across sibling sessions over git branches when one container's CPU is not enough. Use for "fix these thousands of failing tests with a Haiku swarm", "drive the test suite to green with hundreds of agents", "build this compiler or interpreter against a conformance suite", "launch, relaunch or check in on the swarm loop", "the swarm is stuck, idle or rejecting everything", "parallel agents fixing tests keep hitting merge conflicts and regressions", "add sibling containers to the swarm", or "compare models on the tail the swarm could not fix". Ships the harness, a per-project TOML config, a fake-worker selftest, check-in signals and the 2026-10-12 haiku-cc failure catalogue.

Use this Skill: https://skilld.dev/gh/oaustegard/claude-skills/swarming-to-green

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesrun-2026-10-13.md

≈1.2k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Harness assumptions the 2026-10-13 decompilation run broke

Haiku 5.5 workers did matching decompilation: C source that gcc 13.3 at -O2 compiles to the same code bytes as every function of two targets' objects. One suite per translation unit, one test per function, three stages (compile, missing, match), a diff category in the reason and a byte-match fraction (frac) per test. Targets: Ali Rudi's neat* troff suite and C compiler (obscure, 1,070 functions) and Lua 5.4.7 (famous, 698). Results and the contamination comparison: oaustegard/experiments swarm-decomp/README.md. Kind: P prevented in code, D detected by a named signal, W warned in the runbook.

# what happened signal handled by kind
1 every failure starts in one stage (missing: one stub per function) and later nearly all sit in match, the category living in the reason; doctor and ONE STAGE called the runner broken doctor WARN, SIGNALS ONE STAGE tests.one_stage_ok (0.2.0); selftest P
2 workers need Bash and the answer (the targets' source) is on the internet; the harness could only allow, not deny — worker.deny -> claude --disallowedTools (0.2.0; dispatching-subagents 0.2.0); selftest + fanout test P
3 at the start the only cluster per TU is "not written": one worker per TU, the rest of the TU waits queue shows one item per suite project side: runner buckets stub reasons by function size (small/medium/large), up to three parallel clusters per TU W
4 .o in paths.junk made preflight refuse tracked fixtures (target.o) preflight "build artefacts are tracked" config: keep fixtures out of junk W
5 tests are not independent: a static function exists in the object only once a caller is written, so workers forced unused statics out with __attribute__((used)), noinline, noipa (31 files in 17 minutes); those also block the .part/.isra clones the targets have sample merged diffs at the first check-in project side: the runner fails a TU on gcc-steering attributes and pragmas; 14 of 216 matches lost when stripped P (project)
6 a worker's result JSON held a raw newline inside a string; strict parsing recorded the finished worker as "no result" log no result: output not JSON: Invalid control character strict=False in read_json and in the fanout's out-file check (0.2.1); fanout test P
7 the gate merged only flips; a caller cannot match until its static callee exists and the callee is not emitted until a caller exists, so 125 partial workers (39% of spend at the time) were thrown away, 103 of them naming a missing callee top rejection/failure reasons: Nx worker reported partial; partial notes quoting frac partial-credit gate mode gate.partial_credit/partial_min_gain (0.3.0); known.json keeps the field; 2 selftest cases P
8 --max-usd stops launches, not spend: in-flight workers (feature workers at up to $3) overran a $36 cap by $5 at concurrency 16 spend: in status above the cap launches stop when spend plus in-flight workers at the recent mean cost reach the cap (run.projected_spend); selftest P
9 workers in different size clusters of one TU each wrote a shared callee; conflict hot spots were function files, not registries conflict hot spots naming function files rebase tasks (existing) D
10 workers invented the result path (/home/user/_results/<id>.json) and were denied the write permission denials > 0; the denial's file_path none: the retry wrote the real out path W
11 status's pass-count table prints one column per suite: unreadable at 101 suites — read known now or sum known.json per target W
12 the effort ladder was hard-coded at two rungs (configured effort, then high), while the CLI takes xhigh and max; the tail stalled at high merges per hour falling while high workers fail worker.effort_ladder / worker.feature_effort (0.4.0), rung counted per test over all time so unpark keeps it; selftest P
13 LAUNCH lines tagged only high, so xhigh/max launches showed no effort — label names any effort (0.4.1) P

Effort rungs on the decompilation tail

Dollars per function flipped, by the rung of the worker whose gate flipped it, both targets: default $0.039 (696 flips, 993 workers), high $0.198 (253, 622), high feature $0.579 (135, 342), xhigh $1.30 (31, 296), max $3.90 (20, 214). Each rung only saw what the rungs below left, so these are marginal prices, not the same task at five efforts. The neat* tail Haiku max could not clear: 274 functions, median 111 instructions, 268 with a loop; solve rate by size fell from 100% under 16 instructions to 0 of 34 at 384 or more. Final: neat* 796/1,070, Lua 679/698, $281.13 of worker spend, 2,489 workers, 862 merges.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

2 warnings5d3 checks · Risk SAFE
  • Gen Agent Trust Hub5d

    This skill provides a specialized harness for running large-scale 'swarms' of AI agents to fix software bugs. It automates git worktree management, test execution, clustering of failures, and the merging of verified fixes. It also supports federated execution across multiple containers using Git for state synchronization.

  • Socket5d

    1 alert: gptAnomaly

  • Snyk5d

    Risk: MEDIUM · 2 issues

Signed by skilld at b9eb735. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 weeks ago
metadata
{
  "version": "0.7.1"
}

README badge

README badge for oaustegard/claude-skills/swarming-to-green