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
Commit 4394d31
Browse filesBrowse the repository at this point in the historyBrowse files
fix(merge-queue-triage): walk the stack through green, non-victim queue groups
stacksFor() unioned two victims only when one victim's base was another
victim's head. A victim stacked on another through green groups (whose
affected-only Test Core never ran the failing package) read as an
independent hit. Walk base to head through every merge_group run already in
stackEdges, with a visited set; full-sha equality and the unresolved count
are unchanged. Add the affected-only control line to the anchor's reading
guidance, and mutation M29 (walk stopped at its first hop -> A18 red).
Claude-Session: https://claude.ai/code/session_01TB4mXrHF2oa5RXawpKD7Rj
Co-authored-by: Claude <noreply@anthropic.com>
what: 'same-stack is inferred from CO-OCCURRENCE instead of base === head, so unrelated victims fuse into one stack and a real cross-PR signal is under-reported',
1726
-
from: ' for (const upstream of producers.get(e.base) ?? []) {',
1727
-
to: ' for (const upstream of [...producers.values()].flatMap((s) => [...s])) {',
1729
+
from: ' for (const upstream of producers.get(sha) ?? []) {',
1730
+
to: ' for (const upstream of [...producers.values()].flatMap((s) => [...s])) {',
1728
1731
// The mirror of M15, and the reason both exist. M15 removes the evidence and
1729
1732
// the count goes UP; M16 stops requiring it and the count goes DOWN. A stack
1730
1733
// rule can be wrong in either direction, and a battery that only catches one
@@ -1743,6 +1746,18 @@ const MUTATIONS = [
1743
1746
// does not simply red the battery.
1744
1747
keepGreen: ['A1'],
1745
1748
},
1749
+
{
1750
+
id: 'M29',
1751
+
what: 'the stack walk stops at the first hop, so a victim stacked on another THROUGH green, non-victim groups reads as an independent hit again',
1752
+
from: ' for (const b of basesOf.get(sha) ?? []) frontier.push(b);',
1753
+
to: '',
1754
+
expect: ['A18'],
1755
+
// ⚠️ A12 must NOT move: its stack is victim-on-victim, one hop each, so it is
1756
+
// the control that proves A18's red comes from the walk and not from the
1757
+
// stack test as a whole. A13 holds the other direction: a stopped walk can
1758
+
// only fuse less, never invent a stack.
1759
+
keepGreen: ['A12','A13'],
1760
+
},
1746
1761
{
1747
1762
id: 'M17',
1748
1763
what: 'the anchor lookup goes back to selecting `open` + `finding`, so a GRADED anchor is invisible and every further ejection files another one',
0 commit comments