Skip to content

harness-ops: adopt commandPrinted/commandFailed in reset-refresh.sh (held for the owner, waits on a probe) #17831

Open

Description

@kyle-sexton

Refs: #17713

Context

Item 5 of the 13 handoffs the v2.1.330 changelog apply run filed as #17713, split one issue per item under the owner's decision on that issue ("Go with recommendations.", 2026-11-21).

Route: a decision item, held for the owner (owner decision on #17713). It waits until a probe confirms the new fields. Security-relevant: the path gates running marketplace-declared commands.

Owner surface: plugins/harness-ops/skills/plugins/scripts/reset-refresh.sh
Lens: adopt
Items: 2.1.330-007
Range: 2.1.330..2.1.330

Required sentence: The script judges a marketplace-declared install command, accepted by sha256, only by the exit code and cannot see whether that command wrote to stderr, exited with an error, was killed or timed out; the new commandPrinted and commandFailed fields of claude plugin install --json supply that.

Why a handoff (adopt): Adopting is a decision; defer pending probe (no docs page or probe shows the fields or whether the exit code already reflects a failed command). Security-relevant: the path gates running marketplace-declared commands.

Repo evidence (unverified, verification: skipped (light)): reset-refresh.sh:312-333 (install_user); sync-run.sh:763-771 (cli_json fields); scripts/fixtures/cli-json-results.jsonl
Recheck trigger: plugins CLI reference, plugin install JSON result

Done when

  • A probe on Claude Code 2.1.330 or later shows whether claude plugin install --json reports commandPrinted and commandFailed, and whether the exit code already reflects a failed command; the result is recorded on this issue
  • The owner decides whether plugins/harness-ops/skills/plugins/scripts/reset-refresh.sh adopts the fields

Activity

  1. added
    needs-owner-decision
    on Nov 21, 2026
  2. added
    needs-triage
    on Nov 21, 2026
  3. github-actions commented on Nov 21, 2026

    @github-actions
    Contributor

    Size: Small
    Complexity: Medium
    Uncertainty: Unknown
    Flags: intent
    Blocked by: none
    Blast radius: plugins/harness-ops/skills/plugins/scripts/reset-refresh.sh, in the install path that runs marketplace-declared commands. It is run by whoever uses the harness-ops plugins skill.
    Reversible: yes; the adoption is a script edit that can be reverted, and the probe result is only a record on this issue.
    Open questions:

    1. Should reset-refresh.sh adopt commandPrinted and commandFailed from claude plugin install --json, after a probe on 2.1.330 or later shows whether the fields exist and whether the exit code already reflects a failed command?
      RECOMMENDED: Adopt only if the probe shows the fields are present and the exit code does not already catch a failed command. If the exit code already covers it, leave the script as it is. Basis: the script currently judges an install command by exit code alone, so the fields add value only if they carry information the exit code lacks.

    I understood this as one of the split handoffs from #17713. It has two done-when items: a probe on Claude Code 2.1.330 or later, and an owner decision on adopting the fields. I found no open duplicate and no merged pull request that already covers it. The probe is a Claude Code run that this lane cannot do. It does not hold the issue by itself, but the adoption decision stays with the owner. I judged the security angle as ordinary work, because the change only tightens how failures are judged.

    To answer, post a comment that starts with this line:

    **Decision recorded.** <answer>
    

    Automated triage. A maintainer reviews it.

  4. melodic-automation-lanes commented on Nov 21, 2026

    @melodic-automation-lanes
    Contributor

    The triage verdict left this issue at needs-owner-decision:

    • flagged: intent
    • held by needs-owner-decision
    • no lanes App verdict comment shows whether an earlier verdict was flagged

    Reason: intent

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

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: its done-when asks for what an unattended lane run cannot perform: item 1 (tracker-output: "A probe on Claude Code 2.1.330 or later shows whether claude plugin install -..."); recommended split: keep the other items here as the admissible issue and move these to a child issue for the host queue (host-run).

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

    @melodic-automation-lanes
    Contributor

    Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.

    Intended outcome: Adopt commandPrinted and commandFailed in install_user of reset-refresh.sh only if a probe shows the fields exist and the exit code misses failed commands; otherwise leave the script unchanged.

    Related work

    Open questions

    1. What does a probe on Claude Code 2.1.330 or later show: does claude plugin install --json report commandPrinted and commandFailed, and does its exit code already reflect a failed marketplace command?
      RECOMMENDED: A person runs the probe and records the JSON output and exit codes on this issue before any edit; the lane cannot run it. Basis: plugins/harness-ops/skills/plugins/scripts/reset-refresh.sh:320-322 (the script reads only exit code and shownCommand.sha256; neither field appears anywhere in the repository)
    2. Should reset-refresh.sh adopt the two fields in install_user?
      RECOMMENDED: Adopt only if the probe shows the fields are present and the exit code does not already catch a failed command; otherwise leave the script as it is. Basis: plugins/harness-ops/skills/plugins/scripts/reset-refresh.sh:331 (the accepted-command install is judged by cli_or_count, i.e. exit code only)
    3. If adopted, how should a failure be counted: should commandFailed or commandPrinted (stderr output) on the accepted-command install count as a failure, or only be reported as a warning?
      RECOMMENDED: Count commandFailed as a failure via count_failure; show commandPrinted as a warning without failing. Basis: judgment

    Sources read

    • /home/runner/work/claude-code-plugins/claude-code-plugins/.base/plugins/harness-ops/skills/plugins/scripts/reset-refresh.sh:295-337: run_cli/cli_or_count judge by exit code; install_user in clean mode retries with --accept-command sha256 and uses cli_or_count, with no check of commandPrinted or commandFailed
    • Grep commandPrinted|commandFailed over the repository checkout: no matches, so no code, fixture or doc mentions the fields

    To answer, post a comment that starts with this line:

    **Decision recorded.** <answer>
    

    Automated refinement by the lanes App. Answer with a comment whose first line is **Decision recorded.**.

  7. added this to the After zero milestone on Nov 22, 2026
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

    needs-owner-decisionneeds-triage

    Type

    Fields

    Work status

    needs-owner-decision

    Priority

    medium

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions