Skip to content

chore(comments): remove comments at the necessary posture in .github/scripts - #18686

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

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

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Refs: #18772 (batch V005)

Summary

Removes comments at the necessary posture from 35 files under .github/scripts (reconcile, tidy-code-upkeep, merge-base, plugin-eval, post-merge-demotion-alert, post-merge-test-mutation, pr-merge-risk, pr-merge). 447 comment lines deleted, 23 lines of the first pass restored after review. No code token changed.

Fix

  • Antigravity wrote the deletions in two jobs; each touched file was then gated: change-shape.sh reads COMMENT-ONLY (exit 0) for all 35, and two files that read otherwise (merge-base/context.test.sh, merge-base/prepare.test.sh) were restored whole.
  • A read-only Opus keep review over the diff named runs to keep; each was restored run by run from the base text: file headers with usage, env or exit text, doc comments on exported functions, and GitHub, git and Actions facts.
  • No file in the batch is a shared copy, a standards sync destination or touched by an open PR. Lifted hard paths: none.

Verification

  • change-shape.sh over all 35 files against the base: all exit 0.
  • scripts/check-shell-portability.sh origin/main: no unexcused constructs in 4 shell files.
  • scripts/selection-audit.sh trace --strict --jobs 3 --budget 720 over the 17 touched suites: no gap.
  • cite_audit.py over the branch: no citation of a file in this batch changed.
  • Left out: the touched suites were not run beyond the selection trace; CI runs them.

Related

N/A

Reasons moved from deleted comments

  • .github/scripts/maintenance-tidy-code-upkeep/batch.mjs:scan: scan validates PR bodies before any branch is pushed so a missing spec issue or second issue link stops the batch early.
  • .github/scripts/maintenance-tidy-code-upkeep/batch.mjs:push: open-pr-count uses the job's read-only COUNT_TOKEN because the lanes App token holds no pull-request permission there.
  • .github/scripts/maintenance-tidy-code-upkeep/upkeep.mjs:sweepsOf: each sweep PR's own merge commit is not churn, so merging a tidy PR does not re-trigger its area.
  • .github/scripts/merge-base/prepare.sh:lane commits: recognizing lane commits by author name alone is safe because forging it only makes the repeat cap escalate early.
  • .github/scripts/plugin-eval/hill-climb-publish.mjs:catch: a refused gate is appended to the step summary because the win is already recorded there.
  • .github/scripts/plugin-eval/select-plugins.mjs:caseLoadRefusals: an unread tree is skipped because linkRefusals already refuses it.
  • .github/scripts/plugin-eval/summarize.mjs:cell: newlines, pipes and @ are escaped because table cells carry case names and errors from the result.
  • .github/scripts/post-merge-demotion-alert/handoff.bash:fix_work: a fix issue filed before the job rename is matched by its kebab-case job id only when no issue names the check now; new fix issues leave Size, Complexity and Uncertainty to intake because apply-verdict.mjs holds an issue whose dimensions this token set.
  • .github/scripts/post-merge-demotion-alert/red-main.mjs:BRANCH_WIDE_GATES: gitleaks failed counts against no merge because the all-branches secret scan fails on any branch.
  • .github/scripts/post-merge-demotion-alert/report.mjs:range: at most 25 merges are read so their evidence reads fit the call budget.
  • .github/scripts/pr-merge-risk/write-rating.mjs:catch: the warning prints error.message because it names a field, never the result's text.
  • .github/scripts/pr-merge/carry-run-cache.mjs:read: a trust failure stops the read; an unreadable file counts as absent and the other file is still carried.

🤖 Generated with Claude Code

…scripts

ADR 0110 comment sweep, batch V005: comment-only edits to 35 files under
.github/scripts (reconcile, tidy-code-upkeep, merge-base, plugin-eval,
post-merge-demotion-alert, post-merge-test-mutation, pr-merge-risk, pr-merge).

Reasons moved from deleted comments:
- .github/scripts/maintenance-tidy-code-upkeep/batch.mjs:scan: scan validates PR bodies before any branch is pushed so a missing spec issue or second issue link stops the batch early.
- .github/scripts/maintenance-tidy-code-upkeep/batch.mjs:push: open-pr-count uses the job's read-only COUNT_TOKEN because the lanes App token holds no pull-request permission there.
- .github/scripts/maintenance-tidy-code-upkeep/upkeep.mjs:sweepsOf: each sweep PR's own merge commit is not churn, so merging a tidy PR does not re-trigger its area.
- .github/scripts/merge-base/prepare.sh:lane commits: recognizing lane commits by author name alone is safe because forging it only makes the repeat cap escalate early.
- .github/scripts/plugin-eval/hill-climb-publish.mjs:catch: a refused gate is appended to the step summary because the win is already recorded there.
- .github/scripts/plugin-eval/select-plugins.mjs:caseLoadRefusals: an unread tree is skipped because linkRefusals already refuses it.
- .github/scripts/plugin-eval/summarize.mjs:cell: newlines, pipes and @ are escaped because table cells carry case names and errors from the result.
- .github/scripts/post-merge-demotion-alert/handoff.bash:fix_work: a fix issue filed before the job rename is matched by its kebab-case job id only when no issue names the check now; new fix issues leave Size, Complexity and Uncertainty to intake because apply-verdict.mjs holds an issue whose dimensions this token set.
- .github/scripts/post-merge-demotion-alert/red-main.mjs:BRANCH_WIDE_GATES: gitleaks failed counts against no merge because the all-branches secret scan fails on any branch.
- .github/scripts/post-merge-demotion-alert/report.mjs:range: at most 25 merges are read so their evidence reads fit the call budget.
- .github/scripts/pr-merge-risk/write-rating.mjs:catch: the warning prints error.message because it names a field, never the result's text.
- .github/scripts/pr-merge/carry-run-cache.mjs:read: a trust failure stops the read; an unreadable file counts as absent and the other file is still carried.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 24, 2026 03:41
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 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-24T03:42:50.895594Z ef2daa2 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 24, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 020ca12b8381b055c379c29272306fe6ec10193d: read 11 of 11 changed file(s); 0 finding(s), 0 as inline comments.

Security review (incremental, blocking only): no issues found

This review covers only what changed since ef2daa2bcd8f09a59c4787be9353eb5862ab6bf4. This lane already reviewed an earlier head, so it reports CRITICAL and IMPORTANT findings only.

I read every hunk of all 11 files on the incremental list in .claude-lane/incremental.diff. Every hunk adds back one space that the earlier V005 sweep removed:

  • after =, for example export const WITHHELD = Object.freeze([...]) and CASE_SAFE_KEYS = new Set([...]);
  • or after a comma, in carry(data, { repo, branch, now }).

No token, value, set member or control flow changed.

Trusted paths. Two of the files are on the trusted-path list. I read the whole change in each:

  • .github/scripts/pr-merge-risk/write-rating.mjs: the WITHHELD tool list is unchanged (["Bash", "Glob", "Grep"]); only the spacing moved.
  • .github/scripts/pr-merge/carry-run-cache.mjs: the carry() signature changed only by one space. The function body and the trust-failure read path are untouched.

Neither file widens a trust control, a token scope, a merge hold, or what untrusted text can reach.

Other checks.

  • Instruction surface: no standing instruction was edited in this increment.
  • Manifests: none changed.
  • PR context: the description has no embedded directives aimed at the review lanes.
  • Cost: nothing here spends credits or can cause a charge.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on ef2daa2bcd8f09a59c4787be9353eb5862ab6bf4; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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

CI code review: PR #18686, incremental since ef2daa2b (blocking only)

This lane already reviewed an earlier head, so this pass reports blocking findings only. I read every hunk of the 11 files in .claude-lane/incremental.diff.

No findings. This push fixes the one finding from the earlier review, the whitespace changes on code lines:

  • Each hunk puts back the space the sweep had deleted: =( is = ( again, =new Set( is = new Set(, =Object.freeze( is = Object.freeze(, =" is = ", and carry(data,{ is carry(data, {. That covers 21 code lines across 11 files.
  • The earlier finding also named post-merge-demotion-alert/failing-checks.mjs:17 (ghLines =(). That file is no longer in the PR: files.txt lists 34 files, down from 35, and pr.diff never mentions it.
  • I searched the added lines of the full pr.diff for an = followed directly by a non-space character and for ,{. Nothing matched, so the PR no longer changes whitespace on any code line.
  • None of the lines this push changes alters runtime behaviour.

Trusted paths: .github/scripts/pr-merge-risk/write-rating.mjs and .github/scripts/pr-merge/carry-run-cache.mjs are in this push. Their only changes put the base whitespace back on WITHHELD = Object.freeze( and carry(data, {. Nothing they gate changes.

  • Closing issue: none, so there are no acceptance criteria to check.
  • Loosened checks: none. The prompt had no loosened_check_verdict: or loosened_check_patterns: line, so I used the defaults (fail, no consumer entries). With no loosened_check_decision_record: line, the citation requirement was not checked.
  • Loosened checks would be marked: fail (default; the prompt had no resolver lines); patterns: 0.
  • This lane ran no commands. The PR body's verification claims are the author's and unverified.

I dispatched no verifier: there was no candidate finding to check.

Verifier dropped 0 of 0 candidates.

@kyle-sexton

Copy link
Copy Markdown
Member Author

PR lane (desk): this is over 2 h old with no push since 03:34Z, and it's BLOCKED on 1 open review thread. Still on it? Reply here with an ETA, or post 'Owner: PR lane may take over' and the desk PR lane finishes it. No owner reply by 07:00Z and I take it.

The comment sweep altered spacing on code lines next to removed
comments (`= (` became `=(`). Restore each such line to its base text.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Unattended merge: risk MED at head 020ca12b8381b055c379c29272306fe6ec10193d. Only LOW, or MED on class, size and reported review-finding reasons alone, merges without a human. The lanes clear its holding reasons (a size reason holds nothing); pr-merge judges it again each run.

MED evidence-unbound:claude-security-review: not bound: rerun-not-allowed: the merge gate's whole-review request clears this with a new run at the same head, retried on a later sweep when a limit skips it, and at the per-PR cap of two requests or once this head's request has run, a new head clears it: `gh pr update-branch <n>` when the branch is behind its base, else a new commit, never a hand re-run of the lane run

@kyle-sexton

Copy link
Copy Markdown
Member Author

PR lane (desk): this has been CLEAN with 0 open threads and unqueued since its 07:11Z push, about 4 h, and it's 8 h old. If it's ready, queue it; or post 'Owner: PR lane may queue' and the desk PR lane merges it pinned to its head.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

PR body contract — issue linkage

This PR body does not yet satisfy the issue-linkage contract:

  • Missing a native closing keyword (Closes/Fixes/Resolves #N). If this PR references an issue it must not close, put "Refs: #N" (or "Relates to: #N") on its own line. If it relates to no GitHub issue at all, state "No linked issue" (or "No related issue:") in the body instead.

Edit the body and this comment updates itself on the next run.

@github-actions github-actions Bot added the needs-issue-linkage Pull request body has no issue linkage line; set by the check-contract step, advisory. label Nov 24, 2026
Merged via the queue into main with commit 580eabc Nov 24, 2026
126 of 130 checks passed
@kyle-sexton
kyle-sexton deleted the chore/comment-sweep-V005 branch November 24, 2026 14:05
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 24, 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) needs-issue-linkage Pull request body has no issue linkage line; set by the check-contract step, advisory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant