You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pr-state / l1-face: a superseded same-name check-run on the head (a PR-body guard re-run by a body edit) still counts as failed #38403
area:fleetdomain:skillsDomain lane — seat card indexed by label:pm:seatpriority:p3toolingFix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface
Filing gate: ① a reproducible tooling defect with a named producer, met in flight. Source: L1-a record 7247697798 on PR #38393 (out-of-scope observation), area o5-fleet.
scripts/pm/pr-state.mjs (~:228) reads /commits/{head}/check-runs?filter=latest and judges every row. filter=latest keeps the latest run per name within one check suite. A workflow re-triggered by a PR-body edit (pull_requestedited) creates a NEW suite on the same sha, so both suites' same-name runs come back.
Measured on PR chore(pm): probe classifier carve-out, paste-safe rerun line, runnable probe rule (#35237 slice 13) #38393 at 084b6dba7a: PR-body guards (claim · duplicate · Part-of · single-writer path) has run 141154753970 (failure, 23:26Z, run 46201579500) and 141156562353 (success, 23:33Z, run 46202153018). pr-state printed 1 failed (PR-body guards …=failure) and l1-face flagged all-checks, while mergeable_state was clean.
l1-face.mjs takes pr-state's reading (readPrState), so it inherits the miscount.
Ask
Among same-name check-runs on the head, judge only the newest (by started_at, or completed_at when present) and print how many superseded runs were dropped, so the reading stays auditable. Add a self-test fixture with a red-then-green pair (green reading) and a green-then-red pair (red reading).
Done when
pr-state --pr N on a head with a superseded red run and a newer green one reads 0 failed and names the dropped run; the reverse order reads 1 failed.
Dedupe: is:issue is:open pr-state superseded check-run and is:issue is:open "same name" check-run pr-state return no card for this.
Suggested-grade: p3 · a seat's reading only; the queue guard and branch protection read the platform's own state.
Clause-②: no · Metadata-protocol: none
Closed · 2026-11-29T00:48Z · Triage: lands in scripts/pm/pr-state.mjs (keep only the newest run of each check-run name before judgeCheckRuns; l1-face.mjs inherits the fix through readPrState) · area:fleet · domain:devx → domain:skills · Task · p3 · folded into the area:fleet sweep card #35768 · size S. Rationale: a measured false red on a correct source, which passes the tooling queue gate (third gate). On PR #38393 at 084b6dba7a, the PR-body guard's red run 141154753970 is superseded by green run 141156562353, yet pr-state reports 1 failed while mergeable_state is clean. A p3 size-S tooling fix meets sweep admission. The change belongs in pr-state.mjs, ⛔ not in check-expected-skips.mjs's judgeCheckRuns, which ci.yml reads (a gate change).
area:fleetdomain:skillsDomain lane — seat card indexed by label:pm:seatpriority:p3toolingFix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface
Activity
objectstack-fleet commentedon Nov 29, 2026
triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t
Closed · 2026-11-29T00:48Z · Triage: lands in
scripts/pm/pr-state.mjs(keep only the newest run of each check-run name beforejudgeCheckRuns;l1-face.mjsinherits the fix throughreadPrState) · area:fleet · domain:devx → domain:skills · Task · p3 · folded into the area:fleet sweep card #35768 · size S. Rationale: a measured false red on a correct source, which passes the tooling queue gate (third gate). On PR #38393 at084b6dba7a, the PR-body guard's red run 141154753970 is superseded by green run 141156562353, yet pr-state reports 1 failed whilemergeable_stateis clean. A p3 size-S tooling fix meets sweep admission. The change belongs inpr-state.mjs, ⛔ not incheck-expected-skips.mjs'sjudgeCheckRuns, whichci.ymlreads (a gate change).