Skip to content

Restructure and dedupe plugins machine-health to songwriting #14802

Closed
5 of 5 issues completed
Closed

Description

@kyle-sexton

Agent Brief

Type: Task
Summary: Restructure and dedupe plugins machine-health to songwriting across files, behavior unchanged.

Desired behavior:
Restructuring pass for plugins machine-health to songwriting, run after that sub-epic's per-file chunks have merged (it is blocked by the sub-epic, which closes when they have). Owner decision 2026-11-08: dedupe and restructure across files under the rules below, with no further owner stop.

Plan the pass, then land it as several pull requests, each within 400 changed lines and 15 hand-edited files.

Acceptance criteria:

  • Code repeated across the sub-epic's files moves into one shared place: a lib/ source carried by scripts/sync-shared-copies.sh, or a helper inside the plugin; internal modules may be split or merged.
  • Behavior seen by skills, hooks, other plugins and workflows is unchanged: the same outputs, exit codes and printed results for the same inputs.
  • Anything renamed or moved that an eval case, fixture, skill or other plugin names is updated in the same pull request, and validate-cases.py passes.
  • Behavior is unchanged and ci-status is green on each pull request.
  • Plugin changes carry patch fragments: ### Changed, "Internal restructuring, no behavior change."

Out of scope:

  • Tests beyond asserted lines a change breaks, eval cases, fixtures, and skill and agent text.
  • Other repositories, including azure-iac.

Sub-issues

Sub-issues

5 of 5 Issues completed
Loading 5 sub-issues

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 12, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: the work-resolve-issue lane stopped on it (verify-unmet); the issue is a finished parent, but the run found one of its own done-when items unmet, which it names, so it parks until a listed human's decision comment sends it back. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

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

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"50be55ab5f44509ca95eb5706ebca79b006ea3ff8fba3fe27ad811f57ecff0e6","body_sha256":"590e41a7e634f06dac6f0dbaa561fe2d1205ea1ce1c4316f0929d3645131d168"}

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

    @melodic-automation-lanes
    Contributor

    The work-resolve-issue lane stopped on this issue (split-required): the issue's Size is too large for one run, and intake's split (owner Q93) files its sub-issues.
    Its Size is too large for one run: intake splits it into sub-issues (owner Q93).
    It set Work status to needs-triage, so the hourly triage sweep sends it back through intake triage, and it waits on no decision from a person.

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

  7. github-actions commented on Nov 12, 2026

    @github-actions
    Contributor
    No description provided.
  8. github-actions commented on Nov 12, 2026

    @github-actions
    Contributor

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

  9. github-actions commented on Nov 12, 2026

    @github-actions
    Contributor

    Size: Large
    Complexity: Medium
    Uncertainty: Knowable
    Flags: none
    Blocked by: none

    Understood: a behavior-preserving restructuring and dedupe pass across plugins machine-health to songwriting. It moves repeated code into shared lib/ sources or plugin helpers, keeps outputs and exit codes unchanged, and ships as several pull requests of at most 400 changed lines and 15 hand-edited files each.

    The scope is too large for one run, so it needs splitting into sub-issues, for example by plugin group. The issue says it waits on its per-file sub-epic, but I found no open issue by that name, so I list no blocker. The owner decision of 2026-11-08 is cited in the body, so I ask no intent question. I found no duplicate or merged fix.

    Automated triage. A maintainer reviews it.

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

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"50be55ab5f44509ca95eb5706ebca79b006ea3ff8fba3fe27ad811f57ecff0e6","body_sha256":"590e41a7e634f06dac6f0dbaa561fe2d1205ea1ce1c4316f0929d3645131d168"}

  11. github-actions commented on Nov 12, 2026

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

    @melodic-automation-lanes
    Contributor

    The work-resolve-issue lane stopped on this issue (verify-unmet): the issue is a finished parent, but the run found one of its own done-when items unmet, which it names, so it parks until a listed human's decision comment sends it back.
    It set Work status to confirmed, as admission parks a refusal no person answers, and it waits on no decision from a person. Once that step is done, a listed human's comment whose first line is **Decision recorded.** sends it back through intake triage.

    In the run's words:

    verify-unmet: criterion 1 (code repeated across the sub-epic's files moves into one shared place) is not met: the three planned dedupes landed, but exact repeats remain in files sub-epic #14801 covered: fail() is defined identically in plugins/performance/scripts/ratchet.py:70, summarize.py:50 and ratio.py:75; resolve() has the same body in plugins/performance/scripts/differential.py:77 and discriminate.py:86 (all four already import pathfix); read_json() is identical in plugins/planning/shared/share.py:95 and server.py:562. Criteria 2 to 5 are met.

    What the run says it did not do:

    • Did not run validate-cases.py, the update.test.sh suites, or the audit-sessions and audit-friction pytest suites here: this lane runs no interpreter or test runner. Their pass is taken from each PR's merge-queue result (every check passed).
    • PR check results were read from the rendered GitHub PR pages through WebFetch, not from the checks API, so the named ci-status check was not read on its own. Each page reported every check passing.
    • The duplication scan was bounded: same-named files across the range's plugins, plus common helper names (fail, die, warn, read_json, load_json, write_json, now, iso, epoch, positive, store_dir and similar) in the range's Python. It was not a full clone detection, so more repeats may exist.
    • Not counted against criterion 1, but flagged for the owner: plugins/multi-agent/scripts/check-hook-registration.sh and plugins/review/scripts/check-hook-registration.sh (plus a third copy in plugins/discovery) share their row() helper, argument check, node probe and registration-check skeleton, and…

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

  13. kyle-sexton commented on Nov 12, 2026

    @kyle-sexton
    MemberAuthor

    Closing as completed: the pass was split into 5 sub-issues and each closed through a merged pull request with ci-status green: #15534 (#15541), #15537 (#15577), #15539 (#15575), #15631 (#15680), #15639 (#15646). Each plugin change carries its patch fragment. The eval after-runs for these plugins compare against each suite's own baseline and are tracked under the epic #14161; a confirmed pass-then-fail case gets its own fix issue there.

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

    confirmed

    Priority

    low

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions