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 ea2e12a
Browse filesBrowse the repository at this point in the historyBrowse files
fix(pm): check:adr-anchors declares its whole-tree citation scan to dispatch-gates
collectCitations runs `git grep --untracked` with no pathspec, so the gate
reads every text file, but it declared only its path literals and
dispatch-gates --commands called it silent for any card editing a file
outside them. The gate now carries the whole-tree-population marker, and a
live self-test case holds the marker to the scan in both directions.
Claude-Session: https://claude.ai/code/session_01ADHkmT9YphoBfbtPDaBJrs
Co-authored-by: Claude <noreply@anthropic.com>
// ⛔ NOT today's count. This battery runs one case per `KNOWN_NUMBER_COLLISIONS`
294
-
// row (3 today) on top of 20 structural cases, and entries only ever LEAVE that
294
+
// row (3 today) on top of 21 structural cases, and entries only ever LEAVE that
295
295
// list: a resolved collision is meant to be deleted, and the gate already fails
296
-
// a stale entry. A floor at 23 would redden every legitimate removal and train
296
+
// a stale entry. A floor at 24 would redden every legitimate removal and train
297
297
// the next author to edit the floor, which is the one habit these floors exist
298
298
// to prevent. Pinned instead is the part that does not move with the list: the
299
-
// 20 structural cases ran AND at least one row was actually audited.
300
-
'Live tree: green as shipped, red under ablation': 21,
299
+
// 21 structural cases ran AND at least one row was actually audited.
300
+
'Live tree: green as shipped, red under ablation': 22,
301
301
'Stem-qualified citations name ONE record (#26076)': 21,
302
302
'the sharded registry\'s assembly (#6957)': 13,
303
303
});
@@ -1185,6 +1185,17 @@ function collectAnchorLetterCitations(anchorList) {
1185
1185
returnout;
1186
1186
}
1187
1187
1188
+
// dispatch-gates: whole-tree-population -- collectCitations below runs `git grep --untracked` with no pathspec, so every tracked and every untracked-not-ignored text file is read for an ADR-NNNN citation and a card adding one anywhere implicates this gate; the literals elsewhere in this file name the registry and the two release-owned changelogs its excuse list holds, never this scan's population.
1189
+
//
1190
+
// Why the marker and not a narrower scan (#34086): the whole-tree read is the
1191
+
// third check's whole point (#6634 — a citation nobody resolves rots wherever it
1192
+
// is written), so the population is not narrowed. Without the marker
1193
+
// `dispatch-gates --commands` placed this family by its path literals alone and
1194
+
// called it silent for every other file: on PR #33975 a fixture string in a
1195
+
// `scripts/pm/` tool reddened this gate in CI after a dev ran every command the
1196
+
// derivation named. The `live-scan-population-is-declared` self-test case below
1197
+
// holds the marker to the scan.
1198
+
1188
1199
/**
1189
1200
* Every ADR citation in the repo's TRACKED text files.
1190
1201
*
@@ -2124,6 +2135,29 @@ function selfTest() {
2124
2135
`${newSet(liveCitations.map((c)=>c.file)).size} file(s) — the collector is not reading the tree`,
2125
2136
);
2126
2137
2138
+
// The scan's population and the population the gate DECLARES must agree
2139
+
// (#34086). `dispatch-gates` reads the marker line above collectCitations;
2140
+
// without it the family is placed by its path literals alone and reads
2141
+
// silent for every card editing a file outside them — which is how a
2142
+
// fixture string in a `scripts/pm/` tool reached CI red, unannounced. The
2143
+
// other direction is held too: a scan narrowed to one root under a
2144
+
// surviving marker would name this gate on every card on no evidence.
0 commit comments