What to build
Make the changed-file analyser content-aware so comment-analyzer spawns whenever the diff adds or removes comment lines, not only when a doc file (.md/.mdx/docs/) changes. This is the tracer-bullet slice: it establishes the diff → analyser plumbing that the errors and types gates reuse.
End-to-end behaviour: the orchestrator passes diff content (alongside the changed-files list) into the analyser; the comment gate inspects added/removed (+/-) lines for comment tokens (//, /* … */, #, <!-- -->, JSDoc *), excluding the SPDX/license header so boilerplate doesn't trip it. Per ADR-0008 (amended, #212), bias toward spawning on ambiguity — a false-positive spawn is a cheap empty result block; a false-negative is the PR #5612 miss this fixes. The existing doc-file trigger stays (a Markdown/doc change still spawns it unconditionally).
Acceptance criteria
Blocked by
What to build
Make the changed-file analyser content-aware so
comment-analyzerspawns whenever the diff adds or removes comment lines, not only when a doc file (.md/.mdx/docs/) changes. This is the tracer-bullet slice: it establishes the diff → analyser plumbing that the errors and types gates reuse.End-to-end behaviour: the orchestrator passes diff content (alongside the changed-files list) into the analyser; the comment gate inspects added/removed (
+/-) lines for comment tokens (//,/* … */,#,<!-- -->, JSDoc*), excluding the SPDX/license header so boilerplate doesn't trip it. Per ADR-0008 (amended, #212), bias toward spawning on ambiguity — a false-positive spawn is a cheap empty result block; a false-negative is the PR #5612 miss this fixes. The existing doc-file trigger stays (a Markdown/doc change still spawns it unconditionally).Acceptance criteria
comment-analyzer(the PR #5612 case: a comment change in a.tsxnow spawns it).comment-analyzer..md/.mdx/docs/) still spawn it unconditionally.node:testfixtures: added comment, removed comment, no-comment source edit, doc-file, SPDX-header-only.Blocked by