Repository navigation
fix(output): give the packet index one Start here block that names its files (#3971) - #3973
Conversation
…s files `ripr reports index` printed `Start here:` twice in one document, naming different files, labelled `start-here.md` as the PR review front panel, and filed the canonical first-PR packet under "Local context". All three came from one cause. Every artifact declares its group on its own ArtifactSpec, but group_entries decided grouping from a second, parallel id-to-group match that had no arm for first_pr_start_here, so it fell through to local_context against docs/OUTPUT_SCHEMA.md. That same table maps the start_here group to the label "Start here", which the group loop then rendered as a heading beside the hoisted block's own "Start here:". The declared group is now the only grouping authority and the parallel table is gone. The markdown hoists the start_here group into its `Start here:` block using each artifact's own label, and skips the group section only when that hoist happened, so a missing artifact keeps its regeneration command when nothing was hoisted. RIPR-SPEC-0024 gains the Expected Surfaces row for start-here.md that it never had, and states the hoist. Refs #3971 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PTKGFhuph96fcVyfb8vBxK
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- artifact-verifier sensor failed (exit code 2). Not on the changed-behavior path: affected file is one source module plus spec/traceability. Posted so the reviewer can decide whether to rerun before merge; does not affect the correctness claim.
- declared_group's 'local_context' fallback recreates the silent mis-filing class this PR exists to fix; convert to an explicit error or debug-assert when an id has no spec.
Verification questions
- Confirm sibling renderers (e.g. JSON side
render_report_packet_index_json, the front-panel CLI commands) were not in this diff's surface; the change is confined to the report-packet-index markdown renderer and its grouper, so no otherStart here:sites were touched.
Parked follow-ups
- golden/dogfood check is openly admitted as not load-bearing here (#3972). artifact-verifier failed with exit 2. This is trust-affecting missing.
Evidence gaps
- PR's discrimination matrix only shows line counts of failing tests per mutation; mutation-witness receipts absent in this run (cargo-mutants/ripr disabled). Proof intent is the most reliable way to confirm the four tests' discriminating power.
- Model proof intent was rejected by deterministic validation.
- golden/dogfood check is openly admitted as not load-bearing here (#3972). artifact-verifier failed with exit 2. This is trust-affecting missing.
The review on #3973 found that `declared_group`'s `local_context` fallback recreated the silent mis-filing class this PR exists to fix: an entry whose id matched no spec would have been filed under a group its spec never declared, exactly as the deleted `group_for_entry` table did to `first_pr_start_here`. The fallback is now unreachable by construction rather than guarded. Every entry is built from an `ArtifactSpec`, so `GroupedEntry` carries `spec.group` alongside the entry it produced and `group_entries` never looks a group up by id. There is no "entry with no spec" case left to fall back on, so no default group is needed. `GROUP_ORDER` is now a module const and `declared_group_decides_where_an_artifact_is_filed` reads that const rather than a copy of the list, which closes the same drift one level up: `group_entries` renders those groups and nothing else, so a declared group missing from the list would drop its artifacts from the index and from `summary.entries` without a word. That test also now generates the packet and reads back where the entry was filed, which its doc comment already claimed. Mutations, both discriminated: - file available entries under `local_context`: 3 failed (`declared_group_decides_where_an_artifact_is_filed`, `markdown_has_one_start_here_block_naming_each_first_screen`, `report_packet_index_groups_coverage_grip_as_calibration`) - drop `calibration` from `GROUP_ORDER`: 2 failed (`declared_group_decides_where_an_artifact_is_filed`, `report_packet_index_groups_coverage_grip_as_calibration`) Restored: 56 passed. `cargo clippy -p ripr --all-targets -D warnings`, `cargo fmt --check` and `cargo xtask precommit` are green. No `ArtifactSpec` declares `local_context` today. It stays in `GROUP_ORDER` and in the label and summary tables because `docs/OUTPUT_SCHEMA.md`, `docs/REPORT_PACKET_INDEX_WORKFLOW.md` and RIPR-SPEC-0024 all document it as part of the group vocabulary; a group with no entries renders nothing. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PTKGFhuph96fcVyfb8vBxK
|
Both confirmed findings answered. One is taken and pushed; one is an instrument failure, not a repository check.
|
| Mutation | Result |
|---|---|
File available entries under local_context |
3 failed: declared_group_decides_where_an_artifact_is_filed, markdown_has_one_start_here_block_naming_each_first_screen, report_packet_index_groups_coverage_grip_as_calibration |
Drop calibration from GROUP_ORDER |
2 failed: declared_group_decides_where_an_artifact_is_filed, report_packet_index_groups_coverage_grip_as_calibration |
One fact worth recording, since it is not obvious from the diff: no ArtifactSpec declares local_context. A census of the 32 specs gives validation_receipts 8, start_here 5, calibration 5, policy_gates 4, sarif_badges 3, evidence_movement 3, repair_agent_handoff 2, pr_review_story 2. Before this PR, the only way an artifact reached local_context was through a fallback — which is how first_pr_start_here got there. local_context stays in GROUP_ORDER and in the label and summary tables because docs/OUTPUT_SCHEMA.md, docs/REPORT_PACKET_INDEX_WORKFLOW.md and RIPR-SPEC-0024 all document it as part of the group vocabulary; a group with no entries renders nothing.
cargo clippy -p ripr --all-targets -- -D warnings, cargo fmt --check and cargo xtask precommit are green at that head.
artifact-verifier sensor failed (exit code 2) — instrument failure, not a repository check
This is the review harness's own sensor, not a gate in this repository. Evidence:
grep -rn "artifact-verifier\|artifact_verifier" \
--include=*.yml --include=*.yaml --include=*.rs --include=*.toml --include=*.json .
returns zero matches across the whole tree. The PR's status rollup carries only the two review bots, and none of its workflow runs carries that name either. So nothing in this repository can produce or fix that exit code.
Per the repository's own rule that instrument failure stays distinct from source failure, I am recording it as instrument state rather than treating it as a finding against the diff. Rerunning it before merge is reasonable and costs nothing; it is not something a push here can clear.
Verification question — sibling renderers
Answerable from the diff surface, which is report_packet_index.rs, RIPR-SPEC-0024 and .ripr/traceability.toml only. render_report_packet_index_json is unchanged, and the other four sites that emit a Start here: block — pr_review_front_panel.rs:415, pr_evidence_ledger.rs:350, human/triage.rs:106, first_pr/rendering.rs:71 — are not touched. This PR changes one renderer's grouping and hoist, nothing else.
Mutation-witness receipts
Stated plainly: the repository's own mutation receipt tooling did not run here. The mutation evidence above and in the PR body is manual revert-and-count against a restored baseline, run locally. That is weaker than a receipt and should be read as such; the discriminator names are given so any of it can be re-run directly.
Generated by Claude Code
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Exact-head output-contract review — REVIEW_READY
Reviewed head 41619b2fa391208a0a9bfb6a78bbd916be932496 against #3971, RIPR-SPEC-0024, and the now-merged producer-authentic dogfood repair #3972/#4011.
Accepted contract
ArtifactSpec.groupis the single grouping authority; the parallel ID-to-group table is removed.first_pr_start_hereandpr_review_front_panelboth render under one hoistedStart here:block with their own labels.- The ordinary group loop skips
start_hereonly when the block was actually hoisted, preserving regeneration guidance in the missing-front-panel case. - JSON group placement now matches the already-documented schema; no field vocabulary changes.
Evidence inspected
- Four focused controls exercise the hoist, duplicate-heading, declared-group, and missing-hoist branches against production builders/renderers.
- The retained mutation results distinguish each production hunk, including the negative case an unconditional skip would otherwise miss.
- Required Rust CI is successful on this exact head; Devin and CodeRabbit statuses are successful; no unresolved review threads exist.
- #4011 now supplies the separate producer-authentic dogfood authority. This PR does not borrow that evidence and does not claim to change the dogfood mechanism.
Non-claims
This does not establish every report-packet-index corpus label, every producer input, or the complete 0.11 packet. Those remain under #3920/#2769.
Disposition: REVIEW_READY for protected squash merge.
There was a problem hiding this comment.
Decision
- Needs one verification check before upstream.
Verification questions
- Confirm gate authority still surfaces in the Start here block when present.
Parked follow-ups
- artifact-verifier failed exit 2 and mutation witnesses (cargo-mutants) are disabled — discrimination relies on PR-reported per-mutation revert results without independent receipts. Author discloses goldens/dogfood are not load-bearing (#3972), and the local cli_smoke flake is disclosed but not classified.
…single Start here block #4011 made dogfood_report_packet_index_scenarios_have_checked_receipts render the corpus instead of comparing two goldens, and #3973 removed the second "Start here:" block from the rendered index. Each merged green against a main without the other, so main now fails that required xtask test on its first case. Regenerated all seven cases with the corpus canonical_command. Six index.md files lose the duplicate block; every index.json is unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK
…single Start here block #4011 made dogfood_report_packet_index_scenarios_have_checked_receipts render the corpus instead of comparing two goldens, and #3973 removed the second "Start here:" block from the rendered index. Each merged green against a main without the other, so main now fails that required xtask test on its first case. Regenerated all seven cases with the corpus canonical_command. Six index.md files lose the duplicate block; every index.json is unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK (cherry picked from commit 3a0d679)
…single Start here block #4011 made dogfood_report_packet_index_scenarios_have_checked_receipts render the corpus instead of comparing two goldens, and #3973 removed the second "Start here:" block from the rendered index. Each merged green against a main without the other, so main now fails that required xtask test on its first case. Regenerated all seven cases with the corpus canonical_command. Six index.md files lose the duplicate block; every index.json is unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK (cherry picked from commit 3a0d679)
…single Start here block #4011 made dogfood_report_packet_index_scenarios_have_checked_receipts render the corpus instead of comparing two goldens, and #3973 removed the second "Start here:" block from the rendered index. Each merged green against a main without the other, so main now fails that required xtask test on its first case. Regenerated all seven cases with the corpus canonical_command. Six index.md files lose the duplicate block; every index.json is unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK (cherry picked from commit 3a0d679)
…single Start here block #4011 made dogfood_report_packet_index_scenarios_have_checked_receipts render the corpus instead of comparing two goldens, and #3973 removed the second "Start here:" block from the rendered index. Each merged green against a main without the other, so main now fails that required xtask test on its first case. Regenerated all seven cases with the corpus canonical_command. Six index.md files lose the duplicate block; every index.json is unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK (cherry picked from commit 3a0d679)
…single Start here block #4011 made dogfood_report_packet_index_scenarios_have_checked_receipts render the corpus instead of comparing two goldens, and #3973 removed the second "Start here:" block from the rendered index. Each merged green against a main without the other, so main now fails that required xtask test on its first case. Regenerated all seven cases with the corpus canonical_command. Six index.md files lose the duplicate block; every index.json is unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK (cherry picked from commit 3a0d679)
…single Start here block #4011 made dogfood_report_packet_index_scenarios_have_checked_receipts render the corpus instead of comparing two goldens, and #3973 removed the second "Start here:" block from the rendered index. Each merged green against a main without the other, so main now fails that required xtask test on its first case. Regenerated all seven cases with the corpus canonical_command. Six index.md files lose the duplicate block; every index.json is unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK (cherry picked from commit 3a0d679)
… here block (#3973, unblock main)
Conflicts and how they were resolved: - gate/presentation.rs test: kept this branch's transaction-order test and gave both push_repair_route calls main's changed-line argument (#3968). - report_packet_index.rs: kept main's push_entry helper (#3973) and routed its missing-entry line through this branch's push_next_command, so the assistant-proof entry keeps its "after the repair's after phase" wording. - report-packet-index goldens: re-rendered through the corpus canonical_command (main's #4011 live corpus) with this tree's binary, generated_at pinned to unix_ms:0. The only differences from the #3962 goldens are this branch's runnable next commands. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK
…d repair (#3960) * feat(output): carry the agent repair start on repair cards and gate routes Where a review card, gate repair route, or inline PR comment already names a seam that passes the repair-packet flip, lead with `ripr agent repair --root . --seam-id <id> --phase before` instead of the snapshot verify command. The command is computed once in evidence_record::canonical_repair_command_for, gated on repair_packet_eligibility(entry).eligible(), and carried (never derived) by review_comments, the gate repair route, and the inline comment publisher. Non-actionable routes and gap-record routes emit nothing and keep the existing verify guidance. Refs #3906 (outcome 3, gate and repair-card surfaces). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * test(output): rebind fixtures to the carried repair start and bind the flip The repo-exposure evidence record, the dogfood gate-adoption receipts, and the gate-decision verification fixture now carry repair_command. The first-useful-action unchanged-after-attempt snapshots are regenerated through the corpus test's own normalizer, and the verify and receipt artifacts are rebound to the new snapshot bytes; their movement is unchanged. The evidence-record test now calls the builder with an actionable state directly, so removing the eligibility check fails it. Refs #3906. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * fix(output): withhold the repair start for inline-test seams and lead CI comments with it agent repair refuses an edit target outside a test surface, so a seam whose recommended test lives in an inline #[cfg(test)] module was offered a repair start it could not use. repair_start_command_for now also requires the recommended test file to be a test surface, and canonical_repair_command_for goes through it. The generated CI's compact inline comment headline read only the Verify line, so a card carrying "Start the repair:" still led with Verify. The jq now captures the repair start and leads with it when present. Refs #3906 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * feat(output): start first-pr and pr-summary from a carried review-card repair Generated CI builds the gap ledger from repo-exposure, whose records are all repo-scoped, so `ripr first-pr` always fell to no_action for Rust even when the review-comments file held a card that passed the repair-packet flip. The review-comments input was only checked for existence. first-pr: when the ledger yields no top gap, read the review-comments input and select the first actionable card in comments[] then summary_only[] that carries a non-empty llm_guidance.repair_command. The command is carried byte-for-byte; first-pr never builds `agent repair` from a seam, gap, or probe id. Every selected field comes from that same card (source_artifact is the review-comments path, repair.route is AgentRepairTransaction, verify and receipt are the card's), never mixed with a ledger record. The card is used only when the report is tool=ripr, status=advisory, and names this invocation's root, base, and head; otherwise it fails closed to no_action. The selection keeps state top_gap so the editor projection and pr-summary consume it unchanged. receipt_path and agent_packet_command are null for a card selection: the card is not a ledger gap and first-pr does not parse commands for paths. selected.repair_command is present only when carried, so ledger-selected packets are byte-identical to before. The repair start is not added to `commands`: the VS Code first-pr projection fails the whole packet closed (unsafeCommand) on any `commands` value outside its allowlist, and `ripr agent repair` is not on it. CLI and Markdown render a "Start repair" line before Verify. A no_action reason now says why no card supplied a start and, when the cards are missing or were rendered from the gap ledger, names the seam-level `ripr review-comments --root --base --head --out` route. pr-summary: carry start-here selected.repair_command into TopRepair (never read review comments directly, which could mis-pair a card with start-here's top gap), render a "start repair" line before verify in both Markdown surfaces, and make it the first local reproduction command when present. Docs: OUTPUT_SCHEMA start-here and pr-evidence-summary contracts, FIRST_PR_WORKFLOW, RIPR-SPEC-0075 field tables. Refs #3906 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * test(first-pr): cover the head-mismatch refusal for review-card repair starts The fail-closed test covered base, status, root, scope and a missing report but not a report generated for another head. Removing the head check from review_comments_currentness_problem now fails it. Refs #3906 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * fix(test): pass the changed-line flag in the gate repair-start test `cargo test -p ripr --lib` does not compile on main since 64f3b92. #3936 added `repair_route_leads_with_the_repair_start_when_carried`, which calls `push_repair_route(out, route)`. #3968, branched before #3936 landed, added a third `changed_line_anchored: bool` parameter. Each PR was green on its own base; the combined tree fails with E0061 at output/gate/presentation.rs:630 and :642. The test now passes `true`. The start-repair line it pins does not depend on the flag. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK (cherry picked from commit 9884f9b) * test(fixtures): regenerate the packet-index Markdown goldens for the single Start here block #4011 made dogfood_report_packet_index_scenarios_have_checked_receipts render the corpus instead of comparing two goldens, and #3973 removed the second "Start here:" block from the rendered index. Each merged green against a main without the other, so main now fails that required xtask test on its first case. Regenerated all seven cases with the corpus canonical_command. Six index.md files lose the duplicate block; every index.json is unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK (cherry picked from commit 3a0d679) * test(fixtures): rebless two check goldens blessed before the no-default-base change #4002 made CheckInput::default().base None and reblessed every --diff fixture on its base. #3944 (python_src_layout_package_import) and #3985 (tail_comparison_boundary) were blessed on bases without #4002, so each merged with "base": "origin/main" and base_revision "origin/main", and `cargo xtask goldens check` on main reports both as drift. Reblessed with a RIPR-SPEC-0084 reason; only base/base_revision change, the same delta #4002 applied to the other fixtures. goldens check: 0 drift entries. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK (cherry picked from commit 7930fef) --------- Co-authored-by: Claude <noreply@anthropic.com>
…el and the evidence ledger (#3962) * feat(output): carry the agent repair start on repair cards and gate routes Where a review card, gate repair route, or inline PR comment already names a seam that passes the repair-packet flip, lead with `ripr agent repair --root . --seam-id <id> --phase before` instead of the snapshot verify command. The command is computed once in evidence_record::canonical_repair_command_for, gated on repair_packet_eligibility(entry).eligible(), and carried (never derived) by review_comments, the gate repair route, and the inline comment publisher. Non-actionable routes and gap-record routes emit nothing and keep the existing verify guidance. Refs #3906 (outcome 3, gate and repair-card surfaces). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * test(output): rebind fixtures to the carried repair start and bind the flip The repo-exposure evidence record, the dogfood gate-adoption receipts, and the gate-decision verification fixture now carry repair_command. The first-useful-action unchanged-after-attempt snapshots are regenerated through the corpus test's own normalizer, and the verify and receipt artifacts are rebound to the new snapshot bytes; their movement is unchanged. The evidence-record test now calls the builder with an actionable state directly, so removing the eligibility check fails it. Refs #3906. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * feat(output): lead PR-review surfaces with the carried repair start First-useful-action, the PR-review front panel, the PR evidence ledger, and RIPR Zero status now lead with `ripr agent repair --root . --seam-id <id> --phase before` exactly when an input artifact already carries it, and never synthesize a repair-loop command from a bare seam id. The fail-closed decision stays with repair_packet_eligibility(..).eligible() upstream; these surfaces carry the string and do not re-run eligibility. First-useful-action: a new route ahead of the missing-assistant-proof route. When no assistant proof exists yet and the first review card (comments, then summary_only) carries a non-empty llm_guidance.repair_command, the report is `actionable` / `write_focused_test` with `commands.repair` set to that string and every `selected`/`target` field, verify, and receipt command taken from that same card. A fresh PR no longer asks for post-repair assistant proof before any repair exists. The same card without the command keeps the missing_required_artifact route; post-proof routing is unchanged. `commands.repair` is skipped when absent, so existing goldens are stable. Markdown adds a `Start Repair` section and a one-screen `Repair start` line. Generated CI's first-action summary and at-a-glance block print `.commands.repair` (template, test, and docs/CI.md mirror). Front panel: `top_issue.repair_command` is carried from first-action `commands.repair`, a card's `llm_guidance.repair_command`, or an acknowledged gate route's `repair_route.repair_command`. `agent_command` is that command, else a carried read-only inspection command (`commands.context_packet`, `llm_guidance.command`, or the gate route's `inspection_command`), else null. The three `agent start --seam-id` syntheses are gone. Markdown shows `Repair start` in the top issue and the Repair block. The invalid-improved assertion now pins the exact carried handoff instead of `is_some()`. Evidence ledger: `top_repair_route.repair_command` is carried from the card, gate route, or RIPR Zero route; the gap and baseline arms name no repair start and drop their synthesized `agent start` (verify kept). Also fixes the card receipt command, which cards put at the root, not under llm_guidance (kept as fallback), so it was always null. RIPR Zero status (item 4 decision): the gap-record arm synthesized `agent start --seam-id <canonical_gap_id>`, a gap id rather than a seam id; it now names none. The baseline arm carries `evidence_record.canonical_item.repair_command` when present, else null. Left in place: test_oracle_assistant_proof handoff. The proof is a post-attempt artifact (it needs before/after/receipt) and its handoff records the workflow that produced its --agent-packet input. assistant_loop_health derives every repair-queue command root from that field (command_root), so nulling it would regress those roots to `.`. It needs its own root carrier first; tracked as follow-up. Goldens: new first-useful-action/repair-start and pr-review-front-panel/repair-start cases (exact-line card carrying the command), regenerated through the production renderers. Front-panel actionable/blocked now show the carried context-packet command, acknowledged/summary-only show null, and the mixed ledger shows null; the mixed ripr-zero-status input is rebound to the producer contract. No hash-bound artifact changed. Refs #3906. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * fix(output): withhold the repair start for inline-test seams and lead CI comments with it agent repair refuses an edit target outside a test surface, so a seam whose recommended test lives in an inline #[cfg(test)] module was offered a repair start it could not use. repair_start_command_for now also requires the recommended test file to be a test surface, and canonical_repair_command_for goes through it. The generated CI's compact inline comment headline read only the Verify line, so a card carrying "Start the repair:" still led with Verify. The jq now captures the repair start and leads with it when present. Refs #3906 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * feat(output): start first-pr and pr-summary from a carried review-card repair Generated CI builds the gap ledger from repo-exposure, whose records are all repo-scoped, so `ripr first-pr` always fell to no_action for Rust even when the review-comments file held a card that passed the repair-packet flip. The review-comments input was only checked for existence. first-pr: when the ledger yields no top gap, read the review-comments input and select the first actionable card in comments[] then summary_only[] that carries a non-empty llm_guidance.repair_command. The command is carried byte-for-byte; first-pr never builds `agent repair` from a seam, gap, or probe id. Every selected field comes from that same card (source_artifact is the review-comments path, repair.route is AgentRepairTransaction, verify and receipt are the card's), never mixed with a ledger record. The card is used only when the report is tool=ripr, status=advisory, and names this invocation's root, base, and head; otherwise it fails closed to no_action. The selection keeps state top_gap so the editor projection and pr-summary consume it unchanged. receipt_path and agent_packet_command are null for a card selection: the card is not a ledger gap and first-pr does not parse commands for paths. selected.repair_command is present only when carried, so ledger-selected packets are byte-identical to before. The repair start is not added to `commands`: the VS Code first-pr projection fails the whole packet closed (unsafeCommand) on any `commands` value outside its allowlist, and `ripr agent repair` is not on it. CLI and Markdown render a "Start repair" line before Verify. A no_action reason now says why no card supplied a start and, when the cards are missing or were rendered from the gap ledger, names the seam-level `ripr review-comments --root --base --head --out` route. pr-summary: carry start-here selected.repair_command into TopRepair (never read review comments directly, which could mis-pair a card with start-here's top gap), render a "start repair" line before verify in both Markdown surfaces, and make it the first local reproduction command when present. Docs: OUTPUT_SCHEMA start-here and pr-evidence-summary contracts, FIRST_PR_WORKFLOW, RIPR-SPEC-0075 field tables. Refs #3906 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * test(first-pr): cover the head-mismatch refusal for review-card repair starts The fail-closed test covered base, status, root, scope and a missing report but not a report generated for another head. Removing the head check from review_comments_currentness_problem now fails it. Refs #3906 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * docs(schema): keep the front-panel vocabulary sentences in their own bullet The #3906 repair_command bullet was spliced mid-sentence into the typed one-screen vocabulary contract: the mirror/evidence-strength sentences described top_issue.current_evidence_strength and friends, not the new carried-command fields. Restore them to the vocabulary bullet so the repair_command bullet ends at the never-synthesize rule. Reviewed as part of #3962. * fix(test): pass the changed-line flag in the gate repair-start test `cargo test -p ripr --lib` does not compile on main since 64f3b92. #3936 added `repair_route_leads_with_the_repair_start_when_carried`, which calls `push_repair_route(out, route)`. #3968, branched before #3936 landed, added a third `changed_line_anchored: bool` parameter. Each PR was green on its own base; the combined tree fails with E0061 at output/gate/presentation.rs:630 and :642. The test now passes `true`. The start-repair line it pins does not depend on the flag. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK (cherry picked from commit 9884f9b) * test(fixtures): regenerate the packet-index Markdown goldens for the single Start here block #4011 made dogfood_report_packet_index_scenarios_have_checked_receipts render the corpus instead of comparing two goldens, and #3973 removed the second "Start here:" block from the rendered index. Each merged green against a main without the other, so main now fails that required xtask test on its first case. Regenerated all seven cases with the corpus canonical_command. Six index.md files lose the duplicate block; every index.json is unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK (cherry picked from commit 3a0d679) * test(fixtures): rebless two check goldens blessed before the no-default-base change #4002 made CheckInput::default().base None and reblessed every --diff fixture on its base. #3944 (python_src_layout_package_import) and #3985 (tail_comparison_boundary) were blessed on bases without #4002, so each merged with "base": "origin/main" and base_revision "origin/main", and `cargo xtask goldens check` on main reports both as drift. Reblessed with a RIPR-SPEC-0084 reason; only base/base_revision change, the same delta #4002 applied to the other fixtures. goldens check: 0 drift entries. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK (cherry picked from commit 7930fef) --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Steven Zimmerman, CPA <15812269+EffortlessSteven@users.noreply.github.com>
…gap (#4019) * feat(output): carry the agent repair start on repair cards and gate routes Where a review card, gate repair route, or inline PR comment already names a seam that passes the repair-packet flip, lead with `ripr agent repair --root . --seam-id <id> --phase before` instead of the snapshot verify command. The command is computed once in evidence_record::canonical_repair_command_for, gated on repair_packet_eligibility(entry).eligible(), and carried (never derived) by review_comments, the gate repair route, and the inline comment publisher. Non-actionable routes and gap-record routes emit nothing and keep the existing verify guidance. Refs #3906 (outcome 3, gate and repair-card surfaces). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * test(output): rebind fixtures to the carried repair start and bind the flip The repo-exposure evidence record, the dogfood gate-adoption receipts, and the gate-decision verification fixture now carry repair_command. The first-useful-action unchanged-after-attempt snapshots are regenerated through the corpus test's own normalizer, and the verify and receipt artifacts are rebound to the new snapshot bytes; their movement is unchanged. The evidence-record test now calls the builder with an actionable state directly, so removing the eligibility check fails it. Refs #3906. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * fix(output): withhold the repair start for inline-test seams and lead CI comments with it agent repair refuses an edit target outside a test surface, so a seam whose recommended test lives in an inline #[cfg(test)] module was offered a repair start it could not use. repair_start_command_for now also requires the recommended test file to be a test surface, and canonical_repair_command_for goes through it. The generated CI's compact inline comment headline read only the Verify line, so a card carrying "Start the repair:" still led with Verify. The jq now captures the repair start and leads with it when present. Refs #3906 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * feat(output): start first-pr and pr-summary from a carried review-card repair Generated CI builds the gap ledger from repo-exposure, whose records are all repo-scoped, so `ripr first-pr` always fell to no_action for Rust even when the review-comments file held a card that passed the repair-packet flip. The review-comments input was only checked for existence. first-pr: when the ledger yields no top gap, read the review-comments input and select the first actionable card in comments[] then summary_only[] that carries a non-empty llm_guidance.repair_command. The command is carried byte-for-byte; first-pr never builds `agent repair` from a seam, gap, or probe id. Every selected field comes from that same card (source_artifact is the review-comments path, repair.route is AgentRepairTransaction, verify and receipt are the card's), never mixed with a ledger record. The card is used only when the report is tool=ripr, status=advisory, and names this invocation's root, base, and head; otherwise it fails closed to no_action. The selection keeps state top_gap so the editor projection and pr-summary consume it unchanged. receipt_path and agent_packet_command are null for a card selection: the card is not a ledger gap and first-pr does not parse commands for paths. selected.repair_command is present only when carried, so ledger-selected packets are byte-identical to before. The repair start is not added to `commands`: the VS Code first-pr projection fails the whole packet closed (unsafeCommand) on any `commands` value outside its allowlist, and `ripr agent repair` is not on it. CLI and Markdown render a "Start repair" line before Verify. A no_action reason now says why no card supplied a start and, when the cards are missing or were rendered from the gap ledger, names the seam-level `ripr review-comments --root --base --head --out` route. pr-summary: carry start-here selected.repair_command into TopRepair (never read review comments directly, which could mis-pair a card with start-here's top gap), render a "start repair" line before verify in both Markdown surfaces, and make it the first local reproduction command when present. Docs: OUTPUT_SCHEMA start-here and pr-evidence-summary contracts, FIRST_PR_WORKFLOW, RIPR-SPEC-0075 field tables. Refs #3906 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * test(first-pr): cover the head-mismatch refusal for review-card repair starts The fail-closed test covered base, status, root, scope and a missing report but not a report generated for another head. Removing the head check from review_comments_currentness_problem now fails it. Refs #3906 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * fix(first-pr): stop on unusable review cards instead of reporting no gap Re-walk F60-10. On a fresh Rust checkout, following first-pr's own next commands (repo exposure, then gap ledger) ended in `State: no actionable gap` with no next command, while the PR had a repair-ready seam. The repo-exposure ledger holds only repo-scoped records, so first-pr's second source, the review cards, decides; with the cards missing, first-pr gave a no-action verdict on evidence it never read. Now a Rust root stops on the cards instead: - missing: `missing_artifact` for `PR repair cards`, next command the seam-level `ripr review-comments --root . --base <base> --head <head> --out target/ripr/review/comments.json`; - not a RIPR report, or no status/root/base/head: `malformed_artifact`; - status not advisory: `blocked_artifact`; - another root: `wrong_root`; another base or head: `stale_artifact`. Current cards with no repair start, and cards rendered from the gap ledger, still end in no-action with the reason naming the route. The `artifacts[]` entry for the cards on a Rust root now names the same seam-level command. It named the `--gap-ledger` form, whose cards cannot carry a repair start. Preview-language roots keep the gap-ledger form. Fresh-checkout re-walk on the pricing repo: repo exposure, gap ledger, review cards, then `top_gap` with `Start repair: ripr agent repair ... --phase before`. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK * fix(test): pass the changed-line flag in the gate repair-start test `cargo test -p ripr --lib` does not compile on main since 64f3b92. #3936 added `repair_route_leads_with_the_repair_start_when_carried`, which calls `push_repair_route(out, route)`. #3968, branched before #3936 landed, added a third `changed_line_anchored: bool` parameter. Each PR was green on its own base; the combined tree fails with E0061 at output/gate/presentation.rs:630 and :642. The test now passes `true`. The start-repair line it pins does not depend on the flag. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK (cherry picked from commit 9884f9b) * test(fixtures): regenerate the packet-index Markdown goldens for the single Start here block #4011 made dogfood_report_packet_index_scenarios_have_checked_receipts render the corpus instead of comparing two goldens, and #3973 removed the second "Start here:" block from the rendered index. Each merged green against a main without the other, so main now fails that required xtask test on its first case. Regenerated all seven cases with the corpus canonical_command. Six index.md files lose the duplicate block; every index.json is unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK (cherry picked from commit 3a0d679) * test(fixtures): rebless two check goldens blessed before the no-default-base change #4002 made CheckInput::default().base None and reblessed every --diff fixture on its base. #3944 (python_src_layout_package_import) and #3985 (tail_comparison_boundary) were blessed on bases without #4002, so each merged with "base": "origin/main" and base_revision "origin/main", and `cargo xtask goldens check` on main reports both as drift. Reblessed with a RIPR-SPEC-0084 reason; only base/base_revision change, the same delta #4002 applied to the other fixtures. goldens check: 0 drift entries. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK (cherry picked from commit 7930fef) * test(first-pr): cover the malformed review-card branches in the fail-closed loop Another tool's report, and reports that do not record their status, root or head, each stop first-pr as malformed_artifact with the seam-level regeneration command. Only the stale, blocked, wrong-root and missing cases were exercised before. Disabling the tool check fails the test. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JR38133FoyEXqWZtnC9UeK --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Steven · project thread
Summary
Before, measured on
mainat1d19ca1e9in a repository carrying both a first-PR packet and a PR review front panel:Three things wrong in one document.
Start here:appears twice naming different files, so two readers acting on it open different artifacts. The first line labelsstart-here.mdas the PR review front panel. Andstart-here.md— the artifactripr first-prtells the user to open — is filed under "Local context".After, same repository, same command:
How: all three came from one cause. Every artifact declares its group on its own
ArtifactSpec, andfirst_pr_start_heredeclaresstart_here.group_entriesnever read that field — it calledgroup_for_entry, a parallel id-to-groupmatchwith no arm forfirst_pr_start_here, so the packet fell through tolocal_context. That same table mapsstart_hereto the display label"Start here", which the group loop rendered as a heading beside the hoisted block's ownStart here:. The declared group is now the only grouping authority and the parallel table is deleted. The markdown hoists thestart_heregroup into itsStart here:block using each artifact's own label, and skips the group section only when that hoist happened, so nothing is lost when there is nothing to hoist.This is a conformance fix, not a contract change.
docs/OUTPUT_SCHEMA.md:11131already documentsgroups[0]asstart_hereholding bothfirst_pr_start_hereandpr_review_front_panel, andRIPR-SPEC-0024's Markdown Shape example already shows exactly oneStart here:block and noStart heresection. The code disagreed with both.Swarm / Source Boundary
ripr-swarmSource-of-truth Links
Issue: #3971
Spec:
docs/specs/RIPR-SPEC-0024-report-packet-index.mdSchema:
docs/OUTPUT_SCHEMA.md(already documented the intended shape; unchanged)Related, not fixed here: #3972 — the dogfood check for this report never runs the renderer
Found by: the onboarding lane's 60-minute re-walk (F60-9), verified here against a running binary
Scope Classification
Production delta:
group_entriesgroups by the declaredArtifactSpec.group;group_for_entryis deleted.Start here:block renders thestart_heregroup's entries with their own labels instead of one hardcodedPR review front panelline.start_herewhen, and only when, the block above hoisted it.Single acceptance criterion:
ripr reports indexmarkdown carries exactly oneStart here:heading, each line in it names the artifact it points at, andfirst_pr_start_hereis grouped asstart_here.Non-goals:
Support-tier Impact
JSON:
first_pr_start_heremoves from thelocal_contextgroup tostart_here. That is the placementdocs/OUTPUT_SCHEMA.md:11136already documents, so the change closes a divergence rather than opening one. No field is added, removed or renamed;groups[].groupkeys,groups[].labelvalues and every entry field are unchanged.summary.start_hereis unchanged.Spec:
RIPR-SPEC-0024gains the Expected Surfaces row fortarget/ripr/reports/start-here.mdthat it never had — the artifact was added to the code without a spec row, which is how its group went unagreed — and its Markdown Shape section now states the hoist. Group Vocabulary'sstart_hereline goes from singular to plural, since the group holds two artifacts.Policy Impact
No
unwrap,expector panic-family construct added. The hoist iteratesOption→ entries, so a report with nostart_heregroup renders the existingNext: generate…line rather than failing.Proof
Measured end to end on this head, rendering from a real scratch repository with a predicate-boundary change,
ripr first-prandripr pr-review front-panelboth run — the before/after blocks at the top of this description are that output.Discrimination. Four new tests, three of which call
build_report_packet_index_reportandrender_report_packet_index_markdownon a real temporary input tree. Each production hunk was reverted in turn and the failures counted:- PR review front panel: {start_here}lead linemarkdown_has_one_start_here_block_naming_each_first_screen,a_hoisted_first_screen_keeps_its_regeneration_commandstart_heregroupfirst_pr_start_hereaslocal_contextmarkdown_has_one_start_here_block_naming_each_first_screenThe fourth test,
the_first_screen_group_survives_when_nothing_is_hoisted, is the negative experiment for the skip: it asserts that whensummary.start_hereisNonethe group still renders, so a missing front panel keeps itsnext:regeneration command in the listing. An unconditional skip would pass the other three tests and lose that command.The test I deleted,
group_for_entry_covers_all_known_ids, is why this shipped. It compared the lookup table to a hand-written copy of the same table, and its case list simply omittedfirst_pr_start_here. It could not fail for the defect it was standing over. Its replacement,declared_group_decides_where_an_artifact_is_filed, reads the declarations offartifact_specsand asserts every declared group is one a section renders.The committed goldens are not evidence here and were not used as any.
dogfood_report_packet_index_runreads the golden files and compares them tocorpus.json; it never calls the renderer, so it cannot fail on this change and did not pass on it either. The goldens are unaffected by this diff because no corpus case includesstart-here.md. Details and the existing drift in #3972.Not run:
cargo test --workspace, Windows/macOS,cargo package.precommitexits 0 across its policy gates but selects Rust lint subjects from the local change set, so clippy was run directly on the impacted package rather than counted as covered byprecommit.One unrelated local failure, disclosed.
common::fixture_git::tests::zero_deadline_reports_timeouts_without_retrying_statefailed once under the fullcli_smokerun with"zero-deadline init unexpectedly succeeded", and passes on both of two isolated re-runs on this same head. It is a timing assertion in the test harness (crates/ripr/tests/common/fixture_git.rs), in no file this diff touches, and it depends ongit initnot completing inside a zero deadline. Recorded as an observation rather than classified: hosted CI on this head is the authority, and if it reproduces there it is mine to chase.Claim Boundary
May claim: the packet index markdown has one
Start here:block, its lines name the artifacts they point at, and the first-PR packet is grouped where the schema documents it. Must not claim: that the packet index's rendered output is covered by the repository's golden or dogfood checks — it is not, which is #3972 — nor that the other groups' labels match their goldens; they do not, and this PR does not change them.Rollback
Revert the commit. One module, one spec section, four traceability lines; no persisted state, schema field, or config key.
Spec-Test-Code Traceability
RIPR-SPEC-0024declared_group_decides_where_an_artifact_is_filed,markdown_has_one_start_here_block_naming_each_first_screen,a_hoisted_first_screen_keeps_its_regeneration_command,the_first_screen_group_survives_when_nothing_is_hoisted(all added to.ripr/traceability.toml)crates/ripr/src/output/report_packet_index.rsStatic Language Check
killed,survived,untested,proven, andadequate.Engineering Check
panic,unwrap,expect,todo, orunimplementedin production code or tests.docs/OUTPUT_SCHEMA.mdshape.🤖 Generated with Claude Code
https://claude.ai/code/session_01PTKGFhuph96fcVyfb8vBxK
Generated by Claude Code