Repository navigation
Description
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:
- fix(check): bind canonical next-action provenance to the effective diff source #7257 — delivered by fix(check): bind canonical next-action provenance to the effective diff source #7269 (
b8b3809679b48375d53932c4d63dbbd716aeb1de); canonical provenance binds to the effective analyzed source (worktree_run). - feat(check): expose the canonical next action in JSON #7258 — expose the existing canonical check action through the context-bearing public JSON adapter, preserving typed stops and unavailable context.
#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:
- Create an owned fixture with exact root, base/head/tree, config, diff source, and current state.
- Produce the action through the real product surface; never hand-author the command under test.
- Retain the canonical action identity and
CommandSpec/contextual-action facts. - Launch from a foreign CWD with a decoy repository where a shell command applies.
- Do not rewrite PATH, CWD, argv, artifact paths, or environment except through an explicitly declared product contract.
- Execute the action or invoke the owning contextual adapter.
- Re-read product state from the authoritative consumer.
- Assert the expected transition, typed limitation, or selection requirement.
- 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
- Route refusal: an action is rendered but its target is not admitted; the row must fail rather than accepting plausible text.
- Diff mode: working-tree and committed actions cannot substitute for one another.
- Root: foreign CWD and decoy repository receive no authoritative reads/writes.
- Attempt: another current attempt cannot satisfy the selected action.
- Artifact producer: deleting or staling one required artifact makes the consumer name the advertised producer/recovery route.
- 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.
- Shell: unsupported PowerShell/Bash rendering is typed unavailable, not emitted as a generic copyable command.
- Cycle: pilot/check/status cannot route back and forth without a terminal useful action or limitation.
- Manual help: copying hidden artifact paths or privately correcting argv/PATH/CWD records
manual_plumbing_required. - Projection parity: CLI human/JSON and applicable LSP/MCP/editor actions bind the same action class, subject, and expected transition.
- Terminal idempotency: repeating a complete action cannot duplicate an attempt or receipt.
- 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:
- root and shell execution owners such as test(0.11): execute rooted recovery commands from foreign CWD in Bash and PowerShell #3937;
- executable/artifact identity fix(0.11): detect or refuse stale RIPR binary substitution in emitted command chains #5115;
- RepairCard/default-handoff owners feat(cli): make RepairCard the default bounded agent handoff #4667/control(0.11): disposition RepairCard adoption before the final cut #5116;
- LSP/MCP/editor projection owners;
- focused command defects such as agent stub:
checksuggests "Write a test for it: ripr agent stub" on gaps the stub then refuses (0 of 3 agent-as-user targets got a stub) #5471 or lsp: ripr.collectContext witness explain_command omits --worktree for worktree-diff sessions, so the packet routes to a command that cannot see its own finding #5994; - documentation/install command parity docs(distribution): verify package quickstarts and continuation commands against installed behavior #4629.
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
- Every initial first-hour action family has at least one positive or honest-limitation row.
- The harness executes actions exactly as produced, with no private PATH/CWD/argv/artifact rescue.
- Wrong root, diff, attempt, artifact, binary, shell, stale, cycle, and manual-plumbing controls fail distinctly.
- Applicable CLI/LSP/MCP/editor projections agree on the same canonical action and state transition.
- Zero selected or zero executed required rows cannot aggregate to pass.
- Product defects discovered by the matrix retain focused ownership and exact reproduction.
- The packet is reusable by test(0.11): run literal installed Rust, Python, and TypeScript journeys on the successor candidate #4508/test(0.11): execute the uninformed installed-agent journey on the immutable successor candidate #4604/control(0.11): bind successor qualification packets and compute exact source replay requirements #4522 only under exact subject and contract equality.
- A second identical run is deterministic apart from declared telemetry.
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 --checkExact 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
fix(check): bind canonical next-action provenance to the effective di…
EffortlessSteven commentedon Oct 10, 2026
Leaf #7258 landed; this parent is not complete.
5fc77a91871ea352e7dfaa322b90bfbe853d3fferipr check --format jsonembedscanonical_next_action.v1from the shared fix(check): bind canonical next-action provenance to the effective diff source #7257 producer (CheckDiffProvenance::from_effective_source). Classification goldens strip that last member; honestycorpus.jsonwas not refreshed.b8b3809679b48375d53932c4d63dbbd716aeb1de(provenance bound to effective source).EffortlessSteven commentedon Oct 11, 2026
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-outputno_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:Fresh ordinary Rust execution on Linux/Bash, selected saved executor, pinned Rust/cargo 1.95.0 unchanged. Restored the already-qualified integrated CLI
e0c3f2d160b03858b8d5cd758566a892dc4cfce7, SHA25661d2650e82702b1702c3bf28ce6a99d29fc649a3fdb5d1dd770dc6ce7d6f207e. 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, trackedamount > threshold->amount >= threshold, foreign CWD and a space-bearing root. Literal original tests:discounted_total(50,100)==50,discounted_total(1000,100)==990; nativecargo test --lockedexit0, 2 passed.The exact diff command
ripr check --root ROOT --base HEAD --worktree --jsonexited0 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 IDgap:54c07ec8eeadf203.current_state_only, 1 matched record / 1 scope / 1 seam.limited/canonical_gap_unresolved, 0 records / 0 scopes / 0 seams.seam_id. Rerun exit0, matches 1 record / 1 scope, yet remainslimited/canonical_gap_unresolvedwith 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 IDprobe:src_lib.rs:predicate:00a5a375and 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)==90to 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
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_unresolvedstays 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.docs(guides): align first-hour repair guides with the task-first faça…
docs(guides): align first-hour repair guides with the task-first faça…
docs(guides): align first-hour repair guides with the task-first faça…
docs(guides): align first-hour repair guides with the task-first faça…
docs(guides): align first-hour repair guides with the task-first faça…
fix(docs): align five documentation truths with shipped behavior (#7412)
EffortlessSteven commentedon Oct 17, 2026
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->outcomeroute 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-closedcanonical_gap_unresolvedbehavior 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
3 remaining items
EffortlessSteven commentedon Nov 2, 2026
Cursor verify claim: checking whether #6307 is satisfied on main.
EffortlessSteven commentedon Nov 2, 2026
Verify result (main
cc88b5b95af64c24bd933958b896369de6ea4d40)Verdict: partial — foundations landed; unified conformance harness acceptance was still open.
Already on main (does not complete #6307)
crates/ripr/src/domain/next_action.rscontrols 1–10; spec RIPR-SPEC-0242crates/ripr/tests/task_first_facade.rscrates/ripr/tests/cli_smoke/next_action.rs(default_dirty_check_binds_worktree_provenance_and_reopens_the_finding, merged via #7269/#7285)crates/ripr/tests/printed_command_paste.rs(command shape, not state-transition matrix)Still missing before parent acceptance
next_action_conformanceharness + shared report (issue proof direction)Candidate slice (this verify pass)
PR incoming: adds
cargo test -p ripr --test next_action_conformancewith slice-1 CLI rows + root/diff controls + deterministic report DTO. Advances #6307; does not close.test(#6307): add first-hour next-action conformance harness slice 1
test(#6307): harden next-action conformance oracle and admit PR body
test(#6307): first-hour next-action conformance harness (slice 1) (#1…
test(#6307): first-hour next-action conformance harness (slice 1) (#1…
test(#6307): first-hour next-action conformance harness (slice 1) (#1…
EffortlessSteven commentedon Nov 11, 2026
Reconciled against main
cb95c5b0by reading source (nothing was run). The 2026-11-02 verify comment said "PR incoming"; that PR has merged.Landed
7a1fbfef.crates/ripr/tests/next_action_conformance.rsholdsfirst_hour_next_action_conformance_matrixandconformance_report_is_deterministic_apart_from_fixture_paths, with rows incrates/ripr/tests/next_action_conformance/rows.rs. Per the merge record it covers CLI route rows for each first-hour family, root and diff controls, a report DTO, and an aggregate that refuses zero executed selected rows.b8b38096) and feat(check): expose canonical next action in check JSON #7285 (5fc77a91).Residual (acceptance still open)
No open PR references this issue. Label set to
status/partialonly (status/needs-workremoved, since a deliverable has merged).Generated by Claude Code