Skip to content

chore(comments): remove comments at the necessary posture in kindle-dedrm, markdown-format, mcp-tools, miro, multi-agent, mutation-testing, performance - #18403

Merged
kyle-sexton merged 1 commit into
mainfrom
chore/comment-sweep-B022
Nov 23, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
chore/comment-sweep-B022

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

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

Summary

Removes code comments at the necessary posture (ADR 0110, owner-approved bulk removal) from batch B022: kindle-dedrm, markdown-format, mcp-tools, miro, multi-agent, mutation-testing and performance. No behavior change. One bump: none changelog fragment per touched plugin.

Counts:

  • 98 files in the batch: 20 touched, 0 held by open PRs among the touched files.
  • 91 comment runs deleted (99 lines), 11 of them trailing signature comments stripped from a function's opening line.
  • 0 reshape flags and 0 root-cause rows.

Fix

/code-tidying:remove-comments necessary override over the batch's directory groups, with read-only triage by an external agent and a scripted apply, then a full review of the applied diff against the keep rules.

What was deleted: section and case labels no kept comment cites, function signature notes (# rec <name> <sha> [rows...]), and comments that restate the next line or the assertion label beside them.

Review restorations, byte-identical from the base:

  • Restored whole, because their deletions removed reasons, design decisions, outside-party constraints or oracle derivations: kindle-dedrm check-drift.sh, check-drift.test.sh, sync-prep.test.sh; markdown-format markdown-format.test.sh; mcp-tools inventory.test.sh (its Run N label series was partly deleted); miro launcher.ts, launcher.test.ts; multi-agent workflows/drift-audit.js, scripts/allowed-tools-pairing.test.sh; mutation-testing suppression-lint.test.sh; and 15 performance/scripts files (ab.test.sh, differential.test.sh, discriminate.test.sh, findings.test.sh, harness-lib.sh, harness-lib.test.sh, pathfix.test.sh, ratchet.test.sh, ratio.test.sh, resolve-python.test.sh, run-spawn-census.test.sh, spawn-census.sh, spawn-census.test.sh, summarize.test.sh, and test-helpers.sh, a sourced library whose per-function docs are its public API).
  • Single runs restored: the glob-array rationale in cleanup.sh, the cached-installer note in sync-finalize.sh, the one-line defect statement in firewall.Tests.ps1, the escape-key fixture note in compare-records.test.sh, the fixture inventory in dotnet-test-selection.test.sh, the two hand-derived expectations in estimate-run.test.sh, and the fixed-volume df shim note in untracked-cache-probe.test.sh.

Override: the override argument lifted the GLOBAL HARD path list. The batch's hook-wired files were plugins/markdown-format/git-hooks/*, plugins/markdown-format/hooks/markdown-format.sh, plugins/markdown-format/git-hooks/lefthook-remote.yml and plugins/multi-agent/hooks/drift-checker-fetch-gate.mjs; of the lifted paths, only plugins/markdown-format/hooks/markdown-format-end-of-turn.test.sh (a test beside a hook) is changed.

Not changed

  • UNPROVABLE (tree-sitter-bash parse errors), so restored whole: plugins/markdown-format/git-hooks/markdown-gates.sh, plugins/mutation-testing/scripts/suppression-lint.sh, plugins/performance/scripts/ab.sh.
  • plugins/multi-agent/scripts/allowed-tools-pairing.test.sh is also touched by open PR feat(multi-agent): vendor routing joins and registry recheck #18395.
  • No batch file is a copy in scripts/shared-copies.txt or a destination in melodic-software/standards' distribution/sync-manifest.yml.

Verification

  • change-shape.sh against the base returns COMMENT-ONLY (exit 0) for all 20 touched files; the diff holds no file outside the batch list.
  • A scan of every deletion hunk finds no deleted line adjacent to a kept comment line, so no comment run is left partly deleted.
  • scripts/check-shell-portability.sh origin/main: no unexcused GNU-only constructs.
  • The pre-commit code-tidying-remote-comment-lint and guardrails-remote-pre-commit-content hooks passed.
  • scripts/selection-audit.sh trace --strict --jobs 3 --budget 720 over the 9 suites selection-audit.sh changed --base origin/main lists: all 9 traced and exited 0, 37 tracked files read, no gap. Nothing went under ## Not changed for a gap.

Related

Removed narrative

What the deleted comments said. This body is the squash commit message.

  • kindle-dedrm cleanup.sh: the MODE value list (confirm | soft | full), the rm_or_show signature, and step labels 1 to 7 (firewall rule, ICACLS deny, cached installer, key finder, downloads, uninstall, Calibre reminder). lock-updates.sh: the icacls_updates signature. status.sh: that paths resolve through Windows env vars (the header's shellcheck note says the same), and the Probes and Compose JSON labels. sync-prep.sh: the pre-flight label. firewall.Tests.ps1: what Get-EnabledGuard returns.
  • markdown-format markdown-format-end-of-turn.test.sh: the expect, stop and report signatures and the hooks.json row note.
  • mcp-tools inventory.sh: the JQ_NORM, add_rows and add_file_source contracts and the user/local scope label. discover.sh: signatures of derive_server, lines_after, to_project_rel and add_record, and the TypeScript, Python and .NET section labels. discover.test.sh: fixture and case labels, the depth-cap fixture note, and the unscoped and outside-path case notes.
  • miro overlaps.test.ts: the 4-choose-2 pair count.
  • multi-agent drift-checker-fetch-gate.test.mjs and drift-audit.test.mjs: suite descriptions, the rawPage and default-stub notes, and section labels. list-pointers.sh: the role and fan-out key prefixes. list-scripts.test.sh: two script labels.
  • mutation-testing compare-records.test.sh: the row, rec, expect and expect_absent signatures and the per-case notes that restate each assertion. dotnet-test-selection.sh: the classes_of output line. dotnet-test-selection.test.sh: the expect and src signatures and per-case notes. estimate-run.test.sh: the expect and refuse signatures.
  • performance untracked-cache-probe.sh: the not_checked and volume_of signatures. untracked-cache-probe.test.sh: the probe and left_in signatures and case labels 1 to 11.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RMa43yt8jZqGJ5kzhzjRAX

…edrm, markdown-format, mcp-tools, miro, multi-agent, mutation-testing, performance

ADR 0110 bulk comment sweep, batch B022. Removes section labels, function
signature notes and comments that restate the next line, in 20 files. Every
file reads COMMENT-ONLY from change-shape; comments that record a reason, a
design decision, an outside-party constraint or an oracle derivation stay.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RMa43yt8jZqGJ5kzhzjRAX
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 23, 2026 09:46
@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-23T09:47:59.861304Z 29c1f8c 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

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 29c1f8c0668c6d59b67c3ef12632bfe4f02a8cb7: read 27 of 27 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #18403 (ADR 0110 comment sweep, batch B022)

No security issues found.

I read all 21 files in scope in the diff. The seven .changes/* fragments are byte-identical bump: none notes, so I read the first and counted it once. Every hunk deletes a comment or strips a trailing # ... signature comment from a function's opening line, for example expect() { # <label> <want> <got> becomes expect() { and MODE="confirm" # confirm | soft | full becomes MODE="confirm". No executable token changes in any of the shell, PowerShell, TypeScript or .mjs files.

Points I checked specifically:

  • Lint directives kept. No # shellcheck directive was deleted. The # shellcheck disable=SC2016 above LOCAL_FILTER in plugins/mcp-tools/skills/audit-posture/scripts/inventory.sh is still there.
  • Hook-adjacent files. plugins/markdown-format/hooks/markdown-format-end-of-turn.test.sh and plugins/multi-agent/hooks/drift-checker-fetch-gate.test.mjs are tests beside hooks, not the hooks. Only comments change in them. Neither hooks.json nor the gate's code is touched.
  • Instruction surfaces. The diff touches no CLAUDE.md, AGENTS.md, rules file, skill or agent body, or hook block list or allowlist. The instruction-surface lens therefore has nothing to check.
  • Other control surfaces. No plugin manifest, no trusted path and no workflow is touched. No trust control, merge hold or kill switch is touched.
  • PR description. .claude-lane/pr-context.md holds no embedded directive aimed at the review lane.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 29c1f8c0668c6d59b67c3ef12632bfe4f02a8cb7: read 27 of 27 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #18403 (ADR 0110 comment sweep, batch B022)

No findings.

I read every hunk of all 21 files in scope. The 7 .changes/*/chore-comment-sweep-b022-*.md fragments are identical, so I read the first one and skipped its copies. Each fragment is bump: none, which fits a change that only deletes comments.

What the diff does. Every hunk removes # or // comment lines, or strips a trailing signature comment from a function's opening line (for example expect() { # <label> <want> <got> becomes expect() {). No code token, assertion, expected value or test case changes. Every # shellcheck disable=... directive is kept, along with the comment that explains it (inventory.sh SC2016, cleanup.sh SC2154 and SC2294). No PowerShell comment-based help keyword is removed from firewall.Tests.ps1.

REVIEW.md deleted-comment rule (code-review lane scope: a deleted comment that recorded why a repository decision was made must be recorded somewhere else). I checked each deleted comment that reads like a rationale:

  • cleanup.sh: the deleted rm_or_show note gave the array-versus-eval reason. That reason still exists in the kept glob-array comment at cleanup.sh#L119-L120, and the shellcheck note at L59-L60 still explains why run_or_show uses eval.
  • cleanup.sh: the MODE value list duplicated the header usage block (L6-L10).
  • inventory.sh (add_rows, add_file_source exit-2 contracts), discover.test.sh (depth cap, --path outside the project), dotnet-test-selection.test.sh (single-quote path) and untracked-cache-probe.test.sh (cases 1–11): these comments described behaviour, not a reason, and an assertion label next to each still pins that behaviour.

None of them carried a reason that is now unrecorded.

Closing issue. None. The PR body says "No related issue: ADR 0110 bulk comment sweep", so there are no acceptance criteria to check.

Path-scoped rules. consumer-agnostic-plugins.md (plugins/**) and mod-authoring.md (plugins/*/hooks/**, which matches markdown-format-end-of-turn.test.sh and drift-checker-fetch-gate.test.mjs) cover changed files. Deleting comments breaks neither rule.

Verification. The PR's verification steps (change-shape.sh COMMENT-ONLY, the portability check, the pre-commit hooks, the selection-audit.sh traces) are the author's claims. I did not run them, because this lane has no shell.

Loosened checks would be marked: fail (default, no loosened_check_verdict: line in the prompt); patterns: 0. No loosening found: no test, assertion, threshold or suppression changes. The prompt has no loosened_check_decision_record: line, so the citation requirement was not checked.

Verifier dropped 0 of 0 candidates.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 9621904 Nov 23, 2026
78 checks passed
@kyle-sexton
kyle-sexton deleted the chore/comment-sweep-B022 branch November 23, 2026 10:01
@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