Skip to content

Simplify the behavior-probes harness-ops plugin code (2 of 4) #14527

Closed

Description

@kyle-sexton

Agent Brief

Type: Task
Summary: Simplify these 15 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/behavior-probes/cases/autocompact/project-top-level-window-applies/scaffold.sh
  • plugins/harness-ops/skills/behavior-probes/cases/cloud-routine/state-read-back-next-run/scaffold.sh
  • plugins/harness-ops/skills/behavior-probes/cases/env-scrub/planted-credential-not-readable/scaffold.sh
  • plugins/harness-ops/skills/behavior-probes/cases/env-scrub/planted-credential-readable-without-scrub/scaffold.sh
  • plugins/harness-ops/skills/behavior-probes/cases/hooks/pretooluse-allow-skips-classifier/allow-hook.py
  • plugins/harness-ops/skills/behavior-probes/cases/hooks/pretooluse-allow-skips-classifier/scaffold.sh
  • plugins/harness-ops/skills/behavior-probes/cases/hooks/updatedinput-no-decision-denied-in-default/scaffold.sh
  • plugins/harness-ops/skills/behavior-probes/cases/hooks/updatedinput-no-decision-rule-matches-rewrite/scaffold.sh
  • plugins/harness-ops/skills/behavior-probes/cases/hooks/updatedinput-no-decision-runs-in-auto/scaffold.sh
  • plugins/harness-ops/skills/behavior-probes/cases/intake-permissions/gh-issue-view-and-denied/scaffold.sh
  • plugins/harness-ops/skills/behavior-probes/cases/intake-permissions/gh-issue-view-pipe-denied/scaffold.sh
  • plugins/harness-ops/skills/behavior-probes/cases/intake-permissions/gh-issue-view-runs/scaffold.sh
  • plugins/harness-ops/skills/behavior-probes/cases/intake-permissions/gh-issue-view-semicolon-denied/scaffold.sh
  • plugins/harness-ops/skills/behavior-probes/cases/intake-permissions/gh-issue-view-substitution-denied/scaffold.sh
  • plugins/harness-ops/skills/behavior-probes/cases/lane-permissions/glob-proc-environ-denied/scaffold.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-ops) 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.

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":"cbbb1ddfd08c72358e6a7d3f1efd129fd9d02f30b65b9db428b444ec28a3135d","body_sha256":"e06184b452d9fa722a8f8d3df334ad43cae7f72ecf4b0d68b749cd622ea6950f"}

  5. github-actions commented on Nov 9, 2026

    @github-actions
    Contributor
    No description provided.
  6. 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 42620316192, the work-resolve-issue run that agent-ready started, before it finished; that run ended at 2026-11-09T14:33:35Z. 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.

  7. github-actions commented on Nov 9, 2026

    @github-actions
    Contributor
    No description provided.
  8. 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 42682180855, the work-resolve-issue run that agent-ready started, before it finished; that run ended at 2026-11-09T20:07:18Z. 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.

  9. 1 remaining item

  10. 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 42698404890, the work-resolve-issue run that agent-ready started, before it finished; that run ended at 2026-11-09T21:14:20Z. 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.

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

  12. github-actions commented on Nov 10, 2026

    @github-actions
    Contributor

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

    Understood: a behavior-preserving simplification of 15 behavior-probes files in the harness-ops plugin (scaffold scripts and one hook script), checked through /simplify's four checks. Outputs, exit codes, flags and written files must stay the same, and the harness-ops changelog fragment is required. The brief is exact, so nothing is missing. I found no duplicate among the open issues and no merged pull request that already does this.

    Automated triage. A maintainer reviews it.

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

    @melodic-automation-lanes
    Contributor

    This records a re-fire of an earlier refusal, not a new refusal. The lanes kill switch stopped run 42706726588, the work-resolve-issue run that agent-ready started, before it finished; that run ended at 2026-11-09T22:19:04Z. 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 the same limits.stranded-backoff-hours kill-switch hours after each refused run before re-firing it, never longer.

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

    @melodic-automation-lanes
    Contributor

    This records a re-fire of an earlier refusal, not a new refusal. The lanes kill switch stopped run 42941684638, the work-resolve-issue run that agent-ready started, before it finished; that run ended at 2026-11-11T01:57:02Z. 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 the same limits.stranded-backoff-hours kill-switch hours after each refused run before re-firing it, never longer.

  15. github-actions commented on Nov 11, 2026

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

    @melodic-automation-lanes
    Contributor

    The work-resolve-issue lane stopped on this issue (report-delivered): the issue asks for a report and no change, and the run posted that report, so the issue closes.
    It closes the issue as completed.

    In the run's words:

    report-delivered: all 15 listed files are already minimal, so /simplify's four checks find nothing to change without changing behavior; no commit made.

    The run's report:

    I read all 15 files and ran /simplify's four checks on each. None of them finds anything to change. (1) Reuse: each of the 14 scaffold.sh files is one call to a shared helper (a PROBE_LIB script such as GH -stub.sh, commit-ready-repo.sh, diverged-repo.sh, lane-checkout.sh or autocompact-project.sh), one cp of PROBE_LIB/plant-check.py, or one printf of a run id. They already reuse the shared helpers. allow-hook.py is a 15-line stdin-to-JSON PreToolUse hook. (2) Simplification: the only removable text is either the ${VAR:?set by probe.py} guards, which set the error text probe.py reports as scaffold exited N: &lt;stderr&gt; (removing them changes printed output, which the issue forbids), or the set -euo pipefail strict-mode header the repo's shell scripts carry. The hook's or {}, .strip() and tool_name guard each handle an input shape, so dropping one changes behavior. (3) Efficiency: each file runs one command, so there is nothing to speed up. (4) Abstraction: the eight scaffolds with identical bodies (three commit-ready-repo, five GH -stub) and the two identical env-scrub copies could only be merged by deduplicating across files, which the issue lists as out of scope and leaves to the sub-epic's restructuring pass. Making edits here would be churn with no gain, so this run commits nothing and adds no changelog fragment, since no plugin changed.

    What the run says it did not do:

    • Changelog fragment for harness-ops not added: no plugin file changed, so no release record is owed
    • Cross-file deduplication of the identical scaffolds (commit-ready-repo x3, GH -stub x5, plant-check cp x2) left to the sub-epic's restructuring pass, as the issue's Out of scope says
    • Tidy, review, build/test and lint steps skipped: the working tree has no diff

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

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

    agent-ready

    Priority

    low

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions