Skip to content

ISS-15030: Fix cloud check false reds, the 100-file merge refusal and the fleet launch guard - #455

Merged
shafty023 merged 1 commit into
mainfrom
feat/iss-15030-cloud-check
Dec 3, 2026
Merged

shafty023 merged 1 commit into
mainfrom
feat/iss-15030-cloud-check

Conversation

@shafty023

Copy link
Copy Markdown
Collaborator

What was wrong

cloud-worker.mjs check reported a working cloud setup as broken. The capability proof expires after 30 minutes, and once it did, lane-tools failed with CLOUD_SETUP_UNVERIFIED and told the operator to paste vibe's generic setup script. The environment already ran a provider script that installs more than the generic one, and the last proof had measured every tool present, so pasting the generic script would have removed tools from every cloud session on the account. Other parts of the check were misleading too. environment-setup said "not exercised" right after a run had succeeded. The api row said "result success" when claude -p had failed to refresh its OAuth token. A cloud-capabilities validate request without repository was refused, though the header says the field is optional.

Two guards also refused correct work. The merge guard treated any pull request with more than 100 changed files as a UI change, because gh pr view lists at most 100 files. #454 (260 files, none of them UI) was refused. The fleet launch guard refused every Agent launch from a fleet-orchestrator chat that was not a vibe start or a helper, read-only workers included.

ISS-15030 was finished outside vibe at the operator's request, so vibe's own handoff gate did not run on it.

What changed

Cloud check (cloud-environment.mjs, cloud-validation-environment.mjs, cloud-worker.mjs)

  • AC 1: lane-tools reads the last capability proof at any age. The 30-minute limit still applies to admission (admitCloudEnvironment), which is unchanged. If a stale proof measured every tool present, the row is not a failure. It says the setup "needs a fresh capability run before capability lanes" and gives no setup script.
  • AC 2: the setup script is printed only when a tool was measured missing or this account and environment were never measured. It comes from cloudSetupScript, which returns the installed edition's script: the provider's own script in the ClosedLoop build, vibe's template in the generic plugin.
  • AC 3: a validate request with no repository takes it from the worktree's origin before the capability lane check. This applies to validate, the brief and abandon. A different origin is still refused.
  • AC 4: the api row names the error claude -p reported (its result text) when the run failed, instead of "result success".
  • AC 5: environment-setup passes when the routine's last run succeeded.
  • AC 6: a new chrome-account row says a script cannot verify which Claude account Chrome and the Claude in Chrome extension are signed in to, and names the manual check. Its status is unknown, never a pass, so it does not fail the check.

Guards

  • AC 7 (hooks/merge-guard.mjs): when gh pr view lists fewer files than changedFiles, the guard reads every page of gh api repos/<o>/<r>/pulls/<n>/files and decides from that list. The list counts as partial, and so as changing UI, only when that listing fails or comes back short.
  • AC 8 (hooks/agent-guard.mjs): in a fleet-orchestrator chat, an Agent brief declares Worker role: read-only, operational or writer, and Tickets: <ids>. Read-only and operational workers start. A brief with no role counts as a writer. A writer starts only when the program's rulings.md has a dated operator ruling (operator message or AskUserQuestion, not ticket) with the operator's quoted words naming each of its tickets. Vibe starts and helper briefs pass as before. A raw codex exec from Bash is still refused.

vibe 1.1.119 in both vibe plugins, their READMEs and the two Python version contract tests. The ClosedLoop edition was rebuilt with npm run build, and the vibe-workers build left its dist unchanged.

Criteria not met or partly met

  • AC 2, generic edition: the generic plugin names no provider, so it cannot print the provider's script. Per the orchestrator's ruling, it gives no paste advice when the last proof measured every checked tool present. When it does give advice, it prints its own template.
  • AC 6: only the "cannot verify" outcome is built and tested. No reliable way was found for a script to read the Claude account in Chrome (encrypted cookies) or in the extension (extension storage). The operator accepted a row that names the manual check.
  • AC 4: the failing stream in the test is inferred from the reported message. No real failing stream was captured. The test covers a non-zero exit, is_error, and both together.
  • AC 8: the live program's rulings.md lines use the older - Ruling (<who>, <channel> <time>): "..." form. The guard reads the dated - Ruling YYYY-MM-DD (operator message: <source>): "<words>" ... form that --separate-reason and program-change use. Until a dated line naming a ticket is added, the next plain writer is refused. Worker role: and Tickets: are explained only in the refusal message; no skill text was changed.
  • ISS-15022 is left out by the orchestrator's ruling. It is the next unit.

Test changes

  • cloud-setup-proof.test.mjs AC-102 expected a stale all-present proof to fail with paste advice. AC 1 changes that behavior, so the case now expects an unknown row asking for a fresh capability run. A stale proof with a tool measured missing still fails.
  • cloud-environment.test.mjs lists the new chrome-account row.
  • measuredSetupTools had no production caller left, so it was removed. Its two test callers read lastSetupMeasurement with the same freshness rule.

How it was tested

Every criterion has a test that failed on the unfixed code: cloud-check-rows.test.mjs (AC 1, 2, 4, 5 and 6, on both editions for AC 1 and 2), cloud-capability-probe.test.mjs (AC 3, through validate, the brief and abandon), merge-guard.test.mjs (AC 7: a 101-file non-UI pull request, a 101-file pull request whose 101st file is UI, and a failed listing), and agent-guard.test.mjs (AC 8: read-only and operational workers, a writer with a matching ruling, without one, with a ticket-channel ruling, with one of two tickets ruled, with no rulings.md, a vibe start, a helper, and the hook entry both passing and refusing).

Focused files run on the first machine: cloud-worker, cloud-environment, cloud-setup-proof, cloud-validation-recovery, cloud-check-rows, cloud-capability-probe, cloud-creation-prevention, agent-guard, merge-guard, pre-tool-use, guard-install, rulings-check, visual-qa-merge-binding, visual-qa-overflow-merge-checks. All passed. vibe_generic_scan.py check passes, and instruction-words.mjs matches the changelog (the only Markdown change is the README Version line, net 0 words).

Lanes, as ci.yml runs them, on a second machine:

Lane Tree Result
plugin-version-bump 9fc24d30 pass
lint (ruff) 9fc24d30 pass
typecheck (pyright) 9fc24d30 pass
test (pytest plugins/) 9fc24d30 2892 passed, 3 skipped (3 min 18 s)
plugin-manifest-versions 9fc24d30 62 passed
tools-ts design-inventory, code-review-cost, guided-manual-qa, erd-diagram f947a22b 393, 43, 50, 35 passed; dist unchanged
tools-ts vibe-closedloop-build f947a22b 27 passed; edition rebuild unchanged
vibe-eval-t0 f947a22b vibe-bench 274 passed, evals/codex/test_run.py 80 passed
node-tests f947a22b 3921 passed, 1 skipped, 1 failed (12 min 14 s); the failure is fixed in 9fc24d30, see below
node-tests, the six files that mention CHANGELOG 9fc24d30 209 passed
tools-ts vibe-workers f947a22b 47 files, 1045 passed, 1 skipped; dist unchanged (12 min 33 s)

The tested head is commit adc206c, tree 9fc24d30. Two earlier proofs differ from it by version text only:

  • Tree 61b5d930 lacked the two Python version pins and the two README Version lines. On it, pytest failed exactly those two pins.
  • Tree f947a22b (commit f0f9d51a) differs from 9fc24d30 by one CHANGELOG.md line. The word count line became "Across all plugin Markdown, including eval prompts and graders, the release is about 0 words longer than v1.1.118. The count covers the source files in plugins/vibe and excludes the generated ClosedLoop edition." On f947a22b, node-tests failed only instruction-words.test.mjs "the current release names the full Markdown scope of its word count", which requires that wording.

The rows on f947a22b are reused for 9fc24d30 because those lanes do not read that CHANGELOG.md line. Among the Node tests, only instruction-words.test.mjs reads the repository's CHANGELOG.md; five other files mention it only in fixtures or comments, and all six were rerun on 9fc24d30. The tools-ts and T0 lanes read CHANGELOG.md only for a ### vibe v<version> heading check in vibe-bench fixtures, and the heading did not change.

An earlier full node-tests run on 61b5d930 hit CI's 20-minute limit while the second machine's load was 16 to 24 on 18 cores. Before the cut it showed failures in fleet-shipment.test.mjs and protected-write-guard.test.mjs. Run alone, both files pass on f947a22b and on the base 2fc9d54, and both passed in the full f947a22b run.

@shafty023
shafty023 merged commit b1401c5 into main Dec 3, 2026
25 of 26 checks passed
@shafty023
shafty023 deleted the feat/iss-15030-cloud-check branch December 3, 2026 00:25
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