Skip to content

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

Description

@kyle-sexton

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

Outcome

/harness-config:audit-pass, audit-instructions 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.

Where the text changes

Line numbers as read on main at dc93c878.

File and lines Today Change
plugins/harness-config/skills/audit-pass/SKILL.md:97 "target: The git repository to audit. Defaults to the active project root; a target resolving anywhere else is refused non-zero." Replace the refusal with the target forms; state and lock per repository. Keep --fix scoped per repository.
plugins/harness-config/skills/audit-instructions/SKILL.md:3,134 [scope] ...; scope is a surface kind in one repository Accept the target forms beside the surface scope.

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 as plugins/harness-config/reference/target-scope.md, registered in scripts/shared-copies.txt and generated by scripts/sync-shared-copies.sh (as plugins/coupling/reference/target-scope.md is), 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-hint shows [--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/harness-config/reference/target-scope.md exists as a generated copy, registered in scripts/shared-copies.txt and scripts/cross-plugin-source-registry.txt; sync-shared-copies.sh --check passes.
  • The contract's Adopters table lists each skill.
  • docs/skill-cheat-sheet.md regenerated (node scripts/generate-cheatsheet.mjs).
  • A changelog fragment under .changes/harness-config/.
  • The PR body names an eval case whose run reads the changed text, or says none does.

Activity

  1. added
    agent-ready
    on Nov 18, 2026
  2. github-actions commented on Nov 19, 2026

    @github-actions
    Contributor

    The triage sweep dispatched intake triage for this issue (dispatch 1; 2 runs that reach intake, or 6 dispatches, hand it to a maintainer).

  3. github-actions commented on Nov 19, 2026

    @github-actions
    Contributor

    Size: Medium
    Complexity: Medium
    Uncertainty: Known
    Flags: none
    Blocked by: none
    Blast radius: harness-config's audit-pass and audit-instructions skill text, the generated target-scope copy, the shared-copies and source registries, the cheat sheet and a changelog fragment; read by anyone running those skills.
    Reversible: yes; revert the pull request. With no target form, behavior stays as it is today.
    Open questions: none
    Understood: let /harness-config:audit-pass and audit-instructions accept the shared target-scope contract's forms (--repo, --repos-from, --owner, --fleet, --skip) and run once per repository, with per-repository state and writes. The owner's decision and the file-by-file change list are already in the issue, so no open question remains. The issue depends on #17228 (the contract); it is not in the open list, but I could not confirm from the merged list that it has merged, so check that before starting. The sibling adoption issues (#17247, #17246, #17244 and others) cover other plugins, so this is not a duplicate of any of them. I found no merged pull request that already does this.

    Automated triage. A maintainer reviews it.

  4. melodic-automation-lanes commented on Nov 19, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"7975ddada42794070ade1fcd7473e335d8f8ae0a5b137e35cfc9b01f3219d95d","body_sha256":"57616803ac34c025fa2047ef55b98e8581bd05ee2e094bfc7b87eb2a894c7a0f"}

  5. melodic-automation-lanes commented on Nov 19, 2026

    @melodic-automation-lanes
    Contributor

    The work-resolve-issue run that agent-ready started 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 added agent-ready back 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.

  6. github-actions commented on Nov 19, 2026

    @github-actions
    Contributor
  7. melodic-automation-lanes commented on Nov 19, 2026

    @melodic-automation-lanes
    Contributor

    This records a re-fire of an earlier stop, not a new one. A GitHub API pool's stop floor stopped run 44447672415, the work-resolve-issue run that agent-ready started, after its model ran, until 2026-11-19T03:46:56Z. work-unblock has now removed and added agent-ready back to start a fresh run early in a window. A floor stop is the lanes' load, not a fault in this issue. After limits.limit-stops-per-issue of these since a person last added agent-ready or a run last reported, work-unblock waits the limits.stranded-backoff-hours failed-again backoff instead.

  8. melodic-automation-lanes commented on Nov 19, 2026

    @melodic-automation-lanes
    Contributor

    The work-resolve-issue run that agent-ready started 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 added agent-ready back 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.

  9. melodic-automation-lanes commented on Nov 19, 2026

    @melodic-automation-lanes
    Contributor

    The work-resolve-issue run that agent-ready started 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 added agent-ready back 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.

  10. melodic-automation-lanes commented on Nov 19, 2026

    @melodic-automation-lanes
    Contributor

    This records a re-fire of an earlier stop, not a new one. The start gate stopped run 44553367732, the work-resolve-issue run that agent-ready started, 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-19T15:20:44Z. work-unblock has now removed and added agent-ready back 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 the kill-switch wait.

  11. github-actions commented on Nov 19, 2026

    @github-actions
    Contributor
    No description provided.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-ready

    Fields

    Work status

    needs-triage

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions