Skip to content

test(ux): require every first-hour next action to reproduce or advance its exact state #6307

Open

Description

@EffortlessSteven

Current implementation and remaining leaves — 2026-10-10

Source inspection: main b8b3809679b48375d53932c4d63dbbd716aeb1de (after #7269). This is source/issue reconciliation, not a new conformance execution receipt.

#6304 / #6859 delivered the canonical selector. #6305 / #7032 delivered task-first repair, continue, and status over the existing attempt. Consume those implementations; this issue does not wait for their reimplementation.

Check composition leaves:

#6986 retains the doctor/pilot/inventory migration. #5006 owns first-hour documentation alignment. Keep product fixes in those focused owners; this issue retains the literal-action transition and projection-parity acceptance below.

Implement the smallest production-backed conformance rows alongside those leaves, then extend the declared family denominator here. Context-free JSON and early refusal envelopes must not invent executable commands to satisfy a parity row. An honest typed limitation is distinct from successfully executing a supported command.

Completion requires produced actions followed from the declared environment, exact subject equality, nonzero selected/executed counts, and observed state transition. Plausible command snapshots alone do not satisfy this contract.


Parent programme: #1693
Consumes delivered foundations: #6304 / #6859 and #6305 / #7032
Consumes command/process authorities: CommandSpec, #3937, #4629
Client consumers: #2928 and the existing standard LSP/MCP owners
Installed/blind consumers: #4508, #4604, #4522

Problem

A next action is useful only when the exact command or contextual action the product presents can be followed literally and either:

advance the selected current state

or:

stop with the precise limitation/prerequisite the product promised

Today command shape, root handling, diff mode, attempt identity, shell rendering, artifact production, and consumer expectations are often tested by separate owners. That can leave a polished action which:

  • refuses when invoked;
  • reads another root, diff, worktree state, item, or attempt;
  • points at an artifact no advertised command produced;
  • works only after a harness privately changes PATH/CWD/environment;
  • succeeds in one surface while another surface emits stale or incomplete arguments;
  • enters a loop rather than reaching a useful terminal state.

Existing focused defects such as a suggested route that always refuses, a worktree action that omits its diff source, or a shell form unavailable on the current platform are symptoms of the missing cross-surface conformance contract.

One-PR objective

Add one bounded first-hour next-action conformance harness and report. It consumes #6304’s canonical action and executes or validates the exact action through the actual public surface against owned fixtures.

The harness owns route fidelity and state transition evidence. It does not own analyzer correctness, command semantics, or the focused product fixes it discovers.

Initial route denominator

Cover at least these public action families:

check result -> inspect or repair
RepairCard -> repair / details
ripr repair -> active RepairAttempt
ripr status -> continue / choose / restart / terminal details
ripr continue -> terminal or next governed state
doctor -> precise setup or recovery action
pilot -> delegated check/repair/inspect action

Where standard LSP, MCP, or VS Code expose the same canonical action, include projection parity rows without reimplementing those transports. A private compatibility surface is labelled separately.

Per-row protocol

For every row:

  1. Create an owned fixture with exact root, base/head/tree, config, diff source, and current state.
  2. Produce the action through the real product surface; never hand-author the command under test.
  3. Retain the canonical action identity and CommandSpec/contextual-action facts.
  4. Launch from a foreign CWD with a decoy repository where a shell command applies.
  5. Do not rewrite PATH, CWD, argv, artifact paths, or environment except through an explicitly declared product contract.
  6. Execute the action or invoke the owning contextual adapter.
  7. Re-read product state from the authoritative consumer.
  8. Assert the expected transition, typed limitation, or selection requirement.
  9. Retain output/artifact/currentness identities and cleanup.

Result vocabulary

Use one closed vocabulary equivalent to:

advanced_expected_state
terminal_state_confirmed
honest_limitation
selection_required
prerequisite_required
wrong_subject
wrong_root_or_diff
stale_action
command_refused
unavailable_rendering
missing_producer_artifact
manual_plumbing_required
nonterminal_or_cycle
instrument_failure
not_run

Only the first five are acceptable outcomes for a deliberately selected positive/limitation row. A command that exits zero without the expected transition is not success.

Required discriminators

  1. Route refusal: an action is rendered but its target is not admitted; the row must fail rather than accepting plausible text.
  2. Diff mode: working-tree and committed actions cannot substitute for one another.
  3. Root: foreign CWD and decoy repository receive no authoritative reads/writes.
  4. Attempt: another current attempt cannot satisfy the selected action.
  5. Artifact producer: deleting or staling one required artifact makes the consumer name the advertised producer/recovery route.
  6. Binary identity: a stale or alternate binary cannot silently satisfy a positive row; fix(0.11): detect or refuse stale RIPR binary substitution in emitted command chains #5115 remains the product owner.
  7. Shell: unsupported PowerShell/Bash rendering is typed unavailable, not emitted as a generic copyable command.
  8. Cycle: pilot/check/status cannot route back and forth without a terminal useful action or limitation.
  9. Manual help: copying hidden artifact paths or privately correcting argv/PATH/CWD records manual_plumbing_required.
  10. Projection parity: CLI human/JSON and applicable LSP/MCP/editor actions bind the same action class, subject, and expected transition.
  11. Terminal idempotency: repeating a complete action cannot duplicate an attempt or receipt.
  12. Cleanup: no owned process, file lock, temp root, or half-authoritative artifact remains.

Existing owner law

The harness must not become a megafix PR. Verified failures route to the smallest current owner, including as applicable:

The harness PR may merge only with a passing declared denominator or explicit accepted limitation rows. It cannot omit an unfavorable row after observing it.

Report

Emit deterministic JSON and Markdown from one DTO with:

candidate/binary identity
fixture/root/base/head/tree/config/diff identity
producer surface
action identity/class/command spec
expected transition
observed invocation and transition
reads/writes/artifacts
manual intervention classification
result and reason
cleanup state
limitations/non-claims
selected/executed/result counts

Human output cannot strengthen a machine failure, not-run, partial, or unavailable row.

Acceptance

Proof direction

cargo test -p ripr --test next_action_conformance
cargo test -p ripr --test cli_smoke -- repair continue status doctor pilot
cargo test -p ripr --test printed_command_paste
cargo test -p ripr --test mcp_conformance
cargo xtask check-output-contracts
cargo xtask check-process-policy
cargo xtask check-local-context
cargo xtask check-static-language
cargo xtask precommit
git diff --check

Exact test binaries and client rows should follow current repository ownership. Native PowerShell and packaged/editor execution remain separately attributed observations.

Non-goals

  • no replacement for installed language journeys or the blind operator;
  • no broad analyzer/actionability correction;
  • no new command grammar, shell parser, or repair lifecycle;
  • no automatic source edit, project verification, or mutation execution;
  • no support-tier or release promotion from fixtures alone.

Claim boundary

Completion proves that the declared first-hour actions reproduce or advance their exact selected product state on the exercised surfaces. It does not prove the underlying repair recommendation is behaviorally correct on arbitrary repositories.

2026-10-26 formal/property journey extension

#10745/#10688/#10690 consume this conformance authority. Add rows only when the corresponding production route exists: property or proof-harness intent, exact verifier inspection/result, and useful non-executable obligations when repair cannot safely be offered.

Bind the same canonical behavior, source kind, base/head or saved input, framework/configuration and selected item before asserting cross-surface parity. Pilot repo scope and check diff scope are not required to have identical finding counts. Legitimate lookup/preparation phase prerequisites may differ, but the underlying readiness facts and recovery must be coherent.

The first formal journey must include stale same-HEAD harness/config edits, unavailable verifier, refused packet, partial native output and a guard-weakening attempt. Follow the literal action with no hidden artifact rescue. #7357's findings-only worktree slice cannot stand in for a qualified worktree RepairCard.

As of this reconciliation, #7258 and #6986 are closed/completed; reuse their current producers. Current route/guidance residuals include #10682/#10698/#10699/#10701/#10702. None of those field reports alone proves this conformance parent complete.

Activity

  1. added
    status/needs-work
    on Oct 4, 2026
  2. EffortlessSteven commented on Oct 10, 2026

    @EffortlessSteven
    MemberAuthor

    Leaf #7258 landed; this parent is not complete.

  3. EffortlessSteven commented on Oct 11, 2026

    @EffortlessSteven
    MemberAuthor

    Residual handoff from merged #7405 / completed #7354: NEEDS_OWNER_DECISION on supported RustFinding rerun scope, under this existing first-hour conformance owner. No new tracker or rival implementation.

    Current ownership reconciliation: #7354 is closed for its accepted discovery option (a); #5264 deliberately delivered healthy Rust --check-output no_records; #6307 remains open. Focused all-state canonical-gap / Rust-rerun / check-output / ledger searches plus current open PRs found no active implementation of this identity bridge. #7410 owns qualified constructor/selected-owner resolution, #7408/#7404 editor lifecycle, #7382 ledger root/revision freshness; those claims are separate. #7412 owns first-hour documentation alignment, not this bridge. No translation writer or assignee is invented here.

    Observed source contract, inspected main e93e66a6d8ba180d9e94bdec43ccc71c8a4d7753:

    • Rust FindingCanonicalGap producer is already reused by the diff loop and repo-finding loop at 2667. Identity unification is not inherently needed.
    • Check-output ledger projection skips ordinary Rust findings; its intentional no-projection regression is at 3670.
    • Repo-exposure ledger projection preserves typed RepoSeam identity and inventory canonical IDs. Their grouping authority includes flow sink, missing discriminator and assertion shape; it is distinct from FindingCanonicalGap.
    • Rust gap recomputation invokes ClassifiedSeam inventory. Readiness and full parity use that authority too. No bounded targeted RustFinding API currently exists; the repo-finding adapter loads the whole workspace. Synthesizing added current lines would need to retain actual delta/removed-counterpart, source-role/generated-policy and config semantics.
    • SPEC-0021 requires opaque whole-string ID comparison. Parsing scope out of the ID, guessing by owner/line, or treating raw Finding.id as RepoSeam.id is not a supported relationship.

    Fresh ordinary Rust execution on Linux/Bash, selected saved executor, pinned Rust/cargo 1.95.0 unchanged. Restored the already-qualified integrated CLI e0c3f2d160b03858b8d5cd758566a892dc4cfce7, SHA256 61d2650e82702b1702c3bf28ce6a99d29fc649a3fdb5d1dd770dc6ce7d6f207e. Its product source is byte-identical through inspected e93; the two subsequent commits touch only xtask/docs/metrics. This is e0 executable proof plus e93 source reconciliation, not a new e93 build or installed release.

    Fixture: dependency-free pricing crate, committed input 24d4c1569a9986ccfd80ec1d6c0c6f2864834d84, tracked amount > threshold -> amount >= threshold, foreign CWD and a space-bearing root. Literal original tests: discounted_total(50,100)==50, discounted_total(1000,100)==990; native cargo test --locked exit0, 2 passed.

    The exact diff command ripr check --root ROOT --base HEAD --worktree --json exited0 and produced one finding with literal ID:
    gap:rust:src/lib.rs:discounted_total:predicate_boundary:predicate:amount==threshold.

    • reports gap-ledger --check-output before.json: exit0, no_records, 0 records, explicit unsupported-projection warning.
    • check --format repo-exposure-json -> reports gap-ledger --repo-exposure: both exit0; 1 record with literal inventory ID gap:54c07ec8eeadf203.
    • That inventory ID: rerun exit0, current_state_only, 1 matched record / 1 scope / 1 seam.
    • Original diff ID with that ledger: exit0, limited/canonical_gap_unresolved, 0 records / 0 scopes / 0 seams.
    • Deliberate wrong-implementation control: copy the diff ID into that record and remove typed seam_id. Rerun exit0, matches 1 record / 1 scope, yet remains limited/canonical_gap_unresolved with 0 seams. Projection alone cannot establish recomputation. No alias implementation was added.

    Compatible existing developer route: both actual emitted explain/context commands were followed literally through Bash from the foreign CWD. They preserved the exact ROOT, --base HEAD --worktree, raw probe ID probe:src_lib.rs:predicate:00a5a375 and original canonical finding ID; both exited0. Neither recommends a literal rerun transition. The current rerun recovery/help already states that absent IDs are not translated, so this investigation did not establish a new falsely promised literal command to patch.

    Add the independent equality assertion discounted_total(100,100)==90 to the tracked integration test and repeat the identical diff check. Native tests: exit0, 3 passed. Check: exit0, same one canonical ID, weakly_exposed -> exposed. ripr outcome --before before.json --after after.json --format json: exit0, one improved / statically closed gap, 0 new / 0 removed. Check JSON lacks head identity; outcome disclosed unverifiable provenance. No runtime mutation adequacy claim.

    Concrete alternatives / next obligation

    1. Keep rerun's current inventory contract. Use the emitted drill-in plus original same-scoped check -> outcome for Rust findings; qualify that literal route under this conformance owner. This already works on the fixture and does not establish targeted rerun interoperability.
    2. Explicitly choose a bounded RustFinding rerun vertical slice, for example candidate-current ordinary scalar predicates only. Preserve the existing producer-supplied opaque FindingCanonicalGap through a typed ledger projection and recomputation using that finding authority. Define supported before snapshots, full parity basis, source/config/currentness provenance and readiness/command meaning before claiming support. Broader diff families that rely on removed-side or retargeted evidence need named exclusions rather than a synthetic current-line shortcut.

    If option2 is selected, minimum red-green acceptance is one literal ID retained through real producer -> consumer, nonzero selected behavior, the independent equality assertion above, correct current/static movement, and agreement with the chosen full authority. Controls must reject another predicate/qualified owner, unchanged or unrelated tests, absent/fabricated IDs, unsupported or static-limited subjects, wrong root, removed behavior, line movement and incompatible before evidence. Genuine canonical_gap_unresolved stays fail-closed; no broad or nearest-anchor fallback and no parallel identity scheme. #7410 remains separate.

    Independent read-only contract review inspected the exact e93 source, producer/consumer/readiness/parity/spec boundaries and live issue state. It agrees: no ready projection-only repair; supported-scope decision precedes a genuine interoperability candidate. No source edits, candidate commit, PR, new CI or package/release action occurred. The initial replay summary wrapper used incorrect field names after the actual commands had completed; corrected literal producer-field assertions and the emitted-action replay exited0. This is instrument correction, not a product red-green claim.

    Evidence retained locally in /workspace/ripr-gap-identity-evidence: original/after Rust test bytes, native stdout/stderr, all 13 command argv/exits and raw outputs, literal emitted-action execution and producer JSON. Resource admission remained conservative: 29GiB free /16GiB RAM limit; no product build, only one tiny native fixture Cargo at a time (2jobs, incremental off). Cleanup complete after all actual replay processes and the independent read-only reviewer released their consumers: removed the task-owned detached worktree, fixture compiler cache and restored expanded executable/symlink. Before release, its hash, size, mode, uid/gid and nanosecond mtime matched the retained witness manifest; the complete archive SHA256 was reverified. Native fixture/source snapshots, argv/exits and raw replay outputs remain (165,619 file bytes). Original checkout/common Git, exact source objects/ref, pinned toolchain and the four prior mandatory witnesses in the verified #7405 archive remain intact. Disk free: 30,630,543,360 bytes. No product build target or unknown target was created, shared or cleaned.

  4. EffortlessSteven commented on Oct 17, 2026

    @EffortlessSteven
    MemberAuthor

    Coordinator decision (2026-10-17, answering for Steven under "make documented decisions"): choose option 1. Keep rerun's current inventory contract and use the emitted drill-in plus the original same-scoped check -> outcome route for Rust findings. Qualify that literal route under this conformance owner. Do not build a bounded RustFinding rerun slice now: no ready projection-only repair exists, the fail-closed canonical_gap_unresolved behavior stays, and no alias or nearest-anchor fallback is added. Revisit option 2 only if a concrete user need appears for targeted rerun interoperability.


    Generated by Claude Code

  5. 3 remaining items

  6. EffortlessSteven commented on Nov 2, 2026

    @EffortlessSteven
    MemberAuthor

    Cursor verify claim: checking whether #6307 is satisfied on main.

  7. EffortlessSteven commented on Nov 2, 2026

    @EffortlessSteven
    MemberAuthor

    Verify result (main cc88b5b95af64c24bd933958b896369de6ea4d40)

    Verdict: partial — foundations landed; unified conformance harness acceptance was still open.

    Already on main (does not complete #6307)

    Item Evidence
    Canonical next-action selector (#6304) crates/ripr/src/domain/next_action.rs controls 1–10; spec RIPR-SPEC-0242
    Task-first repair/status/continue (#6305) crates/ripr/tests/task_first_facade.rs
    Check JSON embeds canonical action (#7257/#7258) crates/ripr/tests/cli_smoke/next_action.rs (default_dirty_check_binds_worktree_provenance_and_reopens_the_finding, merged via #7269/#7285)
    Printed-command paste harness (#4987) crates/ripr/tests/printed_command_paste.rs (command shape, not state-transition matrix)

    Still missing before parent acceptance

    Candidate slice (this verify pass)

    PR incoming: adds cargo test -p ripr --test next_action_conformance with slice-1 CLI rows + root/diff controls + deterministic report DTO. Advances #6307; does not close.

  8. added 2 commits that reference this issue on Nov 2, 2026
  9. added a commit that references this issue on Nov 2, 2026
  10. added 2 commits that reference this issue on Nov 2, 2026
  11. EffortlessSteven commented on Nov 11, 2026

    @EffortlessSteven
    MemberAuthor

    Reconciled against main cb95c5b0 by reading source (nothing was run). The 2026-11-02 verify comment said "PR incoming"; that PR has merged.

    Landed

    Residual (acceptance still open)

    No open PR references this issue. Label set to status/partial only (status/needs-work removed, since a deliverable has merged).


    Generated by Claude Code

  12. removed
    status/needs-work
    on Nov 11, 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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions