Skip to content

Simplify the install_state.py harness-ops plugin code (part 2 of 2) #14510

Description

@kyle-sexton

Agent Brief

Type: Task
Summary: Simplify these 1 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-ops/skills/audit-install-state/scripts/install_state.py

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-ops) has a fragment from scripts/new-changelog-fragment.sh <plugin> patch whose body is ### Changed and the line "Internal simplification, no behavior change."
  • Only the jobs or functions that start in range 2 of 2 equal line ranges of the file, measured when this part starts, are changed.

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.

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. 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:

  5. github-actions commented on Nov 10, 2026

    @github-actions
    Contributor

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

    Understood: a behavior-preserving simplification of the second half of plugins/harness-ops/skills/audit-install-state/scripts/install_state.py, with a patch changelog fragment for harness-ops. The scope and acceptance criteria are exact, so nothing is missing from the issue.

    It edits the same file as part 1 (#14509), which is still open. I listed that as a blocker, since the line ranges for part 2 are measured when this part starts. No duplicate or merged fix found.

    Automated triage. A maintainer reviews it.

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

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane yet: blocker #14509 is not closed by a listed human or a merge.

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

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"30070e681c489a9ef046e734e00ed4f9b3788320606dba9143c4928ef66e6cc6","body_sha256":"4db3a9807314f6dff8475d0826487df83b0786f4aef9fbcc9fca6944c897d33a"}

  8. github-actions commented on Nov 12, 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

    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