Skip to content

chore(comments): remove comments at the necessary posture in disk-hygiene through firecrawl - #18293

Merged
kyle-sexton merged 2 commits into
mainfrom
chore/comment-sweep-B012
Nov 23, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
chore/comment-sweep-B012

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

No related issue: ADR 0110 bulk comment sweep, batch B012

Summary

Removes code comments at the necessary posture (ADR 0110, owner-approved bulk removal) from 86 files in 11 plugins: disk-hygiene, display-redaction, docs-hygiene, docs-naming, domain-driven-design, dometrain, education, eol-normalizer, event-storming, external-agents and firecrawl. No behavior change. Each touched plugin gets a bump: none changelog fragment.

Counts: 115 files in the batch, 86 touched, about 3,394 comment lines deleted, 34 reshape flags, 13 root-cause rows, 7 ADR candidates listed but not recorded, 0 held by open PRs.

Fix

/code-tidying:remove-comments necessary over four plugin groups, run by code-tidying:comment-reviewer agents. Kept in every file: shebangs, shellcheck directives with their justifications, test-scope:, portability-ok:, discriminating-skip-ok: and spellchecker: markers, exit-code lists, public-API doc comments, outside-party constraints of two lines or fewer, and the comment headers that seven docs-naming scripts print as --help through sed -n '2,/^set -uo/p'.

The GLOBAL HARD path list (hook-wired scripts) was lifted by the override argument, on an owner decision, for these batch paths. All four were triaged and edited, with the behavioral guards and COMMENT-ONLY still in force:

  • plugins/disk-hygiene/hooks/resume-notice.mjs
  • plugins/disk-hygiene/hooks/run-python-hook.sh
  • plugins/display-redaction/hooks/register.tsx
  • plugins/eol-normalizer/hooks/eol-normalizer.sh

No lefthook or other git-hook config is in this batch.

Not changed:

  • plugins/docs-hygiene/skills/audit-noise/scripts/detect.sh is UNPROVABLE because its HEAD has tree-sitter parse errors, so it stays as it is.
  • Comments inside heredoc bodies (embedded node scripts in build-explainer.test.sh and build-report.test.sh) are data, and deleting them reads CODE-CHANGED.
  • docs-naming/skills/setup/scripts/setup-apply.sh line 183 is kept because of a parser quirk.

Verification

  • change-shape.sh against the merge base returns COMMENT-ONLY for all 86 files, and the diff holds no file outside the batch list.
  • After review, 12 comment runs the first pass had partly deleted are kept whole, byte-identical from the base: the library header of plugins/disk-hygiene/scripts/test-wrapper-lib.sh (that file is now unchanged), and runs in uncommitted-md.sh, audit-encapsulation/detect.sh, audit-noise/emit-findings.sh, audit-progressive-disclosure/detect.sh, articles-setting.sh, audit-scan.sh, emit-verify-facts.sh, resolve-config.sh, emit-gate.test.sh (two), apply-rename.sh and firecrawl update.test.sh. The branch is one commit on the merge base, so no restored line is an addition.
  • After pr-verify, 4 exit-code contract runs are kept whole, byte-identical from the base: the detect-caveman.sh header (its Output block and Exit: always 0), the exit-code pointers in the docs-hygiene and education setup-apply.mjs, and the exit-code contract line of dometrain update.test.sh. Every touched script keeps its own Exit: line or exit-code list.
  • After pr-verify, the emit-gate.test.sh header run naming its template basenames (check-file-names.sh.tmpl, check-file-names.test.sh.tmpl, file-names-rule.md.tmpl) for the affected-tests mapping is kept whole. No other deleted comment in a touched test file is a mapping marker: scripts/affected-tests.sh counts no comment-only line as naming a file (its COMMENTS rule), and the floor directives it does read (# shellcheck source=, test-scope:) were all kept.
  • The workers ran these suites after editing, all passing:
    • the nine docs-naming .test.sh suites;
    • run-python-hook.test.sh and resume-notice.test.sh;
    • firecrawl update.test.sh (95/95);
    • external-agents runner.test.mjs (87 passed).
  • The pre-commit code-tidying-remote-comment-lint and guardrails-remote-pre-commit-content hooks passed.

Related

  • ADR 0110 (bulk comment removal).

Removed narrative

The rationale the deleted comments carried. This body is the squash commit message.

disk-hygiene

run-python-hook.sh

run-python-hook.test.sh

resume-notice.mjs and its test (#9853)

  • The skill's frontmatter belt is per-process, and --resume starts a new process. The marker is written by the UserPromptExpansion and PreToolUse Skill rows. The notice is not a gate and always exits 0. On Windows the tmp fallback is a Git Bash path, so only the marker root counts there.
  • stdin is read until the first complete JSON object, the size cap or the deadline, so an open pipe cannot hold up session start.

python3_alias_probe.test.sh

  • A zero-length WindowsApps alias stub opens the Store or hangs when executed, so each candidate is inspected before it runs.

display-redaction

  • Each built-in pattern is anchored on a run start through lookbehind, so a long run is scanned once. User patterns run over half-overlapping windows, so cost stays linear.
  • A guard bounds the lengths tried per start, and an unbounded quantifier counts as one window. A quantified group holding a quantifier or alternation, or a backreference, counts as infinite.
  • Escapes are replaced by NULs for matching, then matched again on the stripped view.
  • Fail-closed blank renders every string whole with no pattern run.
  • Rendering: block style follows the hide-email mod. Without full color, theme keys are used.
  • The engine refuses trees over 20,000 nodes and the cap here is 10,000, so a larger drawing goes to the text rewrite.
  • /clear has no session.start.
  • In the types, a missing or false value means masked (fail closed).

docs-hygiene

allowed-tools-pairing.test.sh

  • Bash permission rules match the literal command string, and bash is not a stripped wrapper. Only direct invocation in the body with a direct path in the rule is both live and not interpreter-led. Quoted body paths do not match unquoted rules.
  • ${CLAUDE_SKILL_DIR} is a repo convention. ${CLAUDE_PLUGIN_ROOT} does substitute; runtime matching is the unverified part.
  • expected_granted guards a deliberate grant narrowing that the pairing checks cannot catch.
  • note() avoids the SKIP: prefix because run-plugin-tests.sh counts that prefix as an absent-tool skip.

uncommitted-md.sh

  • The awk lives outside SKILL.md because argument substitution corrupts $0.

audit-encapsulation/detect.sh

audit-noise/emit-findings.sh

  • Only negation is emitted, because the other eight shapes have no crosswalk row. They are counted as declined, never dropped silently.
  • The Tier and Action cells mirror docs/contracts/detector-findings, whose table is the source of truth.
  • The body-scope fence is recomputed here. It also drops rows that quote a trigger phrase in description: or when_to_use:, because check-skill.sh treats losing a trigger phrase as an auto-invocation regression.
  • branch: must match fix-pass-mode exactly. The script refuses when the branch cannot be resolved (a detached HEAD in CI).
  • Timestamps are ISO-8601 extended with colons; only file names are colon-free. Git Bash has several spellings of the same root, so three anchors are matched and the check fails closed.

noise-shapes.sh and its tests

  • Ghost-ref exemptions apply per matched path. Reserved .work/*/ roots are exempt only in bare form.
  • The prose shapes are deliberately tighter than their code-side sibling.
  • Actor contractions: only 've and 'd are admitted before a participle. 're is excluded because it would match the generic "as you're asked". Apostrophes are literal alternatives, not a bracket class, because a C locale is byte-based.
  • Four plan-reference cues were dropped because a corpus sweep showed live-prose matches.
  • Negation:
    • Both withholding boundaries need positive evidence and fail toward emitting.
    • Sentences are split right to left, so e.g. cannot suppress a later prohibition.
    • Cues are boundary-fenced because secretary contains secret.
    • The apostrophe is a class because don.t matches donut.
    • The scope gates (imperative only, line ends its sentence) came from feat(docs-hygiene): negation-without-positive detector on audit-noise, wired to the findings relay (0.20.0) #3180, where 1053 findings fell to 31 on 85 files. The gates apply per sentence.
    • Negation scans the unwrapped line, so a guardrail inside an inline-code span is not erased.
  • Bash parsing: > and ) are unescaped in bracket expressions because \> is a GNU word boundary and the portability lint rejects it. The [[ =~ ]] pattern is held in a variable because an unquoted > parses as a redirection.

audit-noise/detect.test.sh

audit-progressive-disclosure/detect.sh and its tests

  • Absolute and root paths are tier-classified with at_repo_root. A nested CLAUDE.md or AGENTS.md is invocation tier.
  • md_links needs || true on grep, because exit 1 under pipefail otherwise reported every backtick-cited spoke as an orphan (82 of 133 corpus orphans).
  • Reachability is rooted at the hub's SKILL.md.

compress, extract-ssot and setup

  • compress_articles is read from the repository layer only. audit-scan.sh counts occurrences, not lines, and lists @-prefixed alternatives first.
  • detect-caveman.sh never aborts, so it omits set -e. It requires enabled=true because a disabled plugin loads no skills.
  • emit-verify-facts.sh omits -e and pipefail so a partial grep failure does not abort a fact run.
  • setup-apply.mjs: an invalid key drops the repository layer for that key, which then resolves to the schema default, never to the userConfig value (ADR 0064 Decision 7).

docs-naming

  • layer-yaml.sh: the YAML subset parser reads every scalar as text, so redirect_map: null and exempt_paths: [] are restored. An empty value must error rather than inherit a lower layer.
  • resolve-config.sh:
    • One resolver script, not a sourced library.
    • Per-key merge: nearest-wins, additive and team-only. The additive keys form a policy floor: the team layer replaces, and a personal layer only appends. That stops a personal layer from widening a frozen tier or swapping a regenerator command.
    • A layer that does not parse is fatal, never skipped. Legacy JSON layers are not read.
  • emit-findings.sh: ids derive from the old path, not the rank. A re-audit merges and keeps statuses. A case-only collision refuses the whole plan.
  • inventory.sh: existence is asked of the index, because [[ -e ]] lies on case-insensitive checkouts. The collision pass folds files and parent directories (pre-commit check-case-conflict). A pathspec outside the repo makes git ls-files print nothing, so it is validated.
  • sweep.sh:
    • One row per form, with span forms separate from residue forms.
    • The bare stem is anchored, not \b, because \b matches inside hyphenated names. A one-word stem is review-only, and the stem is ERE-escaped.
    • Authoritative tiers beat personal ones, and an unstamped tier counts as authoritative.
  • emit-gate.sh: three injection hazards are closed separately: literal rendering, ENVIRON instead of awk -v, and single-quoting everything that reaches the emitted shell. Also:
    • every emitted file goes through bash -n;
    • templates use @@SHEBANG@@ to avoid the exec-bit gate;
    • the out-dir must stay inside the root.
  • apply-rename.sh:
    • Drift is checked per site, not per file. A substitution is anchored by its recorded form and left context.
    • The write-back preserves the inode, because mv loses the exec bit.
    • An interrupted run resumes through the applying status.
    • The id is validated before it reaches awk, and -v is avoided for escape processing because gawk and mawk differ.
  • setup-apply.sh writes exactly one file, is idempotent through a parsed-document comparison, and migrates the old JSON team file. setup-check.sh resolves an interpreter-led regenerator past the interpreter.
  • retirements.yaml: the file is append-only, and published detection fields are never edited.
  • Tests:
    • fixtures are isolated from git (GIT_DIR and related variables);
    • a mise shim resolves jq through $HOME;
    • apply-rename groups are sharded for the Windows lane, at about 140 ms per spawn on Git Bash;
    • discriminating assert_* cases cover the injection hazards.

domain-driven-design

  • glossary-settings.mjs: settings anchor at the git root, never a subdirectory. With no usable convention home, an empty scratch dir stands in so neither repository layer is read. The team-only cascade is copied to a temp dir only when the cascade actually read it (a regular file inside the project).

dometrain

  • update.sh: all paths resolve from the script's location (the installed cache or a working clone). --apply is maintainer-only: use a clone, never the installed cache. There is no CLI to install, only vendored prose to diff.

education

  • page-kit and the quiz-me and teach builders: every interpolated value goes through escapeHtml. A page is stamped, then refused unless validateRenderedPage accepts it. Pages are self-contained: inline style, with no script, image or link. build-lesson relies on the raw concept name appearing in the concept meta tag for its slug-collision guard.
  • build-explainer.mjs:
    • Mermaid labels are always double-quoted. Line breaks are collapsed so no label starts a statement (click, style, classDef).
    • Quote-enders, %%{}%% directives, HTML and # are written as entity codes. Mermaid refuses an empty quoted label, so an empty one becomes a single space.
    • Record text carries no line breaks, raw HTML, or link or image syntax. The slug names output files, so it is path-safe.
    • The page is built before anything is written, so a refused page leaves no half-written pair.
    • A flow longer than the row limit goes one step per line, because a wrapped row would start a line with an arrow.
  • build-report.mjs: authors write the correct choice first despite instructions, so choices are shuffled with a seed taken from the question text. The same model therefore gives the same page.
  • list-workspaces.sh:
    • The script exists because a worktree-isolated agent refused a pre-compute line carrying $-expansion. ${user_config.*} must never reach the pre-compute line, because a surviving literal is a bash bad-substitution that kills the call.
    • SKILL.md "Workspace layout" is normative for the slug derivation: change the spec first, then mirror it here.
    • canonicalize uses cd+pwd -P because Git for Windows returns the same directory in three forms (C:/repo, /tmp/x, /c/repo) and realpath passes them through unchanged. --git-common-dir can come back in drive-letter form on Windows, which a /* test reads as relative.
    • The ≠ $HOME guard exists because a headless box answers the Documents query with $HOME.
    • Paths are canonicalized before slugging, so a symlink and its real path resolve to one workspace. A linked worktree hoists to its main repo.
    • The mode/topic scan uses one glob, not an ls parse, to survive whitespace. Roots are scanned highest precedence first, so the 20-line cap keeps those. [[:space:]]*$ absorbs CRLF.
  • splice-assets.sh:
    • Everything is validated before the first write.
    • Occurrences are counted with grep -o, not -c, because two markers on one line would otherwise pass and silently drop the second asset. A marker line is replaced whole, so it must hold the marker alone. Whitespace is stripped from both sides, which also covers CRLF.
    • The lesson is overwritten by copy, not by rename. A rename fails on Windows while a browser holds the lesson, and it carries the temp file's 0600 mode; a copy keeps the inode and mode. The temp file is a sibling, so the copy never crosses a filesystem.
    • The assets dir travels in the environment and BINMODE=3 is passed (the reason is in the header of splice-assets.awk). Each spliced asset ends with a guaranteed final newline.
  • splice-assets.test.sh:
    • Case 4d drives the awk directly, because the script's own validation stops any black-box run from reaching the awk read-error branch. gawk returns -1 from getline and names the file. mawk raises its own fatal error, whose text is not guaranteed to carry the path, so only the nonzero exit is asserted.
    • CR bytes are counted with tr, not grep, because Git Bash's grep opens files in text mode and would report 0.
  • setup-apply.test.sh: expected values come from plugins/education/reference/config.md. A bare empty or null value line is replaced and any other bad shape is refused, because replacing a single line would not settle what the file meant. The O_EXCL open refuses a link planted at the temp path, so nothing is written through it, and a file this run did not create is not removed.

eol-normalizer

  • normalize-eol.sh:
    • Resolution is one git check-attr eol text call. There is no extension fast-path list, because a hardcoded list brings back the bug this lib removes.
    • Both arms run on every OS, because tool writes bypass git's smudge on every platform.
    • The binary guard exists because * text=auto eol=lf makes check-attr report eol: lf for binaries too. It mirrors gitattributes: text is trusted, -text skips, text=auto content-sniffs, and eol with text unset implies text.
    • The plan/apply split lets the caller skip the rewrite and everything that guards it, such as the gitignore check.
    • Cost: on Windows Git Bash an exec costs about one process spawn and a command substitution about half that, and the lib runs on every Write and Edit. The probes are therefore builtins, with subprocess fallbacks where read -N (bash 4.1+) is absent.
    • read counts characters, so the probes run under LC_ALL=C, which is restored afterwards.
    • The binary probe reads 8000 bytes (git's buffer_is_binary window) with NUL as the delimiter, which gives three distinguishable states. It must use -n, never -N: -N ignores the delimiter and would report every binary file as text.
    • The CR probe reads 64 KiB chunks with -N. It is deliberately broader than the rewrite (a lone CR answers true), so at worst it costs one needless rewrite and never misses one. NULs are dropped from the chunk but still consumed. Without read -N the probe answers true.
    • Attribute lines are parsed from the right, because the path may contain colons, spaces or an attribute name. The crlf arm always carries needed=1, because proving "no bare LF" would need logic for lines that straddle chunks.
    • The rewrite stages in a same-dir mktemp (CWE-377), running cp -p first because chmod --reference is GNU-only. The no-perl fallbacks use tr -d '\r' (text files carry no lone CR) and an awk that handles bare LF only.
  • eol-normalizer.sh:
    • PostToolBatch has no matcher, so the row fires on every batch. The launcher skips unless the payload mentions file_path, and the script returns unless a Write, Edit or MultiEdit is present, so a Bash-only batch costs one node process.
    • A file named only by a Read is never rewritten.
    • There is no glob list: .gitattributes decides. git check-attr is anchored at the file's directory, so it works for clones, linked worktrees and bare-hub clones.
    • .githooks/ and gitignored files are skipped unless eol_normalizer_lint_gitignored is true, and that check runs only for files with something to rewrite.
    • The hook prints nothing and always exits 0.
  • eol-normalizer.test.sh:
  • eol-git-add.test.sh: there is no pre-commit entry because git add applies the same .gitattributes to the stored bytes, so re-staging a rewritten file can never change a commit. Each shape is staged raw and again after normalize_eol_file. The two blobs must match, and the eol= arms must carry no CR.

event-storming

  • build-bc-view.mjs: every interpolated value goes through escapeHtml, and the page is self-contained.

external-agents

  • models.mjs fact: returns a cached fact for this version, or the command's output cached now; throws when the CLI gives none.
  • runner.mjs:
    • checkAddDirs refuses an --add-dir value that is not an existing directory named by an absolute path.
    • fenceFor returns the mode's spec with any --unsandboxed variant applied, plus the fence name the job records.
    • settle: a running job is over once both the CLI and the runner that writes its result are gone, because the runner may still be recording a CLI that has finished.

firecrawl

update.sh

  • The script is maintainer-facing. Run it against a working-tree checkout, never an installed copy, because --apply and --record-upstream rewrite upstream.md. Consumers update through /plugin marketplace update.
  • Modes:
    • --check is read-only.
    • --apply installs firecrawl-cli@latest, turns off the CLI's self-update, and records the CLI version and the rollback target. It keeps the recorded upstream SHA and never touches SKILL.md.
    • --record-upstream records the fetched SHA and installs nothing. It runs only after Gate 2 or when there is no content delta, so a declined integration keeps showing as drift.
  • A missing CLI is reported but is not drift, and drift outranks unverifiable.
  • The script never calls firecrawl init, never installs upstream bundled skills, and never writes upstream SKILL.md content beyond a temporary fetch.
  • set -e is deliberately absent so exit codes are captured explicitly. The source guard runs main only when the script is executed, not when the tests source it.
  • --fail stops an HTTP error page from being hashed as SKILL.md, which would poison upstream.md on --apply and mask drift on --check.
  • recorded_field returns empty when the file or line is absent, or when the value is a never-synced placeholder. rewrite_upstream_md writes an unrecorded value as that placeholder, so --check still reads the skill as never synced.
  • require_npm_owned_command: an install changes what firecrawl runs only when npm's global bin holds the command. No command at all counts as a fresh install.
  • run_apply:
    • The registry preflight runs before npm install changes anything.
    • Self-update is turned off so the CLI changes only through the gate.
    • The SHA and sync date stay as recorded. Only --record-upstream after Gate 2 advances them.

update.test.sh

  • The tests are self-contained, with no external test lib and no network.
  • Sourcing the script installs its EXIT trap, and the test's later trap replaces it and removes both directories.
  • Rewriting upstream.md with its own values must reproduce it byte for byte. The never-synced placeholder lines are the ones upstream.md carried before its first sync.
  • In the --check cases the network is stubbed. Drift outranks unverifiable, so the upstream check still runs when npm is down. A trailing space is not part of a recorded value.
  • The --apply cases run a copy of the script in a fixture skill directory.
  • What each case pins:
    • a refused or failed apply exits 2 and leaves the prior record intact;
    • a failed self-update disable records nothing;
    • a launcher ahead of npm's bin owns the command;
    • the same launcher already at the new version would record itself as the rollback target;
    • on Unix, a command in the prefix itself is outside npm's bin;
    • an unreadable prefix means ownership is unknown;
    • the install can succeed while the old version still runs;
    • no command at all is a fresh install;
    • --apply leaves the SHA alone;
    • a Gate 1 decline behind a launcher refuses nothing;
    • an unreachable upstream keeps the prior record;
    • a first apply has no SHA and still reads as never synced.

ADR candidates (listed, not recorded: unattended run)

  • disk-hygiene run-python-hook.sh: the cache TTL is compiled in, rejecting an env-borne override.
  • disk-hygiene run-python-hook.sh: --marker-root is passed explicitly, rejecting a read of CLAUDE_PLUGIN_DATA.
  • docs-naming resolve-config.sh: one resolver script, rejecting a sourced library.
  • docs-naming resolve-config.sh: the additive keys are a policy floor where the personal layer only appends, rejecting a replacing personal layer.
  • docs-naming emit-gate.sh: values travel through ENVIRON[] and single-quoting, rejecting awk -v or sed substitution.
  • eol-normalizer: no pre-commit entry, because git add already applies .gitattributes.
  • education splice-assets.sh: overwrite by copy, rejecting an atomic rename.

Reshape flags

Moves that would make each deleted comment unnecessary. None is applied here.

  • disk-hygiene run-python-hook.sh:
    • Extract the marker, skip and cache invalidation rules into named helpers or a test table.
    • Rename TTL to say it is compiled in, for example readonly CACHE_TTL_COMPILED_IN.
  • disk-hygiene run-python-hook.test.sh: merge the two EXIT traps into one cleanup().
  • display-redaction mask.ts: name the window, overlap and guard bounds as constants.
  • display-redaction types/index.d.ts: encode the fail-closed default in the type.
  • docs-hygiene allowed-tools-pairing.test.sh and docs-naming allowed-tools-pairing.test.sh:
    • Assert that the output never starts with SKIP:.
    • Name the empty-allowlist case as a constant.
  • docs-hygiene audit-noise:
    • noise-shapes.sh: encode the "fail toward emitting" invariant as a constant or a test, and move the 1053-to-31 scope measurement into a test.
    • detect.test.sh: rename the cases to state the behavior they assert.
    • detect.sh: name the never-fail contract.
    • emit-findings.sh: add a CROSSWALK_SHAPES constant and extract a require_branch function.
  • docs-hygiene audit-encapsulation detect.sh: extract is_entry_surface_cite.
  • docs-hygiene audit-progressive-disclosure detect.sh: wrap md_links || true in a grep_or_empty helper.
  • docs-naming:
    • The seven usage() functions print their own comment header through sed. Moving the help into a heredoc would let the header go.
    • resolve-config.sh: put the merge classes and the policy floor in a data table with a test.
    • sweep.sh and apply-rename.sh: put the form ladder in a named table.
    • emit-gate.sh: rename quoted and human to sh_single_quote_list and prose_list.
    • retirements.yaml: pin the append-only rule with a history test.
  • eol-normalizer normalize-eol.sh: encode the read -n versus -N semantics of normalize_eol_is_binary and normalize_eol_has_cr in the names or a test.
  • education list-workspaces.sh canonicalize: a regression test per path alias form.
  • external-agents:
    • runner.mjs: rename settle to settleOnceCliAndRunnerGone.
    • models.mjs: rename fact to cachedFactOrFetch.
  • firecrawl update.sh:
    • Name the curl --fail flag in a variable.
    • Rename require_npm_owned_command to say that it refuses a foreign owner.
    • Extract disable_cli_self_update, registry_preflight and rewrite_upstream_md from run_apply, and name its keep-SHA and keep-date arguments.
    • Name the never-synced placeholder, and the placeholder set in recorded_field.
  • firecrawl update.test.sh: give run_stubbed named variables, and extract install_test_cleanup_trap.

Follow-ups

  • Pre-existing (advisory): disk-hygiene run-python-hook.sh: exec-bash.mjs makes its own skip before bash starts and does not check marker-directory ownership.
  • Pre-existing (advisory): disk-hygiene run-python-hook.sh: a marker file that cannot be written while its directory exists silences the Stop monitor for that session.
  • Pre-existing (advisory): disk-hygiene run-python-hook.sh: the interpreter cache validates shape, not identity. A file that is merely named python3 is exec'd and the guard never runs.
  • Pre-existing (advisory): disk-hygiene run-python-hook.sh: HOME is an input to a security control through the cache path.
  • Pre-existing (advisory): disk-hygiene run-python-hook.sh: markers are never removed, and nothing sweeps the plugin data root for retention.
  • Pre-existing (advisory): disk-hygiene run-python-hook.sh: a tmp-fallback launch goes unseen where tempfile.gettempdir() differs from ${TMPDIR:-/tmp}.
  • Pre-existing (advisory): docs-naming resolve-config.sh and others: native Windows jq emits CRLF, so every read goes through tr -d '\r', a workaround nothing tracks.
  • Pre-existing (advisory): docs-hygiene noise-shapes.sh: the lowercase-predicate spelling only dodges the typos linter. Fix the typos config or the pattern style.
  • Pre-existing (advisory): docs-hygiene allowed-tools-pairing.test.sh: the ${CLAUDE_SKILL_DIR} convention rests on runtime matching nobody has verified. Verify it, then keep or drop the convention.
  • Pre-existing (advisory): docs-hygiene audit-noise/detect.sh: HEAD has tree-sitter parse errors (likely the backtick/tilde fence regex in [[ =~ ]]), so no comment pass can prove an edit to it.
  • Pre-existing (advisory): firecrawl update.sh: no regression test pins the curl --fail defense against hashing an HTTP error page.
  • Pre-existing (advisory): firecrawl update.sh run_apply: only test section 10 covers "--apply never advances the upstream SHA".
  • Pre-existing (advisory): external-agents runner.mjs settle: no named test covers "a running job is not settled while the runner is still recording".

🤖 Generated with Claude Code

https://claude.ai/code/session_01RMa43yt8jZqGJ5kzhzjRAX

@kyle-sexton
kyle-sexton marked this pull request as ready for review November 23, 2026 02:33
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T02:36:17.453994Z 48a1982 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 345097cde2e07b871448afcb3bd1953a338344aa: read 97 of 97 changed file(s); 0 finding(s), 0 as inline comments.

Chunk 1 of 3 (40 files)

Security review: chunk 1 of 3 (40 files)

No security issues found in this chunk. This lane already reviewed an earlier head (blocking only: yes), so this pass reports only CRITICAL and IMPORTANT findings. There are none.

Scope. I read every hunk of .claude-lane/chunks/chunk-1.patch, from the first line to the last (line 5439). It covers 40 files:

  • disk-hygiene: the hooks, the clean and setup test wrappers, and the changelog fragment
  • display-redaction: mask.ts, register.tsx, the types file and the tests
  • docs-hygiene: every changed script and test
  • docs-naming: lib/layer-yaml.sh

The ten copies listed in identical.txt are .changes/<plugin>/chore-comment-sweep-b012-*.md fragments containing bump: none. They are changelog data, and none of those paths makes the file run or gate anything.

What I checked

  • Only comments changed.
    • Every removed line is a # or // comment, or a blank line.
    • The only rewritten code lines are function headers that lost a trailing # <args> comment: planted_notice, unwritten_env, guard_row, cycle_stop, stop_row_execs, tmp_launch, fixture_landed, check, repo_with, assert_classify_args, expect, run, shape and check_case. A name() { line parses the same with or without that comment.
    • The only added lines are the changelog fragment.
  • No data removed as if it were a comment.
    • No removed line sits inside a heredoc, a quoted string, the embedded PYTHON_VERSION_PROBE program, or an awk or jq program.
    • Fixture heredocs whose content starts with # are unchanged.
    • The comments removed from between the BUILTIN_SOURCES array elements in mask.ts leave every element as it was.
    • The comments removed from between the case arms in noise-shapes.sh (audit_noise_section_exempt) do not change how the case parses.
  • Directives kept. All of these remain, each still directly above the command it covers where that applies:
    • shebangs
    • # shellcheck disable= and # shellcheck shell=bash
    • # test-scope: and # portability-ok: markers
    • the Exit: headers in emit-findings.sh, audit-scan.sh and emit-verify-facts.sh
  • Hook-wired paths opened up by the PR's override. No executable line changed in plugins/disk-hygiene/hooks/run-python-hook.sh, resume-notice.mjs or plugins/display-redaction/hooks/register.tsx. These controls are all still there:
    • the no-interpreter deny posture (exit 2)
    • set -h
    • unset DISK_HYGIENE_UNWRITTEN_MARKER
    • the anchored session_id regex and _skill_selected
    • _owned_marker_dir and _trusted_marker_dir (-d, ! -L, -O)
    • the cache checks: the schema tag, -nt on the lookups and the interpreter, _interpreter_shaped, the compiled-in _CACHE_TTL_SECONDS=86400, and the written= digit check
    • .catch(() => {}) and exit(0) in resume-notice.mjs
    • the .catch handlers in register.tsx that blank the text when a hook fails
  • Instruction surface. Only code comments were removed. No skill or agent body, CLAUDE.md, hook block list or allowlist, or permission rule changed. Some of the deleted text explained security choices, for example the KNOWN LIMIT note that HOME is an input to the cache and the reason the TTL is compiled in rather than read from the environment. Each describes either a control the code still enforces or a risk that predates this PR. Since no rule was removed, I did not check the instruction exception register's protected classes.
  • Manifests and trust controls.
    • This chunk has no .claude-plugin/plugin.json or marketplace.json change.
    • No file in it matches a TRUSTED PATHS glob.
    • No file touches the trusted-trigger check, the lane token scope, the kill switch, the token broker or a merge hold.
  • Settled threads. Both settled threads (test-wrapper-lib.sh, emit-gate.test.sh) are about files outside this chunk, so they do not apply here.
  • Pull request text. The PR context has no embedded instructions aimed at the lane.

Chunk 2 of 3 (40 files)

Security review: chunk 2 of 3 (40 files)

No security issues found in this chunk. This lane already reviewed an earlier head (blocking only: yes), so this pass reports only CRITICAL and IMPORTANT findings. It found none.

Scope. I read every hunk of .claude-lane/chunks/chunk-2.patch (lines 1–4266). That covers all 40 files assigned to this chunk:

  • docs-naming: lib/load-config.sh, retirements.yaml, resolve-config.sh and the audit, gate, realign and setup scripts with their tests;
  • domain-driven-design: glossary-settings.mjs and its tests;
  • dometrain: update.sh and its test;
  • education: page-kit.mjs, the illustrate, quiz-me, setup and teach builders and scripts, and their tests;
  • eol-normalizer: eol-normalizer.sh, eol-normalizer.test.sh and eol-git-add.test.sh.

What I checked

  • Only comments changed. Every removed line is a #, // or /** */ comment, or a blank line.
    • The only rewritten code lines are function headers that lost a trailing # <args> comment: expect, run and shape in the education setup-apply.test.sh, and expect and check in the eol-normalizer tests. name() { parses the same either way.
    • No removed line sits inside a heredoc body, a quoted string, or an awk or jq program.
  • Directives kept. All of these survive:
    • shebangs;
    • # shellcheck source= and disable= lines;
    • # test-scope: and # portability-ok: markers;
    • the Exit: and exit-code headers in resolve-config.sh, update.sh, splice-assets.sh and the education test headers.
    • In apply-rename.sh, the sed -n '2,/^set -uo/p' usage header sits above the removed lines and is not touched.
  • Injection and path controls still in code. The deleted rationale described controls that the code still enforces, unchanged:
    • emit-gate.sh:
      • the --out-dir absolute-path, .. and character-class guards;
      • the newline refusal on regex and rule;
      • sq single-quoting;
      • the ENVIRON[] channel in place of awk -v;
      • the bash -n parse gate.
    • apply-rename.sh:
      • the ^FN-[0-9a-f]+$ id check;
      • the ENVIRON channel;
      • the anchored bare-stem rewrite;
      • the literal substitution.
    • resolve-config.sh and sweep.sh:
      • the team-only generated key;
      • the personal-layer policy floor;
      • the unstamped-tier-is-authoritative case in sweep.sh.
    • Elsewhere:
      • the SLUG regex and Mermaid entity coding in build-explainer.mjs;
      • the escapeHtml and validator path in page-kit.mjs.
  • Hook path the PR's override opened up. In plugins/eol-normalizer/hooks/eol-normalizer.sh only the header and one inline comment were removed. The kill-switch line, the .githooks/ skip and the hook::read_file_path_to scoping are unchanged.
  • Instruction surface. No skill or agent body, CLAUDE.md, hook block list or allowlist, or permission rule changed. Because no standing instruction was removed, I did not consult the instruction exception register's protected classes.
  • Manifests and trust controls.
    • This chunk has no .claude-plugin/plugin.json or marketplace.json change.
    • No file here matches a TRUSTED PATHS glob.
    • Nothing here touches the trusted-trigger check, the lane token, the kill switch or a merge hold.
  • Embedded text. The PR context and settled-threads files carry no directive aimed at this lane.
  • Settled threads. Both settled threads are on lines this chunk's findings would not reach, and I raised neither again.
  • Spend and cost. This chunk adds no spend and nothing that can bill.

Chunk 3 of 3 (7 files)

Security review: chunk 3 of 3 (7 files)

No security issues found in this chunk. This lane already reviewed an earlier head (blocking only: yes), so this pass reports only CRITICAL and IMPORTANT findings. It found none.

Scope. I read every hunk of .claude-lane/chunks/chunk-3.patch, which covers these 7 files:

  • plugins/eol-normalizer/hooks/normalize-eol.sh
  • plugins/event-storming/skills/simulation/scripts/build-bc-view.mjs
  • plugins/event-storming/skills/simulation/scripts/build-bc-view.test.sh
  • plugins/external-agents/scripts/lib/models.mjs
  • plugins/external-agents/scripts/lib/runner.mjs
  • plugins/firecrawl/skills/update/scripts/update.sh
  • plugins/firecrawl/skills/update/scripts/update.test.sh

What I checked

  • Only comments changed.
    • Every removed line is a # comment, a // comment, a /** */ comment or a blank line.
    • Three lines changed in place, and each still parses the same with the comment gone:
      • *) ;; # a recorded value became *) ;;.
      • : # not installed… became :.
      • In update.sh the header block became one blank line.
    • In normalize-eol.sh, the comment lines removed inside the lf | crlf) case arm do not change how the case parses.
    • No removed line sits inside a heredoc body, a quoted string, or a perl, awk or jq program.
  • Hook-sourced library. normalize-eol.sh is sourced by the eol-normalizer PostToolBatch hook. No executable line in it changed. These controls are all still in place:
    • the binary guard (text / -text / text=auto with the NUL sniff);
    • the -n (not -N) read in normalize_eol_is_binary;
    • the C-locale save and restore;
    • the same-directory mktemp staging with cp -p in normalize_eol_rewrite_with;
    • the -- separators on perl -pi.
  • External-agents runner. In runner.mjs, only the doc comments on checkAddDirs, fenceFor and settle were removed. The --add-dir checks are unchanged: an absolute path that names an existing directory. So are the fence spec selection and the pid/start-time ownership check.
  • Firecrawl updater. In update.sh, the --fail curl flags, the registry preflight, require_npm_owned_command, the post-install version check and the firecrawl update --disable-auto gate are all unchanged. The exit-code contract block is kept.
  • Directives kept. These all survive:
    • shebangs;
    • # shellcheck source=update.sh;
    • # test-scope:;
    • the Exit 0 clean, 1 findings, 2 environment line in build-bc-view.test.sh.
  • Instruction surface. Only code comments were removed. No skill or agent body, CLAUDE.md, hook block list or allowlist, or permission rule changed. Because no rule was removed, I did not check the instruction exception register's protected classes.
  • Manifests and trust controls.
    • This chunk has no .claude-plugin/plugin.json or marketplace.json change.
    • No file here matches a TRUSTED PATHS glob.
    • Nothing in this chunk touches the trusted-trigger check, the lane token scope, the kill switch, the token broker or a merge hold.
  • Settled threads and prior findings. Neither settled thread is about a file in this chunk. The one prior post is the earlier whole-review summary, which reported 0 findings.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 2 inline finding(s) on 48a19829aa83743e479d0aa57b829a4b906e2b81; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 345097cde2e07b871448afcb3bd1953a338344aa: read 97 of 97 changed file(s); 0 finding(s), 0 as inline comments.

