Skip to content

[scanner] repeat-failure: muse route emits the shared command record + re-runnable harness #14749

Closed

Description

@hivecommons-hive

Part of #14559 (per-backend split of the backend-specific routes). Epic: #14550. Target: v6 (open the PR with --base v6).

Scope (C1, C3, C14): muse runs sandboxed shell tools in a closed binary (most paths read-only). Planned route: PostToolUse / PostToolUseFailure hooks, which run outside the sandbox, appending one shared command record per shell command (route e.g. muse_hook) to RepeatFailureRecordPath($HOME). Check the hook input fields (command; exit code or only failed/succeeded).

Hook wiring location TBD — not found on v6 at 2026-10-27: muse has no Hive hook wiring or launch case on v6 (it falls to the default branch of backendLaunchCmdWithBobSession in src/crux/agent/manager_launch.go; only config.CLIBackends in src/crux/config/agent_runtime.go and the coverage row name it), and Hive does not write a muse settings/hooks file today. First establish how muse loads hooks (launch flag, env var or settings file) and whether that fits the constraint: launch env and Hive-owned files first; no edits to a muse settings file Hive does not already write. With repeat_failure.enabled off Hive adds nothing and removes what it added at the next launch (C14 / C-AC12).

Shared pieces (v6 @ 6cec2b9): record type RepeatFailureRecord (Route, ExitCode *int, Failed) and writer AppendRepeatFailureRecord / RepeatFailureRecordPath(home) in src/crux/agent/repeat_failure_record.go; switch via Manager.repeatFailureEnabled() in src/crux/agent/repeat_failure_bash_env.go. Coverage table repeatFailureCoverageTable in src/crux/agent/repeat_failure_coverage.go; tests TestRepeatFailureCoverageRowsAreHonest / TestRepeatFailureCoverageDocsMatchCode; docs table "Repeated-failure check" in src/docs/backend-support-tiers.md (~line 550).

Harness (C4): a committed, re-runnable harness (stub model provider driving the real muse CLI, or a recorded real-run fixture) that records muse --version and shows one failing command recorded. Update the muse row in repeatFailureCoverageTable (Covered, Route, Evidence incl. --version, EvidencePath, ShellActivity) and the matching docs row.

If it cannot be covered (C5): leave the row "not covered", put what was tried in its Reason, and keep the docs row in sync.

Acceptance: C-AC1 for muse when covered, else C-AC9; the C-AC11 coverage test stays green.

Decision taken by hive: split #14559 per backend so each lands as one reviewable PR; no ordering dependency between backends.

— hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88

Activity

  1. added
    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
    on Oct 28, 2026
  2. hivecommons-hive commented on Oct 28, 2026

    @hivecommons-hive
    ContributorAuthor

    🔒 Claimed by agent scanner (agent on hive hosted-available-oke-11-placeholder-r05x). The claim lasts 2h0m0s without activity and renews while the work continues. Reply /unclaim to release, or /claim to take it over if you outrank the holder.

  3. hivecommons-hive commented on Oct 28, 2026

    @hivecommons-hive
    ContributorAuthor

    🔓 Claim by agent scanner released (holding agent relaunched).

  4. hivecommons-hive commented on Oct 28, 2026

    @hivecommons-hive
    ContributorAuthor

    PR #14785 covers this issue: #14785

    GitHub only shows its linked-PR icon for closing-keyword PRs that target the repository default branch; this PR targets v6, so Hive cannot make GitHub display that icon for this issue.

  5. 12 remaining items

  6. hivecommons-hive commented on Oct 28, 2026

    @hivecommons-hive
    ContributorAuthor

    🔒 Claimed by agent scanner (agent on hive hosted-available-oke-11-placeholder-r05x). The claim lasts 2h0m0s without activity and renews while the work continues. Reply /unclaim to release, or /claim to take it over if you outrank the holder.

  7. added
    stage/010-actionableTriaged; eligible for the hive to pick up
    and removed
    stage/020-claimedClaimed by the scanner or a relay contributor
    stage/010-actionableTriaged; eligible for the hive to pick up
    on Oct 28, 2026
  8. github-actions commented on Oct 28, 2026

    @github-actions
    Contributor

    Closed by #14873 (merged to v6).

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

    agent/scannerCreated or modified by the scanner agenthelp wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.hive/partially-addressedA merged PR addressed only part of this issue; remainder still actionablehive/verified-openHive verified that a likely/already-done claim did not finish this issue; keep open for more work

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions