Skip to content

feat(repair): project one canonical next action (#6304) - #6859

Merged
EffortlessSteven merged 14 commits into
mainfrom
feat/canonical-next-action-6304
Oct 7, 2026
Merged

EffortlessSteven merged 14 commits into
mainfrom
feat/canonical-next-action-6304

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

Summary

Projects one canonical next action from current first-hour state (#6304): a
single CanonicalNextActionV1 DTO minted by one selector authority
(select_canonical_next_action). Producers (repair card, repair-attempt
status, check triage, agent status) normalize to
NextActionInput and project the decision; doctor, pilot delegation, and inventory
have typed constructors and tests only, with production render migration as owner
follow-up (see Claim Boundary). Nothing re-derives lifecycle,
ranking, or command authority. CommandSpec stays the argv/cwd authority —
the selector only references producer-offered specs.

Swarm / Source Boundary

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge,
    dependency, or repo-ops development for ripr-swarm
  • repair or follow-up for a same-repo swarm PR
  • swarm-only CI, runner, routing, source-of-truth, or agent-operating
    surface
  • other swarm-scoped work:

No publishing, release-asset, signing, or secret surfaces touched.

Source-of-truth Links

Proposal: n/a
Spec: RIPR-SPEC-0242 (docs/specs/RIPR-SPEC-0242-canonical-next-action.md)
ADR: n/a
Plan item: n/a
Governing issue or accepted claim: #6304. Consumed authorities verified on
base: RepairCard #4667, RepairAttempt #4798/#2927, command catalogs
#4822-4825, CommandSpec argv/cwd.
Acceptance delta (one sentence): each first-hour producer projects exactly
one canonical next action through one selector with a closed vocabulary,
gate-ordered selection law, and typed stops.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication):
feat/canonical-next-action-6304
Stack parent or prerequisite PR (if any): none
Proposed replacement of PR (if any; not yet accepted): none
Acceptance retained from a replaced candidate (if any): none
Accepted winner and losing candidate disposition (when decided): undecided

Duplicate-claim search before publish (6304 in:title,body all states,
canonical next action in:title open): empty.

Scope

One architectural seam: the canonical next-action selector plus its
human/JSON projections and producer wiring.

Scope Classification

This PR is scoped by:

  • One production behavior
  • One public contract
  • One architectural seam
  • Docs/spec/test-only evidence package
  • Other:

Production delta:

  • New domain/next_action.rs: closed NextActionClass vocabulary,
    select_canonical_next_action gate order, typed NextActionStops.
  • New output/next_action.rs: human block ( next action: <class> +
    producer:) and JSON value projections.
  • Producers project from the canonical decision: repair card
    (next_action is Some exactly when executable), agent status arms,
    check line-family dispatch (byte-identical renders), next_action_class
    governed enum, digest pins portable parts only. Check diff-source binds
    from declared CheckDiffProvenance threaded from the CLI (worktree /
    supplied scope / committed history), never derived from base presence.

Evidence/support delta:

  • Lib battery (selector law + one focused negative per gate, control 10),
    cli_smoke/next_action case, RIPR-SPEC-0242, .allow slice,
    traceability + output-contract + public-API entries, changelog fragment.

Single acceptance criterion:

  • For any producer state, the surface shows exactly one next action minted
    by the single selector, or a typed stop — never an invented command.

Non-goals:

  • No new lifecycle, store, grammar, or ranking; no aliases; no execution
    or edits; no transport rewrites; no release decisions.

Support-tier Impact

  • none
  • updates docs/status/SUPPORT_TIERS.md
  • changes a README, release, docs, CLI, JSON, editor, CI, or package claim

Claim/proof notes:

  • Repair-card JSON embeds the canonical decision; human card/status/triage
    blocks render the projected action. docs/OUTPUT_SCHEMA.md,
    policy/output_contracts.txt, and policy/public_api.txt updated;
    check-output-contracts and check-public-api pass.

Policy Impact

  • none
  • doc artifacts
  • CI lane
  • package boundary
  • lint / Clippy
  • no-panic
  • file policy
  • generated artifact
  • dependency
  • process/network

Ledger or exception notes:

Proof

cargo xtask check-fast
cargo test -p ripr --lib -- next_action
cargo test -p ripr --lib -- repair_card agent_status triage digest agent_card doctor
cargo test --test cli_smoke -- next_action repair_card repair_attempt doctor
cargo xtask check-command-catalog
cargo xtask check-output-contracts
cargo xtask check-static-language
cargo xtask check-traceability
cargo xtask precommit

Result, failures, or skipped proof:

  • check-fast: pass (13 gates; check-fixture-contracts skipped by the
    gate itself).
  • Lib next_action: 45 passed, 0 failed. Focused lib
    (repair_card agent_status triage digest agent_card doctor): 335
    passed, 0 failed. Smoke filter: 31 passed, 0 failed.
  • check-command-catalog, check-output-contracts,
    check-static-language, check-traceability, precommit: all pass.
  • cargo test --workspace NOT run: full lib runs hit 3 inherited
    repair_attempt::store UNC-spelling failures reproduced on the stashed
    base in this environment (not owned by this PR).
  • Removal experiment (control 10): disabling the stale-head gate stayed
    green until the battery was hardened (unoffered stale case + no-command
    stale row), then red with 2 failures; gate restored.

Claim Boundary

May claim: wired producers project exactly one selector-minted action or a
typed stop; card next_action is executable-iff-Some; digest pins the
portable decision parts. Must not claim: lifecycle/ranking changes;
doctor/pilot/inventory human renders migrated (typed constructors only —
owner follow-up residual).

Rollback

Revert the squash commit on main. No migrations, no data, no flag flips.

Spec-Test-Code Traceability

  • Spec: docs/specs/RIPR-SPEC-0242-canonical-next-action.md
  • Tests: domain::next_action battery, output::next_action projection
    tests, crates/ripr/tests/cli_smoke/next_action.rs
  • Code: crates/ripr/src/domain/next_action.rs,
    crates/ripr/src/output/next_action.rs, producer wiring in
    app/repair_card.rs, app/repair_card_handoff.rs,
    app/agent_status.rs, output/human/triage.rs
  • Golden outputs: smoke assertions on card JSON + human blocks
  • Metrics: n/a
  • ADR/learning: .ripr/traceability.toml entry

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.
  • Unknowns include stop reasons where applicable.

(cargo xtask check-static-language: pass.)

CI Economics

n/a — no workflow, policy-gate, branch-protection, artifact, or release
changes.

Engineering Check

  • No new panic, unwrap, expect, todo, or unimplemented in production code.
  • No new panic, unwrap, expect, todo, or unimplemented in tests.
  • New non-Rust programming files are allowlisted with owner, surface, and reason.
  • New generated, dependency, process-spawn, or network surfaces are allowlisted with owner and reason.
  • Errors are reported with actionable context.
  • Public JSON/schema changes are documented.

(check-no-panic-family and check-allow-attributes pass; new non-Rust
files are spec/changelog/toml evidence, no new generated/dependency/
process/network surfaces; OUTPUT_SCHEMA.md documents the JSON delta.)

Gates

  • cargo fmt --check
  • cargo check --workspace --all-targets
  • cargo test --workspace
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo doc --workspace --no-deps
  • cargo package -p ripr --list
  • cargo publish -p ripr --dry-run
  • cargo xtask check-static-language
  • cargo xtask check-doc-artifacts
  • cargo xtask check-support-tiers
  • cargo xtask check-no-panic-family
  • cargo xtask check-allow-attributes
  • cargo xtask check-local-context
  • cargo xtask check-file-policy
  • cargo xtask check-covered-by
  • cargo xtask check-executable-files
  • cargo xtask check-workflows
  • cargo xtask check-spec-format
  • cargo xtask check-spec-numbering
  • cargo xtask check-fixture-contracts
  • cargo xtask check-generated
  • cargo xtask check-badge-diff-policy
  • cargo xtask check-generated-clean
  • cargo xtask check-dependencies
  • cargo xtask check-process-policy
  • cargo xtask check-network-policy

Also pass: check-command-catalog, check-output-contracts,
check-traceability, check-public-api, check-architecture,
check-capabilities, check-workspace-shape, check-release-targets,
check-droid-review-config, check-identity-registry, check-lint-policy.
Unchecked gates were not run (see Proof for the test --workspace
residual); clippy --all-targets compiled all targets.

Extension changes:

  • cd editors/vscode && npm ci
  • cd editors/vscode && npm run compile
  • cd editors/vscode && npm run package

(n/a — no editor changes.)

Clippy 1.95 lints both assert!(r.is_err()) (assertions-on-result-states)
and assert!(matches!(r, Err(_))) (redundant-pattern-matching), so the
negative battery now uses the house let-else form from analysis/diff/load,
with four unit tests converted to Result-style. The constructor allow also
gains the mandated reason clause.
E:/repo and F:/decoy/checkout trip check-local-context (any drive-letter
token reads as a local machine path). The selector treats root as an
opaque verbatim string, so /repo and /decoy/checkout discriminate the
same control-4 binding without an allowlist budget.
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 38282d86-22dc-4e53-89b8-8e27ab20b459
📥 Commits

Reviewing files that changed from the base of the PR and between 831919d and 1856db7.

📒 Files selected for processing (12)
  • .allow/spec-system/slices/canonical-next-action.v1.toml
  • .ripr/traceability.toml
  • changelog.d/6304-canonical-next-action.md
  • crates/ripr/src/app/agent_status.rs
  • crates/ripr/src/app/repair_card.rs
  • crates/ripr/src/domain/mod.rs
  • crates/ripr/src/output/human/triage.rs
  • docs/OUTPUT_SCHEMA.md
  • docs/specs/README.md
  • docs/specs/RIPR-SPEC-0242-canonical-next-action.md
  • policy/doc-artifacts.toml
  • xtask/src/main.rs
🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

Limit details: You’ve used all 10 included reviews currently available.


Summary by CodeRabbit

  • New Features
    • Repair cards, check triage, and repair-attempt status now provide a consistent next-action recommendation, including when to run a command, inspect details, retry, or stop.
    • Human-readable and JSON output include the same action details, with relevant context, limitations, and bounded alternatives.
    • Repair-card command references now align with the recommended action; commands appear only when the offered route is eligible and executable.

Walkthrough

This change adds canonical next-action decisions to repair cards, single-attempt status reports, and check triage. It defines eight action classes, typed stops, and bounded alternatives. Human and JSON output project the decision, and repair-card digests include selected decision fields.

Changes

Canonical next-action flow

Layer / File(s) Summary
Action contract and registry
.allow/spec-system/slices/*, docs/specs/*, policy/*, .ripr/traceability.toml, changelog.d/*, crates/ripr/src/domain/mod.rs, xtask/src/*
Adds the canonical next-action specification, eight governed action classes, domain re-exports, and linked API, policy, documentation, and traceability records.
Repair-card projection and digest
crates/ripr/src/app/repair_card*.rs, crates/ripr/src/domain/repair_card.rs, crates/ripr/src/repair_card_digest.rs, crates/ripr/src/lsp/repair_card.rs, crates/ripr/src/repair_card_budget.rs, docs/OUTPUT_SCHEMA.md
Repair-card construction stores a canonical decision and derives next_action from its command. The digest includes selected decision identity fields, but not display text or stop routes.
Repair-attempt status projection
crates/ripr/src/app/agent_status.rs, docs/OUTPUT_SCHEMA.md
Selected-attempt status includes an optional canonical decision. Action classes route recorded commands, and the decision is included in JSON output.
Triage projection and case rendering
crates/ripr/src/output/human/triage.rs
Maps triage states to canonical check cases, binds decisions to findings or scope, and selects safe-action prose from the projected case.
Canonical rendering and CLI validation
crates/ripr/src/output/*, crates/ripr/src/cli/commands/agent_card.rs, crates/ripr/src/app/repair_card_usability.rs, crates/ripr/tests/cli_smoke*
Adds human and JSON projections, optional root binding for displayed routes, legacy prose fallbacks when no canonical decision exists, and CLI smoke coverage.

Priority: ⬇️ Low

Estimated code review effort: 4 (Complex) | ~45 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant build_repair_card
  participant select_canonical_next_action
  participant RepairCardV1
  participant agent_card_prose_lines
  participant render_next_action_human
  build_repair_card->>select_canonical_next_action: producer state and offered command
  select_canonical_next_action-->>build_repair_card: canonical decision
  build_repair_card->>RepairCardV1: decision and projected command reference
  agent_card_prose_lines->>render_next_action_human: canonical decision
  render_next_action_human-->>agent_card_prose_lines: human-readable decision block
Loading

Merge Risk: 🟡 Moderate · up to 1856d

Confirm that the spec index does not imply doctor and pilot renderers have migrated before merging.

Security Architecture Review

Security architecture risk: 🔵 Low · up to 1856d

The inspected changes preserve existing repair controls and command authority. Action selection remains advisory, and status and triage decisions do not gain execution privileges. Compatibility and concurrent-state behavior remain only partially assessed.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The inspected exposure is repository-scoped advisory output and repair-card identity. Repository findings and recorded attempt state influence the selected action, but the live card producer offers an existing packet-inspection command rather than new write authority. No broader execution privilege was demonstrated in these paths.

Trust Boundaries and Controls

  • observed — The card builder retains eligibility, edit-cage, readiness and subject-consistency checks. Before producing a runnable reference, the selector checks divergence, ambiguity, terminal obligations, route admission, platform availability, manual mode and bound fresh heads. The runnable reference copies only producer-offered command identity, role and display.

Resilience and Maintainability Implications

  • observed — Canonical card identity includes action class, command identity, stop kind and transition labels alongside existing card evidence. Presentation-only displays remain outside the digest, preserving the distinction between semantic authority and rendered command text.
🚥 Pre-merge checks | ✅ 4 | ❓ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ❓ Inconclusive Docstring coverage is 63.04% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 92 functions across 15 files. (8 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly and concisely identifies the main change: projecting one canonical next action for repair flows.
Description check ✅ Passed The description covers the template’s main sections, explains scope and claim boundaries, and reports proof results and skipped gates. The check-support-tiers gate is unchecked here, although the ob…
Full details: Docstring Coverage

Explanation

Docstring coverage is 63.04% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 92 functions across 15 files. (8 skipped: 7 unsupported, 1 too large.)

✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

I’m a rabbit with a route to read,
Eight clear action classes guide my feet.
A typed stop says, “Pause right here,”
A bound command makes the path more clear.
JSON and prose share one view,
I hop along with choices true.

Comment @coderabbitai help to get the list of available commands.

coderabbitai[bot]

This comment was marked as resolved.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Root handoff note: this lane claims RIPR-SPEC-0234 while open #6590 proposes 0233-0237 with 0234 assigned to TypeScript oracle/reach rules (consumed by #6798). No landed collision yet, but the later-to-merge lane must renumber; expect this spec to move to 0238+ with matching README/ledger/traceability updates before Ready.

Stopped-action stop text embeds the portable packet route; the human next-action block printed it verbatim on a paste-scanned line, so foreign paste targeted the wrong repository. The CLI-bound render now splices --root per #3999 and pairs hostile spellings with their PowerShell form, the same convention as the full-packet line. Measurement keeps the portable render.
…upport-tier impact (#6304)

RIPR-SPEC-0234 landed on main as the work-portfolio compiler spec; this lane moves to 0241 (README, ledger, traceability, slice, changelog). Fills the empty Support-tier impact field per convention (no tier change).
@EffortlessSteven

Copy link
Copy Markdown
Member Author

Root repair push 34893ca (2 commits, lane taken over after handoff): (1) paste-robustness fix — stopped-action stop text embedded the portable packet route and the human next-action block printed it verbatim, so foreign paste targeted the wrong repo; the CLI-bound render now splices --root per #3999 and pairs hostile spellings with the shared PowerShell translator (printed_command_paste 6/6 green locally, was foreign FAIL); (2) spec renumber RIPR-SPEC-0234 to 0241 — 0234 LANDED on main as the work-portfolio compiler spec, so this was mandatory not speculative (README/ledger/traceability/slice/changelog updated; spec-numbering/doc-artifacts/doc-index/traceability gates pass); (3) filled Support-tier impact (no tier change; check-support-tiers passes). Correction to my earlier note: the number is 0241, not 0238+.

coderabbitai[bot]

This comment was marked as resolved.

…itespace (#6304)

The route splice rejoined whitespace-split tokens, which would collapse significant interior spaces inside quoted arguments. Splice --root at the computed byte offset instead so the remainder passes through verbatim.
coderabbitai[bot]

This comment was marked as resolved.

…6304)

Subject root uses the caller-bound root instead of the manifest-recorded spelling (which may be CWD-relative). Index entry no longer claims doctor/pilot renders project canonical actions and lists the status producer once.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self-review (COMMENT, author cannot approve own PR)

reviewed_head_sha: 831919d (branch feat/canonical-next-action-6304)
integration_basis: main b85e628 (behind-only vs current main; disjoint).
claim_boundary: #6304 canonical next action: one closed action-class
vocabulary, gate-ordered selection law, typed stops, human+JSON projections
for RepairCard, RepairAttempt status, check triage; typed doctor/pilot
constructors only (renderer migration explicitly out of scope per PR body).
changed_surfaces_and_semantic_owners_inspected:

  • domain/next_action.rs (selector law, vocabulary, stops, control battery):
    reviewed in depth by delegated selector reviewer (different oracle:
    law-verification + mutation perspective on all 10 controls + 15 control-10
    negatives). Verdict: no blocking findings; selection law holds; no control
    passes vacuously. I verified the verdict's load-bearing sample (gate order
    currentness-first, offered-wins, constructor invariants) by reading the
    selector arms.
  • app producers (repair_card.rs, agent_status.rs, output/human/triage.rs):
    reviewed by root. Repair/status adapters bind offered commands and
    currentness from owning authorities; triage binds restart routes and
    documents all-None currentness as enforced-upstream. One valid bot-found
    defect fixed: status subject used manifest-recorded root (often ".")
    instead of the caller-bound root (19e410a + regression test).
  • output/next_action.rs + cli/commands/agent_card.rs (human/JSON
    projections): reviewed by root. Control 9 pins agreement on subject,
    class, command identity, reason, limitations (not display bytes). Root
    repaired the paste-robustness defect the hosted oracle caught: stopped
    text embedded the portable packet route; the CLI-bound render now splices
    --root per #3999 with byte-offset preservation and paired PowerShell
    forms via the shared translator (cd539f8, 2251b93, 66b341f).
    printed_command_paste 6/6 green locally, was foreign FAIL.
  • repair_card_digest.rs: reviewed by root; only schema/producer/class/
    command-id/role/stop-kind/transitions enter the digest, presentations
    excluded. Sound.
  • RIPR-SPEC-0241 (renumbered from 0234, which landed on main as the
    work-portfolio compiler spec), README index, ledger, slice,
    traceability, changelog: reviewed by root; support-tier field filled
    (no tier change); index wording corrected per bot review.
    blocking_findings: none
    non_blocking_suggestions: 5 battery-strength gaps from the selector
    reviewer (MAX+1 boundary, refusal-vs-refusal precedence, offered+benign
    attempt case, awaits_edit wording ownership, spec title) — the spec title
    one caught a real stranded edit and is fixed in 831919d; the other 4 are
    missing pins around correct code, recorded here, not merge-blocking.
    refuted_or_stale_findings: 4/4 CodeRabbit threads repaired with source
    evidence and resolved (subject root, index wording x2, splice
    hardening). The splice thread's ripr agent note describes intended
    fail-closed (not a paste target per is_paste_target), replied with the
    predicate.
    proof_and_ci_observed: local on exact head: next_action lib 45/45 (pre-
    repair head; repair adds 2 output tests + 1 status test, suites re-green:
    output::next_action 6/6, agent_card 4/4, agent_status 41/41),
    printed_command_paste 6/6, smoke next_action/repair_card/repair_attempt/
    doctor 31/31 (pre-repair head), clippy -D warnings clean, fmt clean,
    check-support-tiers / spec-numbering / doc-artifacts / doc-index /
    traceability pass. Hosted: full matrix green on 34893ca; re-running on
    831919d (2 doc/test-only commits since).
    proof_or_review_missing: exact-head hosted CI receipts (in flight).
    affected_currentness_dimensions: all (first substantive pass on this
    candidate) + repair commits reviewed inline above.
    residual_assumptions_and_non_claims: doctor/pilot/inventory human renders
    not migrated (typed constructors only); check-producer currentness
    all-None by documented upstream enforcement; spec remains proposed.
    disposition: REVIEW_INCOMPLETE (semantic pass clean, no blocking
    findings; advances to REVIEW_READY when hosted CI reports green on
    831919d with no new findings).

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self-review update (COMMENT, author cannot approve own PR)

reviewed_head_sha: 831919d (unchanged since the substantive pass; the two
commits after the reviewed 34893ca base — byte-offset splice hardening
66b341f and stranded spec content 831919d — were reviewed inline: splice
preserves quoted whitespace with regression pins, spec title/support-tier
now committed).
proof_and_ci_observed: all hosted checks on the exact head report
pass/skipping with zero pending (except advisory CodeRabbit) and zero
fails, including the previously failing Rust-only feature lane, paste x3,
and source-of-truth jobs. Threads 4/4 resolved with repairs.
blocking_findings: none
proof_or_review_missing: none
disposition: REVIEW_READY. May proceed to finish-pr merge convergence.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 7, 2026 06:10
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 6 potential issues.

Devin Review

Comment thread crates/ripr/src/output/human/triage.rs Resolved
Comment thread crates/ripr/src/app/agent_status.rs Resolved
Comment thread crates/ripr/src/app/agent_status.rs Resolved
Comment thread crates/ripr/src/app/repair_card.rs Resolved
Comment thread crates/ripr/src/domain/next_action.rs Resolved
…ction-6304

# Conflicts:
#	.ripr/traceability.toml
#	crates/ripr/src/domain/mod.rs
#	crates/ripr/src/output/human/triage.rs
#	docs/specs/README.md
#	policy/doc-artifacts.toml
@EffortlessSteven

Copy link
Copy Markdown
Member Author

Merge 1856db7: reconciled with current main (5 conflicts: traceability, domain/mod, triage imports, spec README, doc-artifact ledger). No rival next-action work on main. Forced renumber 0241 to 0242 (main landed 0241-check-json-refusal-envelope mid-flight; 0242 unclaimed). Local proof on merged tree: next_action 47, repair_card 49, agent_status 42, triage 5, paste foreign green; spec-numbering/doc-artifacts/doc-index/traceability pass. Prior REVIEW_READY is stale for conflict-resolution/integration-basis dimensions; will refresh after CI.

…#6859)

The triage adapter derived working-tree vs committed from output.base presence, mislabeling --worktree runs (which resolve a base) as committed and supplied scopes (which have none) as the live tree. Thread CheckDiffProvenance from the CLI through render to the adapter; pin all three modes. Document the attempt-observed and card route-subject semantics the review threads challenged.
@EffortlessSteven

Copy link
Copy Markdown
Member Author

review-pr refresh: #6859 at 3216004 — REVIEW_READY

Self-review (author) as COMMENT with disposition. Exact head reviewed:
3216004b58de71e7e8875c310a16616c2cd2ab81. Prior review was
REVIEW_INCOMPLETE pending CI; this refresh covers the merge resolution,
the provenance-fix delta, CI, and thread dispositions.

Integration basis

  • Merge 1856db773 resolved 5 conflicts (traceability, domain/mod,
    triage imports, README, doc-artifacts) plus a forced spec renumber
    0241→0242 (0241 landed on main as ux(check): check --json emits zero bytes on stdout for every failure except two scope guards - exit 2, prose on stderr, nothing to parse #6834 during the window). No
    semantic content changed in resolution; the spec file, README entry,
    ledger, traceability, and slice all name 0242 consistently.
  • Commit 3216004b5 (this head): CheckDiffProvenance threading —
    CLI declares worktree/supplied/committed, render threads it to
    canonical_next_action_for_triage, adapter binds the diff-source
    from it instead of deriving from output.base. Plus three
    documentation comments (attempt-observed, historical-terminal, card
    route-subject) and one spec sentence. No render-byte change: the
    check DTO's diff-source is latent (only the triage case is
    consumed), and the case law is untouched.

Proof

  • Hosted CI on this head: all green — Rust-only feature lane,
    source-of-truth, spec-maintenance-digest, paste matrix (3 OS),
    wheel build, cargo-deny, dependency-review, CodeRabbit, GitGuardian,
    ub-review; rest skipping (non-release lanes). No failures.
  • Local: triage 6/6 (incl. new 3-mode provenance pin),
    navigation 6/6, agent_status 42/42, repair_card 49/49,
    human render 123/123, clippy clean, fmt clean. One
    cli::commands::check failure (linked_worktree_git_file) is a
    pre-existing Windows //?/ fixture-path environment failure,
    reproduced identically on the stashed base — not this PR.
  • Removal/negative controls: control-10 battery intact; new negative
    pins worktree+base→WorkingTree, supplied+no-base→Committed{None},
    committed+base→Committed{base}.

Threads: 10/10 resolved with replies

  • 4 CodeRabbit (subject root, index wording x2, splice hardening):
    accepted and fixed earlier.
  • 6 devin: T1 worktree mislabel accepted and fixed (this head);
    T2 attempt-observed declined with evidence (ancestry authority vs
    equality gate order — binding observed would flip lifecycle);
    T3 historical-terminal declined with evidence (spec acceptance
    pins terminal; "already complete" is true of the attempt; currency
    disclosed in sibling status fields; terminal DTOs structurally
    carry no transition); T4 card diff-source declined as framed,
    route-subject semantics documented in code + spec; T5/T6 PR-body
    scope/spec-number claims corrected.

Residuals (out of scope, recorded)

  • doctor/pilot/inventory production render migration: owner follow-up
    (Claim Boundary).
  • 4 selector battery gaps (MAX+1, refusal precedence, offered+benign,
    awaits_edit wording): missing pins, no behavior question.
  • Card analysis-input provenance: documented as route-subject; a
    pipeline change would be a new capability, not a defect repair.

Disposition

REVIEW_READY. Merge by ordinary protected squash; reconcile #6304
after the merge SHA lands.

@EffortlessSteven
EffortlessSteven merged commit 4233a0a into main Oct 7, 2026
39 checks passed
@EffortlessSteven
EffortlessSteven deleted the feat/canonical-next-action-6304 branch October 7, 2026 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant