Skip to content

feat(ai-slop): run the audit across several repositories via the target-scope contract - #17512

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-17234-44602950802-1
Nov 19, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-17234-44602950802-1

Conversation

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor

Closes #17234

Summary

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

/ai-slop:audit now accepts the target-scope forms (--repo, --repos-from, --owner, --fleet, --skip, or the same request in words) through a new "Several repositories" section that cites the contract and states only what differs for this skill. The main design choice: detect.sh resolves config layers and its no-target listing from CLAUDE_PROJECT_DIR (detect.sh:183-207), and emit-findings.sh / emit-fix-record.sh take the branch from the working directory (emit-findings.sh:79-84), so each per-repository pass runs the scripts as CLAUDE_PROJECT_DIR=<tree> with an absolute target, runs step 5's tracked-file test with git -C <tree>, and passes --branch explicitly. Findings files and fix runs stay per repository. With no target form every existing path is unchanged. Eval coverage: every /ai-slop:audit eval case (for example plugins/ai-slop/evals/audit-curly-quotes-markdown) loads the changed SKILL.md, but none exercises a target form, so no eval reads the new section's behavior.

Not verified

  • docs/skill-cheat-sheet.md was edited by hand to match the frontmatter, not regenerated with node scripts/generate-cheatsheet.mjs: this lane runs no interpreter. Left to the PR's CI cheat-sheet drift check.
  • Tidy skipped: the change touches scripts/shared-copies.txt (a listed shared path) and spans more than one area (plugins/ai-slop, docs/contracts, docs/skill-cheat-sheet.md, scripts).
  • The ai-slop detector and markdownlint were not run on the changed markdown (this lane runs only the named wrappers); the review subagent read the new prose for AI-writing tells and found none. Left to the PR's CI.
  • The env-prefixed form CLAUDE_PROJECT_DIR=<tree> <script> is not granted by the skill's allowed-tools, so a multi-repository run may prompt per call; the section says so. Widening allowed-tools was left out of scope.
  • Untracked files in the working tree that this run did not create (.bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) look like sandbox mount placeholders and are not part of this change.

Fix

  • plugins/ai-slop/skills/audit/SKILL.md: argument-hint gains [--repo <repo> ...]; an Action router row for the target forms (fix writes one PR per repository); Audit flow step 1 points at the new section; new "### Several repositories" section (anchoring scripts at each repository's tree,…
  • plugins/ai-slop/reference/target-scope.md: new generated byte-identical copy of docs/contracts/target-scope/README.md (scripts/sync-shared-copies.sh)
  • scripts/shared-copies.txt: registers the ai-slop copy at its alphabetical place among the target-scope lines
  • docs/contracts/target-scope/adopters/ai-slop.md: new adopter table listing /ai-slop:audit
  • docs/skill-cheat-sheet.md: /ai-slop:audit argument-hint column updated to match the frontmatter
  • .changes/ai-slop/work-resolve-issue-issue-17234-44602950802-1-7679b4b4.md: minor changelog fragment (Added)

Verification

The runner ran each check from the base copy against 4676e49:

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

The run reports:

  • check-changelog-fragments: all 12 fragments valid
  • check-changed-skills: plugins/ai-slop/skills/audit PASS, 0 errors (11 warnings, all pre-existing size/description warnings; body 343 -> 382 lines, under the 500 cap)
  • check-affected: 14 passed, 9 skipped (skips are environment ones: typos not installed, comment-hygiene fetch blocked, size-check script absent, checks that run the checked tree's code)
  • sync-shared-copies --check: all 988 registered copies match their canonical sources
  • scripts/cross-plugin-source-registry.txt: already registers reference/target-scope.md and the docs/contracts/target-scope/README.md -> plugins/*/reference/target-scope.md cluster, so no edit was needed
  • fresh-context review subagent over the whole diff: 5 findings; confirmed and fixed emit-findings.sh/emit-fix-record.sh branch-from-cwd (now --branch), unanchored step 5 tracked-file test (now git -C <tree>), over-specific config path, missing pwd fallback, and three bullets restating the…
  • read https: //code.claude.com/docs/en/sub-agents: by default a subagent can spawn subagents of its own, up to three layers below the main conversation, so the contract's per-repository fan-out can keep the rubric batch fan-out inside each repository's subagent
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44602950802

Left out: the items under Not verified.

Related

#17234

Follow-ups

  • Pre-existing (advisory): **Advisory: two Done-when criteria in #17234 are met, but no test could fail if they broke.** (thread)

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 44605474572

Failed GitHub API calls

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

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: no security issues found

I read every hunk of all 6 changed files. The PR changes documentation and skill prose only. It adds a "Several repositories" section to /ai-slop:audit, a generated copy of the target-scope contract and an adopter table. It also registers that copy in scripts/shared-copies.txt and updates the cheat-sheet row and a changelog fragment. None of the changed files is on the trusted-path list, and no plugin manifest changes.

What I checked:

  • allowed-tools in plugins/ai-slop/skills/audit/SKILL.md. It is not widened. The frontmatter line is unchanged apart from argument-hint. The skill itself says the new CLAUDE_PROJECT_DIR=<tree> <script> form is not granted, so it still goes through a permission prompt rather than running silently.
  • Instruction-surface lens. No rule is removed. One sentence in "Non-repository targets" is narrowed: the empty-target CLAUDE_PROJECT_DIR check now applies when no target form is given. For runs with a target form, the new section takes over: repositories are resolved from the user's own local clones only, and the contract says "Never clone during a run". The guard that stops and asks when no repository is found still covers the case it was written for.
  • Writes. fix stays per repository and uses a worktree. A scratch worktree is never edited. Findings files stay under each repository's own clone root.

Other notes:

  • The PR context contains no embedded directives addressed to this lane.
  • This is a first review (earlier heads reviewed: 0), so it is not blocking only.
  • I did not consult the instruction exception register's protected-class list, because the register is not readable with this lane's tools. The deletion check above was done by consequence instead.

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

claude-lane: claude-review

Comment thread plugins/ai-slop/skills/audit/SKILL.md Resolved
@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 4676e49da05d28395cf9f5d6f85e64d18ace5bfa: read 6 of 6 changed file(s); 1 finding(s), 1 as inline comments.

Code review: PR #17512, /ai-slop:audit adopts the target-scope contract

This is a prose-only change. It adds a "Several repositories" section and a target-forms router row to plugins/ai-slop/skills/audit/SKILL.md, a generated contract copy, an adopter file, a registry line, a cheat-sheet row and a changelog fragment.

What I checked against the code (by reading it, not by running it):

  • plugins/ai-slop/reference/target-scope.md matches docs/contracts/target-scope/README.md line for line, below the generated header. The scripts/shared-copies.txt line sits in its alphabetical place among the target-scope lines. scripts/cross-plugin-source-registry.txt already registers the plugins/*/reference/target-scope.md cluster at lines 58 and 62.
  • The new section's claims about the scripts hold:
    • detect.sh:183 reads CLAUDE_PROJECT_DIR.
    • emit-findings.sh:80 and emit-fix-record.sh:70 fall back to git branch --show-current.
    • Both scripts accept --branch, so telling callers to pass --branch explicitly is correct.
  • The cheat-sheet row's argument hint matches the new frontmatter argument-hint, with the same \| escaping the other rows use. The author edited it by hand rather than regenerating it; the CI drift check has the final say.
  • With no target form, every existing path stays as it was. The only edit to existing text narrows the Non-repository rule to "an empty target with no target form", which keeps the default behaviour.

Closing issue #17234, Done-when criteria:

  • Argument hint shows [--repo <repo> ...], and the skill cites the contract: met.
  • Behaviour unchanged with no target form: met. The existing /ai-slop:audit evals use the default path and would catch a regression.
  • Per-repository state kept per repository: met in the text.
  • Generated copy registered in both registries: met.
  • Adopters entry: met (docs/contracts/target-scope/adopters/ai-slop.md).
  • Cheat sheet regenerated: edited by hand, not regenerated. The author says so and leaves it to CI; unverified.
  • Changelog fragment: met (bump: minor, which fits a new capability).
  • PR body says which eval reads the change: met (it says none exercises a target form).
  • The target-form and per-repository-state criteria have no eval that could fail if they broke. That is the one finding, posted inline.

The PR body's verification (sync-shared-copies --check, check-changed-skills, check-changelog-fragments) is the author's claim; I did not verify it.

Usage note: a multi-repository run starts one subagent per repository. That spends subscription or API usage only, so it is not a hold.

Other notes:

  • Loosened-check verdict: fail (default; the prompt had no loosened_check_verdict: or loosened_check_patterns: line); patterns: 0. No changed line loosens a check: allowed-tools is not widened, and the section says the CLAUDE_PROJECT_DIR=<tree> form will prompt. The citation requirement was not checked because the prompt had no loosened_check_decision_record: line.
  • No settled-threads file was supplied. There are no prior findings, so this is not a blocking-only review.
  • No embedded instructions were found in the PR context.

Verifier dropped 0 of 1 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 4676e49da05d28395cf9f5d6f85e64d18ace5bfa. 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/address-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44607728614

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 4676e49.

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

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 4676e49da05d28395cf9f5d6f85e64d18ace5bfa, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=4676e49da05d28395cf9f5d6f85e64d18ace5bfa 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 1c9763d Nov 19, 2026
78 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-17234-44602950802-1 branch November 19, 2026 20:50
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 1c9763d4b2df826a333cf8c9672f80fd978a33c3; 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(ai-slop): run the audit across several repositories via the target-scope contract

0 participants