Repository navigation
ISS-15038: Run Claude cloud validation at fleet scale - #457
Merged
Merged
Conversation
… the fleet launch guard
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
apps/api/.env.testholding test AWS keys. symphony-alpha's CI step sets no AWS keys (it setsAWS_REGIONandAWS_EXECUTION_ENVblank), and the repository's key schema requires an access key starting withAKIA. The contract contradicted both, so every API test lane was refused.What changed
Queue and capacity
pseach) run on an unlocked snapshot. A run that ends past its queue deadline still releases the account.CLOUD_VALIDATION_CAPACITYgoes 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.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
git fetchof the tooling commit (the request'sruntimeTool, 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.grepcall, so timing lines cannot push it past the cut.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
apiEnvironment: everyAWS_setting removed, thenAWS_REGIONandAWS_EXECUTION_ENVset blank, as in pr-test.yml's "Run tests" step. A real-process test shows a host AWS key never reaches the lane.CLAUDE_CODE_REMOTE, so the repository's own bootstrap knows it runs in a Claude cloud session.Time limits
RUN_WALL_MSfollows, so the standing routine is kept, not queued for removal, while a run up to 100 minutes old is still marked started.test:e2ecommand 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
The Node Tests job runs as three shards (node's
--test-shard, 113, 112 and 112 of the same 337 files). One job took 14.4 to 17.5 minutes and hit its 20-minute timeout on ISS-15030: Fix cloud check false reds, the 100-file merge refusal and the fleet launch guard #455 and ISS-15021: Ask for each ticket's project, show context sizes, and sweep finished worktrees #456;timeout-minutesis unchanged. Shard 1 took 7.7 minutes on a loaded dev machine. The required checks (Lint, Type Check, Tests) are unaffected.The two tests that count or name ci.yml's jobs (ci-job-shape and pr-facts) now expect fifteen jobs with the three Node Tests shards; ci-job-shape also checks that the shard rows differ only in the shard number.
vibe 1.1.121 in both vibe plugins, and vibe-closedloop-provider 1.0.11 for its
apiEnvironmentrecipe. Generated copies were rebuilt withnpm run build.Not changed
CLOUD_LANE_MAX_MINUTESstays 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.CLOUD_ROUTINE_HOURLY_LIMIT.How it was tested
Each behavior change has a test that failed on the unfixed code. Focused files, run one at a time:
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:uv run pytest plugins/)npm test1044 of 1046 passed, 1 skipped, 1 failed: main-sync.test.ts:783 timed out at 20 sNone 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):
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_TIMEOUTit 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.localabsent 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: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).
aria-selectedafter a drag, :163The 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.
CLOUD_ROUTINE_HOURLY_LIMITCLOUD_VALIDATION_QUEUE_TIMEOUTapiEnvironment, and provider 1.0.11 declares itmaxWallMsboundSeventeen cloud sessions were used.