Skip to content

spec(AST-030): at most three PR CI runs per author (DEC-33) - #12359

Draft
cixzhang wants to merge 9 commits into
mainfrom
specs/ast030-dec31-ci-throughput
Draft

cixzhang wants to merge 9 commits into
mainfrom
specs/ast030-dec31-ci-throughput

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Exact decision needed

How many pull-request CI runs one author may have active at once.

Existing authority searched

spec:AST-030 FR16 (per-author heavy-suite limits, engineering-owner exemption), DEC-16 (room and the twelve-minute longest wait), DEC-30 (release-critical), and DEC-32 (heavy CI runs once review passes, now on main). None of them limits an author's concurrent runs.

Decision

Decider: cixzhang, 2026-11-17 07:57 PT

  • FR16: an author has at most three pull-request CI runs active at once, engineering owners included; the shared agent login is one author, so all agent lanes share three (decided 2026-11-17 08:36 PT). A run over the cap waits for one of that author's runs to finish and is not turned away for the cap; it then waits for room as any run does, its stop without room at the longest wait included. A release-critical run is outside the cap (DEC-30).
  • DEC-33 records it and amends DEC-16; the FR16 Verification row lists the three-run cap cases; two "FR16 gap: …" lines state where admission differs today (no cap; a fork's runs are not counted, since a fork's run has only a read-only token).
  • The heavy-suite scheduling this record carried before now lives on main as DEC-32 (from its own record pull request), so this pull request no longer changes FR20, FR17, FR29, FR12, DEC-14, DEC-25 or DEC-26.

Rejected alternatives

Letting main-red and flaky-test fixes skip the queue as release-critical pull requests do.

Claim scope and non-goals

No change to admission room (about ninety jobs), main priority, merge-queue entries, release checks, opt-in labels, or the review-pass deferral (DEC-32).

Evidence and implementation relationship

The admission change follows in a separate pull request that cites spec:AST-030/DEC-33.

Writing rubric results

  • R1 narration: none; DEC-33 and the DEC-16 amendment note are in the present tense.
  • R2 research in the record: none.
  • R3 evidence naming a change: none.
  • R4 rejected alternatives over one line or outside a decision: one line, inside DEC-33.
  • R5 pull request or issue references remaining: none.
  • R6 ruled open questions still listing options: none (Open questions: None).
  • R7 project status: the enforcement gaps are stated as "FR16 gap: …" lines (the cap's absence and the uncounted fork runs), not as build status.

Scope

Components: none (CI policy record spec:AST-030).

  • This PR contains specification records only.
  • It records observable behavior and preserves equivalent internal implementations.
  • Any named internal mechanism is intentionally public, names its dependent caller/system, and explains why an equivalent implementation would not satisfy the contract.
  • Verification states the evidence layer and failure signal without prescribing CI job/workflow topology.
  • It records one intentional durable decision, not a rescue for a separable tagalong.
  • The canonical knowledge owner, affected current claims, and overlapping open work are named; any ownership collision is resolved or called out for human decision.
  • Adjacent API, visual, accessibility, composition, and implementation facts remain outside scope unless this exact decision depends on them.
  • Public text and artifacts contain no internal Meta context.

Validation

  • pnpm check:knowledge: aligned
  • Prettier: clean

Overlap checked: the one open pull request that edits this record is #12223 (DEC-30's decider wording, no per-author cap and no new decision). #12129 and #12285 also edited it but closed without merging; #11921's edit has merged.

Numbering: recorded as DEC-33. DEC-32 is on main; DEC-31 was reserved by #12129, which closed without merging, so DEC-31 is unused. Renaming DEC-33 would change the decided record, so it keeps its number.

@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 21, 2026 3:28pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 17, 2026
@astracat-bot

astracat-bot Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟡 Reviewed (for maintainers only) Nov 21, 2026, 3:44 PM UTC

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 8ed991a

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested. The DEC-31 decision is owner-approved, but parts of docs/specs/AST-030/spec.md still describe the old timing, so the follow-up workflow changes can't be checked against one rule.

  • The FR20 row of the Verification table still counts a ready or reopened pull request that defers as a failure and treats the deferral as agent-only, the opposite of the new FR20, and FR16's rows have no case for the three-run cap.
  • FR20 defers a push "until the review and spec gates pass at that head" but runs every suite only at "the first head at which the review and spec gates pass", so it does not say whether a later head whose gates pass runs the heavy suites before the pre-merge re-run, which for engineering owners decides whether anything is deferred.
  • The "Amended by DEC-31" note meant for DEC-16 sits at the end of DEC-15, and DEC-16 has no note.
  • FR17 still says marking a pull request ready starts a run that "runs what the change reaches", and FR29 starts a fork's contributor run through that ready event on the review bot's approval, so under the new FR20 that run gets typecheck only unless an engineering owner has already approved the head, and the description names neither clause as affected.

Smaller points: DEC-31 still uses "no longer covers" (narration), FR26 still says only an agent lane's push defers nothing, and open #12129 also adds a DEC-31 to this record, so one of the two needs renumbering.

Claims and files checked

Review mode: full; reason: no-earlier-review

  • No existing clause caps one author's concurrent runs or defers heavy suites for other authors: verified (FR16, the old FR20, DEC-14, DEC-16, DEC-30).
  • FR20 defers heavy suites for every author until review passes, and ready, open and reopen start none: verified in FR20 and DEC-14's note; see the later-head finding.
  • FR16 adds a three-run cap that includes engineering owners and has no twelve-minute turn-away, with release-critical outside it: verified in FR16.
  • The cap amends DEC-16: false, because the note sits in DEC-15.
  • DEC-31 records both rules with a current-state gap, and rejects letting main-red and flaky-test fixes skip the queue: verified.
  • No change to admission room, main priority, merge-queue entries, release checks or opt-in labels: verified for those clauses, but the ready-event run in FR17 and FR29 changes (finding).
  • Workflow changes follow separately: consistent with the current-state gap.
  • Writing rubric: R1 is false in part (the DEC-16 note's placement, and "no longer covers" in DEC-31). R2 to R7 are verified: no research, no change references, one rejected line inside DEC-31, no open questions, and a gap that names FR20 and FR16.
  • Scope checklist: records only, verified; affected current claims named, false (FR17, FR29 and the Verification rows are not named); verification without topology, false while the FR20 row verifies the old rule; no internal context, verified.
  • Validation: run at this head, the knowledge check reports the records aligned and Prettier passes on the changed file, verified; no added line has a whitespace error, verified.
  • Overlap check: verified that the eight listed pull requests edit other clauses and none adds the deferral or the cap; #12129 also adds a different DEC-31, which is not called out.
  • docs/specs/AST-030/spec.md: four blocking findings and three smaller points, above.

Automated review (maintainer link)

Comment thread docs/specs/AST-030/spec.md Resolved
Comment thread docs/specs/AST-030/spec.md Resolved
Comment thread docs/specs/AST-030/spec.md Resolved
Comment thread docs/specs/AST-030/spec.md Resolved
Comment thread docs/specs/AST-030/spec.md Resolved
Comment thread docs/specs/AST-030/spec.md Resolved
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 5032d03

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested. DEC-31's direction is approved by an engineering owner at this head, but four parts of docs/specs/AST-030/spec.md still describe the old timing, so the follow-up workflow changes can't be checked against one rule.

  • The FR20 row of the Verification table still counts a ready or reopened pull request that defers as a failure and treats the deferral as agent-only, the opposite of the new FR20, and FR16's rows have no case for the three-run cap.
  • FR20 defers a push "until the review and spec gates (FR15) pass at that head" but runs every suite only at "the first head at which the review and spec gates pass", so it does not say whether a later head whose gates pass runs the heavy suites before the pre-merge re-run, which for engineering owners decides whether anything is deferred.
  • The "Amended by DEC-31" note meant for DEC-16 sits at the end of DEC-15, so DEC-16 still reads as stopping every pull-request run at its twelve-minute wait.
  • FR17 still says marking a pull request ready starts a run that "runs what the change reaches", and FR29 starts a fork's contributor run through that ready event, so under the new FR20 that run gets typecheck only unless an engineering owner has already approved the head, and FR17, FR29 and DEC-26 need to say what it gets.

Smaller points: the fork gap says a fork's run starts only after a maintainer's ci:run label, though FR29's contributor job adds that label itself; Miss: the first gap lists turning a run away at its longest wait as a gap, though FR16 still requires that for a run without room; DEC-31 still narrates ("no longer covers"); FR26, FR12 and DEC-25 keep agent-only or every-run wording; and open #12129 also adds a DEC-31.

Claims and files checked

Review mode: same-head; reason: none

  • No existing clause caps one author's concurrent runs or defers heavy suites for other authors: verified (FR16, the old FR20, DEC-14, DEC-16, DEC-30).
  • FR20 defers heavy suites for every author until review passes, and ready, open and reopen start none, amending DEC-14: verified in FR20 and DEC-14's note; see the later-head finding.
  • FR16 adds a three-run cap that includes engineering owners and waits instead of turning a run away, with release-critical outside it: verified in FR16.
  • The cap amends DEC-16: false, because the note sits in DEC-15.
  • DEC-31 records both rules with a current-state gap, and rejects letting main-red and flaky-test fixes skip the queue: verified.
  • No change to admission room, main priority, merge-queue entries, release checks or opt-in labels: verified for those clauses, but the ready-event runs of FR17 and FR29 change (finding).
  • Workflow changes follow in separate pull requests: consistent with the current-state gap.
  • Writing rubric: R1 is false in part ("no longer covers" remains in DEC-31, and the DEC-16 note is not in DEC-16); R2 to R7 are verified.
  • Scope checklist: records only, verified; named mechanisms public, false in part (the fork gap names a commit status and a self-cancel); verification without topology, verified, though the FR20 row verifies the old rule (finding); affected claims named, false (FR17, FR29 and the Verification rows are not named); no internal context, verified.
  • Validation: the knowledge check reports the records aligned, Prettier passes on the changed file, and no added line has a whitespace error: verified at this head.
  • Overlap: the eight listed pull requests edit other clauses and none adds the deferral or the cap: verified; #12129's separate DEC-31 is not called out.
  • docs/specs/AST-030/spec.md: four blocking findings and five smaller points, above.

Automated review (maintainer link)

Comment thread docs/specs/AST-030/spec.md Resolved
Comment thread docs/specs/AST-030/spec.md Resolved

@josephfarina josephfarina left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Supportive data for this direction, from last week's pull-request CI runs (Mon 11-09 to Sun 11-15 PT):

  • Most heavy runs are on heads that never merge. In a sample of 121 pull requests whose CI runs link back to them (489 runs), 74% of runs were on a head other than the pull request's last one. Median 2 heads per pull request, mean 3.5; mean 4.0 CI runs per pull request.
  • A full CI run averages about 175–180 runner-minutes. Typecheck alone, plus the room and admission jobs, is about 13–15. So a push that defers the heavy suites costs under a tenth of a full run.
  • Rough upper bound: if the runs on non-final heads drop to typecheck, runner-minutes per merged pull request fall by about 60–65%. Heads re-reviewed after a push still run the heavy suites, so the real saving lands below that.

One note for whoever implements it: #12129 also adds an AST-030 DEC-31, so whichever of the two merges second takes the next number.

Glad to run the same numbers again once the workflows enforce this, for the before/after.

…t is separate from room; forks follow FR20

FR20 runs every suite at each head whose review and spec gates pass and at
the pre-merge re-run. FR17, FR29 and DEC-26 say a fork run admitted with
ci:run follows FR20. FR16 separates the three-run cap wait from the room
wait. The DEC-16 amendment note sits in DEC-16. FR12, FR26 and DEC-25 match
the all-author deferral. The FR20 and FR16 Verification rows cover the new
rules, and the gaps use the FR gap form.
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 17, 2026
@josephfarina

Copy link
Copy Markdown
Contributor

Great idea deferring the heavy tests until review passes. Our data says it cuts runner time per merged PR by about 60%. One concern: the 3-runs-per-author cap would throttle all of our agent PRs, since they push from my account. Could the cap apply to unapproved PRs only, or per PR instead of per author? Happy to adjust our side too.

@josephfarina josephfarina left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting changes for the 3-runs-per-author cap only (see my comment above). It would throttle all of our agent PRs. The deferral part looks good.

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 3558ec1

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 0d4133c

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 17, 2026

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested. DEC-32's direction is approved by an engineering owner at this head, and the earlier record defects are fixed, but two problems remain and an engineering owner's change request is still open.

  • FR20 does not say when a head whose review and spec gates pass while it cannot run CI gets its review-pass run: an engineering owner's draft self-serves the code gate while FR17 runs no CI on a draft, a fork head can be cleared before ci:run takes effect, and marking ready or reopening starts no heavy suite, so the record should give such a head its review-pass run once it can run CI and add that state to the FR20 Verification row.
  • The title still ends "(DEC-31)" and the description says #12129 adds a DEC-32 and must renumber, but this record adds DEC-32 and #12129 adds DEC-31, so please retitle to DEC-32 and correct the overlap note.
  • josephfarina's change request on the per-author three-run cap is still open and this head keeps the cap per author, so approval also waits for him to re-review or dismiss it.

Three smaller suggestions stand in the inline threads on the cap wait, the fork gap line and DEC-25's Rejected line.

Claims and files checked

Review mode: same-head; reason: none

Claims:

  • FR20 defers the heavy suites for every author until the head's review and spec gates pass, runs them at each such head and at the pre-merge re-run, and starts none on ready, open or reopen (amends DEC-14): verified in FR20 and the DEC-14 note.
  • FR16 caps an author at three active pull-request CI runs, owners included, with the shared agent login as one author; a run over the cap waits and then waits for room; release-critical is outside it; the other FR16 limits are unchanged (amends DEC-16): verified in FR16 and the DEC-16 note.
  • FR17, FR29, DEC-26, FR12, DEC-25, FR26 and the FR16 and FR20 Verification rows are kept consistent: verified as edited; FR17 and FR20 leave the draft-head case open (finding above).
  • DEC-32 records both rules, the rejected alternative and the decider line; the gap lines state where the workflows differ today: verified.
  • No change to admission room, main priority, merge-queue entries, release checks or opt-in labels: verified.
  • Writing rubric R1 to R7 results: verified; no narration, references or status phrases are added, and Open questions is None.
  • Specification records only, with no internal context in public text: verified.
  • The knowledge check reports the records aligned, Prettier is clean, and the whitespace check is clean: verified at this head.
  • The listed overlapping pull requests edit other AST-030 clauses and none records this deferral or cap: verified.
  • #12129 adds a DEC-32 and must renumber: false; #12129 adds DEC-31.
  • This decision is numbered DEC-32 because an open pull request adds a DEC-31: verified.
  • The title's "(DEC-31)": false; the record adds DEC-32.

Files:

  • docs/specs/AST-030/spec.md: the FR20 draft-head finding above, plus three non-blocking suggestions in the inline threads.

Automated review (maintainer link)

Comment thread docs/specs/AST-030/spec.md Resolved
login's included, and so are bot accounts. Apart from these limits, an author has at most three
pull-request CI runs active at once, engineering owners included, and every
pull request from the shared agent login counts toward one three-run cap for
that login as a whole. A run over that cap waits, before it waits for room,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking: with two of an author's runs over the cap, "waits ... until one of that author's runs finishes" releases both when one finishes. Suggested: "the oldest waiting run takes the slot", with a two-waiter case in the cap row.

FR16 gap: no cap limits how many pull-request CI runs one author has active at
once.
FR16 gap: a fork pull request's runs do not count toward its author's
three-run cap, because a fork's pull-request run has only a read-only token (a

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking: FR16 already admits a labelled fork's run through the same API reads (its Verification row lists "a fork's stopped run"), so a read-only token does not explain why a fork's runs cannot count. Suggested: FR16 gap: a fork pull request's runs do not count toward its author's three-run cap.

Comment thread docs/specs/AST-030/spec.md Resolved
@cixzhang cixzhang changed the title spec(AST-030): heavy CI runs once review passes, for every author; at most three PR CI runs per author (DEC-31) spec(AST-030): heavy CI runs once review passes, for every author; at most three PR CI runs per author (DEC-32) Nov 17, 2026
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 17, 2026
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec bf31a3d

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 17, 2026

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested. DEC-32's direction is approved by an engineering owner at this head and both earlier blocking problems are fixed, but one inconsistency in the record remains and an engineering owner's change request is still open.

  • Regression: FR20 now makes marking a draft ready, or admitting a fork head's run, start every suite when that head's review and spec gates already passed, but DEC-32 and the description's FR20 bullet still say marking ready, opening and reopening start no heavy suite, so please add that exception to DEC-32's sentence and the description.
  • josephfarina's change request on the per-author three-run cap is still open and this head keeps the cap per author, so approval also waits for him to re-review or dismiss it.

Three smaller suggestions stand in the existing inline threads on the cap wait, the fork gap line and DEC-25's Rejected line.

Claims and files checked

Review mode: same-head; reason: none

Claims:

  • The existing deferral and per-author limits neither cap an author's concurrent runs nor defer heavy suites for other authors: verified against the current record.
  • FR20 defers the heavy suites for every author, gives every head whose review and spec gates pass a run of every suite, and runs every suite at the pre-merge re-run (amends DEC-14): verified in FR20 and the DEC-14 note.
  • Marking ready, opening and reopening start none of those runs: false at this head; FR20 starts every suite when a head cleared before it could run CI is marked ready or admitted (finding above).
  • FR16 caps an author at three active pull-request CI runs, owners included, with the shared agent login as one author; a run over the cap waits for one of that author's runs and is not turned away, then waits for room as before; release-critical is outside it; the other FR16 limits are unchanged (amends DEC-16): verified in FR16 and the DEC-16 note.
  • FR17, FR29, DEC-26, FR12, DEC-25, FR26 and the FR16 and FR20 Verification rows are kept consistent: verified as edited.
  • DEC-32 records both rules and the gap lines state where the workflows differ today: verified, apart from DEC-32's ready, open and reopen sentence (finding above).
  • The decider line, the rejected alternative and the non-goals (admission room, main priority, merge-queue entries, release checks, opt-in labels): verified.
  • Workflow changes follow in separate pull requests: verified; this pull request changes no workflow.
  • Writing rubric R1 to R7 results: verified; no narration, references or status phrases are added, and Open questions is None.
  • Specification records only, with no internal context in public text: verified.
  • The knowledge check reports the records aligned, Prettier is clean, and the whitespace check is clean: verified at this head.
  • The listed overlapping pull requests edit other parts of this record and none records this deferral or cap; one of them adds its own DEC-31, so this decision is DEC-32: verified.
  • The title's heavy CI after review for every author, three runs per author and DEC-32: verified.

Files:

  • docs/specs/AST-030/spec.md: the DEC-32 finding above, plus three non-blocking suggestions in the inline threads.

Automated review (maintainer link)

Comment thread docs/specs/AST-030/spec.md Resolved
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 17, 2026
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 7aad16d

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 17, 2026

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested. DEC-32's direction is approved by an engineering owner at this head, but one inconsistency in docs/specs/AST-030/spec.md remains and an engineering owner's change request is still open.

  • Regression: DEC-32 (line 1531) and the description's FR20 bullet say marking ready, opening and reopening start no heavy suite, while FR20 (lines 517-521) starts every suite when a head whose gates passed while it could not run CI is marked ready or its run is admitted, so DEC-32 and the description need that exception.

Approval also waits on josephfarina re-reviewing or dismissing his change request on the per-author three-run cap, which this head keeps per author. Three non-blocking suggestions stay in their inline threads: which waiting run takes a freed cap slot, the fork gap's stated reason, and DEC-25's in-place rewrite. CI stopped for capacity at this head, so a re-run of all jobs is needed before merge.

Claims and files checked

Review mode: same-head; reason: none

  • Claim: for every author, a push runs typecheck, each head whose review and spec gates pass gets a run of every suite, and the pre-merge re-run runs every suite: verified (FR20, lines 506-525).
  • Claim: marking ready, opening and reopening start none of the heavy suites: false; FR20 starts every suite when a head cleared before it could run CI is marked ready or admitted (lines 517-521).
  • Claim: the change amends DEC-14 and DEC-16, with notes at their end: verified (lines 1096-1098, 1227-1230).
  • Claim: an author has at most three active pull-request CI runs, engineering owners included and the shared agent login as one author; a run over the cap waits instead of being turned away, then waits for room with the longest-wait stop unchanged; release-critical is outside it; FR16's other limits are unchanged: verified (lines 398-406, 1533-1540).
  • Claim: a fork's run admitted with ci:run follows FR20, with a DEC-26 note: verified (lines 463, 665, 1449-1451).
  • Claim: dependent audits run on the runs that run the heavy suites, and a Lab-only push defers nothing for any author: verified (lines 253, 1420-1422, 619-620).
  • Claim: the FR16 and FR20 Verification rows cover the new behavior: verified (lines 801, 807).
  • Claim: DEC-32 records both rules, and gap lines state where the workflows differ today: verified (lines 1522-1543, 766-774).
  • Claim: the rejected alternative is letting main-red and flaky-test fixes skip the queue: verified (lines 1542-1543).
  • Claim: admission room, main priority, merge-queue entries, release checks and opt-in labels are unchanged: verified (those clauses are untouched).
  • Claim: the record follows the writing rubric (present tense, amendment notes at the end of DEC-14, DEC-16 and DEC-26, no pull request references, no open questions, gaps in requirement-gap form): verified (lines 1096-1098, 1227-1230, 1449-1451, 1545-1547, 766-774).
  • Claim: the pull request contains specification records only and no internal context: verified (one record changed; the public-text check passed).
  • Claim: the knowledge check is aligned, Prettier is clean and the whitespace check is clean: verified (each rerun on this head).
  • Claim: the decision is numbered DEC-32 because another open pull request adds DEC-31: verified (that pull request is open and adds DEC-31; main has none).
  • File docs/specs/AST-030/spec.md: the regression above at line 1531; three non-blocking notes (lines 401, 772, 1437).

Automated review (maintainer link)

…uthor cap, as DEC-33

Main now carries the heavy-CI-at-review-pass text (#12595, DEC-32), so this record keeps only the three-run cap, renumbered DEC-33.
@cixzhang
cixzhang marked this pull request as draft November 18, 2026 19:30
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 18, 2026
@cixzhang cixzhang changed the title spec(AST-030): heavy CI runs once review passes, for every author; at most three PR CI runs per author (DEC-32) spec(AST-030): at most three PR CI runs per author (DEC-33) Nov 18, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Holding for an owner decision: the three-run cap is a new requirement, this head carries no /approve-spec (spec-owner approval is still pending), and an engineering owner's change request on that same cap is open. Approval needs an engineering owner to settle whether the cap counts per author, with the shared agent login counted as one author, or per pull request as the open change request asks, and to record that decision by commenting /approve-spec <full head SHA>; the author may do so if they are an engineering owner. Two record fixes are owed whichever way that decision goes.

  • Miss: FR16's new text gives the cap wait "no longest wait" and says it never stops the run, while the same record has a waiting pull-request run sit on a slim runner that stops a job at fifteen minutes and cancels the run, and already fails a job planned past that cap, so the record should say where the cap wait runs and how long it may last.
  • Miss: the pre-merge re-run is exempt from FR16's other per-author limits but falls inside the new cap by default, so an approved pull request's merge re-run would wait behind its author's three other runs; state whether the re-run is inside the cap, reword the "exempt from both limits" sentence now that there are three, and add a re-run case to the cap's verification row.

Three smaller points are in the inline threads: bot accounts are exempt from FR16's other limits but unmentioned in the cap, the record does not say which of an author's waiting runs takes a freed slot, and the fork gap line's read-only-token reason does not follow from FR16, which already admits a labelled fork's run.

Claims and files checked

Review mode: full; reason: spec-record

  • Claim: an author has at most three active pull-request CI runs, owners included, the shared login counted as one author, a run over the cap waiting rather than being turned away, and release-critical runs outside it — verified in the FR16 paragraph.
  • Claim: the decision is recorded and amends the room-wait decision, with a verification row for the cap cases and two gap lines for today's behavior — verified in the decision block, the amendment note, the verification table and the current-state section.
  • Claim: the heavy-suite scheduling this record carried earlier now lives on the default branch, so this pull request no longer changes the deferral, the ready-event requirement, the contributor requirement, the visual requirement or those decisions — verified: the diff touches none of them.
  • Claim: the knowledge check reports the records aligned and Prettier reports the record formatted — verified by running both on this head.
  • Claim: the decision is numbered after the two numbers already taken, one by an open pull request and one on the default branch — verified against that pull request and the record.
  • Claim: the writing rubric results (no narration, no research, no change references, one rejected-alternative line inside the decision, no pull request or issue references, no open questions, project status written as requirement gaps) — verified against the added lines.
  • File: docs/specs/AST-030/spec.md — the only changed file; the two blocking findings above and the three inline notes, otherwise consistent with the rest of the record.

Automated review (maintainer link)

pull-request CI runs active at once, engineering owners included, and every
pull request from the shared agent login counts toward one three-run cap for
that login as a whole. A run over that cap waits, before it waits for room,
until one of that author's runs finishes; that wait has no longest wait and

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking. "that wait has no longest wait and never stops the run" cannot hold where this record puts the wait. A pull-request run "waits like the others, on its slim runner, until its longest wait (12 minutes)" (FR16, further down), DEC-16 explains that "a slim runner stops a job at fifteen minutes and so cancels the whole run" (which is why main's longer wait uses a standard runner), and FR16's existing Verification row fails "a job on a slim runner planned past its fifteen-minute cap". A fourth run waiting out a sibling run, which averages far more than fifteen minutes, is cancelled — and the new cap row counts "a run is stopped or fails for the cap" as a failure. Please say where the cap wait runs and how long it may last: either bound it inside the slim job's fifteen minutes and state what happens at that bound, or put this wait on a standard runner as DEC-16 does for main, and amend the slim-runner sentence and the fifteen-minute failure condition to match.

a day. Engineering owners listed in `.github/ENGOWNERS`, as the pull request's
base commit lists them, are exempt from all of these limits, the shared
login's included, and so are bot accounts. A held suite's check fails with
login's included, and so are bot accounts. Apart from these limits, an author has at most three

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking. This paragraph now states three per-author limits, but the sentence below still reads "A re-run, which is the pre-merge restart, is exempt from both limits", so the pre-merge re-run falls inside the cap by default. An approved pull request's merge re-run would then wait behind three of its author's open-pull-request runs, which is the wait DEC-33 exists to prevent, and the new cap row has no re-run case. Please state whether the pre-merge re-run is inside or outside the cap, reword "both limits" to cover all three, and add the re-run case to the cap row.

base commit lists them, are exempt from all of these limits, the shared
login's included, and so are bot accounts. A held suite's check fails with
login's included, and so are bot accounts. Apart from these limits, an author has at most three
pull-request CI runs active at once, engineering owners included, and every

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking: the sentence just above exempts bot accounts from FR16's other limits, and the cap names engineering owners as included but says nothing about bots, so whether a release or dependency bot's runs are capped is left to inference. One clause ("engineering owners included, bot accounts excluded", or included) settles it.

login's included, and so are bot accounts. Apart from these limits, an author has at most three
pull-request CI runs active at once, engineering owners included, and every
pull request from the shared agent login counts toward one three-run cap for
that login as a whole. A run over that cap waits, before it waits for room,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking (unchanged since the last review): with two of an author's runs over the cap, "waits … until one of that author's runs finishes" releases both when one finishes. Suggested: "the oldest waiting run takes the slot", with a two-waiter case in the cap row.

FR16 gap: no cap limits how many pull-request CI runs one author has active at
once.
FR16 gap: a fork pull request's runs do not count toward its author's
three-run cap, because a fork's pull-request run has only a read-only token (a

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking (unchanged since the last review): FR16 already admits a labelled fork's run through the same API reads, and its Verification row lists "a fork's stopped run", so a read-only token does not explain why a fork's runs cannot be counted. Suggested: FR16 gap: a fork pull request's runs do not count toward its author's three-run cap.

# Conflicts:
#	docs/specs/AST-030/spec.md
@cixzhang cixzhang added the lane:3 Astryx fix-loop lane 3 owns this label Nov 21, 2026
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 8ea5312

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 21, 2026

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested. An engineering owner approved the three-run cap's direction at this head, but two problems remain, and an engineering owner's change request on the cap is still open.

  • Miss: FR16 and the DEC-16 note say the cap wait "has no longest wait and never stops the run", but DEC-16 still says every pull-request job ends within its fifteen-minute budget and a slim runner stops a job at fifteen minutes, so please state where the cap wait runs and how long it may last, and amend DEC-16 and FR16's fifteen-minute failure condition to match.
  • Regression: the description says DEC-31 is taken by an open pull request (#12129), but #12129 has closed without merging, and its overlap line (missed in an earlier review) lists #12320, #12287, #12275 and #12273 as editing this record though none of them changes it, so please refresh the numbering and overlap lines.

Approval also needs josephfarina to re-review or dismiss his change request on the per-author cap. Four wording points stay open as non-blocking inline comments: the pre-merge re-run and "both limits", which waiting run takes a freed slot, bot accounts, and the fork gap's reason.

Claims and files checked

Review mode: same-head; reason: none

  • Claim: an author has at most three active pull-request CI runs, engineering owners included, and the shared agent login counts as one author: verified in FR16 and DEC-33.
  • Claim: a run over the cap waits for one of its author's runs instead of being turned away, then waits for room as any run does: verified as written; it conflicts with DEC-16's fifteen-minute job budget (first finding).
  • Claim: a release-critical run is outside the cap: verified in FR16 and DEC-33.
  • Claim: DEC-33 records the decision and amends DEC-16, the Verification table lists the cap's cases, and two gap lines state where admission differs today: verified.
  • Claim: the decider and both decision times match the record: verified against DEC-33's Decider line and text.
  • Claim: the heavy-suite scheduling now lives on main, so the record no longer changes FR20, FR17, FR29, FR12, DEC-14, DEC-25 or DEC-26, nor admission room, main's priority, merge-queue entries, release checks, opt-in labels or the review-pass deferral: verified; the diff touches only FR16, the gap lines, one Verification row, a DEC-16 note and DEC-33.
  • Claim: the rejected alternative is one line inside DEC-33, and the writing rubric results hold: verified.
  • Claim: the change contains specification records only: verified; one record changes.
  • Claim: the knowledge check reports the records aligned and Prettier is clean: verified on this head.
  • Claim: the admission change follows in a separate pull request: a statement of intent; the gap lines record that the workflows do not enforce the cap yet.
  • Claim: DEC-31 is held by an open pull request, and each listed overlap pull request edits other clauses of this record: false (second finding).
  • File docs/specs/AST-030/spec.md: first finding, and the four non-blocking wording points.

Automated review (maintainer link)

Comment on lines +1228 to +1231
Amended by DEC-33: before it waits for room, a pull-request run over its
author's three-run cap (FR16) waits for one of that author's runs to finish,
with no longest wait; its wait for room, and its stop without room at the
longest wait, stay as above.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking. This note adds a wait "with no longest wait" ahead of DEC-16's room wait, but DEC-16 above still says "Every pull-request job ends within its fifteen-minute budget", that "a slim runner stops a job at fifteen minutes and so cancels the whole run", and that a waiting run's extra job lasts "at most a wait (twelve minutes for a pull request…)". Please say which job holds the cap wait and how long it may last, and amend those three sentences, and FR16's fifteen-minute failure condition in the Verification table, to match.

This branch was successfully deployed

1 active deployment
Preview — 8ea5312c Deployed Nov 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. lane:3 Astryx fix-loop lane 3 owns this

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants