Skip to content

chore(comments): remove comments at the necessary posture in .github actions and scripts - #18646

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

kyle-sexton merged 3 commits into
mainfrom
chore/comment-sweep-V002

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

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

Summary

Removes comments the necessary posture does not keep from 35 files under .github/actions and .github/scripts/apply-patch (resolve-config, seal-lane-output, select-trusted-text, setup-runner-isolation, apply-patch). Comment-only edits: 551 comment lines deleted, no code token changed. Edits were made by Antigravity (job 20261124T001506Z-1ad04f, Mode: write); a deterministic pass then restored every deleted run that names an outside party's behavior (GitHub REST/GraphQL/Actions, actions/cache, apt), a public-API or module doc, or text another file cites (144 deleted lines restored).

Hook-wired and .github/actions paths were lifted from the HARD exclusion list for this batch by the owner's override: .github/actions/resolve-config/*, .github/actions/seal-lane-output/*, .github/actions/select-trusted-text/*, .github/actions/setup-runner-isolation/action.yml, .github/scripts/apply-patch/*.

Fix

  • chore(comments) commit: 35 files, 558 deletions across the 38 files below.
  • ADRs 0066, 0067 and 0068: line citations into resolve.mjs repointed to the same code at its new lines.
  • setup-runner-isolation.test.mjs left unchanged: its selection-trace gap (reads every action.yml, not in its test-scope) is already on main.

Verification

  • Every touched file reads COMMENT-ONLY (exit 0) from change-shape.sh, run against each file's base copy.
  • Floor markers (test-scope:, shellcheck, pragmas, shebangs) have the same count before and after in every touched file.
  • Selection trace over the 22 changed suites: the only gap was setup-runner-isolation.test.mjs (now reverted).
  • Antigravity ran node --check on all touched .mjs files and the five suites that load without the resolve-config dependencies (78 tests passed). The 16 suites needing yaml and ajv were not run locally; CI runs them.
  • Left out: citation in .github/scripts/work-unblock/label-unblocked.test.mjs:7955 to resolve-config.mjs:264-265 now points at different lines; the comment lint refuses an edit to that pre-existing comment, so it is untouched.

Related

N/A

Reasons moved from deleted comments

  • .github/actions/resolve-config/api-budget-coverage.test.mjs:38: intake-triage.yml jobs dispatch-refined-triage and triage-split-children are allowlisted without log-api-budget: no checkout or contents: read, so each counts its own POSTs and emits the api-calls notice.
  • .github/actions/resolve-config/api-budget-coverage.test.mjs:49: maintenance-file-dead-links.yml:file and post-merge-file-demotion-issues.yml:close-cleared hold issues: write alone with no checkout (one rollup listing, at most two writes).
  • .github/actions/resolve-config/api-budget-coverage.test.mjs:59: post-merge-file-demotion-issues.yml:file-revert and pr-review-main.yml:report-review-counts hold issues: write alone with no checkout (two record listings, one POST per revert).
  • .github/actions/resolve-config/broker-vendoring.test.mjs:9: fixtures/broker-vendored-lists.json copies azure-iac's vendored lists from the commit it names; the azure-iac PR that changes them updates it.
  • .github/actions/resolve-config/dispatch-limits.test.mjs:5: the test lives under resolve-config because it needs resolve-config's dependencies (same for feedback-dispatch.test.mjs:5 and fix-ci-context.test.mjs:3).
  • .github/actions/resolve-config/dispatch-limits.test.mjs:163: PRs from the release and standards-sync Apps are never adopted by fix-ci: they carry generated or synced files a lane commit breaks.
  • .github/actions/resolve-config/live-config.test.mjs:298: review-dependency and apply-dependency-patch wait on needs-session (security review of PR 10954) so a stop routed there cannot trigger a same-head model re-roll or fresh round budget on a rebased head until a session removes the label.
  • .github/actions/resolve-config/live-config.test.mjs:469: owner decision 2026-10-17: agent-ready alone admits resolve-issue, with no marker comment and no work-class label.
  • .github/actions/resolve-config/live-config.test.mjs:556: resolve-issue is granted web-access: any because it runs on the launcher, which stages no curl-based docs script, from a job holding no write token.
  • .github/actions/resolve-config/live-config.test.mjs:676: owner decision 2026-10-28: attended is in resolve-issue's labels-absent holds so attended work waits for the owner.
  • .github/actions/resolve-config/live-config.test.mjs:829: no live activity sets permission-mode: under run-claude-cli's env scrub the CLI forces the default mode for auto, so fix-docs takes dontAsk.
  • .github/actions/resolve-config/live-config.test.mjs:897: owner decision Q113 (a): work-unblock/publish-lane-level is the sole grant allowed to write repository Variables alongside read-only scopes.
  • .github/actions/resolve-config/merge-authority.test.mjs:121: merge-criterion plan Design 3: an enabled pr-merge lane reads no work class, so require-verifier-verdict must be required.
  • .github/actions/resolve-config/merge-authority.test.mjs:148: owner decision Q624: the pr-merge lane needs no denied path or size cap because each check is an optional diff-check setting.
  • .github/actions/resolve-config/models.test.mjs:323: fable and best are forbidden in live profiles because Fable is owner-gated pending a per-week allowance.
  • .github/actions/resolve-config/models.test.mjs:515: review-dependency routes to verify-pr's review profile (plan Q3) because run-claude-cli requires a model alias and refuses default.
  • .github/actions/resolve-config/models.test.mjs:542: owner decision: summarize-reuse uses the summary profile (sonnet, 10 turns, medium effort) as a short read-only pass.
  • .github/actions/resolve-config/models.test.mjs:544: owner decision 2026-10-24: adjudicate-feedback runs Opus (review profile) so the adjudicator is at least as strong as the review lanes.
  • .github/actions/resolve-config/predicate.mjs:53: MISS_ORDER puts awaiting-human first because only a human resumes a held PR, then a decided miss over an unknown.
  • .github/actions/resolve-config/read-status.mjs:233: a disagreement re-read (options.again) replaces the cached field-events read without counting a second read against limit.
  • .github/actions/resolve-config/resolve-config.mjs:260: issuesByStatus skips an unreadable issue unless it could match one of states, so one issue's unreadable field cannot stop an unrelated listing.
  • .github/actions/resolve-config/resolve-config.mjs:388: splitChild is passed via SPLIT_CHILD from the caller so this floored module never loads intake modules.
  • .github/actions/resolve-config/resolve-config.mjs:517: can-commit is true for any contents grant other than "read" so any non-read value keeps the signed-commit check.
  • .github/actions/resolve-config/resolve.mjs:16: activity names run and report are reserved because <lane> / run would collide with pr-run-activity's own job checks.
  • .github/actions/resolve-config/resolve.mjs:437: loadConfig checks typeof activity.effect === "string" because the lane rule compares strictly and must not rely on the schema enum.
  • .github/actions/resolve-config/resolve.mjs:535: with a requested activity only its slot's predicate is decided, so another slot's predicate cannot fail the run.
  • .github/actions/resolve-config/resolve.mjs:584: isSafePath rejects spaces, quotes, commas, globs, shell characters, ./.. segments, a leading - (reads as an option) and a leading @ (reads as a file mention) so a path is safe as a prompt word.
  • .github/actions/resolve-config/resolve.mjs:635: activity-grants permits only { actions: "read" } or { "actions-variables": "write" } on top of the base effect row; actions-variables: write is restricted by the token broker to work-unblock/publish-lane-level.
  • .github/actions/resolve-config/resolve.mjs:689: FALLBACK_MODEL is "opus" because CI has no session for inherit, a missing or invalid role map, a non-alias value, or auto-routing the owner-gated frontier tier.
  • .github/actions/resolve-config/vocabulary.mjs:38: # mode suffixes are rejected in activity names because the schema's $defs/name and report-check-run disallow them; modes go in args.
  • .github/actions/resolve-config/write-status.mjs:3: write-status.mjs imports nothing outside node: at load so a job that installs no resolve-config dependencies can still import FIELD_API.
  • .github/actions/select-trusted-text/select-trusted-text.mjs:169: cross-repository closing issue references are dropped because issues in other repositories sit under different permissions and authors.
  • .github/scripts/apply-patch/protected-paths.mjs:86: the settings refusal excludes plugins/ because settings*.json under plugins/ are this repository's product.

🤖 Generated with Claude Code

@kyle-sexton
kyle-sexton marked this pull request as ready for review November 24, 2026 00:36
@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-24T00:38:02.374979Z 21a6156 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.

…actions and scripts

Remove comments that the necessary posture does not keep from 35 .github
files (resolve-config, seal-lane-output, select-trusted-text,
setup-runner-isolation, apply-patch). Comment-only edits, no behavior change.

Reasons moved from deleted comments:
- .github/actions/resolve-config/api-budget-coverage.test.mjs:38: intake-triage.yml jobs dispatch-refined-triage and triage-split-children are allowlisted without log-api-budget: no checkout or contents: read, so each counts its own POSTs and emits the api-calls notice.
- .github/actions/resolve-config/api-budget-coverage.test.mjs:49: maintenance-file-dead-links.yml:file and post-merge-file-demotion-issues.yml:close-cleared hold issues: write alone with no checkout for log-api-budget (one rollup listing, at most two writes).
- .github/actions/resolve-config/api-budget-coverage.test.mjs:59: post-merge-file-demotion-issues.yml:file-revert and pr-review-main.yml:report-review-counts hold issues: write alone with no checkout (two record listings, one POST per revert).
- .github/actions/resolve-config/broker-vendoring.test.mjs:9: fixtures/broker-vendored-lists.json copies azure-iac's vendored lists from the commit it names; the azure-iac PR that changes them updates it.
- .github/actions/resolve-config/dispatch-limits.test.mjs:5: the test lives under resolve-config because it needs resolve-config's dependencies (same for feedback-dispatch.test.mjs:5 and fix-ci-context.test.mjs:3).
- .github/actions/resolve-config/dispatch-limits.test.mjs:163: PRs from the release and standards-sync Apps are never adopted by fix-ci: they carry generated or synced files a lane commit breaks.
- .github/actions/resolve-config/live-config.test.mjs:298: review-dependency and apply-dependency-patch wait on needs-session (security review of PR 10954) so a stop routed to needs-session cannot trigger a same-head model re-roll or fresh round budget on a rebased head until a session removes the label.
- .github/actions/resolve-config/live-config.test.mjs:469: owner decision 2026-10-17: agent-ready alone admits resolve-issue, with no marker comment and no work-class label admitting or refusing it.
- .github/actions/resolve-config/live-config.test.mjs:556: resolve-issue is granted web-access: any because it runs on the launcher, which stages no curl-based docs script, from a job holding no write token.
- .github/actions/resolve-config/live-config.test.mjs:676: owner decision 2026-10-28: attended is in resolve-issue's labels-absent holds so attended work waits for the owner and the lane never starts it.
- .github/actions/resolve-config/live-config.test.mjs:829: no live activity sets permission-mode: under run-claude-cli's env scrub the CLI forces the default mode for auto, so fix-docs takes dontAsk and runs only what the stage's allow rules name.
- .github/actions/resolve-config/live-config.test.mjs:897: owner decision Q113 (a): work-unblock/publish-lane-level is the sole grant allowed to write repository Variables alongside read-only scopes.
- .github/actions/resolve-config/merge-authority.test.mjs:121: merge-criterion plan Design 3: an enabled pr-merge lane reads no work class, so require-verifier-verdict must be required.
- .github/actions/resolve-config/merge-authority.test.mjs:148: owner decision Q624: the pr-merge lane needs no denied path or size cap because each check is an optional diff-check setting.
- .github/actions/resolve-config/models.test.mjs:323: fable and best are forbidden in live profiles because Fable is owner-gated pending a per-week allowance.
- .github/actions/resolve-config/models.test.mjs:515: review-dependency routes to verify-pr's review profile (plan Q3) because run-claude-cli requires a model alias and refuses default.
- .github/actions/resolve-config/models.test.mjs:542: owner decision: summarize-reuse uses the summary profile (sonnet, 10 turns, medium effort) as a short read-only pass at a low turn budget.
- .github/actions/resolve-config/models.test.mjs:544: owner decision 2026-10-24: adjudicate-feedback runs Opus (review profile) so the adjudicator of a disputed finding is at least as strong as the review lanes.
- .github/actions/resolve-config/predicate.mjs:53: MISS_ORDER puts awaiting-human first because only a human resumes a held PR, then a decided miss (not-applicable) over an unknown (prerequisite-missing).
- .github/actions/resolve-config/read-status.mjs:233: a disagreement re-read (options.again) replaces the cached field-events read without counting a second read against limit.
- .github/actions/resolve-config/resolve-config.mjs:260: issuesByStatus skips an unreadable issue unless it could match one of states, so one issue's unreadable field cannot stop an unrelated listing.
- .github/actions/resolve-config/resolve-config.mjs:388: splitChild is passed via SPLIT_CHILD from the caller (check-blockers.mjs) so resolve-config.mjs, a floored module, never loads intake modules.
- .github/actions/resolve-config/resolve-config.mjs:517: can-commit is true for any contents grant other than "read" so any non-read value keeps the signed-commit check.
- .github/actions/resolve-config/resolve.mjs:16: activity names run and report are reserved because "<lane> / run" would collide with pr-run-activity's own job checks.
- .github/actions/resolve-config/resolve.mjs:437: loadConfig checks typeof activity.effect === "string" because the lane rule compares strictly and must not rely on the schema enum.
- .github/actions/resolve-config/resolve.mjs:535: with a requested activity only its slot's predicate is decided, so another slot's predicate cannot fail the run.
- .github/actions/resolve-config/resolve.mjs:584: SAFE_PATH rejects spaces, quotes, commas, globs, shell characters, ./.. segments, a leading - (reads as a CLI option) and a leading @ (reads as a file mention) so a path is safe as a prompt word.
- .github/actions/resolve-config/resolve.mjs:635: activity-grants permits only { actions: "read" } or { "actions-variables": "write" } on top of the base effect row; actions-variables: write is restricted by the token broker to work-unblock/publish-lane-level.
- .github/actions/resolve-config/resolve.mjs:689: FALLBACK_MODEL is "opus" because CI has no session for inherit, a missing or invalid role map, a non-alias value, or auto-routing the owner-gated frontier tier (fable/best).
- .github/actions/resolve-config/vocabulary.mjs:38: # mode suffixes are rejected in activity names because the schema's $defs/name and report-check-run disallow them; modes go in args.
- .github/actions/resolve-config/write-status.mjs:3: write-status.mjs imports nothing outside node: at load so a job that installs no resolve-config dependencies can still import FIELD_API.
- .github/actions/select-trusted-text/select-trusted-text.mjs:169: cross-repository closing issue references are dropped because issues in other repositories sit under different permissions and authors.
- .github/scripts/apply-patch/protected-paths.mjs:86: the settings refusal excludes plugins/ because settings*.json under plugins/ are this repository's product.

Line citations to resolve.mjs in ADRs 0066, 0067 and 0068 are repointed.
setup-runner-isolation.test.mjs stays unchanged: its selection-trace gap is already on main.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@kyle-sexton
kyle-sexton force-pushed the chore/comment-sweep-V002 branch from 21a6156 to 4dbcb31 Compare November 24, 2026 00:37
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 7009567f90ead481812bc24ce4c3b25079254437: read 39 of 39 changed file(s); 0 finding(s), 0 as inline comments.

Security review (full diff, blocking only): no security issues found

I read every hunk of all 39 changed files in .claude-lane/pr.diff.

What changed. Nearly every edit deletes a // comment line, or one # shell comment inside the run: block of setup-runner-isolation/action.yml. I compared the added and removed lines across the whole diff. Only two changes are not comment deletions:

  • resolve.test.mjs: it also imports LIMIT_DEFAULTS and adds one test that checks resolve-config's limits defaults match it. This is test code only. This lane already reviewed this change at d91646ed.
  • ADRs 0066, 0067 and 0068: line-number citations into resolve.mjs are repointed. This is documentation only.

No code token, regex, string literal or template literal is changed. In particular, SAFE_PATH, MODEL_ARGS, the PATH_RULES entries, the PATTERNS in deny-rules.mjs, ACTIVITY_GRANTS, FALLBACK_MODEL and the closing-issue repository filter in select-trusted-text.mjs are all untouched.

Trust controls checked.

  • Token-broker signer path (resolve.mjs, its sibling modules dimensions.mjs, issue-status.mjs, predicate.mjs and vocabulary.mjs, plus resolve-config.mjs, read-status.mjs and write-status.mjs): comment deletions only. No grant, effect, lane rule or activity allowlist widens, and no code joins the signer's load path.
  • Untrusted-text actions (select-trusted-text.mjs and seal-lane-output/seal.mjs): comment deletions only. The editor check, the cross-repository issue drop and the AEAD binding are unchanged.
  • Runner isolation (setup-runner-isolation/action.yml): one shell comment removed. No step changes.
  • Patch refusals (apply-patch/protected-paths.mjs and deny-rules.mjs): comment deletions only. Every refusal rule and deny pattern is unchanged.

Nothing widens who is trusted, what a token may do, or what untrusted text reaches a lane. The kill switch and the merge holds are not touched.

Instruction surface. No CLAUDE.md, AGENTS.md, rules file, skill or agent body, or hook list is touched. The deleted text is code comments, which no model reads as standing instructions, so no protected-class check was needed.

Manifests. No plugin or marketplace manifest is changed.

PR context. The description contains no directives aimed at the review lane. It says a deterministic pass restored the comments other files cite. It also notes one stale citation it left in place on purpose (label-unblocked.test.mjs to resolve-config.mjs:264-265). That is a documentation drift issue, not a security one.

Prior findings. This lane already reviewed an earlier head, so this review was blocking only. The one earlier post has no line anchor and reported no findings, so nothing carries forward.

Spend. None: the change adds no run, API or billing cost.

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: 2 inline finding(s) on 4dbcb3188eef184d2aee5ea7e6111b71ce84198e; 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 7009567f90ead481812bc24ce4c3b25079254437: read 39 of 39 changed file(s); 0 finding(s), 0 as inline comments.

Code review: 7009567 (blocking only)

This lane has already reviewed earlier heads of this PR, so this review reports blocking findings only. I read every hunk of all 39 changed files in .claude-lane/pr.diff.

No blocking findings.

  • Comment-only, as claimed. Every hunk outside resolve.test.mjs and the three ADRs only deletes // or # comment lines. No code token is added or removed. That covers all of .github/actions/resolve-config/*, seal-lane-output, select-trusted-text, setup-runner-isolation/action.yml and apply-patch/*.
  • The new resolve.test.mjs test is unchanged. It still checks LIMIT_DEFAULTS against resolve-config's limits output. It is the same test the last review accepted as the fix for the deleted defaults-copy comment.
  • ADR citations still line up after the merge of main. At this head, resolve.mjs:398-407 is still the once-per-lane leaf check, and resolve.mjs:482-501 is still laneHasActivity and selectedIndex. So the ADR 0066 citations still point at the code they describe. The merge from main did not shift them.

Other notes (not counted):

  • There is no closing issue, so there are no acceptance criteria to check.
  • No plugin manifest changes.
  • Loosened checks: none. The change deletes comments and adds one test, and it weakens no assertion. Loosened checks would be marked: fail. That is the default, because the prompt had no loosened_check_verdict: or loosened_check_patterns: line, so the pattern list is empty. The prompt also had no loosened_check_decision_record: line, so I did not check the citation requirement.
  • Security findings are left to the dedicated security lane.
  • Spend: none. The change makes no lane, schedule, model or turn changes.
  • I ran no tests. The PR body's verification (change-shape.sh results, node --check, 78 passing tests) is the author's claim, which I did not check.

Verifier dropped 0 of 0 candidates.

…point ADR 0066

The sweep deleted the comment that tied resolve.mjs's limitsOf defaults to
the lane scripts' copy in work-resolve-issue/limits.mjs. A test now asserts
the two sets agree for every shared key, so a default changed in one place
fails CI instead of drifting silently when resolve-config's output is
unreadable.

ADR 0066 cited resolve.mjs lines that moved: activity-name keying is
482-501 (laneHasActivity, selectedIndex) and the once-per-lane check is
398-407.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7JtHsXahAvMdb4rCk1
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 24, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 24, 2026
Lane-Activity: pr-unblock/resolve-conflicts
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit a7e681e Nov 24, 2026
78 of 79 checks passed
@kyle-sexton
kyle-sexton deleted the chore/comment-sweep-V002 branch November 24, 2026 04:33
@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)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant