Skip to content

feat(discipline): let four scanning correctors take several repositories via the target-scope contract - #17634

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-17243-44707007581-1
Nov 20, 2026
Merged

melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-17243-44707007581-1

Conversation

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor

Closes #17243

Summary

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

/discipline:point-dont-copy, recheck-against-upstream, follow-our-standards and reuse-or-replace now accept the target-scope forms (--repo, --repos-from, --owner, --fleet, --skip) and run once per repository. With no target form they behave as before. The loop changes they share live in one place: a new "Several repositories" section in plugins/discipline/context/re-anchor-audit-correct.md. Each repository's pass gets its input, source of truth and verification level from that repository, and drafted pull requests stay behind the opt-in for outward artifacts. Each SKILL.md cites the contract's plugin copy and states only what is specific to it. point-dont-copy gets cross-repository copies and coupling from /coupling:reduce dry-run, which makes no edits, branches or PRs but records its candidates in each repository's uncommitted coupling ledger. recheck-against-upstream runs its fan-out tier in each repository and keeps that repository's checkpoint and ledger there. follow-our-standards resolves standards in each repository. reuse-or-replace reports one concern solved two ways across repositories, within its Scope. Design choice: the shared delta went into the method doc, not four copies, following the docs-hygiene adopter's pattern (its context/clean-tree-fallback.md "Several repositories"). Eval coverage: every existing case for these four skills loads the changed SKILL.md and covers the no-target-form path (for example pdc-setup-guide-copies, rau-single-surface-inline, fos-standards-error-handling, ror-second-error-way). No case runs a target form.

Not verified

  • scripts/cross-plugin-source-registry.txt left unchanged: it already registers reference/target-scope.md and the cluster line docs/contracts/target-scope/README.md -> plugins/*/reference/target-scope.md, which cover the new copy
  • docs/skill-cheat-sheet.md edited by hand to match the generator's verbatim argument-hint rendering; node scripts/generate-cheatsheet.mjs cannot run in this lane (no interpreter). CI's cheat-sheet check confirms it
  • Tidy not run: the change spans more than one area (plugins/discipline, docs, scripts) and touches the shared path scripts/
  • No eval case exercises a target form. Existing cases load the changed SKILL.md files on the no-target-form path only
  • verify step skipped: the change is markdown and a registry line, with no build; no test suite was run here beyond what check-affected ran, and the suites are left to the PR's CI
  • CI-only checks (markdownlint, lychee, comment-lint, evals-quality, portability-lint and others check-affected lists as CI only) left to the PR's CI
  • Untracked dotfiles at the checkout root (.bashrc, .bash_profile, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) were not created by this run and are not part of the change; they look like sandbox mount placeholders and should be excluded from the patch

Fix

  • plugins/discipline/context/re-anchor-audit-correct.md: new "Several repositories" section giving the loop's per-repository delta (step 2 input and source of truth, verification level via CLAUDE_PROJECT_DIR=<root>, fresh per-repository subagents with a main-thread fallback, the…
  • plugins/discipline/skills/point-dont-copy/SKILL.md: argument-hint and Arguments line add [--repo <repo> ...]; new Several repositories section (per-repository corpus, cross-repository copies and coupling from /coupling:reduce dry-run, a not-measured line when that skill is absent, diverged…
  • plugins/discipline/skills/recheck-against-upstream/SKILL.md: argument-hint adds [--repo <repo> ...]; new Several repositories section (fan-out tier per repository unless the scope narrows it, the fork/batch rule applied to the whole run, the pinned version, checkpoint, ledger and work-item…
  • plugins/discipline/skills/follow-our-standards/SKILL.md: argument-hint [--repo <repo> ...]; new Several repositories section (standards source and index resolved inside each repository, citations taken from that repository's own source)
  • plugins/discipline/skills/reuse-or-replace/SKILL.md: argument-hint [--repo <repo> ...]; new Several repositories section (per-repository audit and concern-to-way list, a cross-repository second-way finding limited to the skill's Scope, paved-path writes still per repository behind the ask)
  • plugins/discipline/reference/target-scope.md: new generated copy of docs/contracts/target-scope/README.md
  • scripts/shared-copies.txt: registered the discipline copy at its alphabetical place
  • docs/contracts/target-scope/adopters/discipline.md: new adopter table listing the four skills
  • docs/skill-cheat-sheet.md: argument-hint column updated for the four rows
  • .changes/discipline/work-resolve-issue-issue-17243-44707007581-1-0532a00a.md: minor changelog fragment

Verification

The runner ran each check from the base copy against 1a2dc25:

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

The run reports:

  • sync-shared-copies (generate): generated plugins/discipline/reference/target-scope.md, exit 0
  • sync-shared-copies --check: all 995 registered copies match their canonical sources, exit 0
  • check-changelog-fragments: all 4 fragments valid
  • check-changed-skills: 4 skills checked, 0 failed (warnings only: description length, body growth, an unchanged numbered list without completion signals, reuse-or-replace body 192 lines above the 160 guide)
  • check-affected: 14 passed, 9 skipped (tools missing or CI-only), 0 failed
  • fresh-context review subagent over the whole diff: 9 findings; all confirmed findings fixed (/coupling:reduce dry-run checked against plugins/coupling/skills/reduce/SKILL.md:65; main-thread fallback and CLAUDE_PROJECT_DIR pattern checked against plugins/codebase-health/skills/audit/SKILL.md:184-195)
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44707007581

Left out: the items under Not verified.

Related

#17243

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 handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44711391160

Failed GitHub API calls

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

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 49c35a6fd5cf6c5f6b031b260030c5ffa4d26a88: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review (incremental, blocking only): no security issues found

Scope. This review covers only the change since 1a2dc2571d1c34f15f1206de911c6d7ef982baf7: one hunk in plugins/discipline/skills/point-dont-copy/SKILL.md (lines 110-119). I read every line of it.

What changed. The skill no longer calls /coupling:reduce dry-run "read-only". It now says the dry run makes no edits, branches or pull requests, and that it records its candidates in each repository's .work/coupling/coupling-ledger.md, which is never committed. This brings the text in line with what the dry run actually does.

What I checked:

  • Trusted paths and trust controls. The changed file matches no TRUSTED PATHS glob. The change touches no trusted-actor list, token request, kill switch, merge hold or workflow.
  • Instruction surface. The edit removes no rule and narrows nothing. The text still bars edits, branches and pull requests. It now names one local write that stays uncommitted, so no outward artifact or committed change becomes reachable.
  • Plugin manifests. No plugin.json or marketplace.json changed, so there is no manifest block.
  • Prior findings. The lane's only earlier post was a summary with 0 findings, so nothing carries forward.
  • PR context. It contains no text aimed at this lane.

This review was blocking only (blocking only: yes): it would have reported only CRITICAL and IMPORTANT findings, and there were none. Spend: nothing beyond this review run.

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 1a2dc2571d1c34f15f1206de911c6d7ef982baf7; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 49c35a6fd5cf6c5f6b031b260030c5ffa4d26a88: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Code review (incremental): PR #17634, 1a2dc25 → 49c35a6

This was a blocking-only review: the lane already reviewed head 1a2dc2571d1c34f15f1206de911c6d7ef982baf7, so only blocking findings were in scope.

The push changes one file, plugins/discipline/skills/point-dont-copy/SKILL.md, lines 113-116. The diff file was the only source I read. The change fixes the earlier inline finding:

  • "Read-only" is gone. The line no longer calls /coupling:reduce dry-run read-only. It now says the run makes no edits, branches or PRs, and that it records its candidates in each repository's coupling ledger, .work/coupling/coupling-ledger.md, which is never committed.
  • The new wording matches the reduce skill. I checked it against plugins/coupling/skills/reduce/SKILL.md, which covers:
    • the ledger path, .work/coupling/coupling-ledger.md
    • "never committed"
    • one ledger per repository

One small nuance, not blocking: in the reduce skill, .work/ is only the default, and a repository's instructions can declare a different working-docs root. Also, the first write can create a .gitignore in that memory root.

No new findings. The rest of the pull request is unchanged since the last review. The summary finding from that round still stands: no eval case or check runs a target form for Done-when items 1 and 3 of #17243. It was advisory, so this blocking-only round does not restate it.

No change in this push spends credits or billing.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head 1a2dc2571d1c34f15f1206de911c6d7ef982baf7, the head its arming checks judged. The arm fails if the head moves first.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=1a2dc2571d1c34f15f1206de911c6d7ef982baf7 rubric=10.4.3 rater=claude-opus-5-5 checker=claude-opus-5-5

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

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

Failed GitHub API calls

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

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM657LqJ
@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 49c35a6
Run 44713011429

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 49c35a6.

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

Failed GitHub API calls

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

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 20, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 20, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head 49c35a6fd5cf6c5f6b031b260030c5ffa4d26a88, the head its arming checks judged. The arm fails if the head moves first.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=49c35a6fd5cf6c5f6b031b260030c5ffa4d26a88 rubric=10.4.3 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 20, 2026
Merged via the queue into main with commit 82ad454 Nov 20, 2026
72 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-17243-44707007581-1 branch November 20, 2026 10:30
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 82ad454cbb9c2373477d0ded8336a7c3afe2eef7; 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(discipline): let the scanning correctors take several repositories via the target-scope contract

0 participants