Skip to content

chore(comments): remove comments at the necessary posture in work-item-tracker tests and conformance - #18415

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

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

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

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

Summary

Removes code comments at the necessary posture (ADR 0110, owner-approved bulk removal) from batch B029b, the work-items work-item-tracker: GitHub and local-markdown adapter test suites and the conformance harness (run-conformance.sh, e2e-probe.sh). No behavior change. One bump: none changelog fragment for work-items.

Counts:

  • 78 files in the batch: 15 touched, 0 held by open PRs, 4 dropped as UNPROVABLE, 7 dropped as installed-verbatim seeds.
  • 51 comments deleted: 22 full-line comment runs, 29 trailing comments.
  • 0 reshape flags and 0 root-cause rows.

Fix

Antigravity (/external-agents:antigravity, default model and effort) did the triage in five read-only investigate runs (write mode stays off), launched with env -C on this worktree. Each read the necessary posture and the keep list, then its share of the batch files, and returned a deletion plan: whole comment runs by line range, trailing comments by exact text. The five plans held 162 entries.

An applier script refused 23 entries: partial script and suite headers (a run that continues above), and entries whose text names an issue (for example get-statuses.test.sh:100, list-sub-items.test.sh:58, e2e-probe.sh:71). It also refuses any entry that is not a whole comment run, sits in a heredoc, or does not match its line.

I then applied the batch keep rules over the 139 remaining entries and kept 88 of them. Kept: every script usage header and its CONTRACT.md pointer, helper signature comments (gh_binding, pr_page, trust_binding, ev, wit_case, write_skew_manifest, the common.sh and get-statuses.sh helpers), test-suite headers naming the shapes and recordings a suite reads, regression rationale (the proxy 403 REST retry, the bash 5.1 compatibility run, the one-row-past-the-ceiling read, the cross-repo drop staying silent), comments explaining a mode difference (a job with RUNNER_TEMP set), the numbered step labels of e2e-probe.sh (kept whole as one sequence), and conformance section labels that state a rule (exit 6, core-derived, offline). Deleted: trailing case labels that restate an assert_usage_error call's arguments (# no id, # no --field), section labels that only name a topic, and comments that restate the next line (# Clean slate.).

No deleted comment recorded a decision or a workaround.

Override: no GLOBAL HARD path is touched.

Not changed

  • Held by open PRs: none.
  • UNPROVABLE under change-shape, left out before triage: adapters/github/lease-coordination.test.sh, adapters/github/claim.sh, adapters/local-markdown/claim.sh, lib/lease.sh.
  • Installed verbatim: seeds/gitea/{capabilities,change-link,common,create-item,get-item,link-blocks,list-items}.sh. seed-copy.sh copies these into a consumer repository and records a tree hash, so an edit changes every installed copy's fast-forward check.
  • No deletion beyond the floor and the keep list (all under plugins/work-items/tools/work-item-tracker/): the adapter scripts in adapters/github/ and adapters/local-markdown/, adapters/github/{capabilities,change-link,claim,get-item,list-items,reclaim}.test.sh, adapters/local-markdown/{add-sub-item,capabilities}.test.sh, conformance/bindings/*.sh, every lib/*.sh in the batch, seed-copy.sh, seeds/gitea/mock.sh.

Verification

  • change-shape.sh against the base returns COMMENT-ONLY for all 15 touched files. The diff holds no file outside the batch list apart from the fragment.
  • No touched file is in scripts/shared-copies.txt or a distribution/sync-manifest.yml destination in melodic-software/standards.
  • scripts/check-shell-portability.sh origin/main: no unexcused GNU-only constructs.
  • scripts/selection-audit.sh trace --strict --jobs 3 --budget 720 over the 13 suites changed --base origin/main lists, against a freshly fetched origin/main: 13 traced, all exited 0, no gap.
  • The pre-commit code-tidying-remote-comment-lint and guardrails-remote-pre-commit-content hooks passed.

Related

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

Removed comments

plugins/work-items/tools/work-item-tracker/adapters/github/add-recurrence.test.sh (4):

  • # no id
  • # no --source-link
  • # no --note
  • # empty note

plugins/work-items/tools/work-item-tracker/adapters/github/add-sub-item.test.sh (1):

  • # id present, --parent missing → usage error before any network call.

plugins/work-items/tools/work-item-tracker/adapters/github/common.test.sh (1):

  • # Error mapping is pure — spot-check the classifier.

plugins/work-items/tools/work-item-tracker/adapters/github/create-item.test.sh (2):

  • # --type needs a value
  • # --- sibling dedupe under --parent: open, closed within 24h, closed earlier ---

plugins/work-items/tools/work-item-tracker/adapters/github/get-field-options.test.sh (4):

  • # no --field
  • # no value
  • # one field only
  • # malformed --repo

plugins/work-items/tools/work-item-tracker/adapters/github/get-statuses.test.sh (2):

  • # no --field
  • # no value

plugins/work-items/tools/work-item-tracker/adapters/github/label-provenance.test.sh (14):

  • # no id
  • # no --label
  • # empty label
  • # unknown argument
  • # foreign provider
  • # malformed id
  • # --- triage-role labeler on the work-class label: refused ---
  • # --- triage-role labeler on agent-ready: refused ---
  • # --- read-role labeler: refused ---
  • # --- write, maintain and admin labelers: admitted ---
  • # --- failed timeline read: no verdict, non-zero exit ---
  • # --- empty timeline and a label with no labeled event: refused with a reason ---
  • # --- failed or empty permission read: refused with a reason ---
  • # --- a timeline split across two pages is read whole ---

plugins/work-items/tools/work-item-tracker/adapters/github/link-blocks.test.sh (1):

  • # id present, --blocked-by missing → usage error before any network call.

plugins/work-items/tools/work-item-tracker/adapters/github/list-sub-items.test.sh (4):

  • # no parent id
  • # bad state
  • # malformed id
  • # foreign provider

plugins/work-items/tools/work-item-tracker/adapters/github/release.test.sh (1):

  • # id present, --lease-comment-id missing → usage error before any network call.

plugins/work-items/tools/work-item-tracker/adapters/github/renew-lease.test.sh (1):

  • # id present, --lease-comment-id missing → usage error before any network call.

plugins/work-items/tools/work-item-tracker/adapters/github/set-fields.test.sh (6):

  • # no id
  • # no --field
  • # no option id
  • # field id not a number
  • # one field twice
  • # foreign provider

plugins/work-items/tools/work-item-tracker/adapters/local-markdown/add-recurrence.test.sh (2):

  • # no --source-link
  • # no --note

plugins/work-items/tools/work-item-tracker/conformance/e2e-probe.sh (1):

  • # Clean slate.

plugins/work-items/tools/work-item-tracker/conformance/run-conformance.sh (7):

  • # --- capabilities ---
  • # --- usage / binding errors ---
  • # --- create-item ---
  • # --- get-item ---
  • # --- edges ---
  • # --- frontier ---
  • # --- lease lifecycle + claim race ---

🤖 Generated with Claude Code

https://claude.ai/code/session_01RMa43yt8jZqGJ5kzhzjRAX

kyle-sexton and others added 2 commits November 23, 2026 05:41
…m-tracker tests and conformance

ADR 0110 bulk comment sweep, batch B029b. Triage by Antigravity (read-only),
keep pass and apply by Claude; every touched file proved COMMENT-ONLY by
change-shape.

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 10:45
@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-23T10:46:40.153619Z 0c5ba02 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-review reviewed 0c5ba02a8e53fc11f789608deb70d7f1af04882c: read 16 of 16 changed file(s); 0 finding(s), 0 as inline comments.

Code review, PR #18415 (head 0c5ba02a): no findings.

This PR deletes comments from the work-item-tracker adapter test suites and the conformance harness, which is batch B029b of the ADR 0110 sweep. It also adds one bump: none changelog fragment for work-items. I read every hunk of all 16 listed files.

  • Comment-only change. Every removed line is a full-line comment or a trailing # ... comment. Every edited line keeps its command and arguments, so each assert_usage_error call still gets the same argv. One example is create-item.test.sh:16, where --type stays the last argument. The deletions in run-conformance.sh and e2e-probe.sh are section labels and their blank lines. No code was changed or reordered, and no heredoc was touched.
  • The PR body's list matches the diff. Its "Removed comments" list has the same 51 entries as the diff, file by file. The author ran change-shape.sh, the portability check and selection-audit and reported their results; I did not run any of them.
  • Loosened checks. No test was skipped or deleted, no assertion or expected value changed, and no threshold, suppression, retry count or check code changed. There is no loosening.
  • Changelog fragment. bump: none fits a change with no behavior change. No plugin manifest changed.
  • Closing issue. The PR closes none ("No related issue: ADR 0110 bulk comment sweep"), so there are no acceptance criteria to check.
  • Prior findings. None; this is the lane's first review of the PR.
  • Embedded text. The PR context contains no directive aimed at the review lane.

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

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: no security issues found.

I read every hunk of all 16 changed files in .claude-lane/pr.diff. Every hunk deletes a code comment, either a whole-line comment or a trailing one. The changed files are:

  • the work-items work-item-tracker test suites for the GitHub and local-markdown adapters;
  • the conformance harness, run-conformance.sh and e2e-probe.sh;
  • one changelog fragment marked bump: none.

None of the touched lines run any differently after the change. For example, create-item.test.sh still passes --type as its last argument once the trailing # --type needs a value comment is gone.

Checks:

  • Trusted paths: no changed file matches a glob on the trusted-paths list.
  • Trust controls: the diff does not touch trust controls, merge holds, token requests, the kill switch or workflows.
  • Plugin manifests: the diff changes no plugin.json or marketplace.json.
  • Standing instructions: the deleted comments are test labels and section headers in shell test files. They are not CLAUDE.md, rules, skill or agent bodies, or hook block lists or allowlists, so no guardrail is removed.
  • PR description: it matches the diff and contains no text addressed to the review lane.

critical-findings: 0

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 23, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 23, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit cf8c452 Nov 23, 2026
78 of 79 checks passed
@kyle-sexton
kyle-sexton deleted the chore/comment-sweep-B029b branch November 23, 2026 11:22
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 23, 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