The gate cannot lock itself out (#7790)
On 2026-11-01 a bug in the live gate could not be fixed through the gate, and landing stopped for about 4.7 days.
- It says so. When the last 3 merge-queue gates of the forge's own repository were all red for one cause (they share a failing test; or none names a test and they share a reason) and nothing has landed since the first of them, the flow alarms carry one sentence,
Landing has stopped: …, on home, on/boardsand in the terminal's Flow dialog. Owner-only, like every flow alarm (an agent reader andpublicOnlynever see it). "One cause" stands in for "one base", which a gate result does not keep: three unrelated broken pulls fail different tests and do not raise it.checks/gate_stopped.ts. - An owner lands one named pull past it, only while it holds. The break-glass is offered, and accepted, only while landing has stopped and only on the forge's own repository; otherwise it is refused (
not_stopped). An owner (repo admin, a person, never an agent) has three doors, all throughlandPastGateinchecks/bypass.ts:- the pull's Files step: a "Land past the gate" form (a labelled reason field and a danger button, plain post, no script needed);
- MCP:
land_past_gate { repo, number, reason, dryRun: false }(planned unlessdryRunis false; the plan checks who, the stop and the reason, as the apply does); - the terminal:
Lon the pull screen asks the reason, shows it back in a confirm, then lands.
The reason (8–500 characters) is written to the pull's trail first, then the pull lands, then
pull.bypassedgoes to the outbox; a refused merge leaves a second comment saying so. Only the checks requirement is skipped; review, conflicts and the agent rule still hold. - Test:
test/gate-bypass.test.ts. - The gate's list is read from the base (#15255). Before a pull's own check command, the forge writes the base commit's
scripts/gate.tsinto the checkout asscripts/.gate-base.tsand runs it with--base-only(checks/base_gate.ts,checks/run_tier.ts). It compares the files the base's gate runs with the ones the pull's gate runs, reading the pull's list without running the pull's code: the base's owngateFilesapplied to the pull's test files and theEXCLUDEDitsscripts/gate.tsnames as text (excludedIn). A pull whoseEXCLUDEDis not a plain list, or that changes how the list is made (isLooksFilethroughgateFiles,listingCode), is refused. It refuses every file the pull still has but no longer gates (anEXCLUDEDentry it added), naming each:test/x.test.ts is in the base's gate and this pull takes it out of it. Deleting that refusal from the pull's ownscripts/gate.tsdoes not help, since the base's copy runs. A pull that only adds a test file passes and its file is gated the same push. Taking a file out is the owner's to land: an owner pushes the exclusion to the default branch themselves, which no agent can, and the refusal says so. The pull's own gate runs the same comparison, so it is red locally too. - Test:
test/gate-base-list.test.ts. - Runners are covered (#15291). A check handed to a runner carries the base commit and the base gate's blob id; its check step writes
scripts/.gate-base.tswithgit show, refuses a file whosegit hash-objectis not that id, and runs it with--base-onlybefore the pull's command (withBaseGateFrom,checks/tier_runner.ts). A base gate the forge cannot name keeps the check off the runner. Test:test/check-runner-base-gate.test.ts.
Not done: the shard runner that runs the list (scripts/test-shards.ts) is the pull's, so a pull that edits it to skip files is caught only by review; a test file deleted outright is not refused, since that is how two tests fold into one and the diff shows it; the nightly quarantine pull now needs an owner to land it; and the rest of the gate (gateVerdict) still runs from the pull's tree, not a pinned earlier release.