Chunk 1 of 3 (40 files)

Code review: chunk 1 of 3 (40 files: disk-hygiene, display-redaction, docs-hygiene, and docs-naming lib/layer-yaml.sh)

Blocking-only review. The prior-findings file says blocking only: yes because this lane already reviewed two earlier heads, so only blocking findings count here. I found none in this chunk.

What I read. Every hunk of all 40 files, which is the whole of chunk-1.patch. Every removed line is a whole # or // comment, or a trailing # <args> note after a function's opening {. Those notes were on planted_notice, unwritten_env, guard_row, cycle_stop, stop_row_execs, tmp_launch, fixture_landed, check, repo_with, assert_classify_args, expect, run, shape and check_case. No executable line changed. The things the PR body says it kept are still there:

  • shebangs;
  • shellcheck directives with their reasons;
  • test-scope: and portability-ok: markers;
  • the Exit: and Output: contract lines;
  • the detect-caveman.sh header;
  • the docs-hygiene setup-apply.mjs pointer to ../../../lib/setup-apply.mjs for exit codes.

Places where removing a comment could change behaviour. I checked each of these:

  • --help text read from the header. No file in this chunk prints its own comment header as help:
    • the only docs-hygiene script that does, lib/parse-concern-value.sh, is not in this PR;
    • the docs-naming scripts that use sed -n '2,/^set -uo/p' are all in chunk 2;
    • layer-yaml.sh is a sourced library with no such reader.
  • Comments inside code structures. Some removed comments sat between case arms (noise-shapes.sh audit_noise_section_exempt), inside array literals (mask.ts BUILTIN_SOURCES, mask.test.ts) or inside function bodies. Removing them does not change how the code parses.
  • Comments inside string data. No removed line was inside a heredoc or a quoted string. The PYTHON_VERSION_PROBE body and the fixture heredocs are unchanged.
  • Hook-wired paths on the PR's override list (resume-notice.mjs, run-python-hook.sh, register.tsx). Their diffs remove only comments, and every executable line in the hunk context is unchanged: the guard, cache, marker and fail-closed logic.

Settled threads. Both were resolved with an owner reply that states a fix, so I did not raise either again:

  • test-wrapper-lib.sh: the header was restored and the file is no longer in the diff.
  • emit-gate.test.sh: that file is in chunk 2.

Identical copies. The disk-hygiene .changes/.../chore-comment-sweep-b012-*.md fragment (bump: none) is in this chunk. Each of its copies sits under its own plugin's .changes/ directory, so no copy's path changes what it does.

Closing issue: none ("No related issue: ADR 0110 bulk comment sweep, batch B012"), so there are no acceptance criteria to check.

Loosened checks: none in this chunk. No assertion, threshold, skip or suppression changed. Loosened checks would be marked: fail. That is the default, because the prompt had no loosened_check_verdict: or loosened_check_patterns: line; consumer patterns: 0. The prompt also had no loosened_check_decision_record: line, so I did not check the citation requirement.

Manifests: no plugin.json or marketplace.json is in this chunk.

Embedded text: none found in the PR context, the settled threads or the prior findings.

Spend: none.

Verification: I ran nothing. The test results in the PR body are the author's claim and I have not checked them.

Verifier dropped 0 of 0 candidates.

Chunk 2 of 3 (40 files)

Code review: chunk 2 of 3 (40 files: docs-naming from load-config.sh on, domain-driven-design, dometrain, education, eol-normalizer)

