Skip to content

agent: residual gaps in the running-binary recovery command and producer-version refusal (#9632 review) #9665

Closed

Description

@EffortlessSteven

Residuals from the independent reviews of #9632 (closing #9500). None is a blocker; the reviewers read source and did not execute these.

  1. Deleted executable (Linux). std::env::current_exe() can return /path/ripr (deleted) when the binary was replaced under a long-lived process (LSP, MCP). The recovery command in agent/artifact.rs (~354-358) would then name a non-existent path. Needs a fallback to bare ripr when the path does not exist.
  2. Windows PowerShell form. The program is now a quoted path; confirm invoke_quoted_program (output/markdown.rs) adds the & call operator, and add a Windows-lane test with a spaced executable path (related release(windows): terminalize native process, LSP, cache, and package evidence before the 0.11 cut #3922, testinfra(0.11): extend the exact-candidate harness for successor qualification packets #4510).
  3. Lossy advice for before/after pairs. For a retained repair-attempt "before" snapshot (repair_attempt/mod.rs:558), "regenerate" at the current tree does not reproduce the historical snapshot after a mid-attempt upgrade. The diagnostic is accurate; the recovery advice is not.
  4. Currentness classification. In output/agent_seam_packets_live/currentness.rs:277-290, the version check now runs before the root check, so a foreign-version artifact from another root reports not_evaluated instead of stale. No test covers it.
  5. Version-only identity. Two builds of the same version (dev vs release) are indistinguishable; the spec already disclaims producer authentication.
  6. Test coverage. No test for the bare-ripr fallback message.

Item (a) of #9500 (the gap-ledger route) was delivered upstream as a warning by #9570; a refuse-not-warn rule there would be a separate owner decision.

Owner: the thread that landed #9632. Goal hurt: trustworthy refusals that say what to do next.

Activity

  1. added
    status/needs-work
    on Oct 22, 2026
  2. added
    release-check
    on Oct 22, 2026
  3. EffortlessSteven commented on Oct 22, 2026

    @EffortlessSteven
    MemberAuthor

    Additions from the automated review on #9632 (review 5613957962), all nonblocking test-grip items: (1) the forged-version test mutates only producer.version; add a case that also rewrites producer.tool so the version-equality gate is shown to be the refusal cause. (2) No test for the current_exe() unavailable fallback path. (3) The bot's claim that a lying version_line() or tool/identity rewrite bypasses the gate was refuted from source: the != compare against CARGO_PKG_VERSION ignores tool and identity fields, and the program and version line come from one process.


    Generated by Claude Code

  4. EffortlessSteven commented on Oct 22, 2026

    @EffortlessSteven
    MemberAuthor

    Claiming items 1 and 6 (deleted-executable fallback to bare ripr, plus its test) and the producer.tool rewrite test from the comment.
    Branch: claude/recovery-deleted-exe-fallback
    PR: pending
    State: implementing; items 2-5 left unclaimed.


    Generated by Claude Code

  5. EffortlessSteven commented on Oct 22, 2026

    @EffortlessSteven
    MemberAuthor

    Update: PR for items 1 and 6 is #9719 (qualification requested). Items 2-5 remain unclaimed.


    Generated by Claude Code

  6. EffortlessSteven commented on Oct 22, 2026

    @EffortlessSteven
    MemberAuthor

    Items 1 and 6 delivered in #9719 (squash 8206067). The deleted or missing running executable now falls back to bare ripr with the ripr --version check, covered by a Linux test that unlinks its own binary in a child and reaches the production running_executable() path (it fails with that wiring reverted). Still open: item 2 (Windows PowerShell form), item 3 (before/after advice), item 4 (currentness classification test), item 5 (version-only identity), and the producer.tool rewrite test from the comment above.


    Generated by Claude Code

  7. EffortlessSteven commented on Oct 22, 2026

    @EffortlessSteven
    MemberAuthor

    Claiming the producer.tool rewrite test.
    Branch: claude/foreign-version-currentness-tests
    PR: pending
    State: implementing.

    Decision on item 4 (version check before root check in currentness.rs): leaving the ordering as is. A foreign-version artifact from another root reports not_evaluated rather than stale; both are non-assignable stop-and-refresh states, and not_evaluated is the more conservative one because the artifact's producer cannot be trusted enough to say which root it describes. Pinning it needs a real producer artifact from a second repository, which costs far more than the classification difference is worth. Items 2, 3 and 5 stay open and unclaimed.


    Generated by Claude Code

  8. EffortlessSteven commented on Oct 22, 2026

    @EffortlessSteven
    MemberAuthor

    #9739 merged (7b9e3c6): regression test pinning that a rewritten producer.tool is refused by the producer-identity gate, with a genuine or forged version. Item 4 decision stands (version check before root check; both outcomes are non-assignable). Remaining on this issue: item 2 (Windows PowerShell call operator), item 3 (before/after advice), item 5 (version-only identity).


    Generated by Claude Code

  9. EffortlessSteven commented on Oct 22, 2026

    @EffortlessSteven
    MemberAuthor

    Decisions, no PR needed for these two:

    • Item 2 (Windows PowerShell form): already satisfied on main. invoke_quoted_program (output/markdown.rs) prefixes & to any quoted program, including after leading whitespace, and powershell_command_invokes_quoted_program_paths_with_call_operator pins a spaced path ('my tools\recorder.exe') for both the plain and redirect forms. regeneration_guidance_for renders the PowerShell variant through that same translator. Nothing to add.
    • Item 5 (version-only identity): wontfix for 0.11. The spec already disclaims producer authentication, and distinguishing dev from release builds needs a build-identity field, which is a schema change rather than a reliability fix. Revisit only if a real mis-refusal shows up.

    Next I'm taking item 3 (lossy before/after advice in repair_attempt).


    Generated by Claude Code

  10. EffortlessSteven commented on Oct 22, 2026

    @EffortlessSteven
    MemberAuthor

    Claim: item 3. Branch claude/before-snapshot-recovery-advice, PR #9758, state: candidate selected, merge-ready requested, waiting on the required Rust Small result.


    Generated by Claude Code

  11. EffortlessSteven commented on Oct 22, 2026

    @EffortlessSteven
    MemberAuthor

    #9758 merged (06e7f86): refusing a retained repair-attempt before snapshot now advises starting a new attempt instead of regeneration. Acceptance reconciliation for this issue:

    1. deleted executable: fixed, Fall back to bare ripr when the running executable is gone #9719
    2. PowerShell call operator: already on main, confirmed above
    3. lossy before/after advice: fixed, Advise a new repair attempt when a retained before snapshot is refused #9758
    4. ordering: decision recorded, test pinning the identity gate in Pin rewritten producer.tool refusal in agent verify #9739
    5. version-only identity: wontfix for 0.11, spec disclaims authentication
    6. bare-ripr fallback test: Fall back to bare ripr when the running executable is gone #9719

    Closing as complete.


    Generated by Claude Code

  12. EffortlessSteven commented on Oct 24, 2026

    @EffortlessSteven
    MemberAuthor

    Closing as complete. Disposition of the six items: 1 and 6 delivered in #9719; the producer.tool rewrite test in #9739; 3 delivered in #9758 (merged 2026-10-22); 2 already satisfied on main (invoke_quoted_program call operator, pinned by a spaced-path test); 4 left as is (both outcomes are non-assignable, decision recorded above); 5 wontfix for 0.11 (spec disclaims producer authentication; revisit only on a real mis-refusal).


    Generated by Claude Code

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

    release-checkstatus/needs-work

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions