Repository navigation
Commit a77e460
authored
* fix(scripts): ADR-0087 runtime-interface-only reads CODE, not docblock prose (#12881)
Step 4 of the `runtime-interface-only` predicate scanned whole metadata-surface
files for the claimed symbol, so a JSDoc sentence naming a runtime type counted
as an unresolvable reference and refused the disposition. Measured: the only
`.zod.ts` in the tree naming `ObjectStackClient` is contract.zod.ts, which
explains what `unwrapResponse` keys on in one docblock line.
Mask comment spans with the shared scripts/js-comment-mask.mjs before every read
step 4 performs. Strings stay unmasked on purpose. Self-test gains both
directions: RIO-G2/G3/G4 (prose, line comment, commented-out import) and
RIO-R10/R11/R12 (prose beside a code reference, beside a real import, and a
string literal), plus RIO-R3 converted to a code-level mention.
* docs(scripts): record the step-4 code-not-prose rule on the ADR-0087 anchor (#12881)
* fix(scripts): stage js-comment-mask.mjs into the fw-gate sandbox (#12881)
The digest self-test stages an executable COPY of check-adr-0087-registration.mjs
into a throwaway repo and runs it. That gate gained a ./js-comment-mask.mjs
import, which the sandbox manifest did not copy, so both #6494 ROUND TRIP cases
died on ERR_MODULE_NOT_FOUND and read as a broken round trip.
Fix the manifest, not the import: the single hard-coded invoked-as.mjs line
becomes a list, matching how the gate's own I1/I2 fixture spells it.
1 parent 4d25d22 commit a77e460
3 files changed
Lines changed: 215 additions & 21 deletions
File tree
- scripts
- adr-anchors
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
0 commit comments