Blocking-only review. The prior-findings file says blocking only: yes, because this lane has already reviewed two earlier heads. Only blocking findings count, and this chunk has none.

What I read. All 4,267 lines of chunk-2.patch, covering every hunk of all 40 files. Every removed line is one of these, and no code line changed:

  • a whole # or // comment;
  • a /** */ JSDoc block on an internal function in glossary-settings.mjs or its test;
  • a trailing # <args> note after a function's {. These are on expect, run, shape and check in the education setup-apply.test.sh and the eol-normalizer tests.

Places where removing a comment could change behaviour. I checked each of these.

  • --help printed from the comment header. Seven docs-naming scripts print their header as --help through sed -n '2,/^set -uo/p': emit-findings.sh, inventory.sh, sweep.sh, emit-gate.sh, apply-rename.sh, setup-apply.sh and setup-check.sh. In each one the first hunk starts after usage(), so the printed header is unchanged.
  • Other help text. resolve-config.sh, list-workspaces.sh and splice-assets.sh print usage from a heredoc, not their removed headers. So the Usage: strings the tests check are still printed.
  • Hook-wired paths. eol-normalizer.sh is on the PR's GLOBAL HARD override list. Its diff removes only the header and one inline comment. The kill-switch line that eol-normalizer.test.sh greps for ([[ "${CLAUDE_PLUGIN_OPTION_EOL_NORMALIZER_ENABLED:-true}" == "true" ]] || exit 0) is unchanged.
  • retirements.yaml. The comment block removed from before the first --- does not affect parsing. The append-only check in scripts/validate-plugin-contracts.mjs compares parsed records, not header lines, so it is not tripped.
  • Markers the PR says it kept. Still present:
    • shellcheck directives with their reasons;
    • test-scope: and portability-ok: markers;
    • every Exit: / exit-code block (resolve-config.sh, splice-assets.sh, dometrain update.sh, the education builder tests);
    • the emit-gate.test.sh template-basename run used for the affected-tests mapping;
    • the education setup-apply.mjs pointer to ../../../lib/setup-apply.mjs for exit codes.
  • Comments inside string data. None of the removed comments sat inside a heredoc body or a quoted string.

Settled threads. The emit-gate.test.sh thread was resolved by an owner reply that states a fix: both comments that had been cut mid-sentence are restored whole. Those lines are unchanged in this diff, so I did not raise it again. The test-wrapper-lib.sh thread belongs to a file that is no longer in the diff.

Advisory candidates. I dropped them under the blocking-only rule. All are comment-only deletions, with no change in behaviour.

Closing issue: none ("No related issue: ADR 0110 bulk comment sweep, batch B012"), so there are no acceptance criteria to check.

Loosened checks: none in this chunk. No assertion, threshold, skip or suppression changed. Loosened checks would be marked: fail. That is the default, because the prompt had no loosened_check_verdict: or loosened_check_patterns: line; consumer patterns: 0. The prompt also had no loosened_check_decision_record: line, so I did not check the citation requirement.

Manifests: no plugin.json or marketplace.json is in this chunk.

Spend: none.

Embedded text: I found no instruction aimed at the review lane in the PR context, settled-threads or prior-findings files.

Verifier dropped 0 of 0 candidates.

Chunk 3 of 3 (7 files)

Code review: chunk 3 of 3 (7 files: eol-normalizer normalize-eol.sh, event-storming, external-agents, firecrawl)

Blocking-only review. This lane already reviewed two earlier heads, so the prior-findings file says blocking only: yes. Only blocking findings count here, and this chunk has none.

What I read. I read every hunk of all 7 files in chunk-3.patch. Every removed line is a whole #, // or /** */ comment, or a trailing comment after ;; or :. In update.sh, the cut header leaves one blank line before set -uo pipefail. No code changed.

Places where removing a comment could change behaviour. I checked each of these:

  • --help text in plugins/firecrawl/skills/update/scripts/update.sh. The script prints help from a cat <<'EOF' heredoc (head lines 265-291), not from its comment header. So the --help and -h assertions in update.test.sh still read text that has not changed. The exit-code contract block (head lines 2-7) is kept whole. The source-guard (BASH_SOURCE[0] == $0) and set -uo pipefail are unchanged.
  • plugins/eol-normalizer/hooks/normalize-eol.sh. This library is sourced by a hook. The comments it loses sat between functions, and one sat inside a case arm list in normalize_eol_plan. Removing them does not change how the code parses. The binary guard, plan/apply split, the -n/-N read flags and the perl/tr fallbacks are all unchanged.
  • models.mjs / runner.mjs. Only JSDoc on functions the modules do not export (fact, checkAddDirs, fenceFor, settle) is removed. The exported public-API doc comments the PR body says it keeps are untouched in these hunks.
  • build-bc-view.mjs / build-bc-view.test.sh. Only header prose is removed. The shebang, the exit-code line and the test-scope: marker are kept.
  • Comments inside heredocs or strings. None of the removed comments sat inside a heredoc body or a quoted string. In update.test.sh, the fixture heredocs and the place_firecrawl stub body are unchanged.

Settled threads. Neither settled thread touches a file in this chunk (test-wrapper-lib.sh; emit-gate.test.sh is in chunk 2). The PR body says the firecrawl update.test.sh run that was partly deleted before is now kept whole. The hunks I read show no comment cut partway through.

Closing issue: none ("No related issue: ADR 0110 bulk comment sweep, batch B012"), so there are no acceptance criteria to check.

Loosened checks: none in this chunk. No assertion, threshold, skip or suppression changed. Loosened checks would be marked: fail. That is the default, because the prompt had no loosened_check_verdict: or loosened_check_patterns: line, so I used no consumer patterns. The prompt also had no loosened_check_decision_record: line, so I did not check the citation requirement.

Manifests: no plugin.json or marketplace.json is in this chunk.

Trusted paths: no file in this chunk matches a trusted-path glob.

Spend: none.

Verification: the PR body says the firecrawl update.test.sh (95/95) and external-agents runner.test.mjs runs passed. I could not run them, so that is the author's claim and I have not verified it.

Verifier dropped 0 of 0 candidates.

critical-findings: 0

@kyle-sexton
kyle-sexton force-pushed the chore/comment-sweep-B012 branch from 48a1982 to d74ed75 Compare November 23, 2026 02:50
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 23, 2026
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

The pr-verify verifier failed head 0c4179d68527893e67096ae3c449950166a3de24. What it wrote, as data:

What it wrote (75 lines)
Summary: Chunk 2 of 2, fail: Spec: PR #18293 links no issue, so the spec is its own trusted title
  and body. It asks for the ADR 0110 bulk removal of comments at the `necessary` posture across 11
  plugins, with no behavior change and functional markers kept. Chunk 2 covers the rest of
  docs-naming (resolve-config, audit-file-names, generate-file-name-gate, realign-file-names,
  setup), plus domain-driven-design, dometrain, education, eol-normalizer, event-storming,
  external-agents and firecrawl.

What these parts deliver:
- Every hunk deletes only comment lines, or trailing `# ...` remarks on function lines. The single
  added line, in firecrawl `update.sh`, is a blank line that replaces a removed one.
- The shebangs, `shellcheck` directives, `test-scope:` and `portability-ok:` markers are kept.
- The exit-code lists are kept in dometrain `update.sh`, firecrawl `update.sh`, `resolve-config.sh`,
  `splice-assets.sh` and the education builders. The education `setup-apply.mjs` keeps its pointer
  to the exit codes.
- The `sed -n '2,/^set -uo/p'` help header of `apply-rename.sh` is untouched.
- No code logic changed. The hook-wired `eol-normalizer.sh` loses comments only.

CI: all four Test Bash jobs passed on the judged head, which covers the changed `.test.sh` suites
  and the wrapped Node suites (glossary-settings, runner). Example run:
  https://github.com/melodic-software/claude-code-plugins/actions/runs/45107764317/job/137473311250.
  Test Node, Lint Shell and Check Plugins also passed.

The bump:none changelog fragments and the disk-hygiene through docs-naming files listed for chunk 1
  belong to chunk 1, not this one.

Blocking defect: `emit-gate.test.sh` loses a header line that says its template basenames are named
  for the affected-tests mapping. It names `check-file-names.sh.tmpl`,
  `check-file-names.test.sh.tmpl` and `file-names-rule.md.tmpl`. It is a functional marker like the
  `test-scope:` lines the body says it keeps. Without it, a change to those templates may no longer
  select this
Chunk 1 of 2, pass-notes: Spec: PR #18293 has no linked issue, so its own trusted title and body are
  the spec (spec_kind pull-request). It is batch B012 of the ADR 0110 sweep, removing comments at
  the `necessary` posture with no behavior change. I read chunk 1 (parts 001–020) and the manifest,
  each whole in one Read.

Delivered in full by chunk 1:
- All 11 `bump: none` changelog fragments, one each for disk-hygiene, display-redaction,
  docs-hygiene, docs-naming, domain-driven-design, dometrain, education, eol-normalizer,
  event-storming, external-agents and firecrawl.
- The comment removal for every chunk-1 file: disk-hygiene (resume-notice.mjs and its tests,
  run-python-hook.sh and its test, the seven skill test wrappers), display-redaction (mask.ts,
  register.tsx, index.d.ts and the tests), docs-hygiene (allowed-tools-pairing, audit-derivability,
  audit-encapsulation, audit-noise detect.test/emit-findings/noise-shapes,
  audit-progressive-disclosure, compress, extract-ssot, setup) and docs-naming (layer-yaml.sh,
  load-config.sh, retirements.yaml, allowed-tools-pairing.test.sh).

Delivered in part: the docs-naming, domain-driven-design, dometrain, education, eol-normalizer,
  event-storming, external-agents and firecrawl source files are in chunk 2. That includes the seven
  docs-naming `--help` headers that must be kept, which I did not judge.

What I checked:
- Every changed line in chunk 1 is a deleted comment line, or a trailing `# ...` comment cut from a
  function opener such as `planted_notice() {`. No code, string or heredoc changed.
- The required kept items are still present: shebangs, `shellcheck` directives with their reasons,
  `test-scope:` and `portability-ok:` markers, and the `Exit:` lines in emit-findings.sh,
  audit-scan.sh and emit-verify-facts.sh.
- detect-caveman.sh keeps its header, and setup-apply.mjs keeps its exit-code pointer.
- test-wrapper-lib.sh and audit-noise/detect.sh are not in the manifest, so they are unchanged, as
  the body says.

Hook-wired scri
- plugins/docs-naming/skills/generate-file-name-gate/scripts/emit-gate.test.sh:2 restore the deleted
  header line 'Template basenames named for the affected-tests mapping: this suite covers
  check-file-names.sh.tmpl, check-file-names.test.sh.tmpl, and file-names-rule.md.tmpl.'
  byte-identical from the base, or replace it with a `# test-scope:` line naming those three
  templates. The affected-tests mapping reads it to pick this suite when a template changes, so
  deleting it is a behavior change, not a comment-only edit.
- plugins/disk-hygiene/hooks/resume-notice.mjs:1 deletes the header line 'It always exits 0 and
  prints nothing unless the source is `resume` and a marker exists'. That is the script's exit
  contract, yet the PR body says every touched script keeps its exit-code line or list. A human
  should decide whether to restore it, as was done for detect-caveman.sh.
- plugins/disk-hygiene/hooks/run-python-hook.sh:1 deletes the whole header, including the exit-code
  posture for a missing interpreter (exit 2 in belt mode, notice-and-proceed in engine-gate mode).
  The file now has no exit-code statement, and its narrative lives only in the squash commit
  message. Worth a human look, since this is a hook-wired script edited under the override.

This pull request leaves the merge queue, and ci-status holds it out while it carries pr-verify-failed. A pr-verify pass removes the label, at a new commit or at this same head: once a trusted person edits the body, and only trusted people have edited it since the fail, this head is judged again, so a fail on the body or the issues it links needs only the body fixed, no new commit.

@github-actions github-actions Bot added the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 23, 2026
@kyle-sexton
kyle-sexton removed this pull request from the merge queue due to a manual request Nov 23, 2026
@kyle-sexton
kyle-sexton force-pushed the chore/comment-sweep-B012 branch from d74ed75 to 0c4179d Compare November 23, 2026 03:44
…iene through firecrawl

ADR 0110 bulk comment sweep, batch B012: 86 files across 11 plugins, every
file COMMENT-ONLY by change-shape.sh. The removed narrative is staged in the
pull request body, which becomes the squash commit message.

After review, 12 comment runs that the sweep had partly deleted were kept
whole: test-wrapper-lib.sh's library header, and runs in uncommitted-md.sh,
audit-encapsulation/detect.sh, audit-noise/emit-findings.sh,
audit-progressive-disclosure/detect.sh, articles-setting.sh, audit-scan.sh,
emit-verify-facts.sh, resolve-config.sh, emit-gate.test.sh (two),
apply-rename.sh and firecrawl update.test.sh.

After pr-verify, 4 exit-code contract runs were kept whole: the
detect-caveman.sh header (Output and Exit), the exit-code pointers in the
docs-hygiene and education setup-apply.mjs, and the contract line of
dometrain update.test.sh. The emit-gate.test.sh header run naming its
template basenames for the affected-tests mapping was also kept whole.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RMa43yt8jZqGJ5kzhzjRAX
@kyle-sexton
kyle-sexton force-pushed the chore/comment-sweep-B012 branch from 0c4179d to 1e457c8 Compare November 23, 2026 04:19
@github-actions github-actions Bot removed the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 23, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 98532aa Nov 23, 2026
55 checks passed
@kyle-sexton
kyle-sexton deleted the chore/comment-sweep-B012 branch November 23, 2026 06:18
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant