Skip to content

chore(comments): remove comments at the necessary posture in harness-ops, instruction-placement and knowledge - #18979

Merged
kyle-sexton merged 4 commits into
mainfrom
chore/comment-sweep-F015
Nov 25, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
chore/comment-sweep-F015

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #18772

Summary

Batch F015. Removes 368 comment lines from 25 files under plugins/harness-ops, plugins/instruction-placement and plugins/knowledge at the necessary posture (ADR 0110). Antigravity made the edits in two write jobs (568 lines deleted); one Opus keep review restored 157 of them run by run (outside-tool and byte-format behavior, numbered dividers kept all-or-nothing, runs a kept comment points at, a measured vision-token and stream-duration note). No code line changed: the diff adds only three changelog fragments.

Fix

Comment-only deletions in the 25 files; every .js, .mjs and .py file reads COMMENT-ONLY or DOCSTRING-ONLY from change-shape.sh. Three bash files change-shape.sh cannot parse (UNPROVABLE 21: sync-run.sh, detect.sh, plan-migration.sh) are proved by identical shfmt -ln bash -mn output for base and new. docs/audits/docs-cache-web-reads.md:91 cites fetch-deck-attachments.js:256; that file's deleted run was restored, so the line did not move. One changelog fragment per plugin (bump: none).

Verification

  • Floor markers (shellcheck, test-scope:, portability markers, pragmas, @import): none deleted.
  • scripts/check-shell-portability.sh, scripts/check-cross-plugin-source-drift.sh --check, scripts/check-changelog-fragments.sh --check-required origin/main and typos: clean.
  • Selection trace over the 5 changed suites: session-compare.test.sh (38 cases), fleet-state.test.sh (97), detect.test.sh (61), test_verify_batch_page.py (43 passed) pass with no failure; sync-run.test.sh, run directly with bash, exits 0.

Reasons moved from deleted comments

  • plugins/harness-ops/skills/observability/scripts/session-compare.test.sh:2: cases that need the real duckdb query gate on command -v duckdb, and CC_OTEL_STORE points at a temp dir so the real store is never read.
  • plugins/harness-ops/skills/observability/scripts/session-compare.test.sh:37: the api_request fixture includes event.sequence with intValue because cc_logs_from binds intValue on event.sequence.
  • plugins/harness-ops/skills/plugins/scripts/cache-content-check.sh:313: argument parsing runs before any file read and usage() uses builtins only so --help and usage errors work without jq or git and cost no process.
  • plugins/harness-ops/skills/plugins/scripts/cache-content-check.sh:436: shape validation rides the same jq pass that reads installed_plugins.json so malformed state files fail loud instead of producing an empty list, while preserving to_entries order via shell suffix filtering.
  • plugins/harness-ops/skills/plugins/scripts/cache-content-check.sh:480: walk_cache_roots is the one definition both flushes of the chunked walk use, so they never disagree on what the cache side contains.
  • plugins/harness-ops/skills/plugins/scripts/cache-content-check.sh:509: source_by_sha_name caches plain-string source paths keyed by <sha><US><name> (object sources are omitted so lookups yield no-source, the first entry wins on duplicate names, lines without US become an empty source).
  • plugins/harness-ops/skills/plugins/scripts/fleet-state.sh:1051: emit_marketplace writes its result into global FS_BLOCK instead of stdout so callers avoid a subshell fork.
  • plugins/harness-ops/skills/plugins/scripts/fleet-state.test.sh:1983: run_traced pins CLAUDE_PROJECT_DIR to a fixture dir so the traced process count does not depend on whether the suite runs inside a git repo.
  • plugins/harness-ops/skills/plugins/scripts/sync-run.sh:246: the default CLAUDE_PLUGIN_ROOT derives from SCRIPT_DIR/../../.. so headless runs without CLAUDE_PLUGIN_ROOT still resolve the default marketplace.
  • plugins/harness-ops/skills/plugins/scripts/sync-run.sh:2279: stale[].files_differ sums differing + missing_from_cache + extra_in_cache because a file only in the tree or only in the cache disagrees as much as a changed one; unreleased_changes marks a clone holding changelog fragments; stale_ids stays for id-only readers; project and local records are not compared.
  • plugins/harness-ops/skills/plugins/scripts/sync-run.test.sh:3249: ctime-margin case: the chmod moves only installed_plugins.json's ctime just before the pre read; an empty SYNC_FLEET_STATE_STORE_MARGIN_S falls back to the 2 s default, and the 3 s refresh pause leaves only the ctime under 2 s old.
  • plugins/instruction-placement/scripts/detect.sh:183: is_excluded is the executable form of context/corpus.md (the prose owner); exclusions run before anything else, so nothing excluded reaches the fact stream.
  • plugins/instruction-placement/scripts/detect.sh:439: emit_identity builds heading paths by taking the nearest preceding section with strictly lower level at each step so skipped heading levels (e.g. H3 under H1) leave no gap.
  • plugins/instruction-placement/scripts/detect.test.sh:210: the two identity golden vectors match harness-config audit-pass finding-identity.sh finding-id output for a single site.
  • plugins/instruction-placement/skills/migrate/scripts/plan-migration.sh:450: PATHDET matches existence/stat idioms within 60 chars of CLAUDE.md (measured 54 rows vs 519 for all mentions), excludes cutover-pathdet-ack.txt, markdown, and comment lines, with MENTION as backstop.
  • plugins/instruction-placement/skills/migrate/scripts/plan-migration.sh:584: the ACTION scan matches uses: lines only, because a comment that mentions claude-code-action is not a pin CI installs.
  • plugins/knowledge/skills/video-digest/extraction/acquisition/preflight-metadata.js:57: live_status is placed at field 8 after the emptiness probes so their field indices stay fixed.
  • plugins/knowledge/skills/video-digest/extraction/adapters/adapter-contract.js:4: the source-adapter contract is private to the plugin (not a public extension point) and adapters register statically in registry.js.
  • plugins/knowledge/skills/video-digest/extraction/transcript/asr-transcribe.js:1: faster-whisper large-v3 (batch_size=8) is a documented optional prerequisite detected at runtime and never auto-installed; an absent toolchain degrades explicitly via transcriptDegradation.
  • plugins/knowledge/skills/video-digest/extraction/transcript/proper-noun-repair.js:45: stripEdgePunctuation keeps internal -_.@#&+ characters because they are part of handles, slugs, and version names.
  • plugins/knowledge/skills/video-digest/extraction/transcript/proper-noun-repair.js:177: the length-scaled fuzzyThreshold requires an exact match (0 edits) for keys shorter than 5 characters because fuzzy repair on short words produces false positives.
  • plugins/knowledge/skills/video-digest/extraction/transcript/write-transcript.js:25: countParagraphs is shared by the caption and ASR routes so paragraph counting cannot drift from formatTranscript's \n\n join.
  • plugins/knowledge/skills/video-digest/extraction/transcript/write-transcript.js:66: EDGE_PUNCTUATION trims sentence punctuation by scan rather than regex so a long punctuation run costs linear time, and keeps hyphens and dashes so C-- and C never compare equal.
  • plugins/knowledge/skills/video-digest/extraction/transcript/write-transcript.js:73: punctuation-only tokens such as >> are excluded from words() so they never count toward a boundary-repeat run's length.
  • plugins/knowledge/skills/video-digest/extraction/transcript/write-transcript.js:398: the repair lexicon is applied post-hoc to captions+repair and ASR cues and never fed to ASR as an initial prompt because the probe in reference/sources/x.md showed no gain and worse hallucination.
  • plugins/knowledge/tests/test_verify_batch_page.py:3: the suite runs the standing gates and pin-manifest.py for real over temporary slices; each fixture digest quotes its source.md and each verdict states hashes hashlib computes from the fixture bytes.
  • plugins/knowledge/vendor/repo-analysis/clone.js:202: an isolated home that rmSync cannot remove is swallowed so it cannot stop the parent's exit.
  • plugins/knowledge/vendor/repo-analysis/clone.test.js:41: allowFile lets file:// back in so a hardened clone can reach a local fixture repo.
  • plugins/knowledge/vendor/video-digestion/frames/contact-sheet.js:1: the default contact-sheet layout is a 4x4 tile grid on a 1280x720 canvas (per RESEARCH lane 3).
  • plugins/knowledge/vendor/video-digestion/frames/dedup.js:1: the default perceptual-hash deduplication threshold is <=8 bits Hamming distance (per RESEARCH lane 2 / design-threads D9).
  • plugins/knowledge/vendor/video-digestion/frames/dedup.js:17: imghash is loaded on first use so callers injecting hashImage never need it installed.

Not changed

  • plugins/knowledge/tests/docpage-digest-batch.test.mjs: reverted. Its suite wrapper docpage-digest-batch.test.sh reads plugins/knowledge/skills/docpage-digest/SKILL.md, which the selector does not map to it; the gap is already on main and widening # test-scope: is out of scope here.

Related

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 24, 2026 22:21
…ops, instruction-placement and knowledge

Comment-only deletions in 25 files; no behavior change (batch F015).

Reasons moved from deleted comments: the pull request body lists all 50
inline, grouped by plugin.

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

chatgpt-codex-connector Bot commented Nov 25, 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-25T03:36:37.577369Z 83f662d 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 25, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #18979, incremental (83f662d → 62d95c6)

I found no security issues. This review covered only what changed since the last one, and it posted blocking findings only, because this lane already reviewed an earlier head.

What changed: one file, .changes/knowledge/chore-comment-sweep-f015-1d3b1d2f.md. The changelog fragment now says bump: patch instead of bump: none, and its text is rewritten as a ### Changed entry. I read the whole hunk.

What I checked:

  • Release effect: the patch bump publishes the comment-only changes to the vendored repo-analysis and video-digestion libraries in the knowledge plugin. The last review found those changes delete comments and docstrings only, with no executable line added or changed. So the bump ships no new behaviour to installed users.
  • Trusted paths: the changed file matches no TRUSTED PATHS: glob.
  • Trust controls: no trust control or merge hold is touched.
  • Plugin manifests: no plugin.json or marketplace.json changed, so there are no manifest lines.
  • Instruction-surface lens: the fragment is release-notes prose, not a standing instruction to a model.
  • Prior findings: the only earlier entry is the last review's summary, which reported 0 findings. Nothing carries over.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #18979, incremental (83f662d → 62d95c6)

No findings. This review was blocking only, because this lane already reviewed an earlier head.

What changed: one file, .changes/knowledge/chore-comment-sweep-f015-1d3b1d2f.md. It moves the knowledge fragment from bump: none to bump: patch and turns its body into a ### Changed bullet.

  • Bump level: patch is correct. Comment removal changes no behaviour, and the bump only delivers the changed vendored repo-analysis and video-digestion source to consumers.
  • Fragment format: it matches the existing patch fragment layout (front matter, then a ### Changed list), for example .changes/session-flow/feat-handoff-dated-claims-5f1c2e9a.md.

Other checks:

  • Closing issue: none. The PR only references Remove comments across the repository to the necessary posture (ADR 0110) #18772, so there are no acceptance criteria to check.
  • Loosened checks: none. No test, assertion, threshold or check config changed in this push.
  • Loosened checks would be marked: fail. That is the default, because the prompt has no loosened_check_verdict: or loosened_check_patterns: lines, so there are 0 patterns. The prompt also has no loosened_check_decision_record: line, so I did not check the citation requirement.
  • Embedded instructions: none found in the prior-findings file or the diff.

Verifier dropped 0 of 0 candidates.

kyle-sexton and others added 2 commits November 24, 2026 22:41
The vendor-version-bump gate requires a patch fragment when vendor/
source changes (ADR 0048; plugins/knowledge/vendor/README.md).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The vendor-version-bump gate requires a patch fragment when vendor/
source changes (ADR 0048; plugins/knowledge/vendor/README.md).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit 5082d2a Nov 25, 2026
57 checks passed
@kyle-sexton
kyle-sexton deleted the chore/comment-sweep-F015 branch November 25, 2026 04:00
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 25, 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