Skip to content

refactor(discovery): repair a stale data-shape pointer and drop a dead coverage-gate guard - #14338

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
chore/tidy-adhoc-plugins-discovery-2026-11-09
Nov 9, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
chore/tidy-adhoc-plugins-discovery-2026-11-09

Conversation

@melodic-automation-lanes

@melodic-automation-lanes melodic-automation-lanes Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Refs: #12894

Summary

Ad hoc tidy sweep of plugins/discovery/** (anchor: none (ad hoc)). Two structure-only tidyings in the plugin's own scripts, plus a patch changelog fragment.

Fix

  • P-2 Stale cross-reference repair: scripts/build-view.mjs said the blindspot data shape lives in reference/blindspot-view.md. No such file exists; the shape is in reference/rendered-view.md, "Discovery: blindspot", and the debugging plugin's sibling build-view.mjs already points there (+2/-2, comment only).
  • Beck fix: correct plugin-system inaccuracies and harden references #2 Dead Code: scripts/check-coverage-complete.sh and its Python twin check-coverage-complete.py guarded the unmarked-row label with header_cols >= 2. That guard can never be false, because a header is only accepted once all four mandated columns appear exactly once. Both twins drop it together, so they stay in step (+1/-1 each).
  • Changelog fragment: .changes/discovery/chore-tidy-adhoc-plugins-discovery-2026-11-09-d2a98148.md (patch, ### Changed).

Deferred by the scope budget: none (three files, 8 changed lines). Withheld and not applied: Biome useOptionalChain hints in workflows/research-sweep.js. Rewriting a && a.b as a?.b changes the result when a is falsy but not nullish, so those hints are not structure-only without per-site evidence.

Verification

  • bash plugins/discovery/scripts/check-coverage-complete.test.sh: exit 0, all checks passed (Bash and python3 forms).
  • bash plugins/discovery/scripts/build-view.test.sh: exit 0.
  • shellcheck plugins/discovery/scripts/check-coverage-complete.sh, python3 -m py_compile on the Python twin, and node --check on build-view.mjs: clean.
  • markdownlint-cli2@0.24.0 over plugins/discovery/**/*.md (CHANGELOG excluded): 0 issues. Link, anchor and ${CLAUDE_PLUGIN_ROOT} path sweeps found no dead references.
  • Not run locally: ruff (not installed on the runner) and the network-fetching comment-hygiene gate.

Related

Ad hoc scope plugins/discovery/**. Excluded from the hunt: generated shared copies listed in scripts/shared-copies.txt (most of lib/, scripts/docs-*.sh, fetch-docs.sh, html2md.py, index-regen.sh, reference/rendered-view.md, reference/docs-lookup-procedure.md, and the setup copies) and the hook-wired hooks/**.

Merge-Risk: max=LOW demote=false head=30a89d01a3e55e68d352e74a190d1a5ab020611f rubric=8.1.2 rater=claude-opus-5-5 checker=claude-opus-5-5

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

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

Security review: PR #14338 (head 30a89d0)

No security issues found. This was a full review: I read every hunk of all 4 listed files.

  • plugins/discovery/scripts/build-view.mjs only changes a comment that pointed to the wrong file for the data shape. No code changes.
  • plugins/discovery/scripts/check-coverage-complete.py and check-coverage-complete.sh drop the header_cols >= 2 condition. That condition only picked which cell goes into the stderr unmarked: message. Rows are still counted as unmarked exactly as before, the exit status is unchanged, and the gate decides nothing differently. If the guard turned out to be needed after all, the worst result would be a different cell, or an empty one, in a diagnostic line. That cannot leak anything, compromise anything, or cost anything.
  • .changes/discovery/...md is a changelog fragment.

None of the changed files is on a trusted path. The PR doesn't touch any trust control, merge hold, kill switch, token request, plugin manifest or standing instruction surface. The PR context file has no embedded instructions aimed at the lane.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

claude-review reviewed 30a89d01a3e55e68d352e74a190d1a5ab020611f: read 4 of 4 changed file(s); 0 finding(s), 0 as inline comments.

Code review: no findings

I read every hunk of all 4 changed files. None of them matches a trusted-path glob, and nothing here calls for a hold.

What I checked

  • plugins/discovery/scripts/build-view.mjs: the change is to a comment only. The new pointer is correct: plugins/discovery/reference/rendered-view.md has a ## Discovery: blindspot section at L320.
  • check-coverage-complete.py / check-coverage-complete.sh: the removed header_cols >= 2 guard really is dead code.
    • Python: a header is accepted only when #, corpus item, depth criterion and done each appear exactly once (py L103-L107). That makes header_cols >= 4 whenever a data row is graded.
    • Shell: the same holds in the awk twin (sh L142-L150).
    • Short rows: a row with fewer cells is rejected earlier by the width check, so row_cells[1] / cell[2] always exists. Behavior is unchanged, and both twins still match.
  • Changelog fragment: bump: patch with ### Changed fits a change that keeps behavior the same.

Closing issue: the PR says Refs: #12894, but the PR context contains no closing-issue section, so there were no acceptance criteria to check.

Verification: the test runs, shellcheck, py_compile, node --check and markdownlint results in the PR description are the author's claims. I had no shell, so I ran none of them.

Embedded text: none.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 30a89d01a3e55e68d352e74a190d1a5ab020611f, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for 30a89d0

The verifier passed this head. The capture artifact holds the capture summary, which says whether the capture ran, and any screenshot or video that passed the mask check; this comment uploads no file.

Capture artifact: pr-capture-14338-30a89d01a3e55e68d352e74a190d1a5ab020611f, expires on 2026-12-09.

One comment per pull request, updated in place for each new head.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 9, 2026
Merged via the queue into main with commit b83ca26 Nov 9, 2026
59 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the chore/tidy-adhoc-plugins-discovery-2026-11-09 branch November 9, 2026 05:55
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit b83ca26304bdf1ccf51e1fd4241216df8867c574; later checks count it verified from this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants