Skip to content

fix(gate): pass changed_line_anchored in repair-route presentation tests - #4024

Closed
EffortlessSteven wants to merge 1 commit into
mainfrom
fix/unblock-repair-route-test-arity
Closed

EffortlessSteven wants to merge 1 commit into
mainfrom
fix/unblock-repair-route-test-arity

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Unblocks main (two inherited breakages, neither touched by any in-flight lane):\n\n1. #3968 added the changed_line_anchored parameter to push_repair_route and updated the production caller but missed the two test call sites, so lib-test compilation (E0061) fails on origin/main tip. This passes true at both sites, preserving the changed-seam labels the #3906 test models. Proof: cargo check -p ripr --all-targets exit 0; output::gate::presentation tests 2/2 pass.\n\n2. #3973 regrouped the report packet index (single Start here block) without re-blessing the dogfood golden: complete-packet/index.md still carries the removed duplicate Start here section. Re-blessed by deleting exactly those 3 lines; verified byte-identical against a fresh canonical_command render (ripr reports index over the corpus packet_root), JSON golden untouched (only generated_at timestamp differs, as the comparator allows).

@coderabbitai

coderabbitai Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

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: 1a297502-afd9-4ea3-a851-95eea079f78a

📥 Commits

Reviewing files that changed from the base of the PR and between f752562 and 1977a81.

📒 Files selected for processing (1)
  • crates/ripr/src/output/gate/presentation.rs

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


Summary by CodeRabbit

  • Tests
    • Updated test coverage for repair-route ordering when a changed seam is present. No end-user behavior changes are included.

Walkthrough

The repair route test now passes changed_line_anchored = true in both calls to push_repair_route. The existing assertions remain unchanged.

Changes

Repair route presentation tests

Layer / File(s) Summary
Mark test fixtures as changed-line anchored
crates/ripr/src/output/gate/presentation.rs
Both test calls to push_repair_route now pass changed_line_anchored = true.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 1977a

This test-only fix addresses the missing argument without changing the assertions. No material merge risk remains.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the defect, the fix, and one proof command, but it does not follow the repository template. It omits required sections such as scope, source-of-truth links, classification, ac… Rewrite the description using the repository template. Complete each required section, or mark it n/a or none where applicable. Include the relevant scope, test and code traceability, rollback method, claim boundary, engineering checks,…
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely identifies the main change: adding changed_line_anchored to repair-route presentation test calls.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files.
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.
Full details: Description check

Explanation

The description explains the defect, the fix, and one proof command, but it does not follow the repository template. It omits required sections such as scope, source-of-truth links, classification, acceptance criterion, support-tier impact, policy impact, rollback, traceability, engineering checks, and gates.

Resolution

Rewrite the description using the repository template. Complete each required section, or mark it n/a or none where applicable. Include the relevant scope, test and code traceability, rollback method, claim boundary, engineering checks, and gate results.

  • Fix all pre-merge checks with AI
✨ 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
🛠️ Fix failing CI checks 💡
  • Commit to this branch
  • Create a new PR

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.

❤️ Share

A rabbit checks the seam at dawn,
And marks the changed line before moving on.
Two calls now carry the same small sign,
While tests keep their checks in line.
Then off the rabbit hops, content.

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

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request updates the test suite in crates/ripr/src/output/gate/presentation.rs by passing the required changed_line_anchored parameter to the push_repair_route function calls. This ensures that the test fixtures correctly model changed seams following the changes introduced in PR #3968. There are no review comments to address.

@github-actions github-actions 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.

Refuted

  • Passing true vs false could mask a hidden seam-label regression introduced by #3968.; refuted because: Argument value is fixed by #3968's contract; flipping it would break the seam-label assertions already covered by existing tests in this module.

Parked follow-ups

  • No new false-positive risk: anchored label is asserted exactly ('Start repair: {command}'), so an incorrect arg value (false) would still match if production's seam rendering is unconditional.

Evidence gaps

  • wait for cargo-test receipt (scheduled-late) before final gate to confirm green on the test module around repair_route_presentation helpers; artifact-verifier failure is unrelated to this diff (exit 2 on artifact, not source).

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Closing as superseded by #4022, which repairs all three combined-tree breaks on main: this PR's arity fix (collision 1) plus the packet-index golden regeneration plus the two stale check-golden re-blesses (#4002 base-envelope contract). Keeping one candidate per claim so the two presentation.rs fixes do not race.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Exact-head review (local dimensions only).

reviewed_head_sha: f4e05ab (remote branch confirmed at this SHA; PR head API still shows 1977a81, transient)
integration_basis: origin/main 91272d3
claim_boundary: unblock main; two inherited breakages, no production-semantics change
changed_surfaces_and_semantic_owners_inspected:

  • crates/ripr/src/output/gate/presentation.rs, test-only call sites of push_repair_route (semantic owner: gate presentation; fix(review): stop anchoring unchanged seams onto unrelated changed lines #3968 added the changed_line_anchored parameter)
  • fixtures/boundary_gap/expected/report-packet-index/complete-packet/index.md, 3-line deletion of the duplicated Start here section (semantic owner: report packet index; fix(output): give the packet index one Start here block that names its files (#3971) #3973 made declared-group the only grouping authority)
    blocking_findings: none
    non_blocking_suggestions: none (true vs false for the anchored flag is behavior-preserving for this test's assertions; true keeps the historical Changed labels, the conservative choice)
    refuted_or_stale_findings: none
    proof_and_ci_observed:
  • cargo check -p ripr --all-targets exit 0 on this head
  • output::gate::presentation tests 2/2 pass, incl. repair_route_leads_with_the_repair_start_when_carried
  • canonical_command render (ripr reports index over the corpus packet_root) is line-identical to the re-blessed golden; JSON golden untouched (only generated_at differs, comparator-tolerated)
  • fix(output): give the packet index one Start here block that names its files (#3971) #3973's own unit tests pin exactly-one Start here heading, so the re-bless encodes reviewed intent, not convenience
    proof_or_review_missing:
  • local dogfood_report_packet_index oracle run (building)
  • hosted CI on the new head (rerunning)
  • bot review threads on the new head
    affected_currentness_dimensions: production implementation, test stimulus, test oracle, generated relationships reviewed at f4e05ab; CI/review dimensions pending
    residual_assumptions_and_non_claims: no claim that main is fully green beyond these two fixes; no production behavior changed by either commit
    disposition: REVIEW_INCOMPLETE

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Review update for new head 86f9004.

reviewed_head_sha: 86f9004 (adds the 5 remaining packet-index golden re-blesses)
proof_filled_since_last_record:

  • tests::dogfood_report_packet_index_scenarios_have_checked_receipts passes locally on the exact committed tree (1 passed, exit 0)
  • each of the 6 re-blessed goldens verified line-identical to a fresh canonical_command render; missing-front-panel correctly untouched (skip-guard intact); JSON goldens need no change
    proof_or_review_missing:
  • hosted CI on the new head (rerunning)
  • bot review threads on the new head
    disposition: REVIEW_INCOMPLETE (pending hosted CI only; no local blocking findings)

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Supersession record: main delivered this claim via afe6b3d, verified byte-identical for all six packet-index goldens and functionally identical for presentation.rs (both pass true at both call sites; only residual is comment wording). Zero unique residual from this PR. Lane branch and worktree being removed.

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