Repository navigation
ISS-15030: Fix cloud check false reds, the 100-file merge refusal and the fleet launch guard - #455
Merged
Merged
Conversation
… the fleet launch guard
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.
What was wrong
cloud-worker.mjs checkreported 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" whenclaude -phad failed to refresh its OAuth token. A cloud-capabilities validate request withoutrepositorywas 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 viewlists 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)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.cloudSetupScript, which returns the installed edition's script: the provider's own script in the ClosedLoop build, vibe's template in the generic plugin.repositorytakes it from the worktree's origin before the capability lane check. This applies tovalidate, the brief andabandon. A different origin is still refused.claude -preported (itsresulttext) when the run failed, instead of "result success".chrome-accountrow 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
hooks/merge-guard.mjs): whengh pr viewlists fewer files thanchangedFiles, the guard reads every page ofgh api repos/<o>/<r>/pulls/<n>/filesand decides from that list. The list counts as partial, and so as changing UI, only when that listing fails or comes back short.hooks/agent-guard.mjs): in a fleet-orchestrator chat, an Agent brief declaresWorker role: read-only,operationalorwriter, andTickets: <ids>. Read-only and operational workers start. A brief with no role counts as a writer. A writer starts only when the program'srulings.mdhas 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 rawcodex execfrom 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
is_error, and both together.rulings.mdlines use the older- Ruling (<who>, <channel> <time>): "..."form. The guard reads the dated- Ruling YYYY-MM-DD (operator message: <source>): "<words>" ...form that--separate-reasonandprogram-changeuse. Until a dated line naming a ticket is added, the next plain writer is refused.Worker role:andTickets:are explained only in the refusal message; no skill text was changed.Test changes
cloud-setup-proof.test.mjsAC-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.mjslists the newchrome-accountrow.measuredSetupToolshad no production caller left, so it was removed. Its two test callers readlastSetupMeasurementwith 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), andagent-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 norulings.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 checkpasses, andinstruction-words.mjsmatches the changelog (the only Markdown change is the READMEVersionline, net 0 words).Lanes, as
ci.ymlruns them, on a second machine:evals/codex/test_run.py80 passedThe tested head is commit adc206c, tree 9fc24d30. Two earlier proofs differ from it by version text only:
Versionlines. On it, pytest failed exactly those two pins.CHANGELOG.mdline. 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 inplugins/vibeand excludes the generated ClosedLoop edition." On f947a22b, node-tests failed onlyinstruction-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.mdline. Among the Node tests, onlyinstruction-words.test.mjsreads the repository'sCHANGELOG.md; five other files mention it only in fixtures or comments, and all six were rerun on 9fc24d30. The tools-ts and T0 lanes readCHANGELOG.mdonly 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.mjsandprotected-write-guard.test.mjs. Run alone, both files pass on f947a22b and on the base 2fc9d54, and both passed in the full f947a22b run.