Repository navigation
chore(comments): remove comments at the necessary posture in architecture, attribution, autonomy, bash-format, bugs - #18296
Conversation
…ture, attribution, autonomy, bash-format, bugs ADR 0110 bulk comment sweep, batch B010. Every changed file is COMMENT-ONLY per change-shape.sh; the removed-comment narrative is in the pull request body, which becomes the squash commit message. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RMa43yt8jZqGJ5kzhzjRAX
… B010 Owner decision: the hook-wired scripts are in scope, triaged with the override token. lane-stop-gate.sh and bash-format.sh are COMMENT-ONLY per change-shape.sh; lefthook-remote.yml holds no comments. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RMa43yt8jZqGJ5kzhzjRAX
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. |
|
claude-security-review reviewed Security review (incremental, b39f4f9 → dced8b8)No security issues found. I read every hunk of both files in scope:
Both are test-scope metadata comments in test scripts. They declare which files each test reads, and no executable statement changes. Neither file matches a This lane already reviewed an earlier head ( critical-findings: 0 |
|
claude-review reviewed No findings in the incremental review of I read every hunk of both files in scope. Each one adds a single
Neither change alters a shebang, the This push touches no closing-issue criteria; the PR closes no issue (it cites ADR 0110). The PR context file and the prior-findings file held no embedded instructions to the lane. I checked this by reading the diff and the files it names. I ran nothing. Loosened checks would be marked: fail (the prompt gave no verdict or patterns, so I used Verifier dropped 0 of 0 candidates. |
The test-selection trace (scripts/affected-tests.sh R8) found that lens-roster.test.sh reads the improve skill's SKILL.md and actions/*.md, and check-security-binding.escalation-stop.test.sh reads the ci-pool-a-l2 probe transcript, without either suite being selected by a change to those files. A test-scope line in each suite declares them. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RMa43yt8jZqGJ5kzhzjRAX
…B013 Deletes the prose lines left behind when sweep batches B010 (#18296) and B013 (#18291) removed only part of a comment run, in check-emission-conformance.mjs and Invoke-Dlss5Mod.ps1. Exit lines and directives stay. The jq stdin note in lane-stop-gate-lib.sh stays: it records an outside constraint, a native Windows jq cannot open an MSYS-style path. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RMa43yt8jZqGJ5kzhzjRAX
No related issue: ADR 0110 bulk comment sweep, batch B010
Summary
This PR runs
/code-tidying:remove-commentsat thenecessaryposture over batch B010, which covers the scripts of the architecture, attribution, autonomy, bash-format and bugs plugins. ADR 0110 approved removing existing comments in bulk without asking about each one. No behavior changes.Fix
change-shape.shas COMMENT-ONLY againstHEAD.# Nline-number comment;lane-stop-gate-lib.sh;check-signal-envelope.mjstraceparent note, cut to a link to the W3C spec section.shellcheckdirective with its justification;test-scope:,portability-ok:andsilent-skip-ok:markers;--help(sed -n '2,${/^#/!q;p;}' "${BASH_SOURCE[0]}", or the awk form inlane-stop-gate-arm.sh).overridetoken (an owner decision): these files are on the GLOBAL HARD path list as hook-wired scripts or hook-manager config. Each was triaged under the same floor and COMMENT-ONLY gate.plugins/autonomy/hooks/lane-stop-gate.sh: 363 lines deleted.plugins/bash-format/hooks/bash-format.sh: 22 lines deleted.plugins/bash-format/git-hooks/lefthook-remote.yml: no comments, so unchanged.lane-notify.sh,sweep-ledger.shand the twomap-dependencies/dependency-graphscripts.bump: nonechangelog fragment.Removed-comment narrative
The removed comments recorded the following rationale. This body becomes the squash commit message, so the rationale stays in history.
architecture
lib/dotnet-references.sh: map-landscape's portfolio collector and map-dependencies share one reader. Two parsers would drift, and a portfolio row and a graph edge would stop describing the same file.lib/{go,jvm,node,python,rust}-references.sh: the map-dependencies manifest readers. Their headers held the tab-separated record formats and listed the shapes each reader reports asunread.pnpm.overrides.dependenciesis not read as a section.lib/json-escape.sh: backslash is escaped before the quote, because Windows paths are full of backslashes. The function uses parameter expansion and assignsJSON_ESCrather than printing, because a fork per field measured about 1s per field on Windows.lib/github-remote.sh: the host rules.www..api.github.com,file://and relative paths all fail.lib/record-layout.sh: line-based readers needrepositoriesandedgeseither empty on the key's line or opened alone, with one object per line.lib/family-records.sh: evidence collectors skip family records, because a record's URLs are output, not configuration.lib/likec4-golden.sh:UPDATE_GOLDEN=1rewrites the goldens.LIKEC4_VALIDATE=1runs the LikeC4 CLI, which needs network and npx.LIKEC4_VERSIONtogether with the map-* skill bodies that name it.scripts/build-view.mjs:node build-view.mjs <kind> --record <record.json> [--from <node-id>].--fromkeeps only the scalars, nodes and edges reachable from that node. Package and unresolved edges are not reachability.co-change.mjs:git log --no-merges --name-onlyonce, is read-only, and gives byte-identical output for the same history and settings.layoutobject, resolved throughconfig-cascade.mjs.map-landscape/portfolio-facts.sh:findwalk replaces thirteen separate calls, which were minutes slower on filesystems with per-open overhead.map-landscape/reference-edges.sh:owner/repotokens, and placeholder owners are skipped.nocasematch.map-landscape/landscape-record.sh:--check, andremoteis downgraded to a note.printf | grep -q, because an earlygrep -qexit gives EPIPE under pipefail.map-landscape/render-landscape.sh:map-data/collect-data.sh: the tier-winner rules (an unreadable tier refuses the record only if it wins), the mismatch rows and the migration-replay statement list.map-deployment/collect-deployment.sh: the Compose layer-merge rules, the CloudFormation, Pulumi, Helm and Bicep/ARM notes, and the ECS<name>@<service>placement rule.map-containers/collect-containers.sh: the last-FROM rule, shared-infrastructure pairs and uses-edge resolution.resultkey exits 1.attribution
check-stamps.sh:datecannot diverge.may_form()separates the month May from the modal "may". A capitalized modal at the start of a sentence reads as a month.extract-breadcrumbs.sh.extract-breadcrumbs.sh: output is grouped per directory and--diris non-recursive, because a neighbor's citation can name an unfenced copy's source. A fence is an HTML comment carrying a URL, closed by<!-- /provenance -->.emit-findings.sh: only fingerprint-confirmed outcomes reach a findings file. Fields are joined on tabs rather than@tsv, because@tsvescapes backslashes.fingerprint.mjs: quotations and fences are stripped before shingling. Verdicts are matched spans with line offsets, because whole-file containment dilutes a real 27-word match.score-golden.test.sh: a golden case the run never scored is DECLINED and excluded from the tally.list-corpus.sh: the repo-relative path comes from git, because Git for Windows spells one directory several ways. A leading**/also matches the repo root.retirements.yaml: the records are append-only and are demoted withstatus: report-only. The contract is indocs/contracts/retired-conventions/README.md.autonomy
lane-stop-gate-arm.sh: re-arming clears the claim sidecar before it writes the new record.dirname, to avoid a fork.lane-stop-gate-lib.sh: the trusted-config design.uname -s.CLAUDE_CONFIG_DIRorHOME.printf -vavoids forks.CLAUDE_PLUGIN_ROOTwith backslashes. Only the drive shape is folded to/, because on POSIX a\is a filename byte.EPOCHSECONDSis trusted only on Bash 5.0 and later. Before 5.0 it is an ordinary variable an env block could set to choose the TTL verdict, so older bash usesdate +%s.lane-stop-gate.sh: the gate.noclobber), and the claim fails toward honoring the arm. The record is not consumed on a stop. Its 31-day TTL sits just past the /loop 30-day expiry.lane-stop-gate.test.sh: the regression rationale for autonomy: lane-stop gate reads its enable flag off channel B, plus two stranded defects from #969 #1784, autonomy: lane-stop-gate.sh buffers stdin before testing whether the gate is armed, so an unarmed session pays the full Stop-hook cost for a guaranteed no-op #2852, perf(autonomy): Stop hook: lane-stop gate averages 27.6s and timed out 73x - reduce process spawns #3515 and autonomy: lane-stop-gate.sh sources ~5,500 library lines before its opt-in check on every Stop #4415.canonical-url.mjs: a canonical URL must round-trip the WHATWG parser. The literal?and#tests are needed, because a bare trailing?or#parses to empty parts.check-signal-envelope.mjs:--security-bindingfails closed.check-security-binding.mjs: the design rationale.resolve-prerequisites.mjs: the tracker binding is thetrackermapping of the work-items convention home. The resolver never persists a verdict and does not read the clock.check-emission-conformance.mjs: contract-authored emissions declare the pinned schema URL, and at least one emission in a set must.bash-format
git-hooks/shfmt-rewrite.sh:.editorconfigshell section governs. A bare[*]does not opt a file in.${m[a-b]}into a different key (Associative array key with hyphen breaks in v3.6.0 mvdan/sh#956). It compares subscript source text before and after, and fails closed.--apply-ignoresupport is decided by probing the flag, never inferred from a failed run.git-hooks/adapters.sh:bf_lint_oncelints each distinct pair of bytes and nearest.shellcheckrconce, then fans the findings out to every copy. A group that spans directories stays whole only when a probe finds it sources nothing.hooks/bash-format.sh:sh./mnt/cPATH entry over 9P.hooks/bash-format.test.sh: the PostToolBatch row takes no matcher, sosh"is its only filter. A failed format run with a shfmt that knows--apply-ignoreis never re-run without the flag, because that would discard the repo'signore = true.bugs
scripts/concat-gotchas.sh:$HOME, an ancestor of it, or outside a git tree has no team or personal layer.Verification
change-shape.shas COMMENT-ONLY againstHEAD.--helpare byte-identical before and after, for all 11 such files.# test-scope:line inextract-breadcrumbs.test.sh, and it was restored.*.test.shand*.test.mjssuite in the batch passes: 60 of 60, run from the worktree. Node suites ran withnode --test --test-concurrency=4. After the override edits,lane-stop-gate.test.sh(134 passed),bash-format.test.sh(52 passed) andlefthook-remote.test.sh(42 passed) were rerun.scripts/check-affected.sh --base origin/mainran on the first commit: 23 passed and 1 skipped.Related
necessaryposture).🤖 Generated with Claude Code
https://claude.ai/code/session_01RMa43yt8jZqGJ5kzhzjRAX