Commit 417ba79
committed
gate(checklist): bind the platform-checklist corpus to the ONE symbol resolver (#16898)
`scripts/check-platform-checklist.mjs` resolved symbol anchors with a rule of
its own -- mask comments, then ask whether the bare token appears anywhere in
the file -- in the place `scripts/symbol-anchors.mjs` states the #13556 ruling
it implements: "One resolver." The private rule was the LOOSER of the two, so
it resolved anchors the shared resolver refuses and the checklist reported
coverage it did not have; a second resolver that is greener than the shared one
is never the one anybody points at.
`absentAnchorSegments` now delegates every segment to
`symbol-anchors.mjs#symbolResolutionClass` and holds no matcher at all. The
per-segment split stays -- that is this corpus's anchor grammar, not a rule
about what "present" means -- and a self-test assertion reads this file's own
source to pin the body against re-forking.
Withdrawing the permissive match is the deliverable, not a regression: 56 of
633 anchor occurrences stopped resolving (577 resolve -- 516 declaration, 61
literal). All 56 are carried in `SHARED_RESOLVER_RESIDUAL`, one closed row per
(family file, anchor), each with the shape that used to resolve it and a
verdict: 47 bad-citation, 8 accept-set. Every row must fire (a stale row reds),
an unlisted failure is an ordinary red, and a grow-never ceiling sits beside
it -- so the ledger is a closed list that shrinks by repair, never a rule.
No floor is lowered and the maintainer-only baseline is untouched.
`scripts/symbol-anchors.mjs` is untouched too: widening the shared core to keep
this ledger green would export the looser reading to the ADR, `scripts/**`,
spec-docblock and system-context corpora.
Two self-test assertions that pinned the permissive behaviour are RE-JUDGED in
place with the reason recorded, never deleted: P3 (an inline object-literal
member) and P5 (a `.json` value). The directions they really covered are kept
as P3b and P5b on shapes the shared rule accepts.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012GKcPZbMoGq7WPzKLfRBTU1 parent 66e34d1 commit 417ba79
2 files changed
Lines changed: 344 additions & 51 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
183 | 201 | | |
184 | 202 | | |
185 | 203 | | |
| |||
0 commit comments