Repository navigation
ci(dependabot-gate): wait for Spec Main Shape Gate now that it is enrolled (objectui#9969) - #10796
Conversation
…olled Executes the domain:ui seat's half of objectui#9969's ruling A: the maintainer enrolled `Spec Main Shape Gate` in ruleset 11776024 first (read back 2026-09-27), and this moves the name from `NOT_A_GATE` to `REQUIRED_CONTEXTS` in scripts/dependabot-merge-gate.mjs second, with the entry's prose rewritten to record that both of its conditions were met and why the order cannot let a red through. scripts/check-required-check-set.mjs now WATCHES the context (not pins it): before this change the patrol listed it as "required but not declared", and losing it from the ruleset would have named nothing. Watched is exit 0 on loss, so no new red leg is added. The CI/CD guide's inventory row and section are updated to match, and the doc test's declared-reason prose for that section follows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DuWo5bdP9SdVebamn99GGk
Contract reviewServed-tier: ① Derived judgments(a) Ordering condition — HOLDS. (b) Latest check-run on the current (c) Gate semantics — YES: it waits, and it refuses on red or absent; it cannot let a red or missing SMSG through, and there is no legitimate never-reports case to stall on. Read from the code at head, not its comments. (d) (e) Every factual sentence the diff adds — TRUE against the tree, the ruleset and the rulings.
② Semver levelNone owed, and the PR complies. ③ Boundary flags
Implemented-by: VERDICT: PASS Generated by Claude Code |
Fixes #9969
Clause-②: no
The
domain:uiseat's half of objectui#9969's ruling A (director seat, comment5749111530; maintainer 「objectui#9584 + #9969 A」, comment5750520799). The maintainer's half was taken first:Spec Main Shape Gatewas enrolled in ruleset 11776024 and read back on 2026-09-27 (comment5852129691, 「Spec Main Shape Gate 已处理,其他同意」). This PR is the second, in-tree step.What changes
scripts/dependabot-merge-gate.mjs:'Spec Main Shape Gate'moves fromNOT_A_GATEtoREQUIRED_CONTEXTS. The entry's prose is rewritten: both of its conditions were met before the move (the enrolment, as a dated reading thatscripts/check-required-check-set.mjsre-takes; and the cleared day-one break), and the order of the two steps is recorded, with why neither order lets a red through. The docblock's workflow-to-check inventory gains thespec-main-shape-gate.ymlrow.scripts/check-required-check-set.mjs: the context joinsWATCHED_CONTEXTS, notPINNED_CONTEXTS(reasons under Measurement 2).dependabot-merge-gate.test.tsgains a named block that pins the move, with a control.check-required-check-set.test.tsgets a new control fixtureruling-9969.json(objectui#9499's set plus this one context), an updatedtype-check-removed.json(the control minusType Check, as before), and a case that reads the declared set with this context lost. The existingruling-9499.jsonis kept, because it is now exactly that case.content/docs/guide/ci-cd-pipeline.md: the inventory row said "No, not yet ... classifies itNOT_A_GATE", and the section was headed "Why it is not a required check yet". This change makes both false, so they are updated, and the doc test's declared-reason prose for that section follows.scripts/dependabot-merge-gate.mjsandscripts/check-required-check-set.mjsplus their tests). It is here because this change is what makes those sentences false. No published package, no.github/workflows/**edit.Measurement 1: the ruling's unmeasured point, "what the script does when the name is in
REQUIRED_CONTEXTSand the ruleset does not list it"Measured with the committed module (
5d96da240) against the pre-change module frombff63cc12, using a harness in the dev's scratchpad (not committed):main()was run throughcreateChecksApiwith a fetch stub that records every URL. It requested exactly one route shape,/repos/objectstack-ai/objectui/commits/SHA/check-runs?filter=latest&per_page=100&page=1, and nothing under/rulesor/branches/.../protection. So once the name is inREQUIRED_CONTEXTS, the gate behaves the same whether or not the ruleset lists the context.Spec Main Shape Gateruns, all with the check atcompleted/success: OLDgreen, NEWgreenon 12/12. This check was the last required context to report on 2 of the 12, which moved the gate's green instant by +5 s and +77 s. On the other 10 it moved nothing. For scale, the workflow's own runs over that window took a median of 12.0 min onpull_request(max 13.3 min, 61 runs), against the gate's 40-minute deadline (GATE_TIMEOUT_SECONDS: '2400').failuregives OLDgreenand NEWred, failingSpec Main Shape Gate (failure).absentgives OLDgreenand NEWpending, missing it; throughwaitForGatewith a fake clock and the 40-minute deadline, that becomesred,timedOut: trueafter 121 polls.in_progressgives OLDgreenand NEWpending.merge_group) would still refuse a red. Exposure in that window: 0 open Dependabot PRs. Checked withGET /issues?state=open&creator=dependabot[bot], which returned 0; the control querystate=allwith the same filter returned chore(deps): Bump maplibre-gl from 6.4.1 to 6.9.0 #8940, chore(deps): Bump next from 16.3.3 to 16.3.4 #8939 and chore(deps): Bump next from 16.3.1 to 16.3.3 #8683 (all closed), so the filter works. The order ruling A asked for, ruleset first and this line second, is the order that happened.Spec Main Shape Gaterun on a Dependabot head. No Dependabot PR has produced one yet. The workflow's run list filtered toactor=dependabot[bot]hastotal_count: 0. The newest Dependabot-actor run ofdependabot-auto-merge.ymlis from 2026-09-12, and this workflow first ran on 2026-09-18. Why it should run there: thepull_requesttrigger has no path filter, the job has no actorif:, and the only secret it uses issecrets.GITHUB_TOKENundercontents: read. If it does not run, the failure is closed: the gate times outred, nothing merges, and the PR carries a red check namingSpec Main Shape Gate (never reported).Measurement 2: should
scripts/check-required-check-set.mjspin the new context?Type Checkand watched 5 contexts. The live run on 2026-09-27 (NODE_USE_ENV_PROXY=1 node scripts/check-required-check-set.mjs, exit 0) readDRIFTED, listingSpec Main Shape GateandGoverned Surface Queue Guardas "required but not declared".Spec Main Shape Gate. The old patrol only drops the name from its "not declared" list: exit 0, and nothing names the loss. The new patrol printsNo longer required: `Spec Main Shape Gate`., also exit 0. So watching it is what makes losing it from the ruleset visible, which is what the triage note asked for.PINNED_CONTEXTS"a maintainer's call, not a tidy-up". New gates default to no, so it is watched only: a loss is reported and exits 0. No new red is introduced.DRIFTED, with 1 undeclared context (Governed Surface Queue Guard). That context is outside this card; see the acceptance notes.Readings taken before any edit
GET /repos/objectstack-ai/objectui/rules/branches/mainat 2026-09-27T15:10Z: therequired_status_checksrule of ruleset 11776024 lists 8 contexts, includingSpec Main Shape Gate.Spec Main Shape Gatecheck run on themainheaddac022c4e:completed/success(merge-queue build). The last 100 workflow runs had 0 failures (61pull_requestsuccess, 34merge_groupsuccess, 3 cancelled, 2 in progress).Tests and gates (all at head
5d96da240)pnpm exec vitest runon the five core files (dependabot-merge-gate,check-required-check-set,merge-queue-reporting,ci-cd-pipeline-doc,spec-main-shape-gate), under the verify lock:Test Files 5 passed (5),Tests 200 passed (200),VERDICT command-exit 0.scripts/__tests__/*.test.tsthat names either script or the CI/CD guide (26 files, fromgit grep -l), plusspec-main-shape-gate.test.tsandscripts-type-check.test.ts:Test Files 28 passed (28),Tests 1182 passed (1182),VERDICT command-exit 0.pnpm type-check:scripts(tsc -p tsconfig.scripts.json): exit 0.--listFilesOnlyconfirms both scripts and all three edited test files are in the program.node scripts/check-required-check-set.mjs --self-test:32 cases pass, exit 0.node scripts/check-changeset-presence.mjs: "No source or published contract of a released package changed in this range, so no changeset is owed.", exit 0.node scripts/check-new-cross-file-line-citations.mjs:VERDICT new-cross-file-line-citations: 0 new citation(s), exit 0.check-control-bytes,check-doc-links,check-shell-escape-residue,check-doc-fence-languagesandcheck-doc-example-ids: all exit 0..mjsand.tsfiles with--no-inline-config --format json: 5 files linted, 0 errors, 0 warnings, none ignored.eslint.config.jsdoes not enable type-aware linting (noparserOptions.projectorprojectService), so this diff cannot change the verdict on any untouched file. The repo-wide lint belongs to CI.node scripts/check-governed-queue-guard.mjs --testover the 8 changed paths:NOT GOVERNED.Ablations (one-off, both through objectstack's
scripts/ablation-replace.mjs, run on the committed head)'Spec Main Shape Gate',line fromREQUIRED_CONTEXTS(anchor 1 → 0, blobe10ecb0→5e53694, on-disk count 0). 6 failed: the 4 cases of the new block, the partition caseclassifies every produced check exactly once, and the patrol'severy pinned and watched name is declared blocking in REQUIRED_CONTEXTS. The restore was proven: blob == HEAD,git diff HEADempty.WATCHED_CONTEXTS(anchor 1 → 0, blobc809136→1c38467). 4 failed: the CLI control onruling-9969.json,declares exactly the contexts the patrol pins and watches, the dated drift case, and the new "lost ... naming it" case. Restore proven the same way.Acceptance notes (observed, out of scope, not fixed here)
.github/workflows/spec-main-shape-gate.yml: its header still says "This context is REQUIRABLE, and it is not REQUIRED" and "classifies it ... inNOT_A_GATEuntil a maintainer enrols it there", and it has a section headed "Whymerge_groupis subscribed although this context is NOT required yet". The enrolment made the first claim false, and this PR completes the second. The dispatch forbade edits under.github/workflows/**, so the text is left as it is. Carrier: none.Governed Surface Queue Guardis listed by the ruleset (read above) but is not in the patrol'sWATCHED_CONTEXTS, so the patrol keeps readingDRIFTED. objectui#6596 is closed. The objectuiAGENTS.mdsentence saying that context is not yet a required context is governed surface. Carrier: none.scripts/dependabot-merge-gate.mjs, theREQUIRED_CONTEXTSdocblock still says "The four shards are spelled out individually on purpose", which the inline comment at'Test'has contradicted since objectui#9499. In the CI/CD guide, the patrol section saysWATCHED_CONTEXTS"is the other eight". Both were stale before this change and are not touched here. Carrier: none.Session:
https://claude.ai/code/session_01DuWo5bdP9SdVebamn99GGk(dispatchedos-dev,domain:uiseat #1).Generated by Claude Code