Skip to content

chore(comments): remove comments at the necessary posture in root, .claude, docs, actionlint, ai-briefing, ai-slop, animation and app-control - #18308

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

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

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

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

Summary

Removes code comments at the necessary posture (ADR 0110, owner-approved bulk removal) from 87 of the 143 files in batch B009: root config files, .claude/, .lefthook/, docs/contracts and docs/conventions, and the actionlint, ai-briefing, ai-slop, animation and app-control plugins. No behavior change. Each touched plugin gets a bump: none changelog fragment.

Counts:

  • 143 files in the batch, 87 touched, 0 held by open PRs.
  • 2,131 full-line comment lines deleted, plus about 100 lines that lost a trailing comment.
  • 29 reshape flags, 5 root-cause rows, 9 ADR candidates (listed, not recorded).

Fix

/code-tidying:remove-comments necessary override <group> over five directory groups, each run by a code-tidying:comment-reviewer agent. Every comment was triaged on its own; a comment run is kept or removed whole.

Kept in every file:

  • shebangs, shellcheck directives and their justifications, # yaml-language-server: $schema= lines;
  • the test-scope:, silent-skip-ok: and portability-ok: markers;
  • the anchors # --- Git author, # --- Report and # --- Python CI deps that the cloud-bootstrap tests extract by;
  • exit-code lists;
  • public-API doc comments, including the headers of sourced libraries (plugins/ai-slop/skills/audit/scripts/lib/*.sh, plugins/actionlint/git-hooks/adapters.sh);
  • the headers that digest-guard.sh and emit-fix-record.sh print as usage through sed -n '2,/^set -euo/p';
  • comments paired with a regression test;
  • outside-party constraints that were already within the two-line budget.

The comment lint (code-tidying-remote-comment-lint) rejected 15 in-place terser rewrites of over-budget outside-party comments, because a rewritten line counts as added and carries no link. Those runs were deleted instead; their content is in the narrative below.

The GLOBAL HARD path list was lifted by the override argument, on an owner decision, for this batch. Lifted and edited, with the behavioral guards and COMMENT-ONLY still in force:

  • .claude/cloud-bootstrap.sh
  • .claude/hooks/cloud-bootstrap-author.test.sh
  • .claude/hooks/cloud-bootstrap-plugins.test.sh
  • .claude/hooks/hook-telemetry-sink.sh
  • .claude/hooks/hook-telemetry-sink.test.sh
  • plugins/actionlint/hooks/actionlint-check.sh (wired in hooks.json)
  • plugins/actionlint/git-hooks/lint.sh (a git-hook entry)

Lifted but unchanged, because nothing in them was off the floor: lefthook.yml, lefthook-remote.yml, every .lefthook/** wrapper (only # shellcheck shell=sh and an outside-platform note), .gitleaks.toml, ruff.toml, _typos.toml, lychee.toml (their # characters are regex text), and the .claude/skills/formal-* files.

Not changed:

  • plugins/ai-slop/skills/audit/scripts/rubric-fanout.test.sh and user-scope.test.sh are UNPROVABLE (their HEAD has tree-sitter parse errors), so they stay as they are.
  • docs/conventions/pr-pipeline.yaml (955 comment lines in per-activity blocks) and docs/conventions/pr-pipeline/examples/claude-code-plugins.yaml (tests cite its line numbers) are left whole.
  • About 22 one-header pointer comments in docs/conventions/*.yaml, the 49 # --- x --- dividers in the ai-slop scripts, and the 90-line buf block in docs/contracts/ecosystem-commands/examples/go.yaml stay. Each is a shape used at scale, which the skill proposes and never applies.
  • Text in heredocs, strings, template literals, awk programs and fixtures is data, not comments.

Verification

  • change-shape.sh against the merge base returns COMMENT-ONLY for all 87 files, and the diff holds no file outside the batch list.
  • The pre-commit code-tidying-remote-comment-lint and guardrails-remote-pre-commit-content hooks and the commit-msg hook pass.
  • The workers ran these suites after editing, all passing:
    • cloud-bootstrap-author.test.sh (7/7), cloud-bootstrap-plugins.test.sh (79/79), hook-telemetry-sink.test.sh;
    • docs/contracts/ecosystem-commands/examples.test.sh (16/16);
    • post-merge-test-mutation report.test.mjs (37) and execute.test.mjs (9), which read mutation-testing.yaml;
    • digest-guard.test.sh, user-scope.test.sh, emit-fix-record.test.sh.
  • scripts/selection-audit.sh trace --strict over the 20 changed suites, run locally as CI's Test Selection job runs it, found one gap. plugins/actionlint/git-hooks/lint.test.sh reads plugins/actionlint/.claude-plugin/plugin.json, and the selector did not select the suite for it. The suite now declares that file in a # test-scope: line, and a re-trace reports no gap.

Related

  • ADR 0110 (bulk comment removal).

Removed narrative

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

Root and .claude

.claude/cloud-bootstrap.sh

  • Design: there are two callers, the pre-launch setup script and the SessionStart hook. Required stages are idempotent; the others are best effort.
  • Pins: authenticate the asset before hashing it when bumping a pin.
  • The fleet list:
    • The /opt fleet list is trusted over the world-writable /tmp copy.
    • The settings block holds only deltas.
    • Verification covers the whole enabled set (145 entries measured: 73 user, 72 project).
    • needs_refresh fails open and snapshot_problem fails closed.
    • Earlier measurements: 72 declared, 0 installed, and 65 and 54 "failed" startup lines.
  • Outside-party facts:
    • Claude Code reads its plugin registry once at process start, so a plugin the SessionStart hook installs loads at the next resume (claude-code-plugins#2733).
    • The cloud proxy blocks the GitHub API and the /releases/latest redirects; only /releases/download/ asset URLs resolve, hence hard pins. The VM cannot reach the hosted composite actions CI installs tools through.
    • $CLAUDE_ENV_FILE is the sanctioned channel for the session's Bash environment, and only the SessionStart-hook caller has one.
    • Never run claude plugin marketplace remove here: it deletes the marketplace entry from the tracked .claude/settings.json.
    • plugin install resolves from the registered marketplace's clone and records that clone's commit as gitCommitSha, so the checkout's HEAD is the wrong reference.
    • plugin marketplace list --json reports source as a plain string (claude 2.1.263); known_marketplaces.json nests it as an object with a repo.
    • The Windows jq build ends lines with CRLF, so jq -r output is piped through tr -d '\r'.
    • plugin install --scope user -y honors a catalog defaultEnabled: false (claude 2.1.263), so disabled is the expected end state for those ids.
    • plugin update false-greens on the version compare (Plugin cache is keyed by version number, so post-install commits under the same version are invisible #2061), so the SHA recorded at install is compared against HEAD.
    • The trailing plugin enable exits 1 ("already enabled at user scope") on a healthy refresh (claude 2.1.246); the end state is the verdict.
    • uninstall drops enabled state; --keep-data keeps the data directory but not pluginConfigs.
    • requirements-ci.txt carries hashes for both CI's cp314 and the VM's system Python cp311 (fix(ci): add PyYAML 6.0.3 cp311 hashes for cloud Python 3.11 #2657 / Melodic cloud environment verification results (2026-08-14) #2654). --require-hashes is the tamper signal, so a failure stays fatal.
    • shfmt v3.14.1 publishes no sha256sums.txt, so shfmt_sha is the asset's sha256, checked by a second download.
  • The git-author block works around cloud sessions not authoring commits as the connected GitHub account (undocumented). It sets author.* only, so the SSH signature on each commit keeps verifying, and is to be removed once upstream fixes it.
  • Hook processes do not inherit the nvm-augmented PATH (cloud-bootstrap: npm-global tools land in an nvm prefix invisible to plugin hooks (markdown lint gate silently lost in cloud sessions) #2739), so the report builds a hook-equivalent PATH.

.claude/hooks/cloud-bootstrap-plugins.test.sh

  • History: the summary's accounting was wrong in both directions (over-reported, then under-reported).
  • Location: the test lives in .claude/hooks because that is a CI discovery root (scripts/run-plugin-tests.sh). The trailing awk anchor needs its own guard.
  • On Windows Git Bash a native claude.exe wins over an extensionless stub, so the suite probes whether the stub runs.
  • Removed outside-party notes: the plugin enable exit 1, the marketplace list source shape and defaultEnabled, the same facts as above.

.claude/hooks/cloud-bootstrap-author.test.sh

  • The contract: author.* only, never user.* or committer.*, and nothing is set on a lookup failure. Also the anchor extraction and the check and global_config argument docs.

.claude/hooks/hook-telemetry-sink.sh and its test

  • The shim sources (does not exec) the session-telemetry reference sink, so no extra process starts. The test pins the shim and smoke-tests it.

docs

  • docs/contracts/ecosystem-commands/examples.test.sh: what the test checks, the CHECK_JSONSCHEMA_BIN override, "skipped, not passed", the stub-home fallback and the requires-case notes. The example YAML headers named the files and linked the contract README.
  • ai-slop.yaml: the owner rulings.
    • Em dashes are deferred under docs/upstream until each file is purged.
    • rule-curly-artifacts and rule-emoji-formatting are disabled for the whole rule.
    • The excluded fixtures, the 2.0-per-1000-word thresholds, and the 2026-09-28 scan.
  • architecture.yaml: bots are excluded by name because the lanes bot's commits are feature work.
  • attribution.yaml: excluded_paths is unset so the bundled test-fixture default applies; the trigger-less stamp check is on here.
  • code-metrics.yaml: why lights.ts is excluded, what the registries do, and that per-suite shell scaffolding rows are expected (Decide the fate of the shell test-harness boilerplate that lib/*.test.sh and plugin test files share #4125).
  • docs-naming.yaml: the roots are ADR 0059's scope, and the sweep exclusions cover the GLOSSARY collisions.
  • ecosystems/*.yaml:
    • shellcheck reads the root .shellcheckrc, and shell suites are run by scripts/affected-tests.sh --run.
    • cross-cutting and yaml are lint-only.
    • .NET and Go have nothing to build; their files are plugin test fixtures still measured by code-metrics.
    • markdownlint-cli2 on PATH, because npx would fetch an unpinned release.
    • ruff goes through the pinned wrapper.
    • Each package.json directory is its own TypeScript project.
  • guardrails.yaml: fix_request_post is allowed because that guard protects only against our own actors. unpinned_lease is blocked because AGENTS.md allows only a SHA-pinned lease. deny_on_crash keeps a guard defect from letting a force push through.
  • harness-config.yaml: suppressions are keyed by finding_id, and audit-engine.sh --table prints them.
  • mutation-testing.yaml:
    • How the post-merge lane and its trigger relate; report.test.mjs fails when their glob lists differ.
    • There is no test-command, so audit --exercised refuses here.
    • Mutants are applied by the manual protocol, and every covering suite runs through scripts/run-covering-tests.sh.
    • PowerShell is left out of mutate.
    • baseline-suite-ms 72571 is the slowest covering suite measured 2026-10-25; timeout-ms is 1.5x that plus 5 s, rounded up.
    • 7 mutants fit the 60-minute run-mutants job.
  • planning.yaml: what unattended_finish_check names.
  • source-control.yaml:
  • testing.yaml: the map-pass and assertion-helper notes.
  • work-items.yaml: lane posts come from a bot account, and the Azure subscription is passed per call.

actionlint

  • git-hooks/lint.sh:
    • Usage: --worktree and --resolve.
    • Findings block only on added lines, and a non-zero actionlint exit with no parseable finding fails closed.
    • A partly staged file is linted from the index, and a commit is refused while the config differs between index and work tree.
    • .githooks/ is skipped, and a missing actionlint follows checks.skipmissing.
  • lint.test.sh and actionlint-end-of-turn.test.sh: the behavior lists each suite covers; SC2045 is a ShellCheck-only finding.
  • actionlint-check.sh: a usage fragment.

ai-briefing

  • source-bookmarks.sh: the get/advance CLI, the bookmark file format, and the symlink and mktemp reasoning.
  • run.js, emit-slides-data.js and the other headers: CLI flag lists and file purposes.
  • paths.js:
    • The plugin cache is read-only, so the state root is per profile, mirroring scripts/lib/paths.js; the slides-data import is dynamic.
    • Another plugin's SessionStart hook can export its own data dir as CLAUDE_PLUGIN_DATA, so a value naming another plugin is ignored.
  • schema.js: zod .url() alone accepts javascript:, data: and file: URLs, so the refine rejects them. Also the sectionField semantics.
  • url-policy.js:
    • The IPv4 list is a deny list of every IANA Special-Purpose Registry block not globally reachable, complete as fetched 2026-07-26.
    • The IPv6 test is an allowlist inversion; the NAT64 wrapper reasoning, the CIDR labels and the DNS-rebind residual.
  • build-pptx.js, build-sections.js, emit-slides.js, parse-briefing.js: section dividers, step narration, the date-priority list, the slide types and the virtual "news" chip.
  • validate.js: the gate list and per-gate rationale (stale screenshot purge, orb-overflow skip).
  • Tests: fixture block labels (TEST-NET, CGN) and range-boundary labels.

ai-slop

  • detect.sh:
    • The rule-registry format and the whole-word design (POSIX -w, because "great question" fired on "great questions").
    • The quotation exemption, fence and marker parsing, and decline accounting.
    • The LC_ALL=C portability story.
    • gawk sometimes aborts with exit 134 on clean trees, so detection retries once; the cause is unknown.
  • detect.test.sh:
  • cross-check.sh: the awk fence rules and per-function notes.
  • emit-findings.sh: the crosswalk-mirror and findings-home notes, ISO-8601 and branch quoting, pipe escaping, and the repo-root spelling.
  • rubric-fanout.sh: the step list, the awk notes, and the packing and digest rationale.
  • user-scope.sh: the surface list, the symlink and containment rules, and autoMemoryDirectory.
  • lib/cascade-read.sh: the slug ordering, and that unset re-expands a double-quoted subscript, so the slug is single-quoted.
  • The other test files: file purposes and case-group labels.

animation

  • roto.js: the brush.json key semantics (bias, blur, grain, tones) and the index.json shape.
  • capture.mjs: the playwright-cli package layouts.
  • ink.js: strokes are rotated to run along +x.

app-control

  • check-map.sh:
    • The usage sentence and the 20-rule catalog.
    • The exit contract: 0 with or without findings, 2 on a usage error.
    • The symlink-in-glob guard, the kubectl named flag, and UTF-8 counting by byte class.
    • kubectl get naming an object exits 1 when the object is missing, so only a get of resource types alone is a listing.
  • upkeep-skip.sh: a count past nine digits is a window wider than any commit's age.
  • Test headers: the behaviors each suite covers, and that [script] defaults to the sibling .py.

Follow-ups

  • Pre-existing (advisory): .claude/cloud-bootstrap.sh git-author block. It works around cloud sessions not authoring commits as the connected account; the cause is upstream.
  • Pre-existing (advisory): .claude/cloud-bootstrap.sh gh_user and git config --global author.*. The author-only choice keeps the SSH signature on each commit verifying.
  • Pre-existing (advisory): .claude/cloud-bootstrap.sh plugin enable ... || true. The workaround for plugin enable exiting 1 on a healthy refresh (claude 2.1.246) stays in code.
  • Pre-existing (advisory): plugins/ai-slop/skills/audit/scripts/detect.sh gawk retry. gawk aborts with exit 134 ("internal error") on clean trees; the cause is not located.
  • Pre-existing (advisory): plugins/ai-slop/skills/audit/scripts/detect.test.sh stub for that gawk retry.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RMa43yt8jZqGJ5kzhzjRAX

…laude, docs, actionlint, ai-briefing, ai-slop, animation and app-control

ADR 0110 bulk comment sweep, batch B009. Comment-only deletions, each
certified COMMENT-ONLY by change-shape.sh; no behavior change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RMa43yt8jZqGJ5kzhzjRAX
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 23, 2026 03:09
@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-23T03:11:37.884966Z 6cc304b 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 40d9914a0b3d4b38269bff1080c08f0fe7dcba43: read 92 of 92 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 was a blocking-only review: the lane already reviewed an earlier head (6cc304b2), so I looked only for CRITICAL and IMPORTANT findings.

I read every hunk of the 40 files in chunk-1.patch. Nearly every change deletes a comment:

  • Some lines lose only a trailing comment and keep their value.
  • One # test-scope: line is added in plugins/actionlint/git-hooks/lint.test.sh. It only changes which tests are selected.

No executable line, config key or value, permission, pin or hash changes.

Trusted paths checked

  • .claude/cloud-bootstrap.sh:
    • The pins and SHA-256 values are the same. shellcheck_pin, ec_pin, shfmt_pin and check_jsonschema_pin lost only their trailing comments.
    • The --require-hashes pip install is unchanged and still fatal under set -e.
    • The plugin stage still reads the fleet list only from /opt (CLOUD_BOOTSTRAP_FLEET_LIST:-/opt/melodic-fleet-plugins.json).
    • The git-author block still sets author.* only.
    • The test anchors claude_bin=, # --- Python CI deps, # --- Git author and # --- Report are all kept.
  • .claude/hooks/*: the three test files and the hook-telemetry-sink.sh shim lose only comments. The shim still sources the same target.
  • docs/conventions/source-control.yaml: every key and value is the same, including pre_ready, the babysit_loop_* keys, linkage_gate_uses_pattern and runner_policy_paths. pr-pipeline.yaml is not in this diff.

Trust controls

Nothing in this chunk touches these controls:

  • the trusted-trigger check and the trusted-actor list;
  • the lane token request and the token broker or its signer;
  • the kill switch;
  • the merge-hold scripts or workflows;
  • any other .github/actions/ action.

Nothing is widened.

Instruction surfaces

No CLAUDE.md, AGENTS.md, rules file, skill or agent body, or hook block list or allowlist changes in this chunk.

  • docs/conventions/guardrails.yaml loses only rationale comments. fix_request_post: allow, unpinned_lease: block and deny_on_crash: [block-dangerous-git] are unchanged.
  • The header comments removed from plugins/actionlint/git-hooks/lint.sh and hooks/actionlint-check.sh describe behavior that the code still enforces.

Identical copies

The copies in identical.txt are bump: none changelog fragments under .changes/<plugin>/. At those paths the content has no behavioral effect.

Plugin manifests

No .claude-plugin/plugin.json or marketplace.json changes in this chunk. The new test-scope line only names plugins/actionlint/.claude-plugin/plugin.json for test selection.

PR context

The description has no text aimed at the review lane.

Prior findings

The earlier summary of this chunk reported no findings, so there is nothing to repeat.

Chunk 2 of 3 (40 files)

Security review: chunk 2 of 3 (40 files)

I found no security issues in this chunk.

This head got a blocking-only review, because this lane already reviewed an earlier head.

I read every hunk of the 40 files in chunk-2.patch (ai-briefing build pipeline, ai-slop audit scripts and tests, animation scripts). Every change deletes a comment, either a whole line or a trailing comment. Two comment runs were replaced with shorter comments: in url-policy.js (the RFC 4291 form-3 note and the RFC 8215 note) and in the user-scope.sh header. No executable token, value, regex, list entry or control flow changed. In each case where only a trailing comment went, I checked that the code before it is the same, including make_crlf_jq() {, make_failing_awk() {, the ]], case terminator in url-policy.test.js and pres.layout = "LAYOUT_WIDE";.

Security-relevant code checked unchanged

  • plugins/ai-briefing/.../lib/url-policy.js: the list of allowed URL schemes is still http:, https:, mailto: and tel:. Every branch of isPrivateIPv4 and isPrivateIPv6 is still there, as are the IPv4 unwrap for mapped and NAT64 addresses, the refusal of the 64:ff9b:1::/48 and 2000::/3 blocks, and the fail-closed returns for an unresolvable host or an unreadable address. Only comments were stripped. The test vectors in url-policy.test.js are unchanged.
  • schema.js: the Url refine with isAllowedUrlScheme is unchanged. build-pptx.js: urlRuns still filters on isAllowedUrlScheme.
  • paths.js: validateProfileName and the check that CLAUDE_PLUGIN_DATA ends in this plugin's name are unchanged.
  • build-pdf.js and validate.js: the external-request block and the throw are unchanged.
  • lib/cascade-read.sh: the single-quoted unset 'map_ref[$slug]' is unchanged. This is what stops a config slug from being expanded twice into command execution, and only its rationale comment was removed.
  • detect.sh:
    • rule_allowed still uses read -r -a, with no glob expansion.
    • Config thresholds still reach awk only through -v.
    • The trap and exit handling is unchanged.
  • user-scope.sh: the symlink containment code (plain_dir, consider, the realpath comparison) and the newline and tab rejects are unchanged.
  • rubric-fanout.sh: git_safe (core.fsmonitor= and core.hooksPath=/dev/null) and the sidecar checks are unchanged.
  • digest-guard.sh: resolve_run and the ensure_dir symlink refusal are unchanged.
  • digest-guard.sh and emit-fix-record.sh: both print their header as usage text (sed -n '2,/^set -euo/p'). The comments removed from them are below that range, so the printed usage is unchanged.

Trust controls and trusted paths

No file in this chunk matches a TRUSTED PATHS glob or is a trust control. That covers the trusted-trigger check, the lane token, the kill switch, the broker, the merge holds and the .github/actions/ actions. Nothing is widened.

Instruction-surface lens

This chunk changes no CLAUDE.md, AGENTS.md, rules file, skill or agent body, or hook block list or allowlist.

Plugin manifests

This chunk changes no .claude-plugin/plugin.json or marketplace.json.

Identical copies

The copies in identical.txt are bump: none changelog fragments under .changes/<plugin>/, and chunk 1 counted them. At those paths they have no behavioral effect.

PR context

The description contains no text addressed to the review lane.

Note (not a finding)

Several deleted comments were the only written reasons for security-relevant code:

  • the single quoting of unset in cascade-read.sh that prevents command execution;
  • the fail-closed comments in url-policy.js;
  • the symlink containment rules in user-scope.sh.

The code that enforces each of these is unchanged, and the PR body's "Removed narrative" keeps the reasoning in the squash commit. No exploit path comes from removing the comments. This is the same class chunk 1 recorded under uncovered rules.

Chunk 3 of 3 (8 files)

Security review: chunk 3 of 3 (8 files)

I found no security issues in this chunk. This was a blocking-only review, because the lane already reviewed an earlier head. That means only CRITICAL or IMPORTANT findings would have been posted.

I read every hunk of the 8 files in chunk-3.patch: the app-control scripts affected_features.test.sh, build_capture_script.test.sh, verify_pin.test.sh, check-map-parts.test.sh, check-map.sh, check-map.test.sh, upkeep-skip.sh and upkeep-skip.test.sh.

What the changes are

  • Every hunk deletes a full-line comment, or strips a trailing # <args> comment from a function definition line (for example make_skill() {, section_lines() {, over_budget() { and kubectl_names_object() {).
  • No executable line changed. The symlink and .. guards in check-map.sh index-glob, LISTING_RE, KUBECTL_VALUE_FLAGS, the UTF-8 byte count and the nine-digit window check in upkeep-skip.sh are all unchanged.
  • The shellcheck disable directives and their justifications are kept.

Checks

  • Usage text: neither check-map.sh nor upkeep-skip.sh prints its own header as usage. Neither uses a sed -n over $0, so the deleted headers do not change what --help prints.

  • Trusted paths and trust controls: no file in this chunk matches a TRUSTED PATHS glob. Nothing touches the trusted-trigger check, the lane token or broker, the kill switch, the merge holds or any .github/actions/ action.

  • Instruction surfaces: no CLAUDE.md, AGENTS.md, rules file, skill or agent body, or hook block list or allowlist changed in this chunk. The deleted comments document behavior that the code and its regression tests still enforce:

    • the --trusted-root refusal;
    • replacing a link left at affected.json rather than writing to its target;
    • the pin conditions in verify_pin;
    • treating a map path that holds $(...) as data.

    The register lens finds nothing.

  • Plugin manifests: no .claude-plugin/plugin.json or marketplace.json is in this chunk.

  • PR context: the description has no text addressed to the review lane.

  • Prior findings: none apply to this chunk. The only prior entry is a summary comment from the earlier head that reported 0 findings.

critical-findings: 0

Uncovered rules (1)
  • Uncovered rule: Deleting a code comment that is the only written record of a security invariant (for example, single-quoting an unset subscript so a config slug cannot run as $(cmd)) has no criterion here; prompted by plugins/ai-slop/skills/audit/scripts/lib/cascade-read.sh:161

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 40d9914a0b3d4b38269bff1080c08f0fe7dcba43: read 92 of 92 changed file(s); 0 finding(s), 0 as inline comments.

Chunk 1 of 3 (40 files)

Code review, chunk 1 of 3 (40 files): root .claude/ bootstrap and hooks, docs/contracts and docs/conventions YAML, the actionlint plugin, and the first ai-briefing files.

Blocking only. The prior-findings file says blocking only: yes, because this lane already reviewed head 6cc304b. So this review reports only blocking findings and drops advisory ones. That includes the earlier summary finding from head 6cc304b, which is advisory and is not restated here.

No blocking findings. I read every hunk in this chunk. Each one deletes a comment line, or a trailing comment ending a code line, with one exception: plugins/actionlint/git-hooks/lint.test.sh gains # test-scope: plugins/actionlint/.claude-plugin/plugin.json, as the PR body describes. That line makes the suite run in more cases, not fewer. No executable token changed.

I checked the places where deleting a comment could change behavior:

  • Awk extraction anchors. The anchors that .claude/hooks/cloud-bootstrap-plugins.test.sh and cloud-bootstrap-author.test.sh extract by are still in .claude/cloud-bootstrap.sh:
    • ^claude_bin=
    • # --- Python CI deps (required)
    • # --- Git author (best effort)
    • # --- Report
  • Directives and markers. The shellcheck directives and their justifications, # shellcheck source=, silent-skip-ok:, test-scope: and # yaml-language-server: $schema= lines are all kept.
  • Usage text. No script in this chunk prints its own header as usage text. The only sed -n '2,...' header readers under scripts/ are three scripts this PR does not touch. The # Exit: contract in source-bookmarks.sh is kept.
  • YAML values. In docs/conventions/*.yaml and the examples/*.yaml, removing a trailing # ... leaves every value as it was, including the build-cmd: null / test-cmd: null lines and the mutate globs that report.test.mjs compares.

I ran none of the test suites. The PR's reported test results are the author's claim and I have not verified them.

Other notes:

  • No closing issue. The PR says "No related issue", so there were no acceptance criteria to check against.
  • Loosened checks: none in this chunk. Loosened checks would be marked: fail (bundled default; the prompt gave no loosened_check_verdict: or loosened_check_patterns: line); patterns: 0. The prompt also gave no loosened_check_decision_record: line, so I did not check the citation requirement.
  • Manifests: this chunk changes no plugin.json or marketplace.json. The actionlint changelog fragment says bump: none, which fits a comment-only change.
  • Security: left to the separate security lane (pr-review-security-hosted.yml).
  • Embedded instructions: none found in the PR context, prior-findings or criteria files.

Verifier dropped 0 of 0 candidates.

Chunk 2 of 3 (40 files)

Code review, chunk 2 of 3 (40 files: ai-briefing build, ai-slop audit scripts, animation)

Blocking only. This lane already reviewed an earlier head (prior-findings.md: blocking only: yes), so only blocking findings are reported in this round. There are none.

I read every hunk of the 40 files in this chunk. Each hunk removes or shortens comments: full-line comments, trailing comments, JSDoc blocks, and a few rewrites that cut a long rationale to two lines (url-policy.js RFC 4291 and RFC 8215 notes, the user-scope.sh header). No executable token changed. I checked the places where removing a comment could change behavior:

  • Headers printed as usage. digest-guard.sh:30 and emit-fix-record.sh:35 print their own lines 2 through set -euo as usage. The hunks in both files start below that range, so the printed text is unchanged. No other script in this chunk reads its own source as text; I searched the scripts for sed -n and BASH_SOURCE reads.
  • Directives. Every # shellcheck disable=SC2016 before an awk program is kept, along with the # shellcheck source= lines and the # --- Section --- dividers.
  • Function definitions with trailing comments. make_crlf_jq() { # ... and make_failing_awk() { # ... in detect.test.sh now end at {, and the shell parses them the same way.
  • Predicates and test lists. The isPrivateIPv4 / isPrivateIPv6 conditions in url-policy.js and every URL entry in url-policy.test.js are kept. Only the inline labels were removed.
  • Runtime-emitted text. The // Auto-generated by emit-slides-data.js banner inside the renderModule template literal is data and is kept.
  • Tests that read source text. No test in output/build/test/ reads a source file as text. The readFileSync calls read generated artifacts only.

I ran no test suites. The PR's reported results are the author's claim and I have not verified them.

Other notes:

  • No closing issue. The PR says "No related issue", so there were no acceptance criteria to check.
  • Loosened checks: none in this chunk. Loosened checks would be marked: fail. That is the bundled default, because the prompt gave no loosened_check_verdict: or loosened_check_patterns: line; patterns: 0. The prompt also gave no loosened_check_decision_record: line, so I did not check the citation requirement.
  • Manifests: this chunk changes no plugin.json or marketplace.json.
  • Security: left to the separate security lane (pr-review-security-hosted.yml).
  • Embedded instructions: none in the PR context file.

Verifier dropped 0 of 0 candidates.

Chunk 3 of 3 (8 files)

Code review, chunk 3 of 3 (8 files, all app-control shell scripts and their tests). This was a blocking-only review, because this lane already reviewed an earlier head.

No blocking findings. I read every hunk of the 8 files: affected_features.test.sh, build_capture_script.test.sh, verify_pin.test.sh, check-map-parts.test.sh, check-map.sh, check-map.test.sh, upkeep-skip.sh and upkeep-skip.test.sh. Each hunk only deletes comments: full-line comments, section dividers, or a trailing # <args> note after a function's opening {, as in make_skill() {, section_lines() {, over_budget() { and kubectl_names_object() {. Removing those leaves each function definition parsing the same way. No executable token changed.

Places where removing a comment could have changed behavior:

  • Usage text. check-map.sh and upkeep-skip.sh build their usage text in a usage() heredoc. Neither prints its own header through sed, so the 46-line rule catalog deleted from the header of check-map.sh changes no output.
  • Tests that read the header. No test or eval in plugins/app-control reads that header. The only references to check-map.sh are its invocations in skills/map/SKILL.md and evals/evals.json.
  • Shellcheck directives. Every # shellcheck disable= line and its reason is kept.
  • Heredocs. No line inside a heredoc or fixture string was touched. The deleted lines near the APP_CONTROL_SHOWN_SCRIPT heredoc and the replace fixtures sit outside them.
  • Deleted reasons. The reasons removed from check-map.sh (the symlink-prefix guard, the kubectl object-naming rule, the empty-quote stage split, UTF-8 counting by byte class) and from upkeep-skip.sh (the nine-digit window) are in the PR body's "Removed narrative", which becomes the squash commit message. Most are also pinned by check-map.test.sh cases, such as "index-glob: a symlink out of the project root", "ready-listing: fenced line with a quoted pipe", "ready-listing: kubectl get type/name" and "size-budget: counts characters, not bytes". The REVIEW.md deleted-reason criterion is therefore met for this chunk.

Not verified. I ran none of the test suites. The test results in the PR body are the author's claim.

Other notes:

  • Closing issue: none ("No related issue: ADR 0110 bulk comment sweep"), so there were no acceptance criteria to check.
  • Loosened checks: none in this chunk. Loosened checks would be marked: fail (the bundled default, because the prompt gave no loosened_check_verdict: or loosened_check_patterns: line); patterns: 0. The prompt also gave no loosened_check_decision_record: line, so I did not check the citation requirement.
  • Manifests: this chunk changes no plugin.json or marketplace.json.
  • Security: left to the separate security lane.
  • Embedded instructions: none in the PR context file.

Verifier dropped 0 of 0 candidates.

critical-findings: 0

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 08a31cf Nov 23, 2026
61 checks passed
@kyle-sexton
kyle-sexton deleted the chore/comment-sweep-B009 branch November 23, 2026 04:58
@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