Skip to content

feat(work-items): run scan-todos across several repositories via target-scope - #17358

Merged
melodic-automation-lanes[bot] merged 7 commits into
mainfrom
work-resolve-issue/issue-17242-44443483369-1
Nov 19, 2026
Merged

melodic-automation-lanes[bot] merged 7 commits into
mainfrom
work-resolve-issue/issue-17242-44443483369-1

Conversation

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor

Closes #17242

Summary

/work-items:scan-todos accepts the target-scope contract's forms (--repo, --repos-from, --owner, --fleet, --skip, or the same request in words). A new "Several repositories" section in SKILL.md cites the contract's sections by name instead of restating them. Each repository's subagent runs Scan and Group, and the parent ranks every group in one table. Resolved markers are fixed in a worktree of their own repository, and significant ones are filed with /work-items:track add --repo, a new flag on track add. A run with no target form behaves as before. The skill adds no per-repository state beyond what the contract says.

The work-resolve-issue lane opened this from work-resolve-issue/issue-17242-44443483369-1; a session rewrote this body to answer the pr-verify fail-note on ade6cf4e, and merged main to give the verifier a new head.

Fix

  • plugins/work-items/skills/scan-todos/SKILL.md: argument-hint gains [--repo <repo> ...]; new target-form bullet and a "Several repositories" section citing the contract (fan-out, origin/HEAD grep, merged table, per-repo worktree, per-repo filing)
  • plugins/work-items/skills/track/actions/add.md: new --repo <owner>/<name> flag, passed through to create-item; duplicate and label checks read that repository
  • plugins/work-items/reference/target-scope.md: new generated copy of the target-scope contract
  • scripts/shared-copies.txt: registers the work-items copy of the contract
  • docs/contracts/target-scope/README.md: Adopters table lists /work-items:scan-todos
  • 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 with the new adopter row
  • docs/skill-cheat-sheet.md: scan-todos argument hint updated
  • .changes/work-items: minor changelog fragment for the multi-repo scan, track add --repo and the shipped copy
  • .changes/architecture, .changes/coupling, .changes/docs-naming, .changes/improvement: patch fragments for the updated contract copies

Registration in scripts/cross-plugin-source-registry.txt needs no new line. That file lists one path relative to each plugin's root, and it already carries reference/target-scope.md (line 58) and the cluster line docs/contracts/target-scope/README.md -> plugins/*/reference/target-scope.md (line 62), which cover plugins/work-items/reference/target-scope.md. A plugins/work-items/... line would break the file's per-plugin format.

Files the branch changes, from the compare listing:

  • .changes/architecture/work-resolve-issue-issue-17242-44443483369-1-92e474e2.md
  • .changes/coupling/work-resolve-issue-issue-17242-44443483369-1-367c2f8f.md
  • .changes/docs-naming/work-resolve-issue-issue-17242-44443483369-1-50157dcd.md
  • .changes/improvement/work-resolve-issue-issue-17242-44443483369-1-0477b612.md
  • .changes/work-items/work-resolve-issue-issue-17242-44443483369-1-45a3a995.md
  • docs/contracts/target-scope/README.md
  • docs/skill-cheat-sheet.md
  • 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
  • plugins/work-items/reference/target-scope.md
  • plugins/work-items/skills/scan-todos/SKILL.md
  • plugins/work-items/skills/track/actions/add.md
  • scripts/shared-copies.txt

Verification

Run in the branch's worktree at ade6cf4e:

  • scripts/sync-shared-copies.sh --check: "All 970 registered copies match their canonical sources."
  • scripts/check-cross-plugin-source-drift.sh --check: "No unregistered or drifted cross-plugin source clusters found."

The lane runner earlier ran scripts/check-changelog-fragments.sh --check and scripts/check-changed-skills.sh --merge-base from the base copy: both passed. Its leak scan found nothing credential-shaped.

Eval cases whose runs read the changed text (none was run for this PR):

  • plugins/work-items/evals/st-work-auto-selects-smallest-group, st-no-group-selected-no-edit and st-skips-citation-and-task-list invoke /work-items:scan-todos, which loads the changed SKILL.md. Each runs with no target form, so it covers the unchanged single-repository path.
  • plugins/work-items/evals/tk-add-native-issue-type invokes /work-items:track add, which loads the changed add.md, without --repo.

No case exercises a target form or track add --repo.

Related

#17242, #17228

🤖 Generated with Claude Code

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 44449544547

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 31ba21b15c0abc130fb20c9c79082806023e2344. No person needs to act: a lane clears this reason, and the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:earlier-fail)

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: no findings

I read every hunk of all 7 listed files. None of them matches a trusted-path glob. This lane already reviewed an earlier head (blocking only: yes), so this review reports only CRITICAL and IMPORTANT findings. It found none.

What changed: the PR changes skill and contract prose only.

  • /work-items:scan-todos accepts the target-scope forms (--repo, --repos-from, --owner, --fleet, --skip) to scan several repositories.
  • /work-items:track add gains --repo <owner>/<name> and passes it to create-item as one single-quoted argument.
  • The PR also:
    • adds a generated copy of the contract at plugins/work-items/reference/target-scope.md and registers it in scripts/shared-copies.txt;
    • adds a row to docs/contracts/target-scope/adopters.md;
    • updates the hint in the cheat sheet;
    • adds a changelog fragment.

At this head, the adopters table lives in its own file, so the shipped copy no longer carries it.

What I checked:

  • Instruction surface: the PR removes, narrows or softens no standing instruction. With no target form, the skill still scans only the current repository. The new section only adds a multi-repository mode.
  • Reads and writes across repositories: a multi-repository run reads other repositories at origin/HEAD, including their AGENTS.md. It writes in a worktree of each group's own repository and files items in that repository's tracker. This follows the existing target-scope contract, which four other plugins already use. Only the user starts such a run, in their own session, over repositories they name or local clones they already have. No credentialed CI lane gets new untrusted input from it.
  • --repo pass-through: the value comes from the user's arguments or from the origin owner/name of a local clone. GitHub owner and repository names cannot contain a quote character, so the single-quoted argument cannot be broken out of. I found no injection path.
  • Trust controls: the diff does not touch:
    • the trusted-actor list;
    • any token request or the token broker;
    • the kill switch;
    • any merge hold;
    • any workflow.
  • Plugin manifests: the PR changes no plugin.json or marketplace.json.
  • Settled threads and prior findings: the settled threads are about out-of-date copies, a missing changelog fragment and the registry. None of them is a security point, and this review raises none again. The only prior post from this lane is a summary with no findings, so nothing carries over.
  • PR context: I found no embedded text trying to steer the review.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 77c06e1a414ac817412cd585ae7a694e09366afb; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: scan-todos across several repositories (#17358)

This lane has reviewed earlier heads of this PR, so this pass reports blocking findings only. I read every hunk of all 7 files in the full diff. The new head 31ba21b1 merges main into the branch. The PR's own changes match what the last clean review read at 07a7d6f6.

No blocking findings.

Checked against #17242's "Done when" list:

  • argument-hint: [--repo <repo> ...] appears in plugins/work-items/skills/scan-todos/SKILL.md:3 and in docs/skill-cheat-sheet.md.
  • Default run: a run with no target form behaves as before. The new flag bullet and the "Several repositories" section apply only when a target form is given.
  • Per-repository state: the change adds none. Writes follow the contract's "Writes stay per repository" section.
  • Shipped copy: plugins/work-items/reference/target-scope.md matches docs/contracts/target-scope/README.md at this head line for line below its 3-line generated header. I compared the two files by reading them. The copy is registered in scripts/shared-copies.txt. The author says scripts/cross-plugin-source-registry.txt already covers it through its cluster line. That is unverified: I did not open that file.
  • Adopters table: the PR adds the /work-items:scan-todos row to docs/contracts/target-scope/adopters.md.
  • Changelog: there is a bump: minor fragment under .changes/work-items/. That level fits a change that only adds features.
  • Eval cases: the PR body names the eval cases that load the changed text, and says none of them uses a target form or track add --repo.

Settled threads: the copy-drift thread and the missing docs-naming fragment thread were both resolved at ade6cf4e. Main has since moved the Adopters table into adopters.md, so adding an adopter no longer changes any shipped copy. I did not raise either point again.

Lane notes

  • I ran nothing myself. The sync-shared-copies.sh --check and check-cross-plugin-source-drift.sh --check results in the PR body come from the author and are unverified.
  • The PR body, the closing issue and the settled threads contain no text that tries to steer this review.
  • Loosened-check verdict: fail. This is the default, because the prompt has no loosened_check_verdict: or loosened_check_patterns: lines; patterns: 0. The prompt also has no decision-record line, so the citation requirement was not checked. The change does not loosen any check.
  • No plugin manifest changes in this diff.
  • Spend: none beyond this review run.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44462385774

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-feedback-patch
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed a9bdd56
Run 44462385774

Failed GitHub API calls

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on a9bdd56.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44462385774

Failed GitHub API calls

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

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on a9bdd56235fb55554b60e20d07621a488dbf1b99; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44463863390

Failed GitHub API calls

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 2 of max 4 on a9bdd56.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44463863390

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/fix-ci
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44468224441

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-patch
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed ade6cf4
Run 44468224441

Failed GitHub API calls

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

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 19, 2026
@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped address-feedback on this pull request: the lane left a pr-verify note open (uncertain, deferred or answered incorrect, or still open after the round cap and one fresh fixer round); pr-verify judges the next head afresh. The lane sets no label: the run ends in a failing pr-unblock/address-feedback 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=17358 -f activity=address-feedback

@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 44469740947

Failed GitHub API calls

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

@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 19, 2026
@kyle-sexton

Copy link
Copy Markdown
Member

A session is reworking this PR: the fix-ci lane already added the .changes/docs-naming/ patch fragment at ade6cf4, and the session is settling the two review threads the address-feedback lane left open (both fixed at this head). The session set the do-not-merge label for the rework and removes it when done.

@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44479125176

Failed GitHub API calls

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 3 of max 4 on 26dfcdd.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

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

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@melodic-automation-lanes melodic-automation-lanes Bot removed the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 19, 2026
@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 44503197843

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 44503197843

Failed GitHub API calls

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

@melodic-automation-lanes

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=17358 -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 44503197843

Failed GitHub API calls

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

Main (#17398) moved the target-scope Adopters table into
docs/contracts/target-scope/adopters.md. The scan-todos row lands there;
the README and every plugin copy take main's text, the work-items 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

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44546940497

Failed GitHub API calls

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 4 of max 4 on 07a7d6f.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44546940497

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 44546940497

Failed GitHub API calls

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=07a7d6f6addeb4e912b30875bb86f7dc773dcd33 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
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 19, 2026
@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 44563688355

Failed GitHub API calls

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

Lane-Activity: pr-unblock/resolve-conflicts
@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 31ba21b
Run 44563688355

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 44566834851

Failed GitHub API calls

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=31ba21b15c0abc130fb20c9c79082806023e2344 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 bd36095 Nov 19, 2026
58 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-17242-44443483369-1 branch November 19, 2026 17:32
kyle-sexton added a commit that referenced this pull request Nov 19, 2026
Move the /work-items:scan-todos row from #17358 into its own
adopters/work-items.md, keep the target-scope registry lines sorted, and
add the work-items fragment for its regenerated copy.

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

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit bd36095c407de3bf4c9af31d933ba5c65afdf948; 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.

feat(work-items): run scan-todos across several repositories via the target-scope contract

1 participant