Skip to content

feat(harness-config): run audit-pass and audit-instructions across several repositories via the target-scope contract - #17549

Merged
melodic-automation-lanes[bot] merged 4 commits into
mainfrom
work-resolve-issue/issue-17245-44623155109-1
Nov 20, 2026
Merged

melodic-automation-lanes[bot] merged 4 commits into
mainfrom
work-resolve-issue/issue-17245-44623155109-1

Conversation

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor

Closes #17245

Summary

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

/harness-config:audit-pass and /harness-config:audit-instructions now accept the target-scope contract's forms (--repo, --repos-from, --owner, --fleet, --skip). They cite the plugin's new generated copy of the contract and run one pass per repository, each with its own state key, run directory, lease, lock and report. With no target form, both behave as before. Design choice for audit-pass, based on reference/lane-catalog.md and the old arguments.md reasoning: the refusal of a non-active target is replaced. A target naming another repository runs as --repo, and delegates that accept a target (audit-instructions, harness-memory:audit, and the retirements sweep's --root) get that repository's root. Delegates that take no target (audit, audit-permission-state, audit-permission-grants, audit-prompting-postures) run only in the active project's pass. Elsewhere they are listed as skipped with 'delegate takes no target', so no finding is attributed to the wrong repository. The Phase 4 /doctor handoff likewise runs only in the active project's pass; every other repository's pass lists it in skipped. audit-pass --fix in a non-active repository edits one worktree at that clone's HEAD and opens one PR. audit-instructions --persist-findings writes only the session's own repository's file. Eval cases: audit-pass eval 30 (non-git-target-is-refused-not-half-specified) reads the changed refusal text in reference/arguments.md; audit-pass eval 31 and audit-instructions eval 35 read the new multi-repository spoke files (per-repository --root routing, the no-target skips and the /doctor skip).

Not verified

  • docs/skill-cheat-sheet.md was edited by hand, not regenerated with node scripts/generate-cheatsheet.mjs (the lane runs no interpreter); the PR's CI generator check confirms it
  • scripts/cross-plugin-source-registry.txt needed no edit: its existing glob line 'docs/contracts/target-scope/README.md -> plugins/*/reference/target-scope.md' and 'reference/target-scope.md' entry already cover the new copy
  • tidy skipped: the change has 13 files, over the 10-file cutoff, and touches scripts/shared-copies.txt under the shared scripts/ path
  • check-affected skipped comment-hygiene (fetch denied), size-check (script missing in lane), typos (not installed) and changed-skills inside it (it ran separately and passed); these are left to the PR's CI
  • no build or test suite applies to these markdown and JSON edits beyond the checks above; the plugin test suites are left to the PR's CI

Fix

  • scripts/shared-copies.txt: registered plugins/harness-config/reference/target-scope.md at its alphabetical place among the target-scope lines
  • plugins/harness-config/reference/target-scope.md: new generated copy of docs/contracts/target-scope/README.md (sync-shared-copies.sh)
  • docs/contracts/target-scope/adopters/harness-config.md: new adopters file listing audit-pass and audit-instructions
  • plugins/harness-config/skills/audit-pass/SKILL.md: argument-hint shows [--repo <repo> ...] (dropped [--report-to <dir>] to stay within the 100-character hint budget; it stays in the Arguments table); the target row names the target forms and points to the new spoke; added a…
  • plugins/harness-config/skills/audit-pass/reference/multi-repository.md: new spoke covering the per-repository pass: delegate routing, the /doctor handoff running only in the active project's pass (skipped elsewhere), user and managed scopes, per-repository state and lock via run-state.sh --root, and per-repository --fix
  • plugins/harness-config/skills/audit-pass/reference/arguments.md: replaced the not-the-active-project refusal with the --repo reading and its wrong-attribution guard; kept the non-git refusal
  • plugins/harness-config/skills/audit-pass/evals/evals.json: eval 30's expected_output and one expectation no longer cite the removed active-project-root refusal; new eval 31 covers a --repo pass on another clone (run-state.sh --root, the four no-target lanes skipped, no /doctor lane)
  • plugins/harness-config/skills/audit-instructions/SKILL.md: argument-hint and full-form line show [--repo <repo> ...] (shortened <version> to <ver> to keep --unattended in the hint within budget); added a pointer to the new spoke
  • plugins/harness-config/skills/audit-instructions/context/multi-repository.md: new spoke covering the per-repository pass, user-scope merging, per-repository state via --root, one dispatch confirmation per run, and --persist-findings limited to the session's own repository
  • plugins/harness-config/skills/audit-instructions/evals/evals.json: new eval 35 covers a --repo run on another clone (run-state.sh, lib/state-key.sh and persist-report.sh called with that clone's --root)
  • plugins/harness-config/README.md: the audit-pass section describes the target forms instead of the old refusal
  • docs/skill-cheat-sheet.md: the two rows' argument hints updated by hand to match the new frontmatter, since node scripts/generate-cheatsheet.mjs cannot run in this lane
  • .changes/harness-config/work-resolve-issue-issue-17245-44623155109-1-18948e15.md: minor changelog fragment

Verification

The runner ran each check from the base copy against e5d7a3f:

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

The run reports:

  • check-changelog-fragments: all 16 fragments valid
  • check-changed-skills: audit-pass PASS (498/500 lines), audit-instructions PASS (499/500 lines); the first run failed on the 500-line cap, fixed by moving the new sections into spoke files
  • check-affected: 14 passed, 9 skipped; validate-plugins first failed on argument-hint budgets (109 and 102 chars), fixed
  • sync-shared-copies --check: all 989 registered copies match their canonical sources
  • check-evals-quality on audit-pass evals.json: PASS, with 5 warnings that were already present
  • fresh-context review subagent: reported 3 defects and 2 minor items; all 5 fixed (stale section link in arguments.md, retirements sweep takes --root, --fix worktree vs lock/third capture, kept --unattended in audit-instructions' hint, stale eval expected_output)
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44623155109
  • The review-feedback round's additions (the /doctor bullet in audit-pass's multi-repository.md, audit-pass eval 31 and audit-instructions eval 35) were checked by reading only; the PR's CI runs the eval-quality and skill checks on them

Left out: the items under Not verified.

Related

#17245

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 44627672008

Failed GitHub API calls

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

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #17549 (incremental, blocking only)

No security issues found. This lane already reviewed an earlier head (15c43818), so this pass reports only CRITICAL and IMPORTANT findings.

I read every hunk of the 3 files changed since that head, in .claude-lane/incremental.diff. None of them matches a TRUSTED PATHS: glob, and none touches a trust control: not the trusted-trigger check, the lane token, the kill switch, the token broker or any merge hold.

What changed since the last review

  • plugins/harness-config/skills/audit-instructions/evals/evals.json adds eval 35. It checks that a --repo ../web run keeps its run state under the web clone's own key, by passing --root to run-state.sh, lib/state-key.sh and persist-report.sh. It also checks that --persist-findings writes nothing into the other clone.
  • plugins/harness-config/skills/audit-pass/evals/evals.json adds eval 31. It checks the same per-repository state for audit-pass. It also checks that a pass on another repository skips the four delegates that take no target, and the /doctor handoff, instead of running them.
  • plugins/harness-config/skills/audit-pass/reference/multi-repository.md adds a rule: the Phase 4 /doctor handoff runs only in the active project's pass. Every other repository's pass lists the handoff in skipped.

Paths checked

  • Instruction surface. The new rule in multi-repository.md narrows when an action runs. It adds a skip and removes no guardrail, so the instruction-surface lens finds nothing removed. Its purpose is to stop one project's /doctor output being filed under another repository. That is a report-correctness property; no leak, compromise or charge depends on it.
  • Writes and credentials. The new evals state that nothing is written into another clone and that state stays keyed to each repository. This adds no write path, no token use and no new reader of untrusted text. These skills run in the operator's own session, not in a CI lane that holds credentials.
  • Plugin manifests. No plugin.json or marketplace.json changed.
  • Embedded text. The changed eval prompts contain no instructions aimed at the review lane.

Spend. None of the 3 files changes how often anything runs, what model it uses, or what it costs.

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: 2 inline finding(s) on fda7d9567b76369ff22b305752b1332ac1508599; 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 2d959ed4637c20d6fd4b0ad45fa13fba3e6fde3b: read 3 of 3 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #17549, incremental (15c4381 → 2d959ed)

This lane has already reviewed earlier heads of this pull request, so this review reports blocking findings only. I found none.

What I reviewed. I read all 3 files in the incremental diff in full:

  • audit-instructions/evals/evals.json, new eval 35
  • audit-pass/evals/evals.json, new eval 31
  • audit-pass/reference/multi-repository.md, the new Phase 4 /doctor bullet

The two earlier findings are fixed at this head. Both threads are now resolved with no lines changed since, so I have not raised either again.

  • The /doctor handoff. The new bullet in multi-repository.md#L23-L29 limits the handoff to the active project's pass. Every other repository's pass lists it in skipped with a stated reason and opens no delegated lane, so no report asks for a --resume that would file another project's output under it.
  • Eval coverage.
    • audit-pass eval 31 checks three things: run-state.sh paths --root <clone>, the four no-target lanes listed in skipped with delegate takes no target, and --repo / --root passed to the delegates and the retirements sweep that accept them. It also checks that no /doctor lane opens.
    • audit-instructions eval 35 checks --root routing for run-state.sh paths, lib/state-key.sh and persist-report.sh.
    • Both evals match what the spoke files say (audit-instructions/context/multi-repository.md#L17-L24).
    • The new ids (35 and 31) follow the existing ones in sequence, with no duplicates.

Closing issue #17245. The PR body now names audit-pass eval 31 and audit-instructions eval 35 as the evals whose runs read the new spoke files. That satisfies the "names an eval case" item. The PR says the eval-quality checks on these additions run in CI; I have not verified that claim.

Loosened checks. The incremental change only adds eval cases and documentation, and drops or weakens no check.
Loosened-check verdict: fail (default; the prompt had no loosened_check_verdict: or loosened_check_patterns: lines); patterns: 0. The prompt had no loosened_check_decision_record: line either, so the citation requirement was not checked.

Embedded text. Nothing in the PR context, the settled threads or the prior findings asks this lane to approve, skip or drop anything.

Spend. Two more eval cases add a little prepaid eval-run usage when the plugin evals run. This is not a billing hold.

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 fda7d9567b76369ff22b305752b1332ac1508599, 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=HIGH demote=true head=fda7d9567b76369ff22b305752b1332ac1508599 rubric=10.4.1 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 44668789038

Failed GitHub API calls

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

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM65xiI5
Lane-Thread: PRRT_kwDOTCGFQM65xiJB
@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 2d959ed
Run 44668789038

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 2d959ed.

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

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 2d959ed4637c20d6fd4b0ad45fa13fba3e6fde3b, 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=2d959ed4637c20d6fd4b0ad45fa13fba3e6fde3b 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 fb7b025 Nov 20, 2026
76 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-17245-44623155109-1 branch November 20, 2026 04:16
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit fb7b025d51a2455369abbdbd610ba2a7bbd5e398; 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(harness-config): run audit-pass and audit-instructions across several repositories via the target-scope contract

1 participant