Skip to content

Simplify the audit, draft-auto-mode-rules, setup and 1 more harness-config plugin code #14504

Description

@kyle-sexton

Agent Brief

Type: Task
Summary: Simplify these 5 files without changing their behavior (part of the /simplify epic).

Current behavior:
The files below work as they do on main. Their code changes; what they do does not.

Desired behavior:
Review the files through /simplify's four checks (reuse of existing helpers, simplification, efficiency, right level of abstraction), using subagents if useful, and apply the fixes. The files end up shorter and clearer, and whatever runs them gets the same results.

Files:

  • plugins/harness-config/skills/audit/scripts/check-structure.sh
  • plugins/harness-config/skills/audit/scripts/fix-plugin-drift.sh
  • plugins/harness-config/skills/draft-auto-mode-rules/scripts/draft-automode-block.sh
  • plugins/harness-config/skills/setup/scripts/wsl-profile.sh
  • plugins/harness-config/skills/unhobble/scripts/instruction-files.sh

Key interfaces:

  • Outputs, exit codes, written files and printed messages of these files: unchanged.
  • Command-line flags, exported names and anything another file calls: unchanged.

Acceptance criteria:

  • Behavior is unchanged: same outputs, exit codes, written files, printed text, command-line flags and exported names; no listed file renamed, moved or deleted.
  • The diff edits only the listed files, the lines of a test that assert on them when the change breaks that assertion, and changelog fragments.
  • The pull request stays within 400 changed lines and 15 hand-edited files (generated shared copies and changelog fragments not counted); anything beyond goes under ## Follow-ups in the pull request body.
  • ci-status is green.
  • Each touched plugin (harness-config) has a fragment from scripts/new-changelog-fragment.sh <plugin> patch whose body is ### Changed and the line "Internal simplification, no behavior change."

Out of scope:

  • Moving code between files or deduping across them: the sub-epic's restructuring pass does that after these chunks merge.
  • Tests beyond the asserted lines a change breaks, eval cases, fixtures, and skill and agent text.
  • Files listed in other chunks.
  • These eval and fixture files, which read the listed files' names, flags or printed text; the behavior rule keeps them accurate:
    • plugins/harness-config/evals/au-effort-pins-scope/case.yaml
    • plugins/harness-config/evals/au-fix-waits-for-choice/case.yaml
    • plugins/harness-config/evals/dr-compose-paste-ready/case.yaml
    • plugins/harness-config/evals/dr-no-project-write/case.yaml
    • plugins/harness-config/evals/uh-default-branch/case.yaml
    • plugins/harness-config/evals/uh-dirty-tree-refused/case.yaml
    • plugins/harness-config/evals/uh-readd-refused-in-observe/case.yaml
    • plugins/harness-config/evals/uh-snapshot-stops-for-confirmation/case.yaml

Activity

  1. added
    status: ready
    on Nov 9, 2026
  2. added theissue type on Nov 9, 2026
  3. removed
    status: ready
    on Nov 9, 2026
  4. melodic-automation-lanes commented on Nov 9, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"7b72de60d76e75c04390d4dba188b72cd045a4204d15507494fa715056130eb4","body_sha256":"b0caa6c171aa760bab506a4ffeb17146652d66a5d986175bd251947dc5a21e62"}

  5. github-actions commented on Nov 9, 2026

    @github-actions
    Contributor
    No description provided.
  6. github-actions commented on Nov 10, 2026

    @github-actions
    Contributor

    Intake triage did not triage this issue after 2 dispatches, so the sweep no longer dispatches it and set its Work status to needs-triage for a maintainer. Triage it by hand, and read the runs for why intake did not:

  7. github-actions commented on Nov 10, 2026

    @github-actions
    Contributor

    Size: Small
    Complexity: Low
    Uncertainty: Known
    Flags: none
    Blocked by: none

    Understood: a behavior-preserving simplification of five harness-config shell scripts (check-structure, fix-plugin-drift, draft-automode-block, wsl-profile, instruction-files). The scope, file list, acceptance criteria and changelog fragment requirement are all stated. Nothing is missing. Other open "Simplify the … harness-config" issues cover different files, so I don't see a duplicate. I found no merged pull request that already does this.

    Automated triage. A maintainer reviews it.

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

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"7b72de60d76e75c04390d4dba188b72cd045a4204d15507494fa715056130eb4","body_sha256":"b0caa6c171aa760bab506a4ffeb17146652d66a5d986175bd251947dc5a21e62"}

  9. 5 remaining items

  10. github-actions commented on Nov 11, 2026

    @github-actions
    Contributor
    No description provided.
  11. melodic-automation-lanes commented on Nov 11, 2026

    @melodic-automation-lanes
    Contributor

    The work-resolve-issue lane stopped on this issue (outcome-unread): the run wrote no readable outcome file: it crashed or was cut off, which says nothing about the issue.
    It keeps agent-ready, and work-unblock starts it again (retry 1 of 2).

    In the run's words:

    The run wrote no readable outcome file, so it stopped before it finished.

    Run: https://github.com/melodic-software/claude-code-plugins/actions/runs/43092669605

  12. melodic-automation-lanes commented on Nov 12, 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.

  13. melodic-automation-lanes commented on Nov 12, 2026

    @melodic-automation-lanes
    Contributor

    This records a re-fire of an earlier stop, not a new one. The start gate stopped run 43140479969, the work-resolve-issue run that agent-ready started, before any model turn, because the GITHUB_TOKEN budget was under its start-gate share (limits.api github-token start-gate); that run ended at 2026-11-12T02:32:09Z. 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.

  14. github-actions commented on Nov 12, 2026

    @github-actions
    Contributor
    No description provided.
  15. melodic-automation-lanes commented on Nov 12, 2026

    @melodic-automation-lanes
    Contributor

    This run started fresh from the default branch instead of resuming work-resolve-issue/issue-14504-43092669605-1, which is behind it. That branch keeps the earlier run's commits until the next run on this issue deletes it, when no pull request uses it.

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

    No labels
    No labels

    Type

    Fields

    Work status

    needs-triage

    Priority

    low

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions