Skip to content

chore(comments): remove comments at the necessary posture in planning - #18832

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

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

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

Refs: #18772

Summary

Batch V043 (the planning part of V041+V043). This PR carries only these files (24 planning files, 15 test suites): the combined set traced 27 suites, over the 22-25 budget, so the V041 files (performance, pixel-art and the rest of planning, 12 suites) are held for a later PR. Comments that fail the necessary posture's keep list are removed (ADR 0110); no behavior change.

Fix

  • Antigravity made the deletions in 4 jobs; each touched file proves COMMENT-ONLY or DOCSTRING-ONLY with change-shape.sh (shell files that change-shape cannot parse by identical shfmt -ln bash -mn output for base and new).
  • One Opus keep review restored runs that hold outside-party behavior, usage lines or tool facts; module docstrings read as __doc__ and the lines the docs/audits/docs-cache-web-reads.md table cites by line number (offer-source.mjs:28, server.py:552) were restored so those citations hold.
  • plugins/planning/surface/test_schema.py is reverted to origin/main (see Not changed).

Verification

  • Selection trace: 15 suites traced, 0 untraced; the only gap (test_schema.py reading shared/schema/*.json) is on main, so that suite is reverted.
  • Whitespace scan: 0 hits; shell portability check passes; changelog fragment: planning, bump none.

Not changed

  • plugins/planning/surface/test_schema.py: reads shared/schema/{ops,state,wire}.schema.json, a selection gap already on main.
  • Files in the batch lists held for a later PR: the V041 files (diff saved in the local branch chore/comment-sweep-V041-rest); the 8 planning/evals/*/seed.sh files (eval case inputs).

Follow-ups

  • Pre-existing (advisory): plugins/planning/surface/test_schema.py reads plugins/planning/shared/schema/*.schema.json, which scripts/affected-tests.sh does not map to the suite.

Reasons moved from deleted comments

  • plugins/planning/surfaces/entries/document.mjs:1: document surface sets onRequest: true and is never offered beside other surfaces because another person fills it in rather than the user.
  • plugins/planning/surfaces/registry.mjs:154: findOffers is called only when out.decidedBy === 'default' because planners and offers only appear on the default surface's opening line.
  • plugins/planning/tests/interview-defenses.test.sh:111: REPIN_HINT is appended only to digest-pin failures because repin rewrites sha256 literals and has nothing to recompute for exact-line or boundary failures.
  • plugins/planning/tests/interview-defenses.test.sh:825: the sibling cases get their own pin_case_digest beside the roster pin because a sibling rewritten in place keeps the roster hash identical (cases 3 and 8 were once rewritten in place undetected), so any other case may change but these three may not.
  • plugins/planning/tests/plan-stress-test.test.sh:90: each stress-test arm sets verification: standard so the plan-reviewer can be dispatched.
  • plugins/planning/tests/repin.test.sh:125: the multi-label test gives all three stale pins the same stale sha literal so each new digest must come from its own pin rather than a global literal replace.
  • plugins/planning/tests/standards-binding.test.sh:2: the planning plugin's standards-grounding markers are pinned because the standards convention's acceptance criteria grep for them.

Related

ADR 0110; spec #18772.

🤖 Generated with Claude Code

Batch V043. Removes comments that fail the necessary posture's keep list from 24 files in
the planning plugin. Every touched file proves COMMENT-ONLY or DOCSTRING-ONLY (shell files by
identical shfmt output); no behavior change.

Reasons moved from deleted comments:
- plugins/planning/surfaces/entries/document.mjs:1: document surface sets onRequest: true and is never offered beside other surfaces because another person fills it in rather than the user.
- plugins/planning/surfaces/registry.mjs:154: findOffers is called only when out.decidedBy === 'default' because planners and offers only appear on the default surface's opening line.
- plugins/planning/tests/interview-defenses.test.sh:111: REPIN_HINT is appended only to digest-pin failures because repin rewrites sha256 literals and has nothing to recompute for exact-line or boundary failures.
- plugins/planning/tests/plan-stress-test.test.sh:90: each stress-test arm sets verification: standard so the plan-reviewer can be dispatched.
- plugins/planning/tests/repin.test.sh:125: the multi-label test gives all three stale pins the same stale sha literal so each new digest must come from its own pin rather than a global literal replace.
- plugins/planning/tests/standards-binding.test.sh:2: the planning plugin's standards-grounding markers are pinned because the standards convention's acceptance criteria grep for them.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 24, 2026 16:39
@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-24T16:41:40.571395Z c61b124 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 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 c61b12494176a8001955b48915dbd887c0b591f5; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed c61b12494176a8001955b48915dbd887c0b591f5: read 25 of 25 changed file(s); 1 finding(s), 1 as inline comments.

Code review: PR #18832, comment removal in planning under the necessary posture (ADR 0110)

I read all 25 files in the diff. Every hunk only removes comments, docstrings or trailing comments. No code token, assertion, threshold, timeout or test changes, so nothing here loosens a check. Removing the docstrings from Python helper functions and module heads doesn't change any test: none of them is a test method docstring that unittest would show, and nothing in the diff reads __doc__. The .changes/planning/... fragment declares bump: none, which fits a change with no behavior change.

I found one finding, posted inline. It uses the criterion in docs/review/comments.md (ADR 0110 decision 3): a deleted comment that recorded why the repository made one of its own decisions gets flagged when no ADR, commit message or linked source holds the reason.

  • In plugins/planning/tests/interview-defenses.test.sh, two deleted comments held the only written reason why sibling eval cases 2, 3, 8 and the rest are digested one by one beside the roster pin. That reason is the in-place rewrites of case 3 and case 8 that went undetected. One comment sat in the pin_case_set header, the other in the block before the sibling pin_case_digest calls. The failure messages that remain don't state it, and the PR's "Reasons moved from deleted comments" list doesn't include it.

Most of the other rationale removed from interview-defenses.test.sh is still stated in the helpers' fail messages (pin_exact, pin_section, pin_frontmatter, pin_file) or is re-pin justification that UPDATE_RULE already sends to commit messages, so I didn't flag it.

Notes:

  • The PR body only says Refs: #18772, and the PR context has no closing issue section, so I checked no acceptance criteria.
  • The "Reasons moved from deleted comments" list counts as a commit message only if the squash merge keeps the PR body as the commit body. Keep that in mind when you judge which reasons were moved.
  • Loosened checks would be marked: fail (default; the prompt had no loosened_check_verdict: line); patterns: 0. The prompt also had no loosened_check_patterns: line, so no consumer entries apply. It had no loosened_check_decision_record: line either, so I didn't check the citation requirement. I found no loosening.
  • No plugin manifest changed. I didn't find any instruction embedded in the PR context or the prior-findings file.
  • Nothing changes spend.

Verifier dropped 0 of 1 candidates. No verifier subagent ran: I checked the one candidate myself against the head file and docs/.

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: PR #18832 (chore(comments): remove comments at the necessary posture in planning)

No security issues found.

I read all 25 changed files hunk by hunk in the full diff. Each hunk only removes comments: Python docstrings and # comments, JS // comments (whole-line and trailing), and shell # comments. It also adds a changelog fragment, .changes/planning/chore-comment-sweep-v041-39b4a62c.md, with bump: none. No executable line changes anywhere. Where a trailing comment was dropped (for example time.sleep(1.1), fast_settle = True, await page.click(...)), the code before the comment is identical.

What I checked:

  • Trusted paths: none of the changed files match a TRUSTED PATHS: glob. There are no workflows, actions, merge-hold scripts, token or kill-switch code, plugin manifests, CODEOWNERS or .gitmodules in the diff.
  • Instruction surfaces: the diff does not delete or soften any standing instruction (CLAUDE.md, AGENTS.md, rules, skill or agent bodies, hook allowlists).
    • In plugins/planning/tests/interview-defenses.test.sh, only the comments explaining the pin_* helpers were removed. Every pin, pin_once, pin_exact, pin_section, pin_frontmatter, pin_case_digest, pin_file and pin_case_set call is unchanged, along with its expected digest and pinned text. The jq-required fail-closed check is unchanged too, so the mechanism that enforces these defenses still runs.
    • The comments in surfaces/registry.mjs and surfaces/entries/*.mjs were documentation only. No logic around the decidedBy === 'default' gate or the surface entries changed.
  • Security-relevant test assertions: the CSP, sandboxed-iframe, token and wrong-token, bad-PORT and odd-data-dir checks in ui_c.js, ui_e.js and watch.test.sh all still run as before. Only their explanatory comments are gone.
  • PR context: I found no embedded instructions aimed at the review lane.

The protected-class list in the instruction exception register was not needed, because no standing instruction was removed.

critical-findings: 0

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit c14892d Nov 24, 2026
86 of 100 checks passed
@kyle-sexton
kyle-sexton deleted the chore/comment-sweep-V041 branch November 24, 2026 17:41
@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