Skip to content

chore(comments): remove comments at the necessary posture in gaming, github, go-format - #18291

Merged
kyle-sexton merged 1 commit into
mainfrom
chore/comment-sweep-B013
Nov 23, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
chore/comment-sweep-B013

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

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

Summary

Removes comments at the necessary posture (docs/conventions/code-tidying.yaml) from batch B013's files in the formal-verification, gaming, github and go-format plugins, with /code-tidying:remove-comments necessary. Every edited file reads COMMENT-ONLY from the skill's change-shape.sh check against the base. No behavior change.

  • Files in the batch: 75. Files touched: 6. Comment lines deleted: 326. Reshape flags: 9. Root-cause rows: 6.
  • The 56 formal-verification files hold no comments other than shebangs, spellchecker:disable-line pragmas and three outside-party notes kept by the keep list, so none changed.
  • Left out as GLOBAL HARD exclusions (hook-wired scripts and the lefthook remote config): plugins/go-format/hooks/go-format.sh, plugins/go-format/git-hooks/format.sh, plugins/go-format/git-hooks/adapters.sh, plugins/go-format/git-hooks/lefthook-remote.yml.
  • Held for open PRs: none.

Fix

Removed-comment narrative (this body is the squash commit message, so it is the landing place):

  • plugins/gaming/skills/dlss5/scripts/Invoke-Dlss5Mod.ps1 (244 lines removed, 26 kept): the header on purpose and state under -DataDir; per-function and per-block rationale for install, remove, snapshot and status (manifest and pending.json semantics, the drift-token design, refresh and reset gating, the anti-cheat acknowledgement binding, preset layering and the ini allow-list, launcher discovery, PE-header parsing offsets and spec references, DX12 and bitness evidence, the hotkey collision rule, gate ordering, the 2000-file threshold); the "Mirrors reference/*.md; change both together" notes on $AntiCheatTokens, $UpscalerDlls, $PresetKeys and the byproduct table; the re-hash cost, largest-exe and capped-depth heuristic notes; selftest fixture explanations; trailing notes on $script:FaultAfter, $Reg, $Drives, the drive-root stop, $gaps and the cache rebuild. Kept: #Requires, the spellchecker pragmas, the #4424 and #4445 labels on their regression fixtures, and 2-line outside-party facts (NVIDIA, Steam, Windows, EA app, Xbox .GamingRoot, pwsh and .NET behavior).
  • plugins/gaming/skills/dlss5/scripts/Invoke-Dlss5Mod.test.sh (4): the header saying it runs the mod's selftest for run-plugin-tests.sh, that the selftest builds its own fixtures, and that non-Windows or no-pwsh hosts skip.
  • plugins/github/github.test.sh (18): the header listing the invariants (zero vendored knowledge, agnostic conformance, the area-coverage oracle, non-hollow recipes); the bash 4 / mapfile skip note; the scope-token note; the note that scripts/validate-plugin-contracts.mjs matches the agnosticism grep literally (it still does, by regex on the code line); the canonical-area fixture note.
  • plugins/go-format/git-hooks/format.test.sh (3): the "PATH with tools the script runs" note and the parameter-shape trailers on expect() and check(). Kept: the goimports source URL.
  • plugins/go-format/hooks/go-format-end-of-turn.test.sh (14): the contract header (opt-in Stop row, exit 2 with the line on stderr, stop_hook_active, kill switch, spawn budget), the hooks.json args note, the finding-line wording note and the missing-goimports silent-pass note.
  • plugins/go-format/hooks/go-format.test.sh (45): the black-box contract header, the git isolation note, section dividers, the hooks.json matcher, SessionStart probe and goimports-resolve notes, helper signature notes, per-case labels and the spawn-budget note.

Verification

  • change-shape.sh <base> <head> on all 6 touched files: COMMENT-ONLY (PowerShell through pwsh 7.6.10, bash through tree-sitter).
  • The lefthook pre-commit code-tidying-remote-comment-lint and pre-push content checks passed.
  • Test suites are left to CI.

Related

  • ADR 0110 (comment sweep at the necessary posture).

Follow-ups

  • Pre-existing (advisory): plugins/gaming/skills/dlss5/scripts/Invoke-Dlss5Mod.ps1 snapshot hashing re-hashes the whole game tree on every snapshot, status and remove; gate on Length plus LastWriteTime and hash only on a difference.
  • Pre-existing (advisory): plugins/gaming/skills/dlss5/scripts/Invoke-Dlss5Mod.ps1 anti-cheat scan is a name match with capped depth; server-side or launcher-delivered anti-cheat leaves nothing on disk to find.
  • Pre-existing (advisory): plugins/gaming/skills/dlss5/scripts/Invoke-Dlss5Mod.ps1 derives the game name from the folder, skipping generic exe-dir leaves; a wrong guess changes the acknowledgement text.
  • Pre-existing (advisory): plugins/gaming/skills/dlss5/scripts/Invoke-Dlss5Mod.ps1 capture takes the largest exe as the game's.
  • Pre-existing (advisory): plugins/gaming/skills/dlss5/scripts/Invoke-Dlss5Mod.ps1 2000-file threshold is a judgment, not measured; name it ($MaxGameFiles).
  • Pre-existing (advisory): plugins/github/github.test.sh agnosticism grep is matched by literal regex in scripts/validate-plugin-contracts.mjs; give both one source (scripts/org-agnosticism-tokens.txt) or a named function.

Reshape flags (moves that would make a deleted comment unnecessary): a test diffing the Invoke-Dlss5Mod.ps1 tables against their reference/*.md docs; a named regex for the strict ini value pattern; selftest-seam names for $script:FaultAfter, $script:Reg, $script:Drives; a named cap for the hash and scan depth; a named 2000 constant; the mapfile reason in the github.test.sh SKIP text; assertion labels in go-format.test.sh that state the PostToolBatch matcher rule and name the harness-ops owner test.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RMa43yt8jZqGJ5kzhzjRAX

…github, go-format

ADR 0110 bulk comment sweep, batch B013. Every edited file is
COMMENT-ONLY by the remove-comments change-shape check. The
formal-verification scripts in the batch held no deletable comments.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RMa43yt8jZqGJ5kzhzjRAX
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 23, 2026 02:28
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 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-23T02:29:35.714253Z 69c856b 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 69c856ba85182f19bbe8e5717bc26a2ca6eaf371: read 9 of 9 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #18291 (head 69c856b)

I found no security issues.

I read every hunk of all 9 changed files in the full diff. Every change either deletes a comment line or strips a trailing # ... comment from a line whose code stays the same:

  • plugins/gaming/skills/dlss5/scripts/Invoke-Dlss5Mod.ps1: I checked each line that loses only a trailing comment ($script:FaultAfter, $script:Reg, $script:Drives, $t = @{}, the drive-root break, the two continue guards in Remove-EmptyModDirs, the Install-Build allow-list continue, $gaps, $script:Gh/$script:Smi, the corrupt-cache catch { }, and the selftest $script:AntiCheatSources). The code on each line is unchanged. No other code changed in this file, so these controls behave as before:
    • the \A..\z preset-value anchoring;
    • the zip-slip check in Install-Build;
    • the runtime_source query-string refusal;
    • the anti-cheat acknowledgement binding;
    • the AutoCapture refusals;
    • the gh release-tag scrub.
  • plugins/github/github.test.sh: only comments are removed. The literal agnosticism grep that scripts/validate-plugin-contracts.mjs matches is unchanged.
  • The three plugins/go-format/ test scripts: only comments are removed. These are header and section notes, plus the parameter-shape trailers on expect(), check() and stop(). The unset GIT_DIR GIT_WORK_TREE GIT_CONFIG line and the GIT_CONFIG_GLOBAL/GIT_CONFIG_NOSYSTEM exports stay.
  • The three .changes/** fragments are new bump: none changelog notes.

Instruction surfaces: the diff touches no CLAUDE.md, AGENTS.md, rules file, skill or agent body, or hook allow/block list. The deleted comments are code comments in scripts, not standing instructions to a model, so the instruction-surface lens has nothing to check here.

Trust controls: no changed file matches a TRUSTED PATHS glob. The diff touches no plugin manifest and widens no trust control.

PR context: the description describes a comment-only sweep and has no embedded directives. The diff matches that description.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: PR #18291, comment sweep batch B013 (gaming, github, go-format)

No findings. I read every hunk of all 9 changed files. Each one only deletes a comment line or a trailing comment. No code token, string, assertion or guard changed.

  • Invoke-Dlss5Mod.ps1: every removed # is a whole-line comment or a trailing comment after the code on its line. No # inside a string or regex was touched; the trailers after catch { }, the $script:FaultAfter/$script:Reg/$script:Drives assignments and $script:AntiCheatSources lose only the comment. The kept lines (#Requires, the spellchecker pragmas, the outside-party notes) are still there.
  • github.test.sh: scripts/validate-plugin-contracts.mjs matches the code line grep -riEn "..." "$PLUGIN_DIR" --include='*.md' with a regex (validate-plugin-contracts.mjs#L551), not the deleted comment, so the alignment check still finds its target.
  • go-format tests: only the header comments, section dividers and the # <label> <want> <got> trailers on expect(), check() and stop() were removed. The # test-scope: lines and # shellcheck disable= directives are kept.
  • No other reader: no file under plugins/gaming contains the removed "Mirrors reference/…; change both together" or "ponytail" text.
  • Changelog fragments: all three say bump: none, which fits a comment-only change.

Not verified by me: the PR's claim that change-shape.sh reports COMMENT-ONLY and that the lefthook checks passed comes from the author. I ran nothing; this review only reads the diff.

There is no closing issue (the PR cites ADR 0110, batch B013), so I checked no acceptance criteria. The PR context has no embedded instructions aimed at this lane. No plugin manifest changed. This is the first review of the PR, so it covers all findings, not just blocking ones.

Loosened checks would be marked: fail (default: the prompt had no loosened_check_verdict: or loosened_check_patterns: lines); patterns: 0. The change loosens no check. The prompt had no loosened_check_decision_record: line, so I did not check the citation requirement.

Verifier dropped 0 of 0 candidates.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 7d79f9b Nov 23, 2026
77 of 78 checks passed
@kyle-sexton
kyle-sexton deleted the chore/comment-sweep-B013 branch November 23, 2026 02:47
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 23, 2026
kyle-sexton added a commit that referenced this pull request Nov 23, 2026
…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
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