Repository navigation
ci: the review app's exact-head approval starts the heavy suites for a maintainer-admitted fork too; merging is unchanged - #13042
Conversation
…a read-access collaborator too; merging is unchanged
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
| Before | After | Change | |
|---|---|---|---|
| Job-minutes per PR update | 198.2 | 198.1 | −0.1 |
| Runner pool, runner-minutes a day | 54,029 | 53,998 | −31 (−0.1%) |
| Average concurrent jobs | 37.5 | 37.5 | 0 |
| Time to green (median → this run) | 22.3 min | 32.4 min | +10.1 min |
| Runs a day | 273 | 273 | 0 |
Changed jobs: heavy-ci changed: standard
Other workflows: ci-review-pass.yml changed: runs on pull_request_review, issue_comment, workflow_run, schedule (11,26,41,56 * * * *), workflow_dispatch; standard runners; its minutes are not measured here
Not measured (the jobs that use these keep their recent minutes above): .github/scripts/ci-heavy-deferral.test.mjs, .github/scripts/ci-review-pass.test.mjs, .github/scripts/lib/heavy-turn.mjs.
Flags: time to green +10.1 min.
Assumptions: before is each job's average over the last 20 pull-request runs; after keeps that for unchanged jobs and uses this run's minutes for added or changed ones, weighted by how often each changed job ran in those runs; runs a day averages the seven whole days before today; time to green compares this run with the median of those runs that ran the same jobs.
Generated by PR Enrichment workflow | View full report
…al starts the heavy suites for a read-access collaborator
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the spec:AST-030 change, and four blocking issues need fixes.
The new FR20 sentence and DEC-32 amendment add a requirement the current spec does not state, and they reach architecture:knowledge-contracts DEC-11, which still says authors without write permission clear the gate only through an engineering owner's approval and never through author association. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner.
Blocking findings:
- An admitted fork run whose
ci:runlabel was later removed (as FR29's contributor job does once its run starts) no longer restarts with every suite when an engineering owner approves, becauseheavyReviewPassesreads the live label (.github/scripts/lib/heavy-turn.mjs:189-195); the new test at.github/scripts/ci-review-pass.test.mjs:377-385asserts this, and dropping the label check is safe because an unadmitted fork run defers nothing forstartHeavyto restart. - The pull request does not admit #13017, the case it names, because GitHub reports that author as
CONTRIBUTOR, which the predicate rejects (heavy-turn.mjs:156,:217-220, and the pull request's own test atci-review-pass.test.mjs:386-388), so either read repository access from the repository's collaborator record or narrow the title and description. architecture:knowledge-contractsDEC-11 is left contradicted by the new FR20 sentence and by the association-based check (docs/specs/AST-030/spec.md:510-514,heavy-turn.mjs:153-156), so amend DEC-11 here with the heavy-turn exception or reword FR20 so the review-pass run has its own trigger.- The
turn.heavyReviewPasses ?? turn.reviewPassesfallback in.github/workflows/ci.yml:827never runs, because the heavy-ci step loads the helper from the workflow's own commit, so remove it and correct the description's claim that this pull request's own run uses it.
Smaller notes: the header of ci-review-pass.yml still says the app counts only for a write-access author, and a head with no repository (a deleted fork) counts as a same-repository branch in the new predicate.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim: today the heavy turn reads the merge gate's rule, so the app counts only for write-access authors. Verified (base
heavy-turn.mjsandci.ymlcalledreviewPasses). - Claim: #13017 is a fork head with
ci:runthat the review app approved. Verified. Claim: this change starts its heavy suites. False (author reported asCONTRIBUTOR). - Claim: the new predicate requires
review-requiredsuccess and an exact-head approval, from an engineering owner or from the app for a read-or-higher author with a collaborator association. Verified (heavy-turn.mjs:181-233). - Claim: it never passes for a fork without
ci:run. Verified, but it reads the live label (blocking finding 1). - Claim: the author's own review never counts. Verified (
heavy-turn.mjs:199-207). - Claim:
startHeavyand the heavy-ci gate step use it. Verified (heavy-turn.mjs:259-269,ci.yml:827-836). - Claim: the gate step falls back to
reviewPassesfor this pull request's own run. False (blocking finding 4). - Claim: FR20 and DEC-32 are edited as described. Verified. Claim: owner authority for the amendment is being confirmed. Not established at this head.
- Claim:
reviewPasses, the review workflow andreview-requiredare unchanged, and merging still needs an engineering owner. Verified. - Claim: the six new or changed test cases fail on the base and all 63 cases pass on the head. Verified.
- Claim: formatting is clean and the knowledge check is aligned. Verified.
- Claim: no CI impact for write-access authors. Verified for them; admitted fork runs regress (blocking finding 1).
- File
.github/scripts/lib/heavy-turn.mjs: blocking findings 1-3; the deleted-fork note. - File
.github/workflows/ci.yml: blocking finding 4. - File
.github/scripts/ci-review-pass.test.mjs: asserts the regression, and its fork stubs have no head repository. - File
.github/scripts/ci-heavy-deferral.test.mjs: clear. - File
docs/specs/AST-030/spec.md: owner decision needed; blocking finding 3.
|
/approve-spec 5a3678b |
|
/approve-spec b9e24bd |
There was a problem hiding this comment.
Changes requested: the spec:AST-030 FR20 and DEC-32 direction now has an engineering owner's approval at this head, but five blocking issues remain.
Blocking findings:
- An admitted fork run whose
ci:runlabel was later removed no longer restarts with every suite when an engineering owner approves, becauseheavyReviewPassesreads the live label (.github/scripts/lib/heavy-turn.mjs:189-195), which FR29 ("which its admission still covers after the job removes the label") and its verification row rule out; dropping the check is safe because an unadmitted fork run defers nothing forstartHeavyto restart. - The predicate decides repository access from author association (
heavy-turn.mjs:153-156,:217-220), so an organization member (MEMBER) with only publicreadqualifies, which goes beyond FR20's "repository collaborator" and againstarchitecture:knowledge-contractsDEC-11's "not from owner lists, organization membership, or author association"; read the author's access from the repository's collaborator record instead. - The description says this change starts the heavy suites for #13017, but GitHub reports that author as
CONTRIBUTOR, which the predicate and the pull request's own test (.github/scripts/ci-review-pass.test.mjs:386-388) reject, so fix the access check with a test in that shape or narrow the description. architecture:knowledge-contractsDEC-11 still says an engineering owner's approval is the only way for an author without write permission to clear the gate, which contradicts the new FR20 sentence (docs/specs/AST-030/spec.md:510-514), so amend DEC-11 with the heavy-turn exception or word FR20 so the review-pass run has its own trigger.- The
turn.heavyReviewPasses ?? turn.reviewPassesfallback (.github/workflows/ci.yml:827) never runs because the step loads the helper from the workflow's own commit, so remove it and correct the description's claim that this pull request's own run uses it.
Smaller notes: the header of ci-review-pass.yml still describes the write-access-only rule, and a head with no repository (a deleted fork) counts as a same-repository branch. CI has not run at this head because the pull request is a draft.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: today the heavy turn reads the merge gate's rule, so the review app counts only for write-access authors. Verified (the base's
startHeavyand heavy-ci step callreviewPasses). - Claim: the record owner decided the direction. Verified (an engineering owner's exact-head
/approve-spec; the spec-owner status succeeds). - Claim: #13017 is a fork head with
ci:runthat the review app approved. Verified. Claim: its author has read access. Not verifiable here. Claim: this change starts its heavy suites. False (blocking finding 3). - Claim: the new predicate needs
review-requiredsuccess and an exact-head approval from an engineering owner, or from the review app for a write-access author or a read-or-higher collaborator. Verified (heavy-turn.mjs:181-233). Claim: the association shows the repository granted access. False forMEMBER(blocking finding 2). - Claim: it never passes for a fork without
ci:run. Verified, but it reads the live label (blocking finding 1). - Claim: the author's own review never counts. Verified (
heavy-turn.mjs:199-207). - Claim:
startHeavyuses it. Verified (heavy-turn.mjs:259-269). - Claim: the heavy-ci step calls it. Verified (
ci.yml:827-836). Claim: it falls back for this pull request's own run. False (blocking finding 5). - Claim: FR20 and DEC-32 change as described, with the decider named. Verified (
spec.md:510-514,:1517-1523). - Claim:
reviewPasses, the review workflow andreview-requiredare unchanged, and merging still needs an engineering owner for a read-access author. Verified. - Claim: the six new or changed cases fail on the base and the two files pass 63 of 63 on the head. Verified.
- Claim: Prettier is clean and the knowledge check is aligned. Verified. Claim: ESLint is clean. Verified (its configuration ignores these scripts).
- Claim: the whole scripts suite count, the pre-review check and actionlint results. Not verified (not reproducible in this review).
- Claim: the writing rubric results and the public-text check. Verified (present tense, one fact per sentence; no internal text found).
- Claim: no CI impact for write-access authors. Verified for them; admitted fork runs whose label was removed regress (blocking finding 1).
- File
.github/scripts/lib/heavy-turn.mjs: blocking findings 1 to 3; the deleted-fork and duplicated-reads notes. - File
.github/workflows/ci.yml: blocking finding 5. - File
.github/scripts/ci-review-pass.test.mjs: asserts finding 1's regression and rejects #13017's shape; its fork stubs have no head repository. - File
.github/scripts/ci-heavy-deferral.test.mjs: clear. - File
docs/specs/AST-030/spec.md: owner-approved; blocking finding 4; the verification-row note.
…a maintainer-admitted fork; it clears no gate
|
/approve-spec d74848c |
There was a problem hiding this comment.
Changes requested: one record sentence needs updating, while the earlier blocking issues are all fixed and an engineering owner approved the spec:AST-030 FR20 and DEC-32 change at this head.
Blocking
spec:AST-030FR17 still says an admitted fork's run is typecheck only "until the head's review and spec gates pass" (docs/specs/AST-030/spec.md:461, and:452-453for every ready pull request), which contradicts the new FR20 sentence at:510-514that starts an admitted fork's heavy suites while the review gate still waits for an engineering owner, so reword both FR17 sentences to point at the review-pass run.
Non-blocking: the comments at .github/scripts/lib/heavy-turn.mjs:15-16 and :191-192 say merging reads reviewPasses, but merging reads review-required, and reviewPasses now has no caller outside the tests. maintainerAdmitted counts a maintainer's ci:run from any point in the pull request's history, not only the label that admitted the head. After a review, ci-review-pass.yml still waits up to five minutes for review-required success, which an admitted fork approved only by the review app never reaches.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: today the heavy turn reads the merge gate's rule, so the review app counts only for write-access authors. Verified (the base's
startHeavyand heavy-ci step callreviewPasses). - Claim: the motivating contributor has no collaborator record and shows to the workflow token as a contributor. Not verified here; the code does not depend on it.
- Claim: organization membership and author association are not usable signals under DEC-11. Verified (DEC-11's text).
- Claim: the record owner decided the direction. Verified (an engineering owner's exact-head
/approve-spec; the spec-owner status succeeds). - Claim: the new predicate needs the spec half, not
review-requiredsuccess. Verified (heavy-turn.mjs:221-227). - Claim: an engineering owner's approval, or the review app's for a write-access author or a maintainer-admitted fork, counts at the exact head. Verified (
heavy-turn.mjs:237-269). - Claim: the label may be gone since. Verified (labeled events; the label-removed test). It is read for the whole pull request (non-blocking note).
- Claim: a label from a bot or a reader does not count, and a deleted fork counts as a fork. Verified (
heavy-turn.mjs:174-185,:250-253). - Claim: the author's own review never counts. Verified (
heavy-turn.mjs:228-236). - Claim:
startHeavyand the heavy-ci gate step use it, and the gate step waits up to three minutes, then lets it decide. Verified (heavy-turn.mjs:296-306,ci.yml:819-834). - Claim: the workflow header describes the rule. Verified.
- Claim: FR20 and DEC-32 change as described, with a Decider line. Verified (
spec.md:510-514,:1517-1523). - Claim:
reviewPasses, the review workflow andreview-requiredare unchanged, and merging still needs an engineering owner for such a pull request. Verified for the code; merging readsreview-required, notreviewPasses(non-blocking note). - Claim: the listed test cases exist and pass, 65 of 65 in the two files. Verified.
- Claim: four new cases fail on the previous head's helper, and the helper is new against main. Verified (four helper cases plus the workflow's gate-step case fail on the previous head; eight fail on main).
- Claim: the writing rubric passes. Verified for the FR20 sentence and DEC-32 amendment; FR17 is left contradicting them (blocking finding).
- Claim: the public-text check is clean. Verified by this review's own scan of the added lines, commit messages, title and description; the repository check itself was not run.
- Claim: the knowledge check is aligned and Prettier is clean. Verified.
- Claim: no CI impact for write-access authors; admitted forks get heavy suites sooner. Verified in substance; the runner class and minute figures are not stated.
- File
.github/scripts/lib/heavy-turn.mjs: non-blocking notes (thereviewPassescomments; admission read for the whole pull request). - File
.github/workflows/ci.yml: clear; the heavy-ci job comment still describes the old trigger. - File
.github/workflows/ci-review-pass.yml: clear; its unchanged wait loop delays the new path (non-blocking note). - File
.github/scripts/ci-review-pass.test.mjs: clear. - File
.github/scripts/ci-heavy-deferral.test.mjs: clear. - File
docs/specs/AST-030/spec.md: owner-approved; blocking FR17 finding; FR20's verification row lacks the new case.
| * (spec:AST-030 FR29). A label from a bot or a reader does not count. | ||
| * @param {{github: any, owner: string, repo: string, number: number}} input | ||
| */ | ||
| export async function maintainerAdmitted({github, owner, repo, number}) { |
There was a problem hiding this comment.
Non-blocking: this admits on any maintainer ci:run event in the pull request's history, including one removed earlier or one added after the head's run started. FR20 says "a fork head that a maintainer admitted". So a head that the contributor job (FR29) admitted, on a pull request a maintainer labelled earlier, takes the app path. Read the latest ci:run event before the run was created, or word FR20 and this JSDoc for the pull request.
…n; FR20's verification names the admitted fork case
|
/approve-spec 7af7da0 |
There was a problem hiding this comment.
Approved pending CI: an engineering owner approved the spec:AST-030 change at this head, FR17 now matches the new FR20 sentence, and no blocking issue remains. CI has not run on this head yet because the pull request is a draft; it runs once the pull request is marked ready.
Non-blocking: maintainerAdmitted counts a maintainer's ci:run from any point in the pull request's history, not only one that admitted this head, which reads more broadly than FR20 and FR29. The contributor guide in CONTRIBUTING.md and the heavy-ci job comment in ci.yml still describe only the old trigger, and ci-review-pass.yml still waits up to five minutes for a review-required success this path never reaches.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: today the heavy turn uses the merge gate's rule, so the review app counts only for write-access authors and an admitted fork waits for an engineering owner. Verified (the base's
startHeavyand heavy-ci step callreviewPasses). - Claim: the motivating contributor has no collaborator record and shows to the workflow token as a contributor. Not checkable here; the change does not depend on it.
- Claim: organization membership and author association are not usable signals. Verified (
architecture:knowledge-contractsDEC-11). - Claim: a maintainer's
ci:runis already the gate an external fork passes first. Verified (spec:AST-030FR17). - Claim: the record owner decided the direction. Verified (the DEC-32 amendment's Decider line and an engineering owner's exact-head approval).
- Claim: the new predicate serves the heavy turn only and clears no gate. Verified (its only callers are
startHeavyand the heavy-ci gate step; the review workflow is untouched). - Claim: it needs the spec half, not
review-requiredsuccess. Verified (heavy-turn.mjs:221-227). - Claim: an engineering owner's approval, or the review app's for a write-access author or a maintainer-admitted fork, counts at the exact head. Verified (
heavy-turn.mjs:237-269). - Claim: the label may be gone since. Verified (labeled events and the label-removed test); it is read for the whole pull request (non-blocking note).
- Claim: a label from a bot or a reader does not count, and a deleted fork counts as a fork. Verified (
heavy-turn.mjs:174-185,:250-253). - Claim: the author's own review never counts. Verified (
heavy-turn.mjs:228-236). - Claim: a new helper reads the pull request's labeled events. Verified (
heavy-turn.mjs:158-164). - Claim:
startHeavyand the heavy-ci gate step use it, and the step still waits up to three minutes, then lets it decide. Verified (heavy-turn.mjs:296-306,ci.yml:818-834). - Claim: the workflow header describes the rule. Verified (
ci-review-pass.yml:3-18). - Claim: FR20 and DEC-32 change as described, with a Decider line. Verified (
spec.md:510-514,:1517-1523). - Claim:
reviewPasses, the review workflow andreview-requiredare unchanged, and merging still needs an engineering owner for such a pull request. Verified (none of them is in the diff). - Claim: the preflight at an earlier head passed. Partly verified at this head: formatting and the knowledge check pass, the linter ignores these scripts, and the CI script suite passes apart from nine files that need a git checkout; the pre-review checks and workflow lint were not rerun.
- Claim: the listed test cases exist and pass, 65 of 65 in the two files. Verified.
- Claim: four new cases fail on the previous head's helper, and the helper is new against main. Verified (four helper cases fail on the previous helper; the new cases fail on main).
- Claim: the writing rubric passes. Verified for the FR20 sentence, the FR17 wording and the DEC-32 amendment.
- Claim: the public-text check is clean. Verified by a scan of the added lines, commit messages, title and description.
- Claim: no CI impact for write-access authors; admitted forks get their heavy suites sooner and merging still waits for an owner. Verified in substance; the runner class and minute figures are not stated (non-blocking note).
- File
.github/scripts/lib/heavy-turn.mjs: non-blocking note (admission read for the whole pull request). - File
.github/workflows/ci.yml: clear; the heavy-ci job comment still describes the old trigger (non-blocking). - File
.github/workflows/ci-review-pass.yml: clear; its unchanged wait loop delays the new path (non-blocking). - File
.github/scripts/ci-review-pass.test.mjs: clear. - File
.github/scripts/ci-heavy-deferral.test.mjs: clear. - File
docs/specs/AST-030/spec.md: owner-approved at this head; clear.
Who this helps
Contributors whose pull requests come from a fork that a maintainer admitted with
ci:run, such as vjeux. Today the review app's approval at their exact head does not start the heavy suites, because the heavy turn reads the merge gate's rule, where the app counts only for a write-access author. Their deferred CI runs wait for an engineering owner even after the review app has approved. With this change, that approval starts the heavy suites. Who may merge is unchanged.Why the maintainer's
ci:run, not "read access", is the signal. vjeux has no repository access record:collaborators/vjeuxis 404, and his "read" permission is the public-repository default that GitHub reports for anyone. He is a private member of the organization, so the workflow token sees his association asCONTRIBUTOR, exactly like an outside contributor. Organization membership and author association are not usable signals either (architecture:knowledge-contractsDEC-11). The one signal the workflow can trust is a maintainer having admitted the fork withci:run. That is already the gate external forks must pass first.Authority: the record owner's decision (
cixzhang, 2026-11-19 19:49:29 PT), raised by the Chief 2026-11-20 01:33Z via the coordinator; DEC-32 refinement (spec:AST-030 FR20 and DEC-32, heavy turn only).What changes
.github/scripts/lib/heavy-turn.mjs: a new predicate,heavyReviewPasses, for the heavy turn only. It clears no gate. It passes when:readSpecGate). It does not requirereview-requiredsuccess, which for a fork author waits for an engineering owner; andci:run. The label may be gone since, because an admitted run stays admitted (FR29). A label from a bot or a reader does not count, and a head with no repository (a deleted fork) counts as a fork.maintainerAdmitted, reads the issue'slabeledevents.startHeavy(ci-review-pass.yml) and heavy-ci's gate step in ci.yml use it. The gate step still waits up to three minutes for Review signal, then lets the predicate decide..github/workflows/ci-review-pass.yml: the header comment describes the rule.docs/specs/AST-030/spec.md: FR20 says a maintainer-admitted fork head also gets its review-pass run once its spec gate passes and the review app approves that exact head; this starts the suites only and clears no gate. DEC-32's amendment gives the reason, with its Decider line.reviewPasses(DEC-11's merge-gate reading), review-signal.yml andreview-required. An engineering owner still has to approve before such a pull request can merge.Preflight before the ready flip
Tooling fallback (CI-only change, the shared machine loaded), at d74848c:
review:pre0 findings; every.github/scriptstest passes (2943 passed, 25 skipped); eslint and Prettier clean; actionlint shows no new findings;pnpm check:knowledgealigned.Tests (red first)
ci-review-pass.test.mjs, "the heavy turn's review (DEC-32)". Each case checks the heavy turn and the merge gate side by side:ci:run, or one added by a reader or a bot, or another label: the app does not start it. A deleted fork without admission: does not start. An engineering owner's approval still counts for both.review-requiredpending but the spec half passed: the heavy turn starts. Spec half not passed: never.startHeavyre-runs the deferred run for an admitted fork head.ci-heavy-deferral.test.mjs: the gate step callsheavyReviewPasses(neverreviewPasses). A gate still pending after three minutes leaves the decision to it; no gate at all defers.4 of the new cases fail on the previous head's helper; the whole helper is new against main. 65/65 pass in these two files.
Writing rubric results
check-no-internalclean).pnpm check:knowledge: aligned; Prettier clean.CI impact
CI impact: none for write-access authors. A maintainer-admitted fork's head that the review app approved now gets its heavy suites without waiting for an engineering owner. Merging still waits for one.
Owning session: noopbot (a61f66c2), under CI & Release (ca77f950). Land path: the drain's serial merge loop, on green, CodeBunny approval and Specs' exact-head
/approve-spec.