Skip to content

Simplify the ps-command.sh guardrails plugin code (part 1 of 2) #14490

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/guardrails/lib/powershell/ps-command.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 (guardrails) 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 1 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. melodic-automation-lanes commented on Nov 9, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"c9d6df1cdaf807554220c662788e538f777c919031e20cd750e39073927088b0","body_sha256":"4327b063d058414b922ba822673889374dfcf13316e041da237c3cdcc4e2f3aa"}

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

    @melodic-automation-lanes
    Contributor

    This records a re-fire of an earlier refusal, not a new refusal. The lanes kill switch stopped run 42602451681, the work-resolve-issue run that agent-ready started, before it finished; that run ended at 2026-11-09T11:20:13Z. work-unblock has now removed and added agent-ready back to start a fresh run. A kill-switch refusal is no fault in this issue or the lanes, so it never counts against later re-fires; after limits.limit-stops-per-issue of them since a person last added agent-ready or a run last reported, work-unblock waits longer before each one, up to 24 hours.

  6. github-actions commented on Nov 9, 2026

    @github-actions
    Contributor
    No description provided.
  7. 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:

  8. github-actions commented on Nov 10, 2026

    @github-actions
    Contributor

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

    I understood this as a behavior-preserving simplification of the first half of plugins/guardrails/lib/powershell/ps-command.sh, with a changelog fragment for guardrails. The scope, acceptance criteria and out-of-scope list are exact, so nothing is missing. #14491 covers the second half of the same file. It is a sibling chunk, not a duplicate. I found no merged pull request that already does this.

    Automated triage. A maintainer reviews it.

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

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"c9d6df1cdaf807554220c662788e538f777c919031e20cd750e39073927088b0","body_sha256":"4327b063d058414b922ba822673889374dfcf13316e041da237c3cdcc4e2f3aa"}

  10. github-actions commented on Nov 11, 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