Repository navigation
ci: heavy suites run once review passes and before merge; a push runs the fast checks (AST-030 FR20, DEC-32) - #12606
Conversation
… typecheck and lint (AST-030 FR20, DEC-32)
…he review-pass run; FR29 verification row; DEC-32 ready exception
|
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 | 172.6 | 172.3 | −0.2 |
| Runner pool, runner-minutes a day | 51,495 | 51,425 | −70 (−0.1%) |
| Average concurrent jobs | 35.8 | 35.7 | 0 |
| Time to green (median → this run) | — | 9.7 min | — |
| Runs a day | 298 | 298 | 0 |
Changed jobs: build changed: standard · docsite-test changed: standard · heavy-ci changed: standard · test changed: standard
Other workflows: ci-review-pass.yml added: runs on pull_request_review, issue_comment, workflow_run, schedule (11,26,41,56 * * * *), workflow_dispatch; standard runners; its minutes are not measured here · pr-comment.yml changed: runs on workflow_run; standard runners; its minutes are not measured here
Not measured (the jobs that use these keep their recent minutes above): .github/actions/heavy-caps/action.yml, .github/scripts/ci-heavy-deferral.test.mjs, .github/scripts/ci-lab-only-routing.test.mjs, .github/scripts/ci-pr-gate.mjs, .github/scripts/ci-review-pass.test.mjs, .github/scripts/heavy-caps-action.test.mjs, .github/scripts/lib/heavy-turn.mjs, .github/scripts/lib/pr-preview.mjs, .github/scripts/lib/workflow-run-pulls.mjs.
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
|
/approve-spec db5934d |
There was a problem hiding this comment.
Changes requested. An engineering owner approved the AST-030 changes at this head, so the direction is settled, but the implementation and the description still need these fixes:
- Fork pull requests never get their review-pass run:
ci-review-pass.yml(lines 79 and 95) finds the pull request throughpull_requests, which GitHub leaves empty for runs from forks, and a fork's review event has a read-only token, so please resolve fork runs by head repository and branch asreview-clear.ymldoes, and give the "a fork's included" test an emptypull_requests. - Every review-pass run is a re-run, which
heavy-caps/action.ymlline 37 exempts, so FR16's per-author limits stop holding any pull request intomain, although FR20 now says the caps are unaffected and the new held-suite messages promise a queue that run never waits in. - The description says a push now runs only typecheck and lint instead of the full suites, but engineering owners and the shared agent login pass the review gate at every code-only head, so each of their pushes is re-run in full right after its first attempt; please correct the CI-impact section.
CONTRIBUTING.md(lines 962–972) still says that only the shared agent login's pushes defer and that marking a pull request ready or reopening it runs everything.- The FR20 and new FR29 verification rows name
ci-heavy-deferral.test.mjscases (a fork withci:run, a later head, a head admitted after its gates passed) that no test covers yet.
Two smaller points: the quarter-hour sweep reads only the first 100 failed runs of the last six hours, and on review events GitHub takes the inline script from the pull request's own workflow file, so the header's "never pull-request code" holds only for the helper.
Claims and files checked
Review mode: same-head; reason: none
- Claim, any first attempt into
maindefers for every author: verified (ci-pr-gate.mjsHEAVY_CANDIDATE, theci.ymlheavy-cicondition,ci-heavy-deferral.test.mjslines 166–178). - Claim, release merge-backs and
release-criticalpull requests are never deferred: verified (ci-heavy-deferral.test.mjslines 180–184 and 206). - Claim, the required checks and the PR report say "runs when review passes and before merge": verified (
ci.yml,pr-comment.yml). - Claim, the review-pass workflow re-runs the deferred run once review passes, checking on reviews,
/approve-speccomments, the end of CI runs and a quarter-hour sweep: verified for same-repository pull requests; false for forks. - Claim, it reads main's helper and never pull-request code: verified for the helper; on review events the inline script comes from the pull request's workflow file.
- Claim, opt-in label suites run at the review-pass run, not the first attempt: verified (
ci-heavy-deferral.test.mjslines 477–496). - Claim, the held-suite messages name the review-pass run: verified as text, but misleading, because review-pass runs are exempt from the limits.
- Claim, the record's FR20 gap line is removed: verified.
- Claim, the tests cover a fork in the schedule sweep: false (every stubbed run carries a pull request number).
- Claim, a push now runs only typecheck and lint: false for heads whose review gate self-serves.
- Claim, the new workflow is one slim job of at most 8 minutes: verified.
- Claim, the local suite tally: not reproduced; the changed test files pass (64 of 64), and the other failures match the base.
- File
.github/actions/heavy-caps/action.yml: review-pass re-runs bypass the limits. - File
.github/scripts/ci-heavy-deferral.test.mjs: clear, but lacks the fork and later-head cases the record names. - File
.github/scripts/ci-pr-gate.mjs: clear. - File
.github/scripts/ci-review-pass.test.mjs: the fork sweep test models no fork. - File
.github/scripts/heavy-caps-action.test.mjs: clear. - File
.github/scripts/lib/heavy-turn.mjs: clear. - File
.github/workflows/ci-review-pass.yml: fork pull requests are not resolved; the sweep reads one page. - File
.github/workflows/ci.yml: clear. - File
.github/workflows/pr-comment.yml: clear. - File
docs/specs/AST-030/spec.md: owner-approved; the verification rows name missing tests.
|
/approve-spec 204d5f5 |
|
/approve-spec bb95698 |
There was a problem hiding this comment.
Changes requested. The deferral, the review-pass workflow, fork resolution and the per-author caps now follow AST-030 FR16, FR20 and DEC-32, and the earlier fork, cap and CONTRIBUTING findings are fixed; two things remain:
- Miss:
HEAVY_CANDIDATE(.github/scripts/ci-pr-gate.mjsline 75, repeated in theheavy-cicondition inci.yml) skips the deferral for anyrelease-criticallabel, but DEC-30 counts the label only when someone with write access applied it last, which admission and the caps already check throughdecideRunLabel, so please use the same check here and add a case for a label applied without write access. - The CI impact section says the shared agent login's job-minutes per update rise only by the first attempt, but on the base its pushes ran no heavy suite, so each of its pushes now adds a full heavy run; please restate the impact per lane with the figures FR19 asks for (job-minutes before and after, runner-pool usage and time to green).
Two smaller points: a review-pass run that the caps hold is never started again at that head, so it runs only at a later head's review-pass run or at the pre-merge re-run; and the FR20 verification row names only ci-heavy-deferral.test.mjs, while the review-pass cases live in ci-review-pass.test.mjs and no case covers a draft marked ready after its gates passed.
Claims and files checked
Review mode: full; reason: spec-record
- Claim, today every push to a ready pull request runs the full suites: false for the shared agent login, whose pushes ran no heavy suite on the base.
- Claim, every author's first attempt into
maindefers, whatever started it: verified (ci-pr-gate.mjslines 72–75;ci-heavy-deferral.test.mjslines 161–178). - Claim, release merge-backs and
release-criticalpull requests are never deferred: verified, but anyrelease-criticallabel counts (first finding). - Claim,
heavy-cidefers unless the change is spec-only or Lab-only: verified (ci.ymldecide step; test line 329). - Claim, the deferred checks and the PR report say "runs when review passes and before merge": verified (
ci-pr-gate.mjsline 96,ci.yml,pr-comment.ymlline 591). - Claim, the review-pass workflow re-runs the deferred run once the review gate passes, looking on reviews,
/approve-speccomments, CI run ends and a quarter-hour sweep of the last six hours: verified (ci-review-pass.yml,heavy-turn.mjs,ci-review-pass.test.mjs). - Claim, a fork's run is matched to its pull request by head repository and branch at the run's head: verified (
heavy-turn.mjslines 61–76; tests at lines 323 and 349 fail on the previous head and pass here). - Claim, a fork head admitted after its gates passed gets its review-pass run when its deferred run ends: verified (test line 349).
- Claim, the helper comes from
main, and on a review event the inline script comes from the pull request's copy: verified. - Claim, the pre-merge re-run, a later attempt, runs every suite: verified (test line 267).
- Claim, the caps hold the review-pass run and exempt a re-run a person starts and
release-critical: verified (heavy-caps/action.ymllines 41–42; test line 394 fails on the previous head). - Claim, opt-in label suites run at the review-pass run, not the first attempt: verified (test line 504).
- Claim, the three held-suite messages: verified, matching FR16 word for word.
- Claim,
CONTRIBUTING.mddescribes the new flow for every author: verified. - Claim, the FR20 gap line is removed and the record text came from the earlier spec pull request: verified; that pull request is merged into the base.
- Claim, the listed tests and the red-first cases: verified (55 of 55 pass; the fork and caps cases fail on the previous head).
- Claim, the knowledge check and Prettier pass: verified; the local suite tally was not reproduced (its failures here are checkout-dependent only).
- Claim, runner class unchanged and the new workflow is one slim job of at most 8 minutes: verified.
- Claim, the shared agent login's job-minutes per update rise only by the first attempt: false (second finding).
- Claim, overlap with the other open pull request that edits the same record: not checked.
- File
.github/actions/heavy-caps/action.yml: clear. - File
.github/scripts/ci-heavy-deferral.test.mjs: therelease-criticalcase has no applier check. - File
.github/scripts/ci-pr-gate.mjs:release-criticalcounted without the write-access check. - File
.github/scripts/ci-review-pass.test.mjs: clear. - File
.github/scripts/heavy-caps-action.test.mjs: clear. - File
.github/scripts/lib/heavy-turn.mjs: clear; non-blocking note on held runs (line 107). - File
.github/workflows/ci-review-pass.yml: clear. - File
.github/workflows/ci.yml: samerelease-criticalcondition (line 753). - File
.github/workflows/pr-comment.yml: clear. - File
CONTRIBUTING.md: clear. - File
docs/specs/AST-030/spec.md: clear (owner-approved at this head); verification row note.
…h write access applied it last (AST-030 DEC-30)
|
/approve-spec 5fc6d42 |
…at its head; FR20's row names ci-review-pass.test.mjs
|
/approve-spec be2e3c9 |
There was a problem hiding this comment.
Changes requested. The release-critical check, the draft case and the FR16 and FR20 record edits fix the earlier findings, and an engineering owner approved the record edits at this head. Two things remain:
- Miss:
startHeavyreturns for any run past its first attempt (.github/scripts/lib/heavy-turn.mjsline 107, with the sweep's first-attempt filter at.github/workflows/ci-review-pass.ymlline 105), so a deferred run that someone re-ran with Re-run failed jobs, which keepsheavy-ci's deferred output, never gets its review-pass run, against FR20's "Each head whose gates pass gets its own review-pass run"; please decide fromdeferred(jobs)on the latest attempt alone and make the "already ran again" test case expect the re-run. - The description still says every push to a ready pull request ran the full suites, which was not true for the shared agent login, and its CI impact still lacks FR19's runner-minutes a day before and after and the new
CI review passjob's runner class and minutes; please correct the sentence and add those figures.
Two smaller points: a review whose gate settles after the five-minute wait is caught only by the sweep, which reads the last six hours of runs; and CONTRIBUTING.md says any release-critical label runs everything, without DEC-30's write-access condition.
Claims and files checked
Review mode: full; reason: spec-record
- Claim, today every push to a ready pull request starts the full suites: false for the shared agent login, whose pushes are deferred on
main(second finding). - Claim, every author's first attempt into
maindefers, whatever started it: verified (ci-pr-gate.mjslines 73–75;ci-heavy-deferral.test.mjslines 163–181). - Claim, release merge-backs are never deferred and
release-criticalpull requests are not deferred: verified (ci-pr-gate.mjsline 75;ci.ymllines 781–797; test lines 182 and 207). - Claim,
heavy-cidefers unless the change is spec-only or Lab-only: verified (ci.ymldecide step; test line 386). - Claim, the required checks and the PR report say "runs when review passes and before merge": verified (
ci-pr-gate.mjsline 97,ci.yml,pr-comment.ymlline 591). - Claim, the review-pass workflow re-runs the deferred run in full once the gates pass at a head: verified, except at a head whose deferred run had a failed-jobs re-run (first finding).
- Claim, it looks on reviews,
/approve-speccomments, CI run ends and a quarter-hour sweep of the last six hours' failed first attempts: verified (ci-review-pass.ymllines 16–26 and 86–111). - Claim, a fork's run is matched to its pull request by head repository and branch at the run's head: verified (
heavy-turn.mjslines 61–76; test line 323). - Claim, a fork head admitted after its gates passed, and a draft marked ready after them, start when that first run ends: verified (test lines 349 and 368).
- Claim, the helper comes from
main, and a review event takes the script from the pull request's copy: verified (ci-review-pass.ymllines 11–13 and 52–59). - Claim, the pre-merge re-run, a later attempt, runs every suite: verified for any later attempt (test line 324); merge-guard itself is outside this repository.
- Claim, the AST-030 record gains the held-run sentence in FR16 and names the new test in FR20's row, and drops the FR20 gap line: verified, approved at this head.
- Claim, the record text comes from the earlier spec pull request, which merges first: verified; it is already merged into the base.
- Claim,
release-criticalcounts only when someone with write access applied it last, throughdecideRunLabel, and an unreadable label defers: verified (ci.ymllines 781–797; test line 207; the cases fail on the previous head). - Claim, the caps hold the review-pass run, exempt a re-run a person starts and never hold
release-critical: verified (heavy-caps/action.ymllines 39–42; test line 394). - Claim, the three held-suite messages: verified, matching FR16 word for word (
heavy-caps/action.ymllines 85, 88 and 123). - Claim, opt-in label suites run at the review-pass run, not the first attempt: verified (test line 564).
- Claim,
CONTRIBUTING.mddescribes the flow for every author: verified, apart from DEC-30's write-access condition (non-blocking). - Claim, the listed tests pass, with red-first cases: verified (65 of 65 pass in the four changed test files; the new
release-criticalcases fail on the previous head). - Claim, the lab-only routing test reads the new decision line, the knowledge check passes and Prettier is clean: verified.
- Claim, the whole local scripts suite tally: not reproduced.
- Claim, runner class unchanged: verified (the new job runs on
ubuntu-slim). - Claim, the per-run job-minutes, job counts and times to green from the recent-run sample: not reproduced (a measurement); runner-minutes a day and the new job are missing (second finding).
- Claim, time to merge is unchanged: not checked (it depends on merge-guard).
- Claim, overlap with the two other spec pull requests: the first is merged; the second is still open and changes only the AST-030 record.
- File
.github/actions/heavy-caps/action.yml: clear. - File
.github/scripts/ci-heavy-deferral.test.mjs: clear. - File
.github/scripts/ci-lab-only-routing.test.mjs: clear. - File
.github/scripts/ci-pr-gate.mjs: clear. - File
.github/scripts/ci-review-pass.test.mjs: the "already ran again" case asserts the first finding's outcome (line 171). - File
.github/scripts/heavy-caps-action.test.mjs: clear. - File
.github/scripts/lib/heavy-turn.mjs: first finding (line 107). - File
.github/workflows/ci-review-pass.yml: first finding (line 105); non-blocking note on the review wait (line 121). - File
.github/workflows/ci.yml: clear. - File
.github/workflows/pr-comment.yml: clear. - File
CONTRIBUTING.md: non-blocking note (lines 971–973). - File
docs/specs/AST-030/spec.md: clear (owner-approved at this head).
| // After a review or a comment the review gate settles a moment | ||
| // later (review-signal.yml): wait for it, up to five minutes. | ||
| if (event === 'pull_request_review' || event === 'issue_comment') { | ||
| for (let look = 0; look < 10; look += 1) { |
There was a problem hiding this comment.
Non-blocking: after these ten looks, only the sweep catches a gate that settles late, and the sweep reads only runs created in the last six hours. So a review that lands more than six hours after the push, with Review clear writing the gate more than five minutes later, gets no review-pass run. A trigger on the gate's writer finishing would remove the timing dependence.
…ew-pass run; CONTRIBUTING names DEC-30's write-access condition
|
/approve-spec 48f2c0d |
There was a problem hiding this comment.
Changes requested. The failed-jobs re-run case and the CONTRIBUTING.md wording from the last review are fixed, and the record edits are approved at this head. Two things remain:
- Miss: a fork pull request whose gate clears after an engineering owner's review never gets its review-pass run once its deferred run is more than six hours old, because the review event's token is read-only for a fork so
reRunWorkflowfails (.github/workflows/ci-review-pass.ymlline 17,.github/scripts/lib/heavy-turn.mjsline 119),Review clearwrites the gate on an event this workflow does not watch, and the sweep reads only six hours back (lines 90–98), against FR20's "Each head whose gates pass gets its own review-pass run"; please also start onReview clearfinishing (mapping the run withpullsForRun), or sweep open pull requests by their newest deferred run whatever its age, and add a fork-review test. - The CI impact keeps the shared agent login's runner-minutes "unchanged", but its code-only heads pass
review-requiredat once, so each push to one of its ready pull requests now adds a 155 job-min review-pass run (up to about 3,400 job-min a day by the description's own 280 job-min of deferred runs); please correct that line and the daily total.
The fix for the first point also covers a same-repository gate that settles after the five-minute wait.
Claims and files checked
Review mode: incremental; reason: none
- Claim, today every push to a ready pull request runs the full suites except the shared agent login's: verified (the base deferral condition).
- Claim, every author's first attempt into
maindefers, whatever started it: verified (ci-pr-gate.mjslines 73–75,ci.ymlline 753,ci-heavy-deferral.test.mjsline 175). - Claim, release merge-backs and write-access
release-criticalpull requests are not deferred: verified (ci-pr-gate.mjsline 75,ci.ymllines 781–814). - Claim,
heavy-cidefers unless the change is spec-only or Lab-only: verified (decide step and its test table). - Claim, the required checks and the PR report say "runs when review passes and before merge": verified (
ci-pr-gate.mjsline 97,ci.yml,pr-comment.ymlline 591). - Claim, the new workflow re-runs the deferred run in full once the gates pass at a head: verified for same-repository heads, drafts and late-admitted forks; false for a fork head whose gate clears after an engineering owner's review more than six hours after its run (first point).
- Claim, it looks on reviews,
/approve-speccomments, CI run ends and a quarter-hour sweep of six hours of failed runs: verified (ci-review-pass.ymllines 16–25 and 86–112). - Claim, a run that "Re-run failed jobs" left deferred still gets its review-pass run: verified (
heavy-turn.mjslines 107–119; test lines 194 and 340 fail on the previous head and pass here). - Claim, a fork's run is matched to its pull request by head repository and branch at the run's head: verified (
heavy-turn.mjslines 61–76). - Claim, a fork head admitted after its gates passed starts when its deferred run ends: verified (test line 376).
- Claim, the helper comes from
main, and a review event runs the pull request's copy of the script: verified (ci-review-pass.ymllines 11–13 and 52–59). - Claim, the pre-merge re-run, a later attempt, runs every suite: verified for any later attempt (test line 324); merge-guard itself is outside this repository.
- Claim, the record gains FR16's held-run sentence, names the new test in FR20's row and drops the FR20 gap line: verified, approved at this head.
- Claim, the record text comes from the earlier spec pull request, which merges first: verified; it is already merged into the base.
- Claim,
release-criticalcounts only when someone with write access applied it last, and an unreadable label defers: verified (ci.ymllines 781–797, test line 207). - Claim, the caps hold the review-pass run, exempt a re-run a person starts and never hold
release-critical: verified (heavy-caps/action.ymllines 39–42 and 53, test line 394). - Claim, opt-in label suites run at the review-pass run, not the first attempt: verified (test line 564).
- Claim, the three held-suite messages: verified, word for word with FR16.
- Claim,
CONTRIBUTING.mddescribes the flow for every author, with the write-access condition: verified (lines 967–976). - Claim, the listed tests pass, with red-first cases: verified (66 of 66 in the four changed test files; the failed-jobs cases fail on the previous head).
- Claim, the Lab-only routing test reads the new decision line, the knowledge check passes and Prettier is clean: verified.
- Claim, the whole local scripts-suite tally: not reproduced.
- Claim, runner class unchanged, and the new workflow runs on a slim runner: verified.
- Claim, per-run job-minutes, job counts, times to green and the before figure of runner-minutes a day: not reproduced (measurements).
- Claim, the shared agent login's runner-minutes a day stay unchanged: false (second point).
- Claim, time to merge is unchanged: not checked (it depends on merge-guard).
- Claim, overlap with another open pull request on the same record: noted; not part of this head.
- File
.github/actions/heavy-caps/action.yml: clear. - File
.github/scripts/ci-heavy-deferral.test.mjs: clear. - File
.github/scripts/ci-lab-only-routing.test.mjs: clear. - File
.github/scripts/ci-pr-gate.mjs: clear. - File
.github/scripts/ci-review-pass.test.mjs: no fork-review case (first point). - File
.github/scripts/heavy-caps-action.test.mjs: clear. - File
.github/scripts/lib/heavy-turn.mjs: clear; line 119 is where a fork's re-run fails (first point). - File
.github/workflows/ci-review-pass.yml: first point (lines 17 and 90–98). - File
.github/workflows/ci.yml: clear. - File
.github/workflows/pr-comment.yml: clear. - File
CONTRIBUTING.md: clear. - File
docs/specs/AST-030/spec.md: clear (approved at this head).
…h carries a write token for a fork's review
|
/approve-spec 04b1345 |
There was a problem hiding this comment.
Changes requested: the fork review-pass gap and the shared agent login's runner-minutes from the last review are fixed, the record edits are approved at this head, and one thing remains:
- The CI impact says
CI review passruns one job per submitted review, but since this head each review also starts a job when Review signal ends (.github/workflows/ci-review-pass.ymllines 23–25 and 45), and a dismissed review one more, each waiting up to five minutes when the gate does not pass; please count that job in the line and its daily total (nearer 800 than 700 by the description's own run and sweep figures).
Non-blocking: a fork head still needs Review clear to write the gate within the five-minute wait, and this job sets no retries or rate-limit backoff, so also starting on Review clear's end with retries: 3 would close that window.
Claims and files checked
Review mode: incremental; reason: none
- Changed rules (0): none.
- Claim, today every push to a ready pull request runs the full suites except the shared agent login's: verified (the base deferral condition).
- Claim, every author's first attempt into
maindefers, whatever started it: verified (ci-pr-gate.mjslines 73–75,ci-heavy-deferral.test.mjs"defers on %s, for every author"). - Claim, release merge-backs and write-access
release-criticalpull requests are not deferred: verified (ci-pr-gate.mjsline 75,ci.ymllines 779–814). - Claim,
heavy-cidefers unless the change is spec-only or Lab-only: verified (decide step and its test table). - Claim, the required checks and the PR report say "runs when review passes and before merge": verified (
ci-pr-gate.mjsline 97,ci.yml,pr-comment.ymlline 591). - Claim, the new workflow re-runs the deferred run in full once the gates pass at a head: verified (
heavy-turn.mjslines 90–120). - Claim, it looks on reviews,
/approve-speccomments, CI run ends, a quarter-hour sweep of six hours of failed runs, and Review signal's end after a review, waiting up to five minutes for the gate: verified (ci-review-pass.ymllines 18–28, 41–46, 90–117, 125–135). - Claim, a fork's review starts the run from Review signal's end, which has a write token: verified (lines 24, 45, 128; test line 414, which fails on the previous revision).
- Claim, a run that "Re-run failed jobs" left deferred still gets its review-pass run: verified (
heavy-turn.mjsline 115; test lines 194 and 340). - Claim, a fork's run is matched to its pull request by head repository and branch at the run's head: verified (
heavy-turn.mjslines 61–76). - Claim, a fork head admitted after its gates passed starts when its deferred run ends: verified (test line 376).
- Claim, the helper comes from
main, and a review event runs the pull request's copy of the script: verified (ci-review-pass.ymllines 56–63). - Claim, the pre-merge re-run, a later attempt, runs every suite: verified for any later attempt; merge-guard itself is outside this repository.
- Claim, the record gains FR16's held-run sentence, names the new test in FR20's row and drops the FR20 gap line: verified, approved at this head.
- Claim, the record text comes from the earlier spec pull request, which merges first: verified; it is already in the base.
- Claim,
release-criticalcounts only when someone with write access applied it last, and an unreadable label defers: verified (ci.ymllines 779–797,ci-heavy-deferral.test.mjs). - Claim, the caps hold the review-pass run, exempt a re-run a person starts and never hold
release-critical: verified (heavy-caps/action.ymllines 39–42,heavy-caps-action.test.mjs). - Claim, opt-in label suites run at the review-pass run, not the first attempt: verified.
- Claim, the three held-suite messages: verified, word for word with FR16.
- Claim,
CONTRIBUTING.mddescribes the flow for every author, with the write-access condition: verified. - Claim, the listed tests pass, with red-first cases: verified (68 of 68 in the four changed test files; the Review-signal cases fail on the previous revision).
- Claim, the Lab-only routing test reads the new decision line, the knowledge check passes and Prettier is clean: verified.
- Claim, the whole local scripts-suite tally: not reproduced.
- Claim, runner class unchanged, and the new workflow runs on a slim runner: verified.
- Claim, per-run job-minutes, job counts, times to green and the daily runner-minutes before the change: not reproduced (measurements).
- Claim, the shared agent login's runner-minutes rise to 9,440–11,370 a day and the total falls to 42,400–44,300: verified as arithmetic over the stated figures.
- Claim, the new workflow runs one job per submitted review, comment, CI run end and sweep, about 700 a day: false (the point above).
- Claim, time to merge is unchanged: not checked (it depends on merge-guard).
- Claim, overlap with other pull requests on the same record: noted; not part of this head.
- File
.github/actions/heavy-caps/action.yml: clear. - File
.github/scripts/ci-heavy-deferral.test.mjs: clear. - File
.github/scripts/ci-lab-only-routing.test.mjs: clear. - File
.github/scripts/ci-pr-gate.mjs: clear. - File
.github/scripts/ci-review-pass.test.mjs: clear. - File
.github/scripts/heavy-caps-action.test.mjs: clear. - File
.github/scripts/lib/heavy-turn.mjs: clear. - File
.github/workflows/ci-review-pass.yml: its new trigger is what the point above counts; the gate-window note (lines 129–134) is non-blocking. - File
.github/workflows/ci.yml: clear. - File
.github/workflows/pr-comment.yml: clear. - File
CONTRIBUTING.md: clear. - File
docs/specs/AST-030/spec.md: clear (approved at this head).
|
/approve-spec 4926061 |
There was a problem hiding this comment.
Changes requested: the CI impact now counts every CI review pass job and the record edits are approved at this head; one thing remains:
- Miss:
pullsForRunin.github/scripts/lib/heavy-turn.mjs(lines 61–76) repeats the run-to-pull-request lookup thatresolveWorkflowRunPullRequestin.github/scripts/lib/pr-preview.mjsalready does, andreview-clear.ymlkeeps a third copy with a fork fallback neither library copy has, so please export that lookup frompr-preview.mjsonce and call it from both, or say in the pull request why a shared helper cannot serve Review signal's runs.
Non-blocking: a gate written after the five-minute wait, on a head whose deferred run is over six hours old, still gets no review-pass run (a trigger on Review clear would close it), and the CI impact's "at most about 1,000 slim minutes a day" is nearer 1,600 if every job after a review or comment waits its five minutes.
Claims and files checked
Review mode: incremental; reason: none
- Changed rules (0): none.
- Claim, today every push to a ready pull request runs the full suites except the shared agent login's, which defer until ready: verified (the base deferral condition).
- Claim, every author's first attempt into
maindefers, whatever started it: verified (ci-pr-gate.mjslines 73–75,ci-heavy-deferral.test.mjs"defers on %s, for every author"). - Claim, release merge-backs and write-access
release-criticalpull requests are not deferred: verified (ci-pr-gate.mjsline 75,ci.ymllines 779–809). - Claim,
heavy-cidefers unless the change is spec-only or Lab-only: verified (the decide step and its test table). - Claim, the required checks and the PR report say "runs when review passes and before merge": verified (
ci-pr-gate.mjsline 97,ci.ymllines 813, 1164, 2344 and 3178,pr-comment.ymlline 591). - Claim, the new workflow re-runs the deferred run in full once the gates pass at a head: verified (
heavy-turn.mjslines 90–120). - Claim, it looks on reviews,
/approve-speccomments, CI run ends, a quarter-hour sweep of six hours of failed runs and Review signal's end, waiting up to five minutes for the gate: verified (ci-review-pass.ymllines 18–28, 41–46, 91–117 and 126–136). - Claim, a fork's review starts the run from Review signal's end, which has a write token: verified (lines 24 and 45; test line 414).
- Claim, a run that "Re-run failed jobs" left deferred still gets its review-pass run: verified (
heavy-turn.mjsline 118; test lines 194 and 340). - Claim, a fork's run is matched to its pull request by head repository and branch at the run's head: verified (
heavy-turn.mjslines 61–76), though it repeats an existing lookup (the point above). - Claim, a fork head admitted after its gates passed starts when its deferred run ends: verified (test line 376).
- Claim, the helper comes from
main, a review event runs the pull request's copy of the script, and write-token events never check out a fork's head: verified (ci-review-pass.ymllines 56–63 and its events). - Claim, the pre-merge re-run, a later attempt, runs every suite: verified for any later attempt; merge-guard itself is outside this repository.
- Claim, the record gains FR16's held-run sentence, names the new test in FR20's row and drops the FR20 gap line: verified, approved at this head.
- Claim, the record text comes from the earlier spec pull request, which merges first: verified; that text is already in the base.
- Claim,
release-criticalcounts only when someone with write access applied it last, and an unreadable label defers: verified (ci.ymllines 779–797,ci-heavy-deferral.test.mjsline 207). - Claim, the caps hold the review-pass run, exempt a re-run a person starts and never hold
release-critical: verified (heavy-caps/action.ymllines 39–42,heavy-caps-action.test.mjsline 394). - Claim, opt-in label suites run at the review-pass run, not the first attempt: verified (test line 564).
- Claim, the three held-suite messages: verified, word for word with FR16.
- Claim,
CONTRIBUTING.mddescribes the flow for every author, with the write-access condition: verified. - Claim, the listed tests pass, with red-first cases: verified (68 of 68 in the four changed test files).
- Claim, the Lab-only routing test reads the new decision line and Prettier is clean: verified; the knowledge check was not rerun, as no record changed since it last passed.
- Claim, the whole local scripts-suite tally: not reproduced.
- Claim, runner class unchanged, and the new workflow runs on a slim runner: verified.
- Claim, per-run job-minutes, job counts, times to green and the daily runner-minutes before the change: not reproduced (measurements).
- Claim, the shared agent login's runner-minutes rise to 9,440–11,370 a day and the total falls to 42,400–44,300: verified as arithmetic over the stated figures.
- Claim, the new workflow runs one job per review, a second when its Review signal run ends (dismissals included), and one per
/approve-speccomment, CI run end and sweep, about 800 a day: verified. - Claim, at most about 1,000 slim minutes a day: overstated as a ceiling, nearer 1,600 if every job after a review or comment waits (non-blocking).
- Claim, time to merge is unchanged: not checked (it depends on merge-guard).
- Claim, overlap with other pull requests on the same record: noted; not part of this head.
- File
.github/actions/heavy-caps/action.yml: clear. - File
.github/scripts/ci-heavy-deferral.test.mjs: clear. - File
.github/scripts/ci-lab-only-routing.test.mjs: clear. - File
.github/scripts/ci-pr-gate.mjs: clear. - File
.github/scripts/ci-review-pass.test.mjs: clear. - File
.github/scripts/heavy-caps-action.test.mjs: clear. - File
.github/scripts/lib/heavy-turn.mjs: the point above (lines 61–76). - File
.github/workflows/ci-review-pass.yml: the late-gate note (lines 130–136) is non-blocking. - File
.github/workflows/ci.yml: clear. - File
.github/workflows/pr-comment.yml: clear. - File
CONTRIBUTING.md: clear. - File
docs/specs/AST-030/spec.md: clear (approved at this head).
… and the review-pass start
|
/approve-spec 1d210b8 |
There was a problem hiding this comment.
Changes requested: the shared run-to-pull-request lookup from the last review is in, and the record edits are approved at this head; one thing remains:
- Miss: the CI impact's daily estimate (42,400 to 44,300 runner-minutes, down from 56,080) counts one review-pass run per merged pull request for engineering owners, but their code-only heads pass
review-requiredat once (.github/workflows/review-signal.ymllines 651–655), as the description already says of the shared agent login, and they authored 319 of the 444 pull requests merged intomainfrom 11/13 to 11/16, so each of their pushes adds a full run and the daily figure, the direction of the runner-pool change and the time to green for that lane need recounting (FR19).
Two non-blocking notes sit on the lines they concern: CONTRIBUTING.md says a Lab-only change "runs everything", and the sweep fetches each pull request twice.
Claims and files checked
Review mode: incremental; reason: none
- changed rules (0): none
- Claim: every author's first attempt into
maindefers, whatever started it, and a release merge-back never does: verified (ci-pr-gate.mjs:73-75,ci-heavy-deferral.test.mjs:175,:185). - Claim:
release-criticalskips the deferral only when someone with write access applied it last: verified (ci.yml:781-808,ci-heavy-deferral.test.mjs:207). - Claim: the deferred message reads "runs when review passes and before merge" in the checks and the report: verified (
ci-pr-gate.mjs:96-97,ci.yml:813-814,:1164,:2344,:3178,pr-comment.yml:591). - Claim: the new workflow re-runs the deferred run in full once the gate passes, looking on reviews,
/approve-spec, CI run ends, Review signal's end and a quarter-hour sweep of six hours of failed runs, waiting up to five minutes after a review: verified (ci-review-pass.yml:18-28,:95-117,:131-135;ci-review-pass.test.mjs). - Claim: a run that "Re-run failed jobs" left deferred still gets its review-pass run: verified (
heavy-turn.mjs:103-113,ci-review-pass.test.mjs:194,:340). - Claim: a fork's run is found through one shared lookup that the preview resolver also calls, with its refusals unchanged: verified for those two callers (
workflow-run-pulls.mjs:19-50,pr-preview.mjs:535-547, 81 resolver tests pass);review-clear.ymlkeeps its own older lookup. - Claim: the write-token paths run the default branch's workflow and helper and never run a fork's head: verified (
ci-review-pass.yml:56-64). - Claim: the pre-merge re-run is a later attempt and runs every suite: verified (
ci-heavy-deferral.test.mjs:324). - Claim: the caps hold the review-pass run, exempt a person's re-run and never hold
release-critical, with the three FR16 messages: verified (heavy-caps/action.yml:39-42,:85,:88,:123;heavy-caps-action.test.mjs:394). - Claim: opt-in label suites run at the review-pass run: verified (
ci-heavy-deferral.test.mjs:564). - Claim: the record adds the FR16 held-run sentence, names the new test in FR20's row and drops the FR20 gap line, after the record change it builds on merged: verified (record diff; that change is in the base).
- Claim: the listed tests pass, Prettier is clean and the knowledge check passes: verified here (68 and 82 tests); the 3,588-test local suite count was not reproduced.
- Claim: CI impact per push and the shared login's rise: stated; the daily after-estimate: false for engineering owners (finding above).
- Claim: the new workflow uses at most about 1,600 slim minutes a day: consistent with its job counts.
- File
.github/actions/heavy-caps/action.yml: clear. - File
.github/scripts/ci-heavy-deferral.test.mjs: clear. - File
.github/scripts/ci-lab-only-routing.test.mjs: clear. - File
.github/scripts/ci-pr-gate.mjs: clear. - File
.github/scripts/ci-review-pass.test.mjs: clear. - File
.github/scripts/heavy-caps-action.test.mjs: clear. - File
.github/scripts/lib/heavy-turn.mjs: clear. - File
.github/scripts/lib/pr-preview.mjs: clear. - File
.github/scripts/lib/workflow-run-pulls.mjs: clear. - File
.github/workflows/ci-review-pass.yml: non-blocking notes (sweep lookup, late gate). - File
.github/workflows/ci.yml: clear. - File
.github/workflows/pr-comment.yml: clear. - File
CONTRIBUTING.md: non-blocking wording note. - File
docs/specs/AST-030/spec.md: clear.
…s DEC-11), never the author's own push; a head already reviewed runs every suite in its first run
|
/approve-spec dc635c9 |
There was a problem hiding this comment.
Changes requested: the runner-minutes estimate from the last review now holds, since an author's own push no longer starts the full run, and the record edits are approved at this head; one thing remains:
- The deferral notice (
.github/workflows/ci.ymlline 857),CONTRIBUTING.mdlines 973–974 and the description'sCI review passbullet still say the full run starts when the review and spec gates pass, butreview-requiredalready shows success at an engineering owner's own push while the run now waits for the review app's or an engineering owner's approval of that exact head, so please say that in all three, and in the headers ofci-review-pass.ymlandlib/heavy-turn.mjs.
Four non-blocking notes remain: CONTRIBUTING.md still says a Lab-only change "runs everything", the sweep's lookups sit outside the per-pull-request try, a gate written after the five-minute wait has no start of its own, and the gate step's comment in ci.yml (line 800) names a re-run, which never reaches heavy-ci.
Claims and files checked
Review mode: incremental; reason: none
- changed rules (0): none
- Claim: every author's first attempt into
maindefers, whatever started it, and a release merge-back never does: verified (ci-pr-gate.mjs:73-75,ci-heavy-deferral.test.mjs:175,:185). - Claim:
heavy-cidefers unless the change is spec-only or Lab-only: verified (ci.yml:852,ci-lab-only-routing.test.mjs:260). - Claim: the deferred message reads "runs when review passes and before merge" in the checks and the report: verified (
ci-pr-gate.mjs:97,ci.yml:857-858,:1208,:2388,:3222,pr-comment.yml:591). - Claim: the new workflow re-runs the deferred run in full when the gates pass (
review-requiredturns success): false as worded, since it also needs an exact-head approval (finding above). - Claim: it looks on reviews,
/approve-spec, CI run ends, Review signal's end and a quarter-hour sweep of six hours of failed runs, waiting up to five minutes after a review: verified (ci-review-pass.yml:18-28,:101-127,:136-146). - Claim: a run that "Re-run failed jobs" left deferred still gets its review-pass run: verified (
heavy-turn.mjs:186-196,ci-review-pass.test.mjs:291). - Claim: a fork's run is found through one shared lookup that the preview resolver also calls, with its refusals unchanged: verified (
workflow-run-pulls.mjs:19-50,pr-preview.mjs:535-547; resolver tests pass). - Claim: the write-token paths run the default branch's workflow and helper and never run a fork's head: verified (
ci-review-pass.yml:56-64); the sparse checkout also brings the files directly under.github/scripts, which the helper now loads. - Claim: the review counts only as an exact-head approval by the review app for a write-access author or by an engineering owner, in both the start and
heavy-ci's same-run check: verified (heavy-turn.mjs:104-143,:169,ci.yml:800-840,ci-review-pass.test.mjs:224,ci-heavy-deferral.test.mjs:207). - Claim:
release-criticalskips the deferral only when someone with write access applied it last: verified (ci.yml:779-798,ci-heavy-deferral.test.mjs:275). - Claim: the caps hold the review-pass run, exempt a person's re-run and never hold
release-critical, with the three held-suite messages: verified (heavy-caps/action.yml:39-42,:85,:88,:123;heavy-caps-action.test.mjs:394). - Claim:
CONTRIBUTING.mddescribes this flow for every author: false for engineering owners and the shared agent login (finding above). - Claim: opt-in label suites run at the review-pass run: verified (
ci-heavy-deferral.test.mjs:634). - Claim: the pre-merge re-run is a later attempt and runs every suite: verified (
ci-heavy-deferral.test.mjs:392). - Claim: the record adds the held-run sentence, names the new test in the verification row and drops the gap line: verified (record diff).
- Claim: the listed tests pass, Prettier is clean and the knowledge check passes: verified here for the seven suites the change touches; the full local suite count was not reproduced.
- Claim: a head already reviewed when its run starts runs every suite in that run: verified (
ci.yml:800-852). - Claim:
review-signal.ymlstill writesreview-requiredsuccess at an engineering owner's own push: verified (review-signal.yml:651-655,:829). - Claim: CI impact per lane and the daily estimate (about 43,400 runner-minutes, down from 56,080): consistent with the code and the stated inputs; the inputs were not re-measured.
- Claim: the new workflow runs on slim runners, about 800 jobs a day and at most about 1,600 slim minutes: consistent with its triggers.
- File
.github/actions/heavy-caps/action.yml: clear. - File
.github/scripts/ci-heavy-deferral.test.mjs: clear. - File
.github/scripts/ci-lab-only-routing.test.mjs: clear. - File
.github/scripts/ci-pr-gate.mjs: clear. - File
.github/scripts/ci-review-pass.test.mjs: clear. - File
.github/scripts/heavy-caps-action.test.mjs: clear. - File
.github/scripts/lib/heavy-turn.mjs: header names the old trigger (finding). - File
.github/scripts/lib/pr-preview.mjs: clear. - File
.github/scripts/lib/workflow-run-pulls.mjs: clear. - File
.github/workflows/ci-review-pass.yml: header names the old trigger (finding); non-blocking notes (sweep lookups, late gate). - File
.github/workflows/ci.yml: deferral notice (finding); non-blocking comment note. - File
.github/workflows/pr-comment.yml: clear. - File
CONTRIBUTING.md: trigger wording (finding); non-blocking Lab-only wording. - File
docs/specs/AST-030/spec.md: clear.
…n waits for a review of the exact head; the sweep contains a failed lookup
|
/approve-spec f8ecfc3 |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet, since the pull request is a draft. The deferral notice, CONTRIBUTING.md, the description and the headers of ci-review-pass.yml and lib/heavy-turn.mjs now say the full run waits for the review app's or an engineering owner's approval of the exact head, which fixes the last blocking point, and the record edits are approved at this head.
Three non-blocking notes remain:
- A gate that
Review clearwrites after the five-minute wait still has no start of its own, so a head reviewed more than six hours after its run can stay deferred until a manual or pre-merge re-run; a trigger onReview clear's end would remove that. - The sweep still reads each named pull request twice (once in
pullsForRun, once before starting it); returning the candidates frompullsForRunwould keep one read. - Miss: the
heavy-ciheader comment inci.yml(lines 741–743) still says the run starts "at the first head whose review and spec gates pass", while each head gets its own review-pass run once an exact-head review clears it.
Claims and files checked
Review mode: incremental; reason: none
- changed rules (0): none
- Claim: every author's first attempt into
maindefers, whatever started it, and a release merge-back never does: verified (ci-pr-gate.mjs:73-75,ci-heavy-deferral.test.mjs:175,:185). - Claim:
heavy-cidefers unless the change is spec-only or Lab-only,release-criticalcounts, or the head's review already passes: verified (ci.yml:840-857,ci-heavy-deferral.test.mjs:454,ci-lab-only-routing.test.mjs). - Claim: the deferred message reads "runs when review passes and before merge" in the checks and the report: verified (
ci-pr-gate.mjs:96-97,ci.yml:856-857,:1207,:2387,:3221,pr-comment.yml:591). - Claim: the new workflow re-runs the deferred run in full once the review app (for a write-access author) or an engineering owner approves that exact head and
review-requiredshows success, and a success at an engineering owner's own push alone does not start it: verified (heavy-turn.mjs:106-145,:161-199,ci-review-pass.test.mjs:224). - Claim: it looks on reviews,
/approve-spec, CI run ends, Review signal's end and a quarter-hour sweep of six hours of failed runs, waiting up to five minutes after a review: verified (ci-review-pass.yml:21-31,:104-140,:149-158). - Claim: a run that "Re-run failed jobs" left deferred still gets its review-pass run: verified (
heavy-turn.mjs:186-198,ci-review-pass.test.mjs:291). - Claim: a fork's run is found through one shared lookup that the preview resolver also calls, with its refusals unchanged: verified (
workflow-run-pulls.mjs:19-50,pr-preview.mjs:533-547; resolver tests pass). - Claim: the write-token paths run the default branch's workflow and helper and never run a fork's head: verified (
ci-review-pass.yml:59-67); the sparse checkout also brings the files directly under.github/scripts, which the helper loads. - Claim: the review counts only as an exact-head approval, in both the start and
heavy-ci's same-run check: verified (heavy-turn.mjs:106-145,ci.yml:800-839,ci-heavy-deferral.test.mjs:207). - Claim:
release-criticalskips the deferral only when someone with write access applied it last: verified (ci.yml:780-798,ci-heavy-deferral.test.mjs:275). - Claim: the caps hold the review-pass run, exempt a person's re-run and never hold
release-critical, with the three held-suite messages: verified (heavy-caps/action.yml:39-42,:85,:88,:123;heavy-caps-action.test.mjs:394). - Claim:
CONTRIBUTING.mddescribes this flow for every author: verified (CONTRIBUTING.md:962-979). - Claim: opt-in label suites run at the review-pass run: verified (
ci-heavy-deferral.test.mjs:634). - Claim: the pre-merge re-run is a later attempt and runs every suite: verified (
ci-heavy-deferral.test.mjs:392). - Claim: the record adds the held-run sentence, names the new test in the verification row and drops the gap line: verified (record diff).
- Claim: the listed tests pass, Prettier is clean and the knowledge check passes: verified for the seven suites the change touches; the full local suite count was not reproduced.
- Claim: a head already reviewed when its run starts runs every suite in that run: verified (
ci.yml:800-857). - Claim:
review-signal.ymlstill writesreview-requiredsuccess at an engineering owner's own push and this change does not read it as a review: verified (review-signal.yml:653-656,:829, unchanged;ci-review-pass.test.mjs:224). - Claim: CI impact per lane and the daily estimate (about 43,400 runner-minutes, down from 56,080): consistent with the code and the stated inputs; the inputs were not re-measured.
- Claim: the new workflow runs on slim runners, about 800 jobs a day and at most about 1,600 slim minutes: consistent with its triggers.
- Claim: it lands after the record pull request it carries: that pull request is already in the base.
- File
.github/actions/heavy-caps/action.yml: clear. - File
.github/scripts/ci-heavy-deferral.test.mjs: clear. - File
.github/scripts/ci-lab-only-routing.test.mjs: clear. - File
.github/scripts/ci-pr-gate.mjs: clear. - File
.github/scripts/ci-review-pass.test.mjs: clear. - File
.github/scripts/heavy-caps-action.test.mjs: clear. - File
.github/scripts/lib/heavy-turn.mjs: clear. - File
.github/scripts/lib/pr-preview.mjs: clear. - File
.github/scripts/lib/workflow-run-pulls.mjs: non-blocking note (double read). - File
.github/workflows/ci-review-pass.yml: non-blocking notes (late gate, double read). - File
.github/workflows/ci.yml: non-blocking note (header comment). - File
.github/workflows/pr-comment.yml: clear. - File
CONTRIBUTING.md: clear. - File
docs/specs/AST-030/spec.md: clear.
| # required checks fail with the reason until review passes: at the first | ||
| # head whose review and spec gates pass, ci-review-pass.yml runs the run |
There was a problem hiding this comment.
Miss, non-blocking: this still says the run starts "at the first head whose review and spec gates pass". Each head whose review passes gets its own review-pass run (AST-030 FR20), and the start needs a review of that exact head, as the notice below and CONTRIBUTING.md now say. "at a head whose review passes as DEC-11 reads it" would match the header of lib/heavy-turn.mjs.
Who this helps
Whoever waits for CI behind runs on heads that never merge. With this change a pull request's first attempt at a head runs only the fast checks, and the heavy suites run once that exact head's review passes, as
architecture:knowledge-contractsDEC-11 reads the gate (the review app's exact-head approval for a write-access author, or an engineering owner's approval, with the gate's spec half), and again before merge (AST-030 FR20, DEC-32). An author's own push never counts as the review, so every lane's unreviewed heads stop running the full suites.What changes (spec:AST-030 FR20, DEC-32 "Heavy CI runs once review passes")
ci-pr-gate.mjs(HEAVY_CANDIDATE): the deferral now covers a pull-request run intomainfrom any author (the shared agent login, engineering owners and forks alike) in its first attempt, whatever started it (a push, opening, reopening or marking ready). A release merge-back is never deferred; a pull request labelledrelease-criticalis not deferred either. Theheavy-cijob decides, and it defers unless the change is spec-only or Lab-only (FR26).ci-review-pass.yml+lib/heavy-turn.mjs: once the review app (for a write-access author) or an engineering owner approves a head andreview-requiredshows success there (its spec half included), it re-runs that head's deferred CI run in full; areview-requiredsuccess at an engineering owner's own push, with no review, does not start it, and that later attempt runs every suite (the review-pass run). It looks on a submitted review, an/approve-speccomment, the end of a pull-request CI run, and every quarter hour for a start it missed (paging through the last six hours' failed runs), and when Review signal ends after a review: a fork's review event has a read-only token that cannot start a run, so Review signal's end, with a write token, starts it, after waiting up to five minutes for Review clear to write the gate. A run that Re-run failed jobs left deferred still gets its review-pass run, since the decision reads the latest attempt's jobs. A fork's CI run lists no pull request, sopullsForRunfinds it by the run's head repository and branch at the run's head, throughworkflowRunPullCandidates(newlib/workflow-run-pulls.mjs): the one run-to-pull-request lookup, whichpr-preview.mjs's source-run resolver now calls too, with its refusals unchanged; a fork head admitted after its gates passed gets its review-pass run when its deferred run ends. Its helper comes from main; on a review event GitHub takes the inline script from the pull request's own copy of the workflow. With a write token (Review signal's end, a CI run's end, the sweep), it runs main's copy of the workflow, checks out only.github/scripts/libfrom main, and never checks out or runs a fork's head; it only re-runs the fork's own pull-request CI run, which keeps that run's read-only token (FR17). merge-guard's pre-merge re-run is a later attempt too, so it also runs every suite.ci-review-pass.test.mjsbesideci-heavy-deferral.test.mjs. The FR20 gap line is removed.reviewPasses,lib/heavy-turn.mjs):review-requiredsucceeds at the head and a review of that exact head cleared its code half, decided byreview-signal-decision.cjs'sresolveReviewApprovals: the review app's latest verdict for a write-access author, or an engineering owner's approval. The review-pass start andheavy-ci's same-run check both use it.release-critical(DEC-30): the label skips the deferral only when someone with write access applied it last.heavy-cinow runs for a labelled pull request and asksdecideRunLabel, as admission and the caps do; a label from someone without write access, or one it cannot read, defers like any other push.heavy-caps(FR16): the review-pass run, which the workflow token starts, is held by the per-author caps like a first run; a re-run a person starts (merge-guard's pre-merge restart) stays exempt, and arelease-criticalpull request is never held.CONTRIBUTING.md: the heavy-suite and deferral bullets describe this flow for every author.ci:run-a11y,ci:run-rtl,ci:run-visual,ci:run-swizzle) run at the review-pass run, not on the deferred first attempt, because they need the Storybook build the deferral skips.heavy-capsmessages (FR16): "Queued behind your 15 oldest PRs: runs at a review-pass run once it is among them, or at the pre-merge re-run.", the same for the shared login's 5, and "Daily heavy-run cap reached: runs at a review-pass run after the cap resets, or at the pre-merge re-run."docs/specs/AST-030/spec.md: removes the "FR20 gap:" line, which this change closes. The record text itself comes from spec(AST-030): heavy CI runs once review passes, for every author (DEC-32) #12595, which this branch carries; it merges after spec(AST-030): heavy CI runs once review passes, for every author (DEC-32) #12595.Tests
ci-heavy-deferral.test.mjs: any first attempt of a pull request intomaindefers, naming no author; a release-branch pull request, arelease-criticalpull request's first push and a spec-only change run everything; a deferred run skips every heavy job, still runs typecheck and lint, and fails every required context with the reason; a label's suites run at the review-pass run, not the first attempt; a fork push admitted withci:rundefers, its review-pass run at that head runs every suite after the label is removed, and a later push runs nothing; the pre-merge re-run runs every suite.ci-review-pass.test.mjs(new): the deferred run is re-run in full once review passes at its head; it reads the newest run at that head, not an older head's; a later head whose gates pass gets its own review-pass run; it waits for the gate to settle after a review; a pull request into a release branch starts nothing; the schedule sweeps recent failed first attempts, a fork's (with nopull_requests) included; a fork head admitted after its gates passed starts when its deferred run ends.ci-heavy-deferral.test.mjs(DEC-30): a labelled pull request'sheavy-cireads the label throughdecideRunLabel; it counts when applied by write access and not when applied without it or unreadable; the decision runs everything only when it counts.ci-review-pass.test.mjs(DEC-11): starts on the review app's exact-head approval of a write-access author, or an engineering owner's; not on a gate that passed at the author's own push with no review, an approval of an earlier head, an app approval for an author without write access, or a lookalike app login.ci-heavy-deferral.test.mjs:heavy-ciruns every suite in the same run only when the head's review already passes as DEC-11 reads it; a gate that passed at the author's own push defers.ci-review-pass.test.mjs: a fork head reviewed after its run is old starts on Review signal's end, once the gate settles; the workflow looks after a CI run and a review's Review signal run only, and a fork's run gets its own concurrency group; a draft marked ready after its gates passed starts when that first run ends; a run that "Re-run failed jobs" left deferred is re-run in full, on its own and in the sweep, while a run already re-run in full, or one that ran every suite and failed for another reason, is not.heavy-caps-action.test.mjs: the review-pass run past the author's 15 oldest or 100 runs is held with the FR16 message; merge-guard's pre-merge re-run of the same head is not; arelease-criticalpull request's review-pass run is never held. Red-first: the fork and caps cases fail against the previous head.heavy-caps-action.test.mjs: the three FR16 messages..github/scriptssuite, 3,567 of 3,596 pass; the 6 that fail are browser launch and visual-gate builds on this machine, failing the same way on the base.ci-lab-only-routing.test.mjsnow reads the new decision line.pnpm check:knowledgepasses; Prettier clean.CI impact
CI impact: runner class unchanged (standard runners). Figures are per pull-request CI run into
main, from the runs of 11/13–11/16 (job-minutes summed over a run's jobs; time is the run's wall clock). A full run is 155 job-min (p50) and about 34 min to green; a deferred first attempt is 12.5 job-min, 3 to 4 jobs, red in about 12 min.release-critical(write access), spec-only, Lab-only, release branchesreview-signal.ymlstill writesreview-requiredsuccess at an engineering owner's own push (codeHighRiskexcludesauthorIsEng); this change does not read that as a review and leaves that path unchanged.CI review passworkflow runs onubuntu-slim(free, no larger-runner minutes): one short job per submitted review, a second when that review's Review signal run ends (also for a dismissed review), and one per/approve-speccomment, pull-request CI run end and quarter-hour sweep: about 800 a day, most under a minute, at most about 1,600 slim minutes if every job after a review or comment waits its five minutes.Overlap checked: #12595 (the record this implements; this branch carries its text and merges after it), #12359 (rewrites the same AST-030 FR20 text today; Specs is moving that text out of it, and its cap moves to DEC-33)
Owning session: noopbot (a61f66c2), under CI & Release (ca77f950). Land path: the shipper, through merge-guard, after #12595.