Commit b05ce97
fix(check-doc-anchors): spell the heading-ids remedy so it cannot be read as a watch-hint declaration (#13775)
The remedy line printed for a broken anchor is a command for a human to paste
at the repo root, and it carried the module specifier as a quoted relative
literal `'./scripts/check-doc-anchors.mjs'`. The dispatch watch-hint extractor
reads quoted path-shaped literals in a gate's module body and resolves the
relative ones against the writer's own directory, so this gate — which lives in
scripts/ — declared a path that has never existed on this tree, and that lead
was pasted into every dispatch prompt the family matched.
Neither half was wrong on its own; the fabrication came from prose being read as
a declaration. Tightening the reader was measured and refused upstream, so the
producer spells the path absolutely instead: process.cwd() + a leading-slash
literal, which the extractor's admission test refuses outright while the command
stays runnable verbatim from the repo root.
Claude-Session: https://claude.ai/code/session_01Pk26oZ12t5N1hwGW1m1MgC
Co-authored-by: Claude <noreply@anthropic.com>1 parent 4301f78 commit b05ce97
1 file changed
Lines changed: 24 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
459 | | - | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
460 | 483 | | |
461 | 484 | | |
462 | 485 | | |
| |||
0 commit comments