Skip to content

chore(comments): remove comments at the necessary posture in performance, review, planning and more - #19013

Merged
kyle-sexton merged 4 commits into
mainfrom
chore/comment-sweep-F042
Nov 25, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
chore/comment-sweep-F042

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #18772

Summary

Batches F042 and F039. F042 removes comments at the necessary posture from 15 files under plugins/performance, plugins/review, plugins/session-flow and scripts (ADR 0110). Comments and docstrings only: no code token, string or heredoc changed. A small batch: the Opus keep review restored most of what Antigravity deleted, so the final diff is 258 deleted lines.

F039 removes comments at the necessary posture (ADR 0110) from 9 files in the planning, python-format, rate-limits and repo-fleet-hygiene plugins: 102 lines deleted, 3 lines edited to strip a trailing comment, no code token changed. Every touched file reads COMMENT-ONLY or DOCSTRING-ONLY from change-shape.sh; bash files it cannot parse are proved by identical shfmt -ln bash -mn output for base and new. One bump: none fragment per plugin. The batch started as 48 files across the F039, F040 and F041 lists (23 selection-trace suites); the one Opus keep review restored most outside-tool, usage, exit-status and trust-boundary runs.

Fix

Antigravity made the deletions in two write jobs (543 lines over 26 files). Every touched file passes change-shape (COMMENT-ONLY, DOCSTRING-ONLY), or an equivalent proof: identical shfmt -ln bash -mn output against base for the shell files change-shape cannot parse, and an AST comparison with docstrings removed (equal to base, module docstrings unchanged) for the three Python files change-shape flags because a CLI reads __doc__. One Opus keep review then restored deleted runs one by one (outside-tool and platform behavior, trust-boundary reasons, parsed line formats, exit statuses, markers other files cite, numbered dividers kept all-or-nothing) and two usage headers a floor check named. Diff: 15 files changed, 258 deletions(-). One bump: none changelog fragment each for performance, review and session-flow.

F039 used the same route: the Antigravity write route, then deterministic gates (change-shape, floor markers, whitespace scan, partial-run scan, blank-line check) and one read-only keep review.

Verification

  • F039: change-shape.sh per touched file; shfmt equality for the bash files it cannot parse; scripts/selection-audit.sh trace --strict over the suites changed prints, results read per suite; scripts/check-cross-plugin-source-drift.sh --check and typos over the changed files.
  • change-shape, floor-marker, whitespace, shfmt and AST proofs over every touched file: clean.
  • scripts/check-cross-plugin-source-drift.sh --check, scripts/check-shell-portability.sh origin/main and typos: clean.
  • Selection trace over the suites scripts/selection-audit.sh changed prints: 7 suites traced (ab, discriminate, council-plan, prior-findings, turn-budget, test_parse_transcript, post-merge-demotion-alert): 0 exited non-zero, no gap.

Reasons moved from deleted comments

  • scripts/post-merge-demotion-alert.test.sh:1127: file-revert still files on a failed re-read because a duplicate record beats a missed demotion

  • scripts/post-merge-demotion-alert.test.sh:1549: the lanes App keys its demotion record on the merge commit rather than the run head, so a record of either filer naming the run is matched as that run's record

  • scripts/post-merge-demotion-alert.test.sh:2721: a canary push range cut to the newest 20 commits or guessed when the previous canary run head is unreadable gets no lift block so the record stays human-close rather than lifting on an understated deletion

  • scripts/post-merge-demotion-alert.test.sh:2976: close-cleared walks seven-day green-run windows oldest first (GREEN_SPAN) and stops at the first clearing run so a full page of later green runs never hides an earlier clearing one

  • plugins/review/lib/prior-findings.mjs:251: a nested YAML line starts with a non-blank character after its indent so the alternation with blank lines is disjoint and avoids backtracking

  • plugins/review/skills/council/scripts/council-plan.test.sh:2: shell wrapper exists because run-plugin-tests.sh discovers only *.test.sh

  • plugins/session-flow/scripts/harness/hop_chain.py:468: size_filler sizes generated hop-1 filler to hit the shape-1 corpus median (154 lines, 3,200 chars/4 tokens), splitting the line budget evenly across padded sections and clamping line width to 40-200 characters so filler stays readable prose.

  • plugins/session-flow/scripts/harness/hop_chain.py:1079: _keep_failed_transcript copies a failing hop's transcript out before ~/.claude/projects cleanup so transcript-evidence failures remain inspectable after cleanup.

  • plugins/session-flow/scripts/harness/hop_chain.py:1096: _skipped_rows records hops after a hop that produced no rails text as not_run failures rather than dropping them from the report.

  • plugins/session-flow/scripts/harness/hop_chain.py:1865: check_main_level_orchestration drives main() with only the claude subprocess swapped out (2 runs, 3 hops) because per-case dry runs call execute_chain directly and would otherwise miss argument parsing, projects-root resolution, work-dir creation, exit code, and report() before a live paid run.

  • plugins/session-flow/scripts/harness/hop_chain.py:2031: main() takes runner_factory so --dry-run exercises the exact live orchestration path with only the claude subprocess replaced.

  • plugins/session-flow/scripts/tests/test_parse_transcript.py:458: chain_coverage uses the chain as its denominator rather than the project directory count (kept visible as project_transcripts), because under a $HOME cwd the project slug holds every session on the machine (a complete 6-hop chain once scored 0.032 against it).

  • plugins/session-flow/skills/audit-sessions/scripts/sweep.py:147: _churn excludes sessions linking more than one PR because edits cannot be split across PRs, and rejoins stored relative paths onto each session's cwd before aggregating.

  • plugins/performance/scripts/discriminate.test.sh:57: FIX_LINE uses single quotes inside the Python expression so it embeds verbatim into JSON config heredocs without double-quote escaping.

  • plugins/performance/scripts/findings.py:768: shown_reads disambiguates colliding formatted labels with #2, #3, etc. instead of summing counts across distinct read keys.

  • plugins/performance/scripts/spawn-census.sh:34: DEFAULT_TOOLS includes python3 alongside ordinary external utilities so the one unavoidable interpreter spawn is counted and any extra probe spawn appears as a second entry.

  • plugins/performance/scripts/spawn-census.sh:145: REAL_PATH strips any prior HARNESS_SHIM_DIR entry so nested invocations do not shim their own shims and double every spawn count.

  • plugins/performance/scripts/ab.sh:149: the simulated comma-clock branch does not assert the real observation, because the real EPOCHREALTIME is fine; a forced failure that claims a locale defect the host lacks sends the next reader chasing a working locale

  • plugins/performance/scripts/ab.test.sh:209: the default order source is /dev/urandom, so the test checks only the shape of arm_order

  • plugins/performance/scripts/findings.py:785: a call whose result differs from an earlier read's saw changed input, so it repeats nothing; if any result for a key is missing, all of that key's calls go to the unverified map, because a change cannot be ruled out

  • plugins/performance/scripts/findings.py:890: merged adds up repeats that show alike (unlike shown_reads, which keeps distinct labels)

  • plugins/performance/scripts/findings.py:905: wait time is the union of [start, end] spans, because parallel calls wait on one wall clock

  • plugins/performance/scripts/findings.py:915: a span ending as another starts does not overlap it; a zero-length span is still one open run, so any span makes the peak at least 1

  • plugins/review/tests/prior-findings.test.mjs:206: publish.cjs posts a review whenever there is an inline finding, so a partial first read leaves a lane thread and a review on v1 beside its read 3 of 18 summary; the summary decides for v1

  • plugins/session-flow/scripts/harness/hop_chain.py:365: shapes 3 and 4 give their open questions and decisions ids: hop 1 writes them, and later hops carry them off disk unchanged and add none through the -new slots

  • plugins/session-flow/scripts/harness/hop_chain.py:1067: each hop's handoff file is copied out of the fixture before cleanup because --budget --live-hop1 reads the hop-1 copy from there

  • plugins/session-flow/scripts/tests/test_parse_transcript.py:309: the non-string-timestamp test guards a Python 2 except-syntax regression

  • scripts/post-merge-demotion-alert.test.sh:76: only the file-demotion-issue job is extracted; report-red-main has its own tests in workflow.test.mjs

  • scripts/post-merge-demotion-alert.test.sh:1073: the push's merges and reverted PRs go to the label-paths job (merge-path.mjs); a revert of a PR the owner login enqueued files nothing here

  • scripts/post-merge-demotion-alert.test.sh:1102: the file-demotion-issue job files no revert record itself; it hands the record to file-revert

  • scripts/post-merge-demotion-alert.test.sh:1113: the filer re-reads the records, so a revert record filed since the alert read them, by either filer, prevents a second one

  • scripts/post-merge-demotion-alert.test.sh:1137: a malformed hand-off files nothing and fails the job

  • scripts/post-merge-demotion-alert.test.sh:1220: one revert commit gets one record: a record of either filer that lists it, in any state, keeps a later run from filing it again

  • scripts/post-merge-demotion-alert.test.sh:1277: when neither the checkout nor the API read answers, the revert is unproven and demotes (fail closed)

  • scripts/post-merge-demotion-alert.test.sh:1289: only a revert record's commit list counts; another record quoting the commit does not

  • scripts/post-merge-demotion-alert.test.sh:1294: a revert record that cannot be written still lets the canary record file

  • scripts/post-merge-demotion-alert.test.sh:1563: only a demotion record stands in by its failing run; any other issue a filer opened that names the run holds nothing

  • scripts/post-merge-demotion-alert.test.sh:1567: a failed read of the identity's records still files this workflow's own record

  • scripts/post-merge-demotion-alert.test.sh:1658: a check also red on the baseline is still judged for an expired quarantine

  • scripts/post-merge-demotion-alert.test.sh:1678: in a mixed run the newly red check is excused, a baseline-red one demotes on an expired quarantine, and the record and fix issue name only the one that demoted

  • scripts/post-merge-demotion-alert.test.sh:1787: a repeat goes straight back to agents: the reopened issue keeps agent-ready and is not sent to intake triage again

  • scripts/post-merge-demotion-alert.test.sh:1832: a fix issue filed before the job rename is matched by the check's job id

  • scripts/post-merge-demotion-alert.test.sh:2096: a record's marker sends only an open alert fix or quarantine issue, and stays until the listing shows one

  • scripts/post-merge-demotion-alert.test.sh:2124: a fix issue that could not be filed is filed by the retry, unless one already exists

  • scripts/post-merge-demotion-alert.test.sh:2176: an issue its own marker re-sent is not sent again for a check marker naming it

  • scripts/post-merge-demotion-alert.test.sh:2187: a retry that files an issue it can neither send nor mark loses nothing: the check marker stays and the next run delivers the issue

  • scripts/post-merge-demotion-alert.test.sh:2205: one replacement marker written is enough to clear the check marker

  • scripts/post-merge-demotion-alert.test.sh:2213: in the filing step a failing marker ends nothing early

  • scripts/post-merge-demotion-alert.test.sh:2232: one marker written leaves the work retried, and the note keeps saying so

  • scripts/post-merge-demotion-alert.test.sh:2263: a fix issue that could not be reopened is reopened by the retry, which sends nothing

  • scripts/post-merge-demotion-alert.test.sh:2350: while the re-run is pending, a newer passing full run on main means main recovered: the wait ends early and nothing is filed or reported

  • scripts/post-merge-demotion-alert.test.sh:2744: a canary record that babysit_postmerge.py filed first gets the lift block as a comment, once

  • scripts/post-merge-demotion-alert.test.sh:2795: the close step reads now from date, so the test pins it to keep the walked windows fixed

  • scripts/post-merge-demotion-alert.test.sh:2858: a run the merge gate would not count clears nothing

  • scripts/post-merge-demotion-alert.test.sh:2899: the oldest run that clears the record is the one named; a later one is never compared

  • scripts/post-merge-demotion-alert.test.sh:2921: a failed or incomplete read closes nothing, for each kind of record the job closes

  • scripts/post-merge-demotion-alert.test.sh:3007: the window size and count come from babysit_merge_policy.py on main; when they do not read, nothing is listed or closed

  • scripts/post-merge-demotion-alert.test.sh:3019: more windows than GREEN_SPANS before now leave the record open, as listed raises

  • scripts/post-merge-demotion-alert.test.sh:3038: with main's babysit_lift.py checked out, the step first closes the lifted canary, revert and read-back records with the identity it read; an unreadable identity is passed empty, and a failing close still lets the red-main records close

  • plugins/python-format/hooks/python-format.test.sh:31: the .venv walk in adapters.sh is not composed from prerequisites.json, so this test binds ruff's local_bin (.venv/bin/ruff) verbatim between them.

  • plugins/rate-limits/hooks/register.tsx:62: in operator mode, the notice row and a shown suggestion are the person's channel, so changes that reached either are never toasted.

  • plugins/rate-limits/hooks/register.tsx:283: optionsLine follows any approach or edge line once per carrier because facts alone led Claude to stop launching agents and move work to a smaller model, so options are stated explicitly without lowering quality.

  • plugins/rate-limits/hooks/register.tsx:323: on a signed-in account change, all latched state is dropped and the current reading is kept out of levels until a different reading arrives because it belongs to the old account.

  • plugins/rate-limits/hooks/register.tsx:354: an unreadable identity keeps the recorded account standing and missing fields are merged from the prior read so a UUID that drops out and returns is still compared.

  • plugins/rate-limits/hooks/register.tsx:369: no window reported is treated as no reading rather than a reset so levels wait for the next reading.

  • plugins/rate-limits/hooks/register.tsx:401: flushToasts runs after a carrier's lines are built and never throws so a failing toast cannot drop a line; operator mode holds toasts until a shown suggestion or the person's next prompt drops them.

  • plugins/rate-limits/hooks/register.tsx:604: in operator mode, offer suggests the line when the prompt box is empty and otherwise shows the notice row and re-offers; a first unshown offer leaves changes to be toasted with the automatic line, while a re-offer skips toasting if the row was seen.

  • plugins/rate-limits/hooks/register.tsx:734: an untaken suggestion goes to Claude at the next non-person turn, while a person's turn drops it.

  • plugins/repo-fleet-hygiene/skills/audit/scripts/audit-fleet.sh:967: classify_worktrees and classify_branches read only the collector's parallel arrays with no Git or gh probes of their own so every finding kind is reachable from array-only unit tests.

  • plugins/repo-fleet-hygiene/skills/audit/scripts/audit-fleet.test.sh:1919: no-origin-canon is the only fixture with two findings on one target, so whole-line matching Target: $TMP/no-origin-canon is the sole exercise of target dedupe (whole-line avoids matching the " (N linked)" rollup line).

  • plugins/repo-fleet-hygiene/skills/audit/scripts/audit-fleet.test.sh:2027: tier-table parity asserts bidirectional set equality against --print-finding-registry rather than scraping source so neither side can drift silently.

  • plugins/planning/surface/interview_server.py:111: Settings precedence is plugin default, team file, personal file, user file, then data dir settings.json; no userConfig option carries these keys, so that layer is empty.

  • plugins/planning/surface/surface-checks.sh:61: AC35 exempts exporters.py's ARBITER_PLAN/ARBITER_DESIGN line (Brief arbiter token) and index.html/tests/ui_c.js's planning:plan changed your answer banner because both name /planning:plan as decision actor rather than visual producer; { and ; are excluded so CSS declarations like {animation:pulse ...} are not matched as skill tokens.

  • plugins/planning/surface/surface-checks.sh:192: file visuals: vi's PNG is the 1x1 image vp carries inline, vs's SVG carries a text marker, and vx names a file that is never written.

  • plugins/planning/surface/surface-checks.sh:209: alternative (b) is dropped because stale P2's kept decision names it, so phase 2 can check that no Reconfirm is offered.

  • plugins/planning/surface/surface-checks.sh:212: the P1 recommendation change marks its decided dependent P2 as upstream-changed, so phase 2 can read the banner.

  • plugins/planning/surface/surface-checks.sh:214: Q3 is declared revising-by-claude so phase 2 can read the mark on its rail card and detail pane.

  • plugins/planning/surface/surface-checks.sh:243: ui_c phase 4's server holds one event delivered in 2020 and never handled, with no watcher ever polling.

  • plugins/planning/surface/surface-checks.sh:251: phase 5 posts interview round 3 and then a newer design round 1, to test the header's derived round across two stages.

  • plugins/planning/surface/surface-checks.sh:260: phase 6 uses its own server with one question and no events; a background handler waits for the page to arm a watcher (the lease in /api/state), then handles the answer as a handle-only apply while the page stays open.

  • plugins/planning/surface/surface-checks.sh:329: ui_e's server holds one recommended and one withheld question and no events.

  • plugins/planning/surface/surface-checks.sh:396: the reply to the note goes to the log; only the Notes reply that asks raises the notice (phase 3).

  • plugins/planning/surface/surface-checks.sh:405: an asking Notes reply lands after the restatement so phase 4 can check that the restate notice stays shown over it.

  • plugins/planning/surface/surface-checks.sh:414: the long text sits near the 500-character line cap with an unbroken token, so phase 6 can check that the page never widens.

  • plugins/planning/surface/surface-checks.sh:432: one log entry, one plain Notes reply, then one asking reply: only the asking reply counts in the title (phases 9, 11 and 13).

  • plugins/planning/surface/surface-checks.sh:498: ui_live runs on a sixth server with one tab holding a half-typed note while the shell applies reply-with-rec, revise, record-terminal, handle-only, then a title-and-short-only revise of an accepted question.

  • plugins/planning/surface/surface-checks.sh:565: an older terminal record has no rev, so the test strips rev from Q9 and revises it, leaving only the time to order the two.

  • plugins/repo-fleet-hygiene/skills/audit/scripts/audit-fleet.test.sh:1623: a bad path given on the command line is a typo, not config drift, so the run must still hard-fail.

Not changed

  • The 29 other files of the F042 to F044 lists: every comment in them matched the keep list, or the keep review restored the deletions whole.
  • F039: files in the three lists whose comments all stayed after the keep review; none were dropped for suite count (23 suites).

Related

🤖 Generated with Claude Code

kyle-sexton and others added 4 commits November 25, 2026 00:32
…, python-format, rate-limits and repo-fleet-hygiene

Comment-only deletions in 9 files, 102 lines deleted and 3 trailing comments stripped (Antigravity deleted 504 lines; the keep review restored 402).

Reasons moved from deleted comments:
- plugins/python-format/hooks/python-format.test.sh:31: the .venv walk in adapters.sh is not composed from prerequisites.json, so this test binds ruff's local_bin (.venv/bin/ruff) verbatim between them.
- plugins/rate-limits/hooks/register.tsx:62: in operator mode, the notice row and a shown suggestion are the person's channel, so changes that reached either are never toasted.
- plugins/rate-limits/hooks/register.tsx:283: optionsLine follows any approach or edge line once per carrier because facts alone led Claude to stop launching agents and move work to a smaller model, so options are stated explicitly without lowering quality.
- plugins/rate-limits/hooks/register.tsx:323: on a signed-in account change, all latched state is dropped and the current reading is kept out of levels until a different reading arrives because it belongs to the old account.
- plugins/rate-limits/hooks/register.tsx:354: an unreadable identity keeps the recorded account standing and missing fields are merged from the prior read so a UUID that drops out and returns is still compared.
- plugins/rate-limits/hooks/register.tsx:369: no window reported is treated as no reading rather than a reset so levels wait for the next reading.
- plugins/rate-limits/hooks/register.tsx:401: flushToasts runs after a carrier's lines are built and never throws so a failing toast cannot drop a line; operator mode holds toasts until a shown suggestion or the person's next prompt drops them.
- plugins/rate-limits/hooks/register.tsx:604: in operator mode, offer suggests the line when the prompt box is empty and otherwise shows the notice row and re-offers; a first unshown offer leaves changes to be toasted with the automatic line, while a re-offer skips toasting if the row was seen.
- plugins/rate-limits/hooks/register.tsx:734: an untaken suggestion goes to Claude at the next non-person turn, while a person's turn drops it.
- plugins/repo-fleet-hygiene/skills/audit/scripts/audit-fleet.sh:967: classify_worktrees and classify_branches read only the collector's parallel arrays with no Git or gh probes of their own so every finding kind is reachable from array-only unit tests.
- plugins/repo-fleet-hygiene/skills/audit/scripts/audit-fleet.test.sh:1919: no-origin-canon is the only fixture with two findings on one target, so whole-line matching Target: $TMP/no-origin-canon is the sole exercise of target dedupe (whole-line avoids matching the " (N linked)" rollup line).
- plugins/repo-fleet-hygiene/skills/audit/scripts/audit-fleet.test.sh:2027: tier-table parity asserts bidirectional set equality against --print-finding-registry rather than scraping source so neither side can drift silently.
- plugins/planning/surface/interview_server.py:111: Settings precedence is plugin default, team file, personal file, user file, then data dir settings.json; no userConfig option carries these keys, so that layer is empty.
- plugins/planning/surface/surface-checks.sh:61: AC35 exempts exporters.py's ARBITER_PLAN/ARBITER_DESIGN line (Brief arbiter token) and index.html/tests/ui_c.js's planning:plan changed your answer banner because both name /planning:plan as decision actor rather than visual producer; { and ; are excluded so CSS declarations like {animation:pulse ...} are not matched as skill tokens.
- plugins/planning/surface/surface-checks.sh:192: file visuals: vi's PNG is the 1x1 image vp carries inline, vs's SVG carries a text marker, and vx names a file that is never written.
- plugins/planning/surface/surface-checks.sh:209: alternative (b) is dropped because stale P2's kept decision names it, so phase 2 can check that no Reconfirm is offered.
- plugins/planning/surface/surface-checks.sh:212: the P1 recommendation change marks its decided dependent P2 as upstream-changed, so phase 2 can read the banner.
- plugins/planning/surface/surface-checks.sh:214: Q3 is declared revising-by-claude so phase 2 can read the mark on its rail card and detail pane.
- plugins/planning/surface/surface-checks.sh:243: ui_c phase 4's server holds one event delivered in 2020 and never handled, with no watcher ever polling.
- plugins/planning/surface/surface-checks.sh:251: phase 5 posts interview round 3 and then a newer design round 1, to test the header's derived round across two stages.
- plugins/planning/surface/surface-checks.sh:260: phase 6 uses its own server with one question and no events; a background handler waits for the page to arm a watcher (the lease in /api/state), then handles the answer as a handle-only apply while the page stays open.
- plugins/planning/surface/surface-checks.sh:329: ui_e's server holds one recommended and one withheld question and no events.
- plugins/planning/surface/surface-checks.sh:396: the reply to the note goes to the log; only the Notes reply that asks raises the notice (phase 3).
- plugins/planning/surface/surface-checks.sh:405: an asking Notes reply lands after the restatement so phase 4 can check that the restate notice stays shown over it.
- plugins/planning/surface/surface-checks.sh:414: the long text sits near the 500-character line cap with an unbroken token, so phase 6 can check that the page never widens.
- plugins/planning/surface/surface-checks.sh:432: one log entry, one plain Notes reply, then one asking reply: only the asking reply counts in the title (phases 9, 11 and 13).
- plugins/planning/surface/surface-checks.sh:498: ui_live runs on a sixth server with one tab holding a half-typed note while the shell applies reply-with-rec, revise, record-terminal, handle-only, then a title-and-short-only revise of an accepted question.
- plugins/planning/surface/surface-checks.sh:565: an older terminal record has no rev, so the test strips rev from Q9 and revises it, leaving only the time to order the two.
- plugins/repo-fleet-hygiene/skills/audit/scripts/audit-fleet.test.sh:1623: a bad path given on the command line is a typo, not config drift, so the run must still hard-fail.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…nce, review, session-flow and scripts

Batch F042 of the ADR 0110 comment sweep. Comment and docstring deletions only; every touched
file proves COMMENT-ONLY or DOCSTRING-ONLY, or an equivalent proof.

Reasons moved from deleted comments:
- scripts/post-merge-demotion-alert.test.sh:1127: file-revert still files on a failed re-read because a duplicate record beats a missed demotion
- scripts/post-merge-demotion-alert.test.sh:1549: the lanes App keys its demotion record on the merge commit rather than the run head, so a record of either filer naming the run is matched as that run's record
- scripts/post-merge-demotion-alert.test.sh:2721: a canary push range cut to the newest 20 commits or guessed when the previous canary run head is unreadable gets no lift block so the record stays human-close rather than lifting on an understated deletion
- scripts/post-merge-demotion-alert.test.sh:2976: close-cleared walks seven-day green-run windows oldest first (GREEN_SPAN) and stops at the first clearing run so a full page of later green runs never hides an earlier clearing one
- plugins/review/lib/prior-findings.mjs:251: a nested YAML line starts with a non-blank character after its indent so the alternation with blank lines is disjoint and avoids backtracking
- plugins/review/skills/council/scripts/council-plan.test.sh:2: shell wrapper exists because run-plugin-tests.sh discovers only *.test.sh
- plugins/session-flow/scripts/harness/hop_chain.py:468: `size_filler` sizes generated hop-1 filler to hit the shape-1 corpus median (154 lines, 3,200 chars/4 tokens), splitting the line budget evenly across padded sections and clamping line width to 40-200 characters so filler stays readable prose.
- plugins/session-flow/scripts/harness/hop_chain.py:1079: `_keep_failed_transcript` copies a failing hop's transcript out before `~/.claude/projects` cleanup so transcript-evidence failures remain inspectable after cleanup.
- plugins/session-flow/scripts/harness/hop_chain.py:1096: `_skipped_rows` records hops after a hop that produced no rails text as `not_run` failures rather than dropping them from the report.
- plugins/session-flow/scripts/harness/hop_chain.py:1865: `check_main_level_orchestration` drives `main()` with only the `claude` subprocess swapped out (2 runs, 3 hops) because per-case dry runs call `execute_chain` directly and would otherwise miss argument parsing, projects-root resolution, work-dir creation, exit code, and `report()` before a live paid run.
- plugins/session-flow/scripts/harness/hop_chain.py:2031: `main()` takes `runner_factory` so `--dry-run` exercises the exact live orchestration path with only the `claude` subprocess replaced.
- plugins/session-flow/scripts/tests/test_parse_transcript.py:458: `chain_coverage` uses the chain as its denominator rather than the project directory count (kept visible as `project_transcripts`), because under a `$HOME` cwd the project slug holds every session on the machine (a complete 6-hop chain once scored 0.032 against it).
- plugins/session-flow/skills/audit-sessions/scripts/sweep.py:147: `_churn` excludes sessions linking more than one PR because edits cannot be split across PRs, and rejoins stored relative paths onto each session's `cwd` before aggregating.
- plugins/performance/scripts/discriminate.test.sh:57: `FIX_LINE` uses single quotes inside the Python expression so it embeds verbatim into JSON config heredocs without double-quote escaping.
- plugins/performance/scripts/findings.py:768: `shown_reads` disambiguates colliding formatted labels with ` #2`, ` #3`, etc. instead of summing counts across distinct read keys.
- plugins/performance/scripts/spawn-census.sh:34: `DEFAULT_TOOLS` includes `python3` alongside ordinary external utilities so the one unavoidable interpreter spawn is counted and any extra probe spawn appears as a second entry.
- plugins/performance/scripts/spawn-census.sh:145: `REAL_PATH` strips any prior `HARNESS_SHIM_DIR` entry so nested invocations do not shim their own shims and double every spawn count.
- plugins/performance/scripts/ab.sh:149: the simulated comma-clock branch does not assert the real observation, because the real EPOCHREALTIME is fine; a forced failure that claims a locale defect the host lacks sends the next reader chasing a working locale
- plugins/performance/scripts/ab.test.sh:209: the default order source is /dev/urandom, so the test checks only the shape of arm_order
- plugins/performance/scripts/findings.py:785: a call whose result differs from an earlier read's saw changed input, so it repeats nothing; if any result for a key is missing, all of that key's calls go to the unverified map, because a change cannot be ruled out
- plugins/performance/scripts/findings.py:890: `merged` adds up repeats that show alike (unlike `shown_reads`, which keeps distinct labels)
- plugins/performance/scripts/findings.py:905: wait time is the union of [start, end] spans, because parallel calls wait on one wall clock
- plugins/performance/scripts/findings.py:915: a span ending as another starts does not overlap it; a zero-length span is still one open run, so any span makes the peak at least 1
- plugins/review/tests/prior-findings.test.mjs:206: publish.cjs posts a review whenever there is an inline finding, so a partial first read leaves a lane thread and a review on v1 beside its `read 3 of 18` summary; the summary decides for v1
- plugins/session-flow/scripts/harness/hop_chain.py:365: shapes 3 and 4 give their open questions and decisions ids: hop 1 writes them, and later hops carry them off disk unchanged and add none through the `-new` slots
- plugins/session-flow/scripts/harness/hop_chain.py:1067: each hop's handoff file is copied out of the fixture before cleanup because `--budget --live-hop1` reads the hop-1 copy from there
- plugins/session-flow/scripts/tests/test_parse_transcript.py:309: the non-string-timestamp test guards a Python 2 except-syntax regression
- scripts/post-merge-demotion-alert.test.sh:76: only the file-demotion-issue job is extracted; report-red-main has its own tests in workflow.test.mjs
- scripts/post-merge-demotion-alert.test.sh:1073: the push's merges and reverted PRs go to the label-paths job (merge-path.mjs); a revert of a PR the owner login enqueued files nothing here
- scripts/post-merge-demotion-alert.test.sh:1102: the file-demotion-issue job files no revert record itself; it hands the record to file-revert
- scripts/post-merge-demotion-alert.test.sh:1113: the filer re-reads the records, so a revert record filed since the alert read them, by either filer, prevents a second one
- scripts/post-merge-demotion-alert.test.sh:1137: a malformed hand-off files nothing and fails the job
- scripts/post-merge-demotion-alert.test.sh:1220: one revert commit gets one record: a record of either filer that lists it, in any state, keeps a later run from filing it again
- scripts/post-merge-demotion-alert.test.sh:1277: when neither the checkout nor the API read answers, the revert is unproven and demotes (fail closed)
- scripts/post-merge-demotion-alert.test.sh:1289: only a revert record's commit list counts; another record quoting the commit does not
- scripts/post-merge-demotion-alert.test.sh:1294: a revert record that cannot be written still lets the canary record file
- scripts/post-merge-demotion-alert.test.sh:1563: only a demotion record stands in by its failing run; any other issue a filer opened that names the run holds nothing
- scripts/post-merge-demotion-alert.test.sh:1567: a failed read of the identity's records still files this workflow's own record
- scripts/post-merge-demotion-alert.test.sh:1658: a check also red on the baseline is still judged for an expired quarantine
- scripts/post-merge-demotion-alert.test.sh:1678: in a mixed run the newly red check is excused, a baseline-red one demotes on an expired quarantine, and the record and fix issue name only the one that demoted
- scripts/post-merge-demotion-alert.test.sh:1787: a repeat goes straight back to agents: the reopened issue keeps agent-ready and is not sent to intake triage again
- scripts/post-merge-demotion-alert.test.sh:1832: a fix issue filed before the job rename is matched by the check's job id
- scripts/post-merge-demotion-alert.test.sh:2096: a record's marker sends only an open alert fix or quarantine issue, and stays until the listing shows one
- scripts/post-merge-demotion-alert.test.sh:2124: a fix issue that could not be filed is filed by the retry, unless one already exists
- scripts/post-merge-demotion-alert.test.sh:2176: an issue its own marker re-sent is not sent again for a check marker naming it
- scripts/post-merge-demotion-alert.test.sh:2187: a retry that files an issue it can neither send nor mark loses nothing: the check marker stays and the next run delivers the issue
- scripts/post-merge-demotion-alert.test.sh:2205: one replacement marker written is enough to clear the check marker
- scripts/post-merge-demotion-alert.test.sh:2213: in the filing step a failing marker ends nothing early
- scripts/post-merge-demotion-alert.test.sh:2232: one marker written leaves the work retried, and the note keeps saying so
- scripts/post-merge-demotion-alert.test.sh:2263: a fix issue that could not be reopened is reopened by the retry, which sends nothing
- scripts/post-merge-demotion-alert.test.sh:2350: while the re-run is pending, a newer passing full run on main means main recovered: the wait ends early and nothing is filed or reported
- scripts/post-merge-demotion-alert.test.sh:2744: a canary record that babysit_postmerge.py filed first gets the lift block as a comment, once
- scripts/post-merge-demotion-alert.test.sh:2795: the close step reads now from date, so the test pins it to keep the walked windows fixed
- scripts/post-merge-demotion-alert.test.sh:2858: a run the merge gate would not count clears nothing
- scripts/post-merge-demotion-alert.test.sh:2899: the oldest run that clears the record is the one named; a later one is never compared
- scripts/post-merge-demotion-alert.test.sh:2921: a failed or incomplete read closes nothing, for each kind of record the job closes
- scripts/post-merge-demotion-alert.test.sh:3007: the window size and count come from babysit_merge_policy.py on main; when they do not read, nothing is listed or closed
- scripts/post-merge-demotion-alert.test.sh:3019: more windows than GREEN_SPANS before now leave the record open, as `listed` raises
- scripts/post-merge-demotion-alert.test.sh:3038: with main's babysit_lift.py checked out, the step first closes the lifted canary, revert and read-back records with the identity it read; an unreadable identity is passed empty, and a failing close still lets the red-main records close

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…oftware/claude-code-plugins into chore/comment-sweep-F042
Picks up the synced machine-path-patterns.sh (#18775) that
check-affected.test.sh compares byte for byte.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 25, 2026 06:08
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 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-25T06:10:11.096758Z f643149 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 f643149bf67f68128d1dce9018460c327104f663: read 31 of 31 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #19013 (comment sweep F042 / F039)

No security issues found.

I read every hunk of all 26 files on the to-read list, plus the changes in the 5 identical copies of the bump: none changelog fragments.

What changed. The diff deletes comments and docstrings, and nothing else:

  • In 24 source and test files under plugins/performance, plugins/planning, plugins/python-format, plugins/rate-limits, plugins/repo-fleet-hygiene, plugins/review, plugins/session-flow and scripts/, it deletes comments and docstrings.
  • It also strips some trailing # args comments from shell function headers. Examples: grade() { # suite output-file becomes grade() {, and *) ;; # admitted shape continues below becomes *) ;;.

I compared the changed lines before and after: no code token, string, regex, heredoc or control flow differs.

Security surfaces checked.

  • plugins/rate-limits/hooks/register.tsx is a hook module. Only comments were removed. The toast, handoff and operator-mode logic is unchanged.
  • plugins/review/lib/prior-findings.mjs is the module behind this lane's prior-findings input. Only a two-line comment above the readAfterFirstReview regex was removed. The regex and the blocking-only default are unchanged.
  • plugins/repo-fleet-hygiene/skills/audit/scripts/audit-fleet.sh: the graphql_query_admitted allowlist that refuses mutations and subscriptions is unchanged. Only a trailing comment on its *) arm was dropped.
  • plugins/planning/surface/interview_server.py: the comment above DEFAULT_SETTINGS was removed. The values are unchanged.
  • scripts/post-merge-demotion-alert.test.sh: only helper-description comments were removed from the test. No assertion or fixture changed.

Instruction-surface lens. None of the changed files is a standing instruction surface: no CLAUDE.md, AGENTS.md, rules file, skill or agent body, or hook block list or allowlist. The comments removed from hook and test code described behavior. They were not instructions a model reads as a guardrail, so no protected class applies.

Trust controls and trusted paths. No changed file matches a TRUSTED PATHS glob or a trust-control path. No plugin manifest changed. The 7 .changes/** files are new bump: none changelog fragments with prose only.

Untrusted text. The PR description contains no text that tries to direct this lane.

Spend. This change starts no new spend and no billable change.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: no findings

This PR removes comments and docstrings only. It covers batches F042 and F039 of the comment sweep (#18772, ADR 0110) across the performance, planning, python-format, rate-limits, repo-fleet-hygiene, review and session-flow plugins and scripts/. It also adds seven bump: none changelog fragments. I read every hunk of all 31 changed files. The fragment copies listed in identical.txt are the same text, and each copy sits under its own plugin's .changes/ directory, so its path does not change what it does.

What I checked

  • No code token changed. The only edited lines strip a trailing comment: grade() { # …, rapply, port_of, run_code, jtime, japply, grev, bounded, expect, and the *) ;; # … arm in audit-fleet.sh. Every other line in the diff is a deleted comment or docstring.

  • No code reads a removed docstring. The __doc__ reads in the touched plugins (for example findings.py:1622 and friction.py:609) read module docstrings, and this PR leaves those unchanged. No harness reads a function's __doc__. The # test-scope: lines in council-plan.test.sh and turn-budget.test.sh are kept.

  • Deleted "why" comments are still recorded (the REVIEW.md criterion on deleted comments). The PR body's "Reasons moved from deleted comments" list covers most of them. I traced the three that were not listed:

    • The ratio.py "THREE gates" docstring: its reasons are pinned by plugins/performance/scripts/ratio.test.sh, which tests the pair-count floor and refuses a zero denominator rather than clamping it (sections 1b and 1c, lines 54–90).
    • The audit-fleet.sh comment on why merged-protected-branch is rated HIGH: the same reason is in plugins/repo-fleet-hygiene/CHANGELOG.md:959-961 and in reference/confidence-model.md.
    • The "never a cwd slug" note on hop_chain.py's load_transcript: it is still stated on transcript_paths at hop_chain.py:533-534, which load_transcript calls.

    The remaining deletions either restate the code or describe a test whose assertions pin the behavior.

  • No check was loosened. No test, assertion, threshold or allowlist entry changed.

  • Path-scoped rules and manifests: no rule finding. No plugin.json or marketplace.json changed, and bump: none is the right level for a comment-only change.

There is no closing issue: the PR only says Refs: #18772, so there were no acceptance criteria to check. I did not run the author's verification (change-shape.sh, shfmt, the AST comparison, the selection traces); it is the author's claim and is unverified here.

Loosened checks would be marked: fail (default: the prompt had no loosened_check_verdict: or loosened_check_patterns: line); patterns: 0. There was no loosened_check_decision_record: line, so the citation requirement was not checked.

Verifier dropped 0 of 0 candidates. The three possible candidates above were dropped during my own trace, before any verifier ran.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit 951f789 Nov 25, 2026
82 checks passed
@kyle-sexton
kyle-sexton deleted the chore/comment-sweep-F042 branch November 25, 2026 06:25
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 3, survived 1, timeout 3, no coverage 0, invalid 0, not run 0.
Covered-code score 86%; mutation score 86%.

File Killed Survived Timeout No coverage Invalid Not run
plugins/planning/surface/surface-checks.sh 2 1 3 0 0 0
plugins/repo-fleet-hygiene/skills/audit/scripts/audit-fleet.sh 1 0 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
plugins/planning/surface/surface-checks.sh:93 SBR productive input-gap

The run's summary has the full report.

kyle-sexton added a commit that referenced this pull request Nov 25, 2026
Resolve hop_chain.py: keep main's removal of the fill_skeleton and _fill_4
docstrings (#19013); the branch had only reworded them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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