Skip to content

feat(plugin-quality): document a batched form of the audit research seam - #7409

Merged
kyle-sexton merged 4 commits into
mainfrom
feat/5944-batched-audit-research-seam
Oct 14, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
feat/5944-batched-audit-research-seam

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #5944

Summary

/plugin-quality:audit at medium effort ran the research seam once per qualifying finding, with no documented batched form. Per the owner decision on #5944, one batched research pass is now an allowed alternative when two or more findings qualify; one call per finding stays the default.

Fix

  • skills/audit/SKILL.md (Step 5 research-seam bullet): a batched pass may cover every qualifying finding, saving all fetched sources under one packet directory; each finding keeps its own research: record. Names the cross-finding corroborator-anchoring risk and the per-finding distinct-corroborator check that limits it. Wording does not assume /discovery:research is installed; the write-once ledger rule (audit-notes-<n>.md) still applies.
  • collect-categories.sh needed no change: it only requires saved paths inside the ledger directory and resets its duplicate-URL set per finding.
  • collect-categories.test.sh: two-finding batched case with sources in a research/ subdirectory (passes), and a case where one finding's corroborator repeats its primary (rejected for that finding only).
  • evals.json: case batched-research-keeps-per-finding-records (medium effort, 3 qualifying findings).
  • Changelog fragment (minor).

Verification

  • All 7 plugin-quality *.test.sh suites pass.
  • scripts/check-changelog-parity.sh --check and --check-order pass; check-changelog-fragments.sh --check and --check-required origin/main pass.
  • check-skill.sh: 0 errors (pre-existing warnings only); check-evals-quality.sh passes; shellcheck, shfmt, markdownlint clean.
  • Model-graded evals not run.

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_01W6SjPvY7DmXBGzboeCq8nj

kyle-sexton and others added 3 commits October 13, 2026 20:54
With two or more findings at or above the severity floor, one batched
research pass may replace one call per finding. Sources save under one
packet directory and each finding keeps its own research record, graded
unchanged by collect-categories.sh. Adds collector tests for the batched
shape and an eval case.

Refs: #5944

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01W6SjPvY7DmXBGzboeCq8nj
…e collector checks

Add a mirror case where the first batched finding fails its corroborator
check, so a grader that only grades a section's last finding fails the
suite. Say the collector checks only each finding's own sources, not
cross-finding corroborator reuse, in the skill text and eval case 29.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01W6SjPvY7DmXBGzboeCq8nj
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 14, 2026 00:59
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-14T01:03:09.970287Z 387ef13 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.

@claude

claude Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 1m 5s —— View job


Security review (/review:security-review)

  • Fetch PR diff (origin/main...HEAD) and read all 4 changed files
  • Check for instruction-surface deletions/weakenings against the exception register
  • Review test script and eval data for injection or secret-handling issues
  • Report findings

Scope: .changes/plugin-quality/feat-5944-batched-audit-research-seam-1d83f16e.md, plugins/plugin-quality/skills/audit/SKILL.md, plugins/plugin-quality/skills/audit/evals/evals.json, plugins/plugin-quality/skills/audit/scripts/collect-categories.test.sh. collect-categories.sh itself is unchanged.

Findings: none.

Notes:

  • The SKILL.md edit is additive (allows an optional batched research pass alongside the existing per-finding default); it doesn't delete or soften a standing guardrail, so the instruction-surface-deletion lens doesn't flag it. It explicitly names the cross-finding corroborator-anchoring risk the batch introduces and instructs a manual per-finding span check as mitigation — a design tradeoff the PR itself documents, not an unmanaged control gap.
  • The new test cases in collect-categories.test.sh use mktemp -d for their scratch directory and only write fixed, hard-coded fixture content — no untrusted input, no injection surface.
  • evals.json and the changelog fragment are static data/documentation with no executable or security-relevant content.

No GitHub Actions workflow files are touched by this PR.

claude-lane-summary: lane=claude-security-review sha=387ef131553feb1d6654b613eae552fe855cde44 run=38493205972

@claude

claude Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 2m 25s —— View job


Review: feat/5944-batched-audit-research-seam

  • Gather context (diff, SKILL.md Step 5, collect-categories.sh, test/evals additions)
  • Check standards index / paved paths (none apply) and REVIEW.md scope (security lane exists in this repo, so security is out of scope here; no security surface in this PR anyway)
  • Trace the new collect-categories.test.sh cases by hand against collect-categories.sh's per-finding seen_url reset
  • Cross-check evals.json case 29 against the SKILL.md wording
  • Post findings

Scope: doc wording (plugins/plugin-quality/skills/audit/SKILL.md), a changelog fragment, two new shell test cases, and one new eval case. No code path in collect-categories.sh changed, consistent with the PR body's claim that it "needed no change."

Verification note: I could not execute collect-categories.test.sh myself — this lane's Bash tool denied running the script (no prompt handler to approve it). I instead hand-traced both new test cases against the collector's awk logic (check_source's URL-fragment stripping, and close_finding's per-finding delete seen_url):

  • b-ok.md: both findings get 2 URL-distinct corroborators → exit 0, matches expected.
  • b-dup.md: the second finding's corroborator differs from its primary only by a # fragment, which check_source strips before comparing, so it collapses to a duplicate and the finding is left with 1 distinct corroborator → research-corroborators ... claim distinct-checked=1, while the first finding (untouched) stays clean. Matches the assertions.
  • b-dup-first.md: same fragment-collapse trick, but on the first finding's second corroborator against its own primary → title=first claim distinct-checked=1, second finding stays clean. Matches the assertions.

I did not independently verify the PR's other claimed checks (shellcheck/shfmt/markdownlint, check-skill.sh, changelog-parity scripts) — those are author-claimed and unverified by me.

Findings: none. The SKILL.md addition accurately describes the collector's actual behavior (duplicate-URL set resets per finding, per the comment in collect-categories.sh's close_finding()), the new tests correctly isolate the per-finding fragment-collapse cross-contamination risk the prose calls out, and the new eval case's expectations line up with the skill text. No other plugin docs assert a "one call per finding" invariant that this change would leave stale.

claude-lane-summary: lane=claude-review sha=387ef131553feb1d6654b613eae552fe855cde44 run=38493205687

@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review has reviewed this pull request through 0682d1d; a later push is reviewed from there.

@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

claude-review has reviewed this pull request through 0682d1d; a later push is reviewed from there.

@claude

claude Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 18s —— View job


Review: feat/5944-batched-audit-research-seam (incremental)

  • Read .claude-lane/incremental.diff (scope: plugins/plugin-quality/skills/audit/SKILL.md only, since 387ef13)
  • Confirm gh pr diff context matches the incremental scope
  • Evaluate the change against review criteria
  • Post findings

Scope: this lane last reviewed 387ef13. The only change since then is a one-word spelling fix at plugins/plugin-quality/skills/audit/SKILL.md line 366: "neighbour" → "neighbor" (US spelling), matching commit 0682d1d's own message. No other line changed.

Findings: none. This is a trivial, non-semantic wording fix with no code, test, or behavior impact — nothing for this lane to flag.

claude-lane-summary: lane=claude-review sha=0682d1d45b84af311a3e104fd10391cb1a69c651 run=38493672617

@claude

claude Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 24s —— View job


Security review (/review:security-review)

  • Read incremental diff (.claude-lane/incremental.diff) — change to SKILL.md since 387ef13
  • Review for instruction-surface deletions/weakenings against the exception register
  • Report findings

Scope: incremental — only the diff since 387ef13 in plugins/plugin-quality/skills/audit/SKILL.md. All other files were reviewed at 387ef13 and are unchanged since.

Findings: none.

The only change is a one-word spelling fix, neighbour → neighbor (US spelling), in the Step 5 research-seam sentence that tells a batched research pass to confirm each corroborator's span supports its own finding's claim, not a neighbor's. No wording, guardrail, or instruction semantics changed — this is a pure spelling correction with no security surface.

claude-lane-summary: lane=claude-security-review sha=0682d1d45b84af311a3e104fd10391cb1a69c651 run=38493672446

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 14, 2026
Merged via the queue into main with commit c14ae82 Oct 14, 2026
27 checks passed
@kyle-sexton
kyle-sexton deleted the feat/5944-batched-audit-research-seam branch October 14, 2026 01:27
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.

feat(plugin-quality): document a batched form of the audit research seam

1 participant