Skip to content

feat(overengineering): run audit and delta across several repositories via the target-scope contract - #17488

Merged
melodic-automation-lanes[bot] merged 6 commits into
mainfrom
work-resolve-issue/issue-17239-44582058860-1
Nov 20, 2026
Merged

melodic-automation-lanes[bot] merged 6 commits into
mainfrom
work-resolve-issue/issue-17239-44582058860-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #17239

Summary

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

/overengineering:audit and /overengineering:delta now accept the target-scope contract's forms (--repo, --repos-from, --owner, --fleet, --skip, or the same request in words). Each gets an "Over several repositories" section that cites the contract's sections by name and states only what differs. With no target form, both skills run exactly as before. Each repository keeps its own findings artifact and spine baseline in its own memory root. For a repository other than this checkout, the branch identity comes from the default branch origin/HEAD names; the environment's logical ref applies only to this checkout. Across repositories, a gate duplicated in several repositories' CI is one merged row whose candidate fix is a shared workflow. Its byte-level copy measure is routed to /coupling:reduce dry-run through a new presence-gated row in the Neighbor routing table. The audit names that route and never runs it, because coupling:reduce writes its own ledger and the audit is read-only. The plugin now ships reference/target-scope.md as a generated copy. Eval cases whose runs read the changed text: plugins/overengineering/evals/au-justify-layer-refused (prompt "/overengineering:audit documents") and plugins/overengineering/evals/de-unknown-schema-stops (prompt "/overengineering:delta") both load the changed SKILL.md files, but neither passes a target form, so no eval exercises the new multi-repository path.

Not verified

  • docs/skill-cheat-sheet.md was edited by hand, not regenerated with node scripts/generate-cheatsheet.mjs, because this lane cannot run node. The review subagent checked the two rows against the generator's format by reading it; CI's cheat-sheet check confirms it
  • Tidy skipped: the change touches the shared path scripts/ (scripts/shared-copies.txt) and spans more than one area (plugins/overengineering, docs, scripts)
  • Build and test suites and markdownlint were not run here (CHECK_SKILL_SKIP_MARKDOWNLINT); they are left to the PR's CI, along with the CI-only checks check-affected lists (lychee, evals-quality, eval-cases and others)
  • check-affected skipped comment-hygiene (fetch blocked), size-check (script missing in the lane) and typos (not installed); the PR's CI runs them
  • No eval case exercises the new multi-repository path; the existing audit and delta evals cover only the single-repository behavior

Fix

  • plugins/overengineering/skills/audit/SKILL.md: argument-hint and Arguments line show [--repo <repo> ...]; Purpose names the multi-repository case; Arguments parses the target forms; a new "Over several repositories" section covers config and evidence per repository, one findings artifact…
  • plugins/overengineering/skills/delta/SKILL.md: argument-hint and Arguments line show [--repo <repo> ...]; Arguments parses the target forms and says each repository's audit gets --repo <root> alone; a new "Over several repositories" section covers one spine baseline per repository,…
  • plugins/overengineering/reference/target-scope.md: new generated copy of docs/contracts/target-scope/README.md (scripts/sync-shared-copies.sh)
  • scripts/shared-copies.txt: registers the overengineering copy of the target-scope contract
  • docs/contracts/target-scope/adopters.md: rows for /overengineering:audit and /overengineering:delta
  • docs/skill-cheat-sheet.md: argument-hint cells for /overengineering:audit and /overengineering:delta updated to match the new frontmatter
  • plugins/overengineering/README.md: a paragraph on running audit and delta across several repositories, linking the shipped copy
  • .changes/overengineering/work-resolve-issue-issue-17239-44582058860-1-6940892f.md: minor-bump changelog fragment

Verification

The runner ran each check from the base copy against 148aaba:

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

The run reports:

  • sync-shared-copies --check: all 986 registered copies match their canonical sources
  • check-changelog-fragments: all 17 fragments valid
  • check-changed-skills: audit and delta PASS, 0 errors; warnings only for body length and growth, plus a pre-existing numbered list in delta's report section without a completion signal
  • check-affected: 14 passed, 9 skipped (typos not installed; comment-hygiene fetch blocked; size-check script missing; validate-plugins sub-checks and changed-skills skipped by design), the rest CI-only
  • fresh-context review subagent over the whole diff: 7 findings, all confirmed and fixed (delta step 1 branch identity for other repositories, environment ref scoped to this checkout, the read-only write reconciled with the contract's "Writes stay per repository", a presence-gated routing row and…
  • scripts/cross-plugin-source-registry.txt: read it; its existing glob line docs/contracts/target-scope/README.md -> plugins/*/reference/target-scope.md and its reference/target-scope.md entry already cover the new copy, so no edit was needed
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44582058860

Left out: the items under Not verified.

Related

#17239

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 44587519076

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 148aabad5a2de65e2e60c6052c96982f57a80e67; 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 edc714cbff1034231111436defe657e5730861bd: read 8 of 8 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #17488 at edc714cb, blocking only

No blocking findings on this head. This lane already reviewed earlier heads (148aabad, 1b6bf138), so this pass reports only blocking findings and manifest flags. Advisory findings are dropped.

I read every hunk of all 8 changed files in .claude-lane/pr.diff. The new head is a merge from main. The PR's own changes still match what the last review saw.

Earlier finding stays fixed. The settled thread said delta forwarded --repo <root> into the audit's own fan-out. It is still resolved, and its lines have not changed since. At this head, delta still says it never forwards the target form (delta L84-86). It still runs the audit's single-repository procedure with the root anchored and no target form (delta L105-108).

Closing issue #17239. The text meets each "Done when" item:

  • Both skills cite the contract, and both argument-hints show [--repo <repo> ...].
  • With no target form, behavior is unchanged.
  • Each repository keeps its own findings artifact and baseline.
  • The generated copy is registered in scripts/shared-copies.txt. The PR says the existing glob in cross-plugin-source-registry.txt already covers it.
  • The adopters file is added.
  • The cheat-sheet cells match the new frontmatter. The author edited them by hand and left the format check to CI.
  • The changelog fragment is bump: minor.
  • The PR body says no eval runs the multi-repository path.

Author's claims, not checked here. The PR reports passing results for sync-shared-copies --check, the changelog-fragment check and the changed-skills check. Those are the author's claims. This lane has no shell and ran none of them.

Loosened checks. The prompt has no loosened_check_verdict: or loosened_check_patterns: line, so I used fail with no consumer entries. With no loosened_check_decision_record: line, I did not check the citation requirement. The diff changes docs and skill text only, and loosens no check.

Loosened-check verdict: fail (bundled default); patterns: 0

Plugin manifests. No .claude-plugin/plugin.json or marketplace.json changed.

Spend. The new multi-repository mode is opt-in. It uses subscription or API usage only when a user passes a target form. That is not a hold.

Embedded text. Nothing in the PR context, settled-threads or prior-findings files tells this lane to approve, skip a check, drop a finding or post elsewhere.

Verifier dropped 0 of 0 candidates.

@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=17488 -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 44594332373

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 1b6bf1380d886acf3d7564daf06c8fe50acab1ec. 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:missing)

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

Failed GitHub API calls

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

kyle-sexton and others added 2 commits November 19, 2026 14:37
…sue-17239-44582058860-1

# Conflicts:
#	docs/contracts/target-scope/adopters.md
Delta passed --repo <root> to the composed audit, which sent the audit
back into its own multi-repository fan-out from inside a subagent. Each
repository's subagent now runs the audit's single-repository procedure
with the root anchored and no target form.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: no security issues found.

I read all 8 changed files in full. The newest head (edc714cb) is a merge from main, and the PR's own diff matches what this lane reviewed before. The change is documentation and skill-body text only. /overengineering:audit and /overengineering:delta now accept the target-scope contract's forms (--repo, --repos-from, --owner, --fleet, --skip). The plugin also gets a generated copy of docs/contracts/target-scope/README.md, which is registered in scripts/shared-copies.txt. The rest is a new adopters file, a changelog fragment, and updates to the cheat sheet and the README.

What I checked:

  • Trusted paths and trust controls. None of the 8 files matches a TRUSTED PATHS: glob. Nothing changes the trusted-trigger check, the lane token request or broker, the kill switch, any merge hold, or any action under .github/actions/.
  • Plugin manifests. No .claude-plugin/plugin.json or marketplace.json file changed, so there are no manifest lines.
  • Instruction-surface lens. Both skill bodies only add text; no standing rule is deleted, narrowed or softened. Both keep their read-only description and the cap that limits security-class items to flag-for-human.
  • Writes. On a target-form run, the audit writes only two untracked, self-ignored files into each repository's own memory root: the findings artifact and the guard file. No tracked file changes. A repository whose branch identity does not resolve gets nothing written to it.
  • Code execution. coupling:reduce dry-run is named as a route but never run. Repositories come from the operator's own arguments or existing local clones; the contract forbids cloning during a run, and each repository is read at origin/HEAD after one git -C <root> fetch origin.
  • Untrusted content. The fan-out subagent reads another repository's AGENTS.md. That comes from the existing target-scope contract and is not new in this diff. It runs only in the operator's own attended or opt-in session, which holds no lane credentials, so no untrusted text reaches a credentialed lane.

The settled thread on plugins/overengineering/skills/delta/SKILL.md (the per-repository audit fanning out again) is resolved with an owner reply stating the fix and is marked lines changed since resolution: no, so I did not raise it again. This lane's only earlier post on this pull request was a clean summary with no findings, so there is nothing to restate. This was a full review, not blocking only.

critical-findings: 0

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head edc714cbff1034231111436defe657e5730861bd, 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=edc714cbff1034231111436defe657e5730861bd rubric=10.4.1 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 03dfcfb Nov 20, 2026
73 of 74 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-17239-44582058860-1 branch November 20, 2026 00:47
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 03dfcfbc592e958a970a72ae153629b2baf1f938; 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(overengineering): run audit and delta across several repositories via the target-scope contract

1 participant