Skip to content

feat(bugs): run bugs:scan across several repositories via the target-scope contract - #17418

Merged
melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-17236-44482908443-1
Nov 19, 2026
Merged

melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-17236-44482908443-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #17236

Summary

Opened by the work-resolve-issue lane. The run's own summary:

/bugs:scan now accepts the target-scope contract's forms (--repo, --repos-from, --owner, --fleet, --skip, or the same request in words) and runs Steps 1 to 7 once per repository with the root anchored. It cites the contract's Target forms, Resolving repositories, Fan-out and Merging findings sections and states only what differs for the scan. Config is per repository: lanes, filing_posture, the verification level and the consumer gotchas. State is per repository too: reports live under plugin data and are matched by project-root. The cursor ladder, --lane and targeted modes, --track filing (once, in the owning repository) and Step 7's local-fix route all stay per repository. Hunting and gating stay in separate contexts even when nested spawning is off. With no target form, the scan runs exactly as before. The plugin ships a generated reference/target-scope.md, and the contract's Adopters table lists /bugs:scan. Eval case: plugins/bugs/evals/sc-planted-bug-dry-run loads the changed SKILL.md on a single-repository targeted run, so it exercises the unchanged default path. No eval case exercises the new multi-repository section.

Not verified

  • docs/skill-cheat-sheet.md was edited by hand, not regenerated with node scripts/generate-cheatsheet.mjs, because the lane cannot run node. The reviewer compared the row with the generator's codeCell escaping; CI's drift check confirms it
  • tidy skipped: the change is 15 files across several areas and touches scripts/shared-copies.txt, which is over the tidy cutoffs (10 files, 1 area, no scripts/ paths)
  • check-affected skipped typos (not installed), comment-hygiene (fetch failed), size-check (script missing) and the validate-plugins steps that run checked-tree code; these are left to the PR's CI
  • no eval case exercises the new multi-repository section; sc-planted-bug-dry-run covers only the unchanged single-repository path. Eval runs are left to CI
  • the untracked dotfiles in the checkout root (.bashrc, .bash_profile, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) come from the runner environment, not this change, and are not part of it

Fix

  • plugins/bugs/skills/scan/SKILL.md: argument-hint adds [--repo <repo> ...]; Modes table row for the target forms; new 'Over several repositories' section citing the contract and stating per-repository config, state, modes, hunter/gate separation, and filing and fixing
  • plugins/bugs/README.md: usage line and flag table list the target forms
  • docs/contracts/target-scope/README.md: Adopters table lists /bugs:scan
  • plugins/bugs/reference/target-scope.md: new generated copy of the contract (sync-shared-copies.sh)
  • plugins/architecture/reference/target-scope.md, plugins/coupling/reference/target-scope.md, plugins/docs-naming/reference/target-scope.md, plugins/improvement/reference/target-scope.md: regenerated copies carrying the new Adopters row
  • scripts/shared-copies.txt: registers plugins/bugs/reference/target-scope.md (scripts/cross-plugin-source-registry.txt already covers it through its reference/target-scope.md glob line)
  • docs/skill-cheat-sheet.md: /bugs:scan argument-hint cell updated by hand to match what generate-cheatsheet.mjs renders
  • .changes/bugs/work-resolve-issue-issue-17236-44482908443-1-07930005.md: minor fragment for the new multi-repository scan and shipped copy
  • .changes/{architecture,coupling,docs-naming,improvement}/work-resolve-issue-issue-17236-44482908443-1-*.md: patch fragments for the regenerated contract copies

Verification

The runner ran each check from the base copy against dbf8b5c:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • sync-shared-copies: regenerated 5 target-scope copies; --check reported all 970 registered copies match their canonical sources
  • check-changelog-fragments: all 25 fragments valid
  • check-changed-skills: plugins/bugs/skills/scan PASS, 0 errors, 5 warnings (description length, body size and growth, and pre-existing numbered procedures without done-conditions)
  • check-affected: 14 passed, 9 skipped over 15 changed files
  • fresh-context review subagent over the diff: 2 medium findings (report directory/cursor not truly per repository; verification level and gotchas read from the invoking repository) and 5 low ones (Step 7 local-fix route, no-spawn fallback scope, restated contract text, stale plugin README,…
  • read https: //code.claude.com/docs/en/sub-agents: by default a subagent can spawn subagents up to three layers below the main conversation, and CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH=1 turns nesting off. This is the basis for the main-thread fallback when a per-repository subagent cannot spawn…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44482908443

Left out: the items under Not verified.

Related

#17236

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44485498894

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head dbf8b5c3e07c528984545fc1c9633e15c572534b. No person needs to act: a lane clears this reason, and the next scheduled run judges it again.

a pr-unblock lane stopped its head (pr-unblock/conflict is failure), which clears when the lane runs
  again

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/resolve-conflicts
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44490775374

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-conflict-patch
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44490775374

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped resolve-conflicts on this pull request: the lane could not resolve every conflict. The lane sets no label: the run ends in a failing pr-unblock/conflict status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=17418 -f activity=resolve-conflicts

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/report-escalation
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44490775374

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/resolve-conflicts
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44503928581

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-conflict-patch
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44503928581

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/report-escalation
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44503928581

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

kyle-sexton and others added 2 commits November 19, 2026 09:57
Main (#17398) moved the target-scope Adopters table into
docs/contracts/target-scope/adopters.md. The bugs:scan row lands there;
the README and every plugin copy take main's text, the bugs copy is
regenerated to match, and the four fragments that announced the other
plugins' copy edits are dropped since those copies no longer change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KeBVgbERyakZ33T4AetfRj
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: no security issues found

This review covered only blocking findings: the lane already reviewed an earlier head (1be35050), so I would have reported only CRITICAL and IMPORTANT findings. There are none of either.

I read every hunk of all 7 changed files in .claude-lane/pr.diff. The pull request adds a multi-repository mode to /bugs:scan (--repo, --repos-from, --owner, --fleet, --skip) that follows the target-scope contract. It also:

  • adds a generated copy of that contract at plugins/bugs/reference/target-scope.md
  • registers the copy in scripts/shared-copies.txt
  • updates the adopters table, the plugin README, the cheat sheet and a changelog fragment

What I checked:

  • Trusted paths and trust controls. No changed file matches a trusted-path glob. The trusted-actor list, lane token, kill switch, token broker and merge holds are all unchanged.
  • Plugin manifests. Neither plugin.json nor marketplace.json changed, so there are no manifest lines.
  • Instruction surface. The plugins/bugs/skills/scan/SKILL.md change only adds rules; it removes or softens nothing.
    • The unattended guarantee still covers every repository's pass, because each pass runs Steps 1 to 7 in full. The guarantee is that no scanned code runs and every survivor is verified-by-reading.
    • Hunting and gating still run in separate contexts.
    • Step 7's local-fix route still applies only to this checkout. A finding in another repository is filed instead.
  • Config read from other repositories. Each repository's own config is read with CLAUDE_PROJECT_DIR=<root>: lanes, filing_posture, the verification level and the consumer gotchas.
    • This only applies to local clones the operator names. The contract never clones during a run.
    • None of those values can make scanned code run, and the pass writes nothing unless --track is given.
    • Under the owner threat model, I found no path to a leaked credential, an install surface or a billed resource.
  • Embedded text. The PR context has no embedded directives.

Spend: a multi-repository run starts one subagent per repository. That draws only on prepaid or subscription usage, so it is not a hold.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 9e437cd6ccfee3b8dabb721f305c9886d1228de5: read 7 of 7 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #17418, /bugs:scan across several repositories (blocking only)

This lane already reviewed an earlier head (1be3505), so this review reports only blocking findings. The new head merges main into the branch. All 7 changed files are the same ones as before, and I read every hunk of each.

I found no blocking problem.

What I checked again against the source at this head, by reading only (I ran nothing):

  • Shipped copy matches its source. plugins/bugs/reference/target-scope.md is identical to docs/contracts/target-scope/README.md apart from the generated header. The merge from main did not make them drift.
  • The new section's references are real. "Over several repositories" names rung 2, the Step 3 seed, the Step 5 duplicate scan, the .bug-reports/ fallback and <project-slug>. Each one exists in the skill: the cursor ladder and the Step 5 persistence order.
  • Registered in the copy list and adopter table. The scripts/shared-copies.txt entry and the adopters.md row are present.

Closing issue #17236: the earlier review found the criteria met. One exception remains: the cheat-sheet row was edited by hand rather than regenerated with node scripts/generate-cheatsheet.mjs. The author says so, and CI's drift check decides whether the row matches. I did not confirm it. The earlier summary also noted, as advisory, that no test covers the multi-repository path. This is a blocking-only review, so that advisory is not restated or counted here.

PR body is out of date (note, not a finding): the "Fix" section still lists regenerated copies in four other plugins, their patch fragments, and a README.md Adopters edit. None of these are in the diff.

Loosened checks: the prompt gave no loosened_check_verdict: or loosened_check_patterns: lines, so I used fail with no consumer entries. The prompt also gave no decision-record line, so the citation requirement was not checked. The diff changes only Markdown and a copy list, and loosens no check. Loosened-check verdict: none found.

Spend: none. The change is documentation and skill text only.

No plugin manifest changed. The fragment's bump: minor fits a new capability.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=9e437cd6ccfee3b8dabb721f305c9886d1228de5 rubric=10.4.0 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit 14bbe83 Nov 19, 2026
53 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-17236-44482908443-1 branch November 19, 2026 16:13
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(bugs): run the bug scan across several repositories via the target-scope contract

1 participant