From a8a1ba4ef8ed2a6de70a38203fca466a6ae37209 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 6 Sep 2026 03:31:25 +0000 Subject: [PATCH] fix(scripts): replace stale line-number citations in js-comment-mask.mjs with content anchors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The docblock's evidence for an undetected mutation pointed at two other files by line number (`check-changeset-presence.mjs:555` and `check-doc-links.mjs:616`). Both had drifted onto unrelated code — one had drifted twice, once further while the finding sat in the queue — because a cross-file line number has no mechanism keeping it true. Swap both coordinates for content anchors that fail loudly instead of silently pointing elsewhere: the enclosing `isDocumentation` function name for the first site, and a quoted, verified-unique code fragment for the second (its site has no clean enclosing identifier). Comment-only change; the two cited files are unedited. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_013uAaxiwgYDybsTNV9xwa1M --- scripts/js-comment-mask.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/js-comment-mask.mjs b/scripts/js-comment-mask.mjs index bd0256f74..08c990d17 100644 --- a/scripts/js-comment-mask.mjs +++ b/scripts/js-comment-mask.mjs @@ -93,8 +93,9 @@ * (objectstack#10640): deleting the brace counting inside `${...}` fails a case * below, while dropping `return` from `REGEX_AFTER_KEYWORD` passes all of them * and is caught only by the corpus sweep. The shape that mutation misreads is - * live in THIS tree too -- `scripts/check-changeset-presence.mjs:555` and - * `scripts/check-doc-links.mjs:616` both write `return /.../` today -- so in + * live in THIS tree too -- `scripts/check-changeset-presence.mjs`'s + * `isDocumentation` function, and the `return /\.(md|mdx)$/.test(root)` site + * in `scripts/check-doc-links.mjs`, both write `return /.../` today -- so in * objectui that mutation is undetected by anything that runs. Recorded as a * known limit of the port, not as coverage. *