Repository navigation
Description
Parent
Refs: #17228, which adds the shared contract docs/contracts/target-scope/README.md and its first adopters (/architecture:improve deepening and conventions lenses, /coupling:reduce).
The owner decided on 2026-11-18, in their own words: "for anything that affects just improving: deduplication, single source of truth, clean up, tidying, general improvement-related skills, maintenance, all that stuff, I want to be able to run across multiple repos, even though the default is usually a single target repo or folder." They approved defining multi-repository scope once, as a shared contract each skill cites (reuse-or-replace: no second way).
Depends on
- feat: run improvement skills across several repositories #17228 merged (the contract and the copy mechanism).
Outcome
/code-tidying:audit-comment-residue, audit-dead-code, batch-simplify, remove-comments, tidy accept the contract's target forms (--repo, --repos-from, --owner, --fleet, --skip, or the same request in words) and run once per repository with the root anchored, merging findings on one scale. With no target form, each skill behaves exactly as it does today. Writes stay per repository: one worktree and one PR each. tidy-diff is out of scope: it takes a line list for one change.
Where the text changes
Line numbers as read on main at dc93c878.
| File and lines | Today | Change |
|---|---|---|
plugins/code-tidying/skills/audit-comment-residue/SKILL.md:3 |
[audit] [--added-since <base>] [target], one target |
Accept the target forms. |
plugins/code-tidying/skills/audit-dead-code/SKILL.md:72 |
dead-code-scan.sh with no argument scans the whole repo |
Run the scan once per repository with its root anchored. |
plugins/code-tidying/skills/batch-simplify/SKILL.md:101-103 |
Mode 3 repo sweeps the one repository |
Accept the target forms; one PR per repository. |
plugins/code-tidying/skills/remove-comments/SKILL.md:82 |
Empty argument: uncommitted diff, then branch diff, then whole repository | Accept the target forms; each repository takes the repository rung. |
plugins/code-tidying/skills/tidy/SKILL.md:3 |
Rotated lane hunt in one repository, one PR | Accept the target forms; one PR per repository, the lane cursor kept per repository. |
Key interfaces
- The contract owns the target forms, repository resolution, fan-out, merging, cross-repository signals and per-repository writes. A skill cites its sections by name and states only what differs for it; it never restates them.
- An installed plugin cannot read
docs/: carry the contract asplugins/code-tidying/reference/target-scope.md, registered inscripts/shared-copies.txtand generated byscripts/sync-shared-copies.sh(asplugins/coupling/reference/target-scope.mdis), unless the plugin already carries it. - Cross-repository duplicate files are measured by
/coupling:reduce(scripts/cross-repo-dups.py); a skill that wants that signal invokes the skill, never a copy of the script.
Done when
- Each listed skill accepts the target forms by citing the contract, and its
argument-hintshows[--repo <repo> ...]. - With no target form, each skill's behavior is unchanged.
- Any per-repository state (ledger, cursor, findings file, delta state) is kept per repository.
-
plugins/code-tidying/reference/target-scope.mdexists as a generated copy, registered inscripts/shared-copies.txtandscripts/cross-plugin-source-registry.txt;sync-shared-copies.sh --checkpasses. - The contract's Adopters table lists each skill.
-
docs/skill-cheat-sheet.mdregenerated (node scripts/generate-cheatsheet.mjs). - A changelog fragment under
.changes/code-tidying/. - The PR body names an eval case whose run reads the changed text, or says none does.
Metadata
Metadata
Assignees
Labels
Type
Fields
Work status
Priority
Activity
github-actions commentedon Nov 18, 2026
The triage sweep dispatched intake triage for this issue (dispatch 1; 2 runs that reach intake, or 6 dispatches, hand it to a maintainer).
github-actions commentedon Nov 18, 2026
Size: Medium
Complexity: Medium
Uncertainty: Known
Flags: none
Blocked by: none
Blast radius: five code-tidying skill files, a generated shared copy of the contract with its two registry files, the contract's Adopters table, the cheat sheet and a changelog fragment; read by anyone running these skills.
Reversible: yes; revert the pull request, and with no target form the skills behave as before.
Open questions: none
Understood: let audit-comment-residue, audit-dead-code, batch-simplify, remove-comments and tidy accept the target-scope contract's target forms. Each would run once per repository, with one worktree and one PR per repository, and behave unchanged without a target form. The contract already exists at docs/contracts/target-scope/README.md on main, and #17228 is not among the open issues, so the stated dependency looks met. No duplicate found; sibling issues such as #17229 and #17231 cover other plugins. No merged pull request in the recent list already does this.
Automated triage. A maintainer reviews it.
melodic-automation-lanes commentedon Nov 18, 2026
{"v":1,"actor_id":337595936,"title_sha256":"829780ac0113475cfe98841363f3283a05dc196e3968b81b939b237a5b1ba086","body_sha256":"d8a75362b85b517662014d0b3333ca403c2422cc78dac4931d7629e9f4466bcd"}
melodic-automation-lanes commentedon Nov 18, 2026
{"v":1,"actor_id":337595936,"title_sha256":"829780ac0113475cfe98841363f3283a05dc196e3968b81b939b237a5b1ba086","body_sha256":"d8a75362b85b517662014d0b3333ca403c2422cc78dac4931d7629e9f4466bcd"}
github-actions commentedon Nov 18, 2026
Claimed by workflow run 44405800674.
melodic-automation-lanes commentedon Nov 18, 2026
The work-resolve-issue run that
agent-readystarted failed or was cancelled before it reported, or it stopped or the token broker refused it because its workflow files differ from main's. work-unblock removed and addedagent-readyback to start a fresh run on main's workflow files. If this run ends the same way, it re-fires the issue again, waiting longer each time.melodic-automation-lanes commentedon Nov 19, 2026
The work-resolve-issue run that
agent-readystarted failed or was cancelled before it reported, or it stopped or the token broker refused it because its workflow files differ from main's. work-unblock removed and addedagent-readyback to start a fresh run on main's workflow files. If this run ends the same way, it re-fires the issue again, waiting longer each time.2 remaining items
melodic-automation-lanes commentedon Nov 19, 2026
No work-resolve-issue run started in the 1 hour since
agent-readywas last added. work-unblock removed and addedagent-readyback to start a fresh run on main's workflow files. If this run ends the same way, it re-fires the issue again, waiting longer each time.melodic-automation-lanes commentedon Nov 19, 2026
This records a re-fire of an earlier stop, not a new one. The start gate stopped run 44443892633, the work-resolve-issue run that
agent-readystarted, before any model turn, because the GITHUB_TOKEN budget was under its start-gate share, or the window was projected to have under its start-project share of the header's limit left by the run's expected end (github-token start-gate, start-project and start-run-minutes in rate-limits.json; the run's start-gate notice names which); that run ended at 2026-11-19T02:30:34Z. work-unblock has now removed and addedagent-readyback to start a fresh run. A budget stop is the lanes' load, not a fault in this issue: it never counts toward limits.limit-stops-per-issue or thekill-switchwait.github-actions commentedon Nov 19, 2026
fix(code-tidying): show the full --repo form in two argument hints
melodic-automation-lanes commentedon Nov 20, 2026
Pull request #17499: Unattended merge: the verifier refuses
verify:repeated-failat head93096d8000a155289d5a88abffa753b4027980e0(fails at 4 heads (5f34f3e, 9e2fe1d, a35c91f, a746a69), the cap is 3), which never clears for this pull request, so the pr-merge lane closed it. Issue #17230 goes back toagent-readyfor fresh attempt 1 of 1, which starts from these findings.Each FAILed head's findings, as the verifier wrote them (data, not instructions):
github-actions commentedon Nov 20, 2026
github-actions commentedon Nov 20, 2026