Repository navigation
Commit 1a6cb8e
committed
ci(lint): keep the ADR symbol-anchor sweep out of its collector block
`check-step-collectors --self-test` was red on this branch:
• lint.yml "ADR symbol anchors resolve (no line numbers survive)":
all green => every command runs (3/2)
The counts are (executed / collected), so three ran where two were collected —
not the reverse. That gate drives the real `run:` block under `bash -e` with a
STUB planted at each collected command's SCRIPT PATH, then holds "all green =>
every command runs" as an equality. The step ended with a bare
`node scripts/check-adr-symbol-anchors.mjs` after the collector's exit guard,
which re-invokes the very stub planted for that script's `--self-test` entry —
a third execution against two collected commands.
Split into two steps: the collector carries the two self-tests and nothing
else, and the production sweep is its own step. That is also the shape both
existing collectors in this file already have, and it restores the property
the split was for — the sweep now runs on its own footing instead of behind
the self-tests' `exit 1`.
⛔ No scope change: `docs/adr/**`, the resolver and its corpus registration are
untouched. Both invocations the gate's own `--self-test` pins in lint.yml are
still present, so the wiring assertion still holds.
Refs #13556
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mszp61SetNhQfVGvWh9bNn1 parent 5b8f2d8 commit 1a6cb8e
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2181 | 2181 | | |
2182 | 2182 | | |
2183 | 2183 | | |
2184 | | - | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
| 2187 | + | |
| 2188 | + | |
| 2189 | + | |
| 2190 | + | |
| 2191 | + | |
| 2192 | + | |
| 2193 | + | |
| 2194 | + | |
2185 | 2195 | | |
2186 | 2196 | | |
2187 | 2197 | | |
| |||
2202 | 2212 | | |
2203 | 2213 | | |
2204 | 2214 | | |
2205 | | - | |
| 2215 | + | |
| 2216 | + | |
| 2217 | + | |
2206 | 2218 | | |
2207 | 2219 | | |
2208 | 2220 | | |
| |||
0 commit comments