Skip to content

ISS-15038: Run Claude cloud validation at fleet scale - #457

Merged
shafty023 merged 9 commits into
mainfrom
feat/iss-15038-cloud-scale
Dec 3, 2026
Merged

shafty023 merged 9 commits into
mainfrom
feat/iss-15038-cloud-scale

Conversation

@shafty023

@shafty023 shafty023 commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Note

ISS-15038 was finished outside vibe, as a plain worker, at the operator's request. vibe's own gate did not run on this change.

What was wrong

Claude cloud validation could not run symphony-alpha's e2e and test suites at fleet scale.

  • A queued validation failed with "cloud validation queue state is busy" after waiting 5 seconds for the queue lock, while its own deadline had minutes left (591 s and 32 s in the queue).
  • One account ran one validation at a time, so fleet requests queued for about 30 minutes.
  • Sonnet could not copy the 15 to 20 KB inline reporter payload, so a Desktop run whose five lanes all exited 0 returned no result.
  • The managed runner printed its result record after the lane timing lines, so the run log's cut dropped it, and passing lanes were refused with "requires machine outcome evidence".
  • One Desktop spec resolves to five lanes once validate adds its setup lanes. The run log's outcome record holds two, so every such request without a hand-picked result artifact was refused before launch.
  • An API test lane needed a committed apps/api/.env.test holding test AWS keys. symphony-alpha's CI step sets no AWS keys (it sets AWS_REGION and AWS_EXECUTION_ENV blank), and the repository's key schema requires an access key starting with AKIA. The contract contradicted both, so every API test lane was refused.

What changed

Queue and capacity

  • Every queue change waits for the lock until the request's own deadline, with a 5-second floor. Launcher liveness checks (one ps each) run on an unlocked snapshot. A run that ends past its queue deadline still releases the account.
  • CLOUD_VALIDATION_CAPACITY goes from 1 to 7: seven Sonnet sessions ran at once on the pinned environment and none was refused. Seven is the most tried, a lower bound. Each slot is its own one-run queue; slot 0 keeps the existing queue file. A request waiting behind a long run moves to a slot that frees.
  • The ISS-14476 tests that exercise a full account now pass a capacity of 1, which is what filled the account before. The ten-request test keeps that meaning, and a new test pins seven at once.
  • A run Claude refuses as rate-limited (HTTP 429) fails with CLOUD_ROUTINE_HOURLY_LIMIT, naming the documented 30 runs an hour per routine and when to retry, and is never recorded as started. vibe does not count runs before a launch: this machine's routine ledger holds 41 runs started on one routine between 02:18 and 03:18 UTC on 2026-11-24 (37 completed), and every hour from 01 to 04 UTC that day had 24 to 27, with no refusal. A count of 30 would have held back work Claude accepted, so Claude's own refusal is the only limit.

Outcome transport

  • The reporter installs with a short git fetch of the tooling commit (the request's runtimeTool, else the commit Claude Code recorded installing this vibe version, else the commit under test when the request validates the tooling repository and that commit holds the same reporter bytes), checked against the installed bytes. The install and reporter commands are each under 1,000 characters, down from 15,380. The inline payload remains only when neither commit is known.
  • The managed brief reads the runner's record in its own grep call, so timing lines cannot push it past the cut.
  • validate picks a fresh vibe-validation-results/<commit>-<digest> outcomes branch itself when the resolved lanes overflow the log record. The name is fixed by the request, so a later poll of the same receipt imports from it.

API test lanes

  • An API test lane needs no committed fixture. The host runs it with the provider recipe's apiEnvironment: every AWS_ setting removed, then AWS_REGION and AWS_EXECUTION_ENV set blank, as in pr-test.yml's "Run tests" step. A real-process test shows a host AWS key never reaches the lane.
  • A setup lane receives CLAUDE_CODE_REMOTE, so the repository's own bootstrap knows it runs in a Claude cloud session.

Time limits

  • One Sonnet session on the pinned environment ran 117 minutes with no cutoff (cse_01H58iagWGazkKdUCDGCUQEh, 13 nine-minute tool calls, stopped on request). A run, and a validation's queue wait, may now last 100 minutes instead of 35, under that floor. RUN_WALL_MS follows, so the standing routine is kept, not queued for removal, while a run up to 100 minutes old is still marked started.
  • One lane may run 60 minutes instead of 15. The whole Desktop e2e suite ran as one cloud lane in 22.8 minutes on a 4-core VM, build included (15.3 minutes on CI's 8 cores).
  • A cloud Desktop lane may name no spec: the bare Desktop test:e2e command runs CI's own suite step (pre-suite steps, D-Bus and keyring wrapper, result check, 4 workers), with the shard arguments dropped. Before this, only a single spec was accepted.

CI

vibe 1.1.121 in both vibe plugins, and vibe-closedloop-provider 1.0.11 for its apiEnvironment recipe. Generated copies were rebuilt with npm run build.

Not changed

  • CLOUD_LANE_MAX_MINUTES stays 25 for jobs read from a workflow file. Its comment cites a 30-minute limit on one background tool call; the full Desktop lane ended at 22.8 minutes, so that limit is still unmeasured.
  • The account limit on tasks running at once has no published number; seven is measured, not the ceiling.
  • Neither the 30 runs an hour per routine nor the 100 an hour per account is counted here. Other machines' routines are not visible, and the ledger above shows the per-routine figure was not enforced; a rate-limited refusal from Claude surfaces as CLOUD_ROUTINE_HOURLY_LIMIT.
  • A request with no runtime tool and no Claude install record for this vibe version (a development checkout, or a Codex-only machine) still carries the inline payload.

How it was tested

Each behavior change has a test that failed on the unfixed code. Focused files, run one at a time:

File Result
cloud-validation-admission 36 passed
cloud-validation-admission-kill 2 passed
cloud-outcome-transport 16 passed
cloud-validation-environment 14 passed
cloud-validation-host 42 passed
cloud-worker 49 passed
cloud-creation-prevention 14 passed
cloud-capability-probe, cloud-validation-e2e, -report, -recovery, cloud-workflow-brief, cloud-workflow-runner, cloud-docker-daemon, cloud-environment, cloud-routines, cloudcheck-proof, cloud-validation-frozen all passed
vibe generic scan, pr-takeover and ws8 load contracts (pytest) passed

Every ci.yml job, run in full at 3ad9347 the way CI runs it (Node 22, or 24 where CI uses it; env -i; zsh installed), on the heavy-test machine through its heavy slot at load 19 to 41:

Job Result
Plugin Version Bump (CI's script) passed: vibe and vibe-closedloop 1.1.120 to 1.1.121, vibe-closedloop-provider 1.0.10 to 1.0.11
Plugin Manifest Versions passed
Lint passed
Type Check passed
Tests (uv run pytest plugins/) passed, 314 s
Vibe Eval T0 passed
Node Tests 1/3 (113 files) 1336 of 1338 passed, 1 skipped, 1 failed: watcher-claude-usage.test.mjs:110, exit 143 at its 12 s spawn limit. Alone at 3ad9347: 9 of 9 passed
Node Tests 2/3 (112 files) 1307 of 1308 passed, 1 failed: app-server-worker-session.test.mjs:1782, then the file's process never exited. Alone it fails and hangs the same way at 2cc2066 and 3ad9347 (48 passed, 1 failed, then no exit within 180 s): ISS-15048, a main defect
Node Tests 3/3 (112 files) 1297 of 1320 passed, 22 failed, 1 cancelled, all in watcher.test.mjs (20) and fleet-capture.test.mjs (3). Alone at 3ad9347: watcher 64 of 64, fleet-capture 17 of 17
TypeScript: design-inventory, code-review-cost, guided-manual-qa, erd-diagram, vibe-closedloop-build passed, each dist check clean
TypeScript: vibe-workers typecheck passed, dist check clean; npm test 1044 of 1046 passed, 1 skipped, 1 failed: main-sync.test.ts:783 timed out at 20 s

None of the failing files is in this diff. Every Node Tests failure is load timing, except the ISS-15048 hang, which main has too. On that machine, slot-lock.test.mjs:161 (red in CI shard 2 on the first push) passed in 149 ms.

main-sync.test.ts is load timing, measured in Claude cloud on a clean 4-core VM. The whole vibe-workers job at 3ad9347 passed, 47 of 47 files (capabilities cse_01H58iafJabgA7uvaeMjSXpq, lane cse_01H58iageRE77rPcNcLVSVMu):

Test Cloud, 3ad9347 the heavy-test machine alone, 2cc2066 the heavy-test machine alone, 3ad9347
main-sync :599 (limit 15 s) 5.2 s 12.3 s 18.0 s
main-sync :783 (limit 20 s) 8.1 s 15.1 s 29.2 s
main-sync :809 (limit 15 s) 3.0 s 6.4 s 17.3 s
symlink provenance 3.0 s 4.7 s 10.4 s

main-sync's import closure is 162 files, and the only one in this diff is cloud-validation-host.mjs. main-sync only imports it, through pre-pr-lanes.mjs, then workflow-lane-replay.mjs, then cloud-workflow-runner.mjs:14. This diff makes it 40 lines shorter, and the HOST_TIMEOUT it raises bounds only real workflow-lane spawns, which the fixture's stub pnpm never makes. No timeout was raised.

Measurement: six heartbeat sessions launched 30 seconds apart all ran together with a seventh, the duration probe: cse_01H58iagixaiYxaLKWAi8tzq, cse_01H58iaebWoaUBxK7wprDhCH, cse_01H58iafVjKHHNew73tsYcEJ, cse_01H58iacg8JfytzdBfyQvmfx, cse_01H58iah25UcRZLU85icXi5s, cse_01H58iagK5PXKJM6UC7ES1Zr and cse_01H58iagWGazkKdUCDGCUQEh. End proof on symphony-alpha at 059a73ba (the branch that leaves apps/api/.env.local absent in a Claude cloud checkout), with this branch as the runtime tool. Web, Desktop and API were submitted together on Sonnet and ran at once:

Lane Session Time Result
Containerized web spec cse_01H58iadKU82Bhzk9s4tDhMs 19.2 min passed
Desktop spec (five lanes, automatic outcomes branch) cse_01H58iacuvmNZCC6KUP9jzbo 7.2 min passed
API integration cse_01H58iag5L9TNXVvZRCf2Mvo 14.8 min passed

The capability check passed on Opus (cse_01H58iaed1LXj2xKd81DbLtG). On Sonnet (cse_01H58iag7KD1LBPagjEP3oA5) it failed copying the inline reporter payload, because that request validated this repository from a development checkout with no install record; the commit-under-test route above fixes that case.

Full Desktop e2e suite, symphony-alpha 36e6ecc6, tool commit 078e0e5, Sonnet (cse_01H58iag4UozkuYjYfbQj9Pe): 331 passed, 6 skipped, 4 failed, 21.4 minutes in Playwright, 24.9 minutes for the session. The capability check on that tool commit passed on Sonnet (cse_01H58iadWyRA7hznyHLL2Hi7), and so did the one on f9061da (cse_01H58iafGvP4NVz4g4u2z2ph). CI's baseline on 2026-12-02 was 334 passed and 1 failed (inbox-nav.spec.ts:68, which passed here).

Failure Assertion Class
branches-responsive-grid-v2.spec.ts:67 observer events at :88, called from :155 repo: the same test failed in CI on 2026-11-30
iss-10325-grid-row-range-drag.spec.ts:81 row not aria-selected after a drag, :163 cloud environment, likely: 4 cores running CI's 4 workers
iss-10325-grid-row-range-drag.spec.ts:95 same, :163 cloud environment, likely
projects-parity.spec.ts:407 a drag within a Status group cloud environment, likely

The three drag failures did not fail in the CI runs checked and were not rerun alone, so their class is inferred, not proven. None is a vibe tool failure: every lane ran and its record came back through the automatic outcomes branch.

Checks that can refuse work, run against real work

Each check this change adds or moves, run read-only from the candidate commit (3ad9347) and from its base (2cc2066, vibe 1.1.120 as installed) against real work: this week's cloud validation requests on both dev machines (69 request files, 37 of them validation requests: 18 accepted by both, 17 refused by both for the same reason, 2 newly accepted), the live validation queues and routine ledgers on both dev machines, and requests rebuilt on the last three merged heads of each guarded repository.

Check Real target Result Work begun before it existed
CLOUD_ROUTINE_HOURLY_LIMIT the primary dev machine ledger (200 runs, one routine, a 41-run hour); the heavy-test machine ledger (1 run) First draft counted 30 an hour and would have held runs 31 to 41 of that hour. Fixed before the PR: only a 429 from Claude raises it, and a test replays the 41-run hour Nothing is counted, so no earlier run can hold a launch
Queue lock wait and CLOUD_VALIDATION_QUEUE_TIMEOUT the primary dev machine: 4 queues, none active or queued; the heavy-test machine: none No refusal; capacity 1 to 7 and longer lock waits only admit more Slot 0 is the existing queue file, so an entry written by 1.1.120 is still seen; an older process waiting there keeps waiting in order
Desktop lane resolution (bare suite, single spec) 37 requests this week; desktop requests on symphony-alpha df24a734, bbe3863b, ca2dc183 Single-spec requests accepted by both (5 lanes); the bare suite was refused by the base and is accepted now (5 lanes) Loosening only
API test lane environment API request on the same three heads Accepted by both (4 lanes). The fixture refusal is gone; the cloud host refuses only when the provider recipe declares no apiEnvironment, and provider 1.0.11 declares it Before, every API lane without a committed fixture was refused, so no accepted API lane can now be refused
maxWallMs bound 37 requests None refused; the bound widens from 35 to 100 minutes Loosening only
Automatic outcomes branch, and its "branch already exists" refusal 37 requests None refused. It applies only to requests that set no result artifact and whose lanes overflow the log record, which the base refused outright A request that names its own result artifact is unchanged
Reporter fetch and in-cloud hash check Capability runs on f9061da and 078e0e5 (Sonnet) Passed A request with no known tooling commit keeps the inline payload
Node Tests shards in vibe's lane reader r25's 13-lane CI request rebuilt on claude-plugins 2cc2066, b1401c5, 2fc9d54, and on this branch's ci.yml 13 lanes at each merged head under both; 15 lanes (three shards) on this branch under both, so an installed 1.1.120 reads the sharded workflow A request pins its workflow commit and SHA-256, so an existing request keeps its own job list

Seventeen cloud sessions were used.

Queued validations wait for the queue lock until their own deadline, one
account runs up to seven validations at once, and a standing routine keeps
under its 30 runs an hour. The outcome reporter installs from a short fetch
of its tooling commit, the managed record is read in its own call, an
overflowing request gets an outcomes branch, and API test lanes run with the
CI step's environment instead of a committed fixture.
…scale

# Conflicts:
#	CHANGELOG.md
#	plugins/vibe-closedloop/.claude-plugin/plugin.json
#	plugins/vibe-closedloop/.codex-plugin/plugin.json
#	plugins/vibe-closedloop/README.md
#	plugins/vibe/.claude-plugin/plugin.json
#	plugins/vibe/.codex-plugin/plugin.json
#	plugins/vibe/README.md
#	plugins/vibe/tools/python/test_pr_takeover_skill_contract.py
#	plugins/vibe/tools/python/test_vibe_ws8_load_contract.py
… shard Node Tests

A cloud run may now last 100 minutes and one lane 60, from a session
measured running 117 minutes with no cutoff and a full Desktop e2e suite
that takes 15 minutes on CI's 8 cores. The reporter installs from the
commit under test when the tooling repository validates itself and that
commit holds the same reporter bytes. The Node Tests job runs as three
shards of the same discovered files so it stays under its 20-minute
timeout.
The bare Desktop test:e2e command now resolves to CI's own suite step,
with its pre-suite steps, D-Bus and keyring wrapper and result check,
and with the shard arguments dropped so the whole suite runs. A lane
argument must still name exactly one spec.
The whole Desktop e2e suite ran as one cloud lane in 22.8 minutes on a
4-core VM, build included, so the 60-minute lane limit now cites that run
instead of CI's 8-core timing.
The provider recipe changed in this branch (the API test environment in
place of the committed fixture), so its plugin version moves with it.
The repository's ci.yml now declares fifteen lanes: Node Tests is three
matrix rows. The lane definition test pins each row's shard number and
that the rows differ only in it, and the multi-proof carry fixture
carries all three shards with the other scoped lane.
vibe no longer counts a routine's runs before a launch. This machine's
ledger held 41 runs started on one routine in one hour with no refusal,
so the count would have held back work Claude accepted. A run Claude
refuses as rate-limited (HTTP 429) now fails with
CLOUD_ROUTINE_HOURLY_LIMIT, naming the documented cap and when to retry,
and is never recorded as started.
@shafty023
shafty023 merged commit 8b97ed0 into main Dec 3, 2026
15 checks passed
@shafty023
shafty023 deleted the feat/iss-15038-cloud-scale branch December 3, 2026 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant