Repository navigation
chore(comments): remove comments at the necessary posture in harness-ops (part 1) - #18329
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…ops (batch B015) ADR 0110 bulk comment sweep, batch B015: the first 150 files of plugins/harness-ops. 41 files touched, every one COMMENT-ONLY by change-shape.sh. The removed narrative is in the pull request body. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RMa43yt8jZqGJ5kzhzjRAX
afd2d1d to
11eb932
Compare
|
claude-security-review reviewed Chunk 1 of 2 (37 files)Security review: chunk 1 of 2 (37 files)No security issues found in this chunk. This review was blocking only: this lane already reviewed an earlier head, What was checkedI read every hunk of the 37 chunk-1 files in
Security code whose comments were removed (code unchanged)
Instruction-surface lensThe deleted text is comments in scripts and tests, not standing model instructions. The diff touches no Other checks
Chunk 2 of 2 (5 files)Security review: chunk 2 of 2 (5 files)I found no security issues in this chunk. This was a blocking-only review, because the lane already reviewed head I read every hunk of the five test scripts in
What changedEvery hunk deletes something; nothing is added except the shortened lines below.
Test assertions are unchangedThe security cases in
In Other checks
critical-findings: 0 |
|
claude-review reviewed Chunk 1 of 2 (37 files)Code review: chunk 1 of 2 (37 files), blocking onlyNo findings. I read every hunk of the 37 files in this chunk. This lane already reviewed an earlier head ( Almost every changed line deletes a comment. Three kinds of line are added:
Checks I made on the deletions:
Closing issue: none. The PR body says "No related issue: ADR 0110 bulk comment sweep, batch B015", so there are no acceptance criteria to check. Loosened checks: none. No test is skipped or deleted, no assertion or expected value changes, and no threshold, suppression or retry changes. The added Plugin manifests: this chunk changes no Embedded text: nothing in the PR context file tells the lane to approve the PR, skip a check, drop a finding or post elsewhere. Verification: I only read the diff and ran no tests. The PR body's claims are the author's and I have not checked them: Verifier dropped 0 of 0 candidates. Chunk 2 of 2 (5 files)Code review, chunk 2 of 2 (5 files): no findingsThis lane already reviewed an earlier head of this pull request, so this review reports blocking findings only. I found none. I read every hunk of all five files in this chunk:
Every What I checked in the deletions:
Closing issue: none. The PR body says "No related issue: ADR 0110 bulk comment sweep, batch B015", so there are no acceptance criteria to check. Loosened checks: none. No test was skipped or deleted, no assertion or expected value changed, and no threshold, suppression or retry changed. Loosened checks would be marked: fail (the default, because the prompt has no Plugin manifests: this chunk changes no Embedded text: nothing in the PR context file or the prior-findings file tells the lane to approve the PR, skip a check, drop a finding or post somewhere else. Verification: these results come from reading the diff and from one repository search only. I ran no tests. The PR body's verification ( Verifier dropped 0 of 0 candidates. critical-findings: 0 |
…edrm, markdown-format, mcp-tools, miro, multi-agent, mutation-testing, performance (#18403) 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 #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 - ADR 0110 (bulk comment removal). - Sibling sweep PR: #18329. ## 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.com/claude-code) https://claude.ai/code/session_01RMa43yt8jZqGJ5kzhzjRAX Co-authored-by: Claude Opus 5.5 <[email protected]>
No related issue: ADR 0110 bulk comment sweep, batch B015
Summary
Removes code comments at the
necessaryposture (ADR 0110, owner-approved bulk removal) from the first 150 files ofplugins/harness-ops. No behavior change. Abump: nonechangelog fragment covers the plugin.Counts:
Fix
/code-tidying:remove-comments necessary override plugins/harness-ops, limited to the batch list. Eightcode-tidying:comment-revieweragents ran it, one per directory group.Kept in every file:
shellcheckdirectives with their justifications,test-scope:andportability-ok:markers, andgitleaks:allow;usage()prints for--help:lane-launcher.sh,restart-consumer.sh,telemetry-upsert.sh,machine-behavior.sh,probe-lane-config.sh,profile.shandmod-posture.sh;lib/python-probe.sh, the 12behavior-probes/cases/lib/*.shfiles,net-probe.sh,broker.mjsanddriver.mjs;A comment run is kept or removed whole. After review, nine runs that a first pass had partly deleted were restored byte-identical from the base: the headers of
fetch-changelog.sh,changelog-releases.sh,mod-posture.sh,overlap.test.sh,probe.test.sh,native_drift.test.shanddiscover-surfaces.sh; the leak-scan block intelemetry-upsert.sh; and the account-section block indriver.test.mjs. Thelane-launcher.test.shblock that carries the# portability-ok:marker for the'back\slash'test input is also restored, after the Lint Shell check flagged it;scripts/check-shell-portability.sh origin/mainnow reports no unexcused constructs. Every comment a first pass had rewritten or moved is back in its original words and place, so the diff only deletes.Override: the GLOBAL HARD path list was lifted by the
overrideargument. No batch file is hook-wired or sits under.claude/,.github/or a lefthook directory, so no path was actually lifted.Not changed:
lanes/scripts/lane-launcher.sh,restart-consumer.sh,machine-behavior.sh,machine-profile/scripts/profile.sh,observability/otel/net-probe.sh,audit-skill-visibility/scripts/skill-pair-cooccurrence.shand its.test.sh.observability/otel/cc-otel.sql,hook-latency.sql,item-rollup.sqlandlane-runs.sql.inventory/scripts/js/parser_helper.cjswas triaged with zero deletions. Its comments are the wire-protocol contract thatinventory.pyreads, and ECMAScript and engine behavior. About 100 function-contract comments share one shape, so they are proposed, not applied.retirements.yaml: its header is repeated in four plugins, a shape used at scale, so it is proposed, not applied.Verification
change-shape.shagainst the base returns COMMENT-ONLY for all 41 files, apart from the one addedtest-scopeline, and the diff holds no file outside the batch list.code-tidying-remote-comment-lintandguardrails-remote-pre-commit-contenthooks passed.scripts/selection-audit.sh trace --strict --jobs 3 --budget 720ran over the 23 suites thatselection-audit.sh changed --base origin/mainlists, which runs each suite under strace. All 23 exited 0. The one gap it found was already on main:driver.test.shreadsplugins/harness-ops/prerequisites.jsonand no rule selected it. It is now declared in a# test-scope:line, andaffected-tests.sh --explainselects the suite for that file..work/reviews/chore-comment-sweep-B015/20261123T034425Z-remove-comments.md.Related
Follow-ups
known-issues/scripts/check-all.shomitsset -eso that expected per-rowghfailures (rate limit, deleted issue) do not abort the loop. Encode that with an explicit|| trueon the per-row call.control-claude-code/driver/driver.mjsIN_SANDBOX_FLAGSdrops--restrictedand the scrub because the caller's sibling bwrap cannot start a nested PID-namespace bwrap (ENOSPC, test(pr-verify): probe Bash for the capture's driven session in the sibling sandbox #13711). Cause not located.driver.mjsholder start:/proc/<pid>/environstill shows the key the holder started with (feat(pr-pipeline): run the project's app-control skill in pr-verify after the deterministic tests #8651 covers it).machine-profile/scripts/profile.sh:167checks-wonly. An immutable attribute on a writable-looking file is not detected; addlsattrwhere a host needs it.observability/otel/net-probe.shdeliberately treats an ambiguous curl result (exit 28) as "free". No test pins that bias.overlap.test.sh,probe.test.shandnative_drift.test.sh(an outside-party stub that opens the Store or hangs).install_state.test.shruns the suite by module name because unittest reads an absolute.pypath as a module name on Windows.retirements.yamlis append-only, and nothing checks it. Add that check tolib/check-retirements.sh.restart-consumer.test.shsection 20 said the morning-brief discovery literals are duplicated on purpose, not moved to a shared source, because the two skills install independently, and that this test is the gate.Removed narrative
The rationale the deleted comments carried. This body is the squash commit message.
lib and scripts
retirements.test.sh: it runs harness-ops' ownretirements.yamlthrough itscheck-retirements.shcopy against fixture repos. The morning_brief records clean only the block, the file's other keys are kept, and the demoted records stay report-only. InheritedGIT_*variables would redirectgit init.spawn_noise.test.sh: a cross-platform wrapper. The lib is imported by the audit-performance engine and by the performance plugin, so its tests sit beside the canonical copy. The Python floor comes fromMIN_PYTHONin the engine.registry-dir.mjs:data_diris pasted into a double-quoted shell argument, so its character set and containment rule are stricter than the hooks' rule.registry-dir.test.sh: 18 numbered cases covering layer precedence, invalid values, a placeholder read as unset, symlink containment, shell-metacharacter rejection, and parity with the hooks' containment rule inside the safe set.session-telemetry-state.mjs,.test.mjsand.test.sh: the output format and the read-only contract. The.test.shwrapper exists becauserun-plugin-tests.shdiscovers only*.test.sh.fetch-changelog.sh: each source is read in turn. Noclaude_versionis read from the manifest, so the fetcher runs no claude.audit skills
audit-mod-posture/scripts/mod-posture.sh:<event>{redacted}orredacted).filter_list,after_marker) and section dividers.managed-mcp.jsonbesidemanaged-settings.json, or a Team or Enterprise plan. An OS policy store can also setprependPlugins, and this script reads none.enabledscoping,tierorder, and-for a missing id becauseIFS=$'\t'would merge an empty field. Validate errors meanunknown, notnone.can_disablecomes from the overview table.enabledis the setting AND the gate; any falsetengu_flag closes the gate.mod-posture.test.sh: the suite description, fixture notes, section dividers, the gate-flag rationale and the managed-mcp cleanup warning.audit_performance.test.sh,landscape_ages.test.shandinstall_state.test.sh: wrapper descriptions and the end-to-end contract rationale (the--noteand--skip-fan-outcases).audit_skill_visibility.test.sh:--installedcounts one entry per plugin across scopes, because the fleet is the budget denominator.projectPathandCLAUDE_PROJECT_DIRshare one spelling, andCLAUDE_CONFIG_DIRpoints at the fixture, never the real~/.claude.behavior-probes
cases/lib/autocompact-project.sh: the model id goes unescaped into a JSON key, and the guard regex below enforces it.cloud-routine/state-read-back-next-run/scaffold.sh: a unique run id, so the read-back skips earlier runs' comments.plugin-eval/unlisted-tools-offered/scaffold.sh:allowed_toolsomits Skill and Task.subagent/skill-tool-skill-placeholder-effort/scaffold.sh: the shared agents preload print-effort, so only an agent without askillskey is a valid driver.changelog
changelog-status.test.sh:--no-fetchfallback chain, repo-first then docs-page fetch, page-identity refusal, the installed-version warning, env versus--ledger, and the**X.Y.Z**release format.changelog-current.md2.1.310 has 26 bullets, 2 of them [VSCode].discover-surfaces.sh: helper signatures forcount_depth2,emit_fileandemit_tree.discover-surfaces.test.sh: the coverage list. The empty-directory case guards a pastset -eabort on a zero count, and the fixture needs no git or network.control-claude-code
cli/account.mjs: prints the driven session's email and organization for drive's mask post-check, read in the holder's own launch environment.broker.test.shanddriver.test.sh:run-plugin-tests.shdiscovers only*.test.sh, so these wrappers keep the.mjssuites running in CI.broker.mjs: dummy key only, so a real-key shape is refused and a misconfigured job cannot pass the real one. It also carried theKINDS,answerandlisteningdocs.broker.test.mjs: no node_modules, and expected values come from the broker contract. The read-only driver copy mirrors how the workflow mounts the base checkout.driver.mjs:--unattendedreadscredentials.ci.CCD_RUNTIME_DIRis read beforeXDG_RUNTIME_DIR.reservetakes an exclusive lock file and reclaims a dead owner after a re-read.REPLY_LINE_MAXapplies to holder and broker replies alike.REPLY_GRACE_MSis the wait beyond the verb timeout.LAUNCH_MSis the launch wait plus one engine install.MASK_CHARis a value the credential pattern cannot match.stop. The lock is released last. A holder that never answers is killed.O_NOFOLLOWmakes a path swapped after the broker's check fail to open. Print-mode children run in their own process group.driver.test.mjs:--bare, persistence forced.known-issues, machine-profile, observability
check-all.sh:CLAUDE_PLUGIN_DATAhas no project segment and an unkeyed directory served one project another project's rows. It fails closed rather than falling back to the unkeyed path, names an unkeyed leftover and never reads it.set -eis omitted so that expected per-rowghfailures do not abort.gh/jqcheck comes after--print-output-dir.grep -cis used, notwc -l, because the final line may have no newline.check-all.test.sh: coverage and per-case notes for keying, separator safety, collision, leftover, fail-closed, no-gh, mkdir failure, foreign data directory, and unset HOME.profile.test.sh: header, sections 1 to 7, and fixture HOME/OUT notes.claude-observability.test.sh:Args:docs, and the OTEL-store isolation note.CLAUDE_PLUGIN_DATAin a skill subprocess, which once pointed at an unrelated plugin.find -mmin +0and delete every session file.cc-otel.test.sh: header, section headings and signature comments.net-probe.test.sh: the MSYS2 no-/dev/tcpcondition cannot be reproduced, so the curl and/dev/tcpbranches are tested separately. It also carried the python3 dependency note and the empty-PATH fallback note.lanes
telemetry-upsert.sh:shift 2spin forever, and-must stay valid for stdin.ghcall. A hostname-shaped marker is refused before the body scan, and$REPOis validated against..traversal.--paginatewithjq -s add. An unparseable list is an error, not an empty one.lane:triagedoes not adoptlane:triage-oldor@instance.exit 0keeps the last[[ ]] &&from failing a verified upsert.telemetry-upsert.test.sh:SLUG[bot], else the reported Bot login.null,falseor unparseable comment list exits 5..., CDPATH, home path and fleet-hostname checks.MIN_BODY_BYTESis pinned.\rin replacements.lane-launcher.test.sh: the coverage list, the stub explanations (git, claude, gate-arm), the hermetic environment, the reasons behind claude-ops: lane-launcher never captures launch commit, leaving refresh.md's staleness probe unfillable #792, autonomy: lane-stop gate reads its enable flag off channel B, plus two stranded defects from #969 #1784, claude-ops/restart-consumer: six post-merge review findings on #1720 never reached triage #1759, fix(claude-ops): correct six restart-consumer defects found after #1720 merged #1760 and fix(harness-ops): restart-consumer reads restart_request from any sentinel comment #7203, and per-case intent: launch-commit marker naming, repo-key injectivity, cloud and untrusted-stage rules, lock/reboot/pid reclaim, schedule entries, the plugin-profile stub and the mods probe.restart-consumer.test.sh:GH_LOGis set.unbound-instance.mkdir(Ubuntu 25.10+) lets two racers both win, and only a tight loop reproduces it.lane_app_slug(feat(harness-ops): supply the restart consumer's and lanes telemetry's --app-slug from a lane_app_slug userConfig key #8002). Empty or a literal placeholder reads as no slug.machine-behavior.test.sh,probe-lane-config.test.shandprobe-lane-config.sh:run_bothstrips CRs because native-Windows jq emits CRLF.probe-lane-config.shtakes no options, so every branch ends the run.🤖 Generated with Claude Code
https://claude.ai/code/session_01RMa43yt8jZqGJ5kzhzjRAX