Skip to content

test(product): prove equality-boundary repair closes - #3167

Merged
EffortlessSteven merged 27 commits into
mainfrom
agent/boundary-gap-closure-parity
Aug 12, 2026
Merged

EffortlessSteven merged 27 commits into
mainfrom
agent/boundary-gap-closure-parity

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Aug 11, 2026 •

Copy link
Copy Markdown
Member

What this does

Completes the first proof-bearing slice of #3165.

The PR adds a real-binary product journey that constructs an isolated Git-backed Rust repository, proves the initial equality-boundary gap, adds only the exact amount == discount_threshold test, proves the same seam moves weakly_gripped -> strongly_gripped with no remaining discriminator, and proves ripr outcome reports gap_movement: closed.

It also refreshes the checked repo-exposure, outcome, agent-verify, calibration, operator-cockpit, PR-review-front-panel, and case-study artifacts that still described the pre-#634 under-credit. Unchanged and regressed fixture scenarios now own receipts matching their asserted movement instead of borrowing the canonical improved receipt.

Review map

  • crates/ripr/tests/boundary_gap_closure.rs: isolated real-binary before/after/outcome journey.
  • crates/ripr/src/output/pr_review_front_panel.rs: reconciles already-improved panels from producer-owned after-state evidence.
  • fixtures/boundary_gap/calibration/*: corrected after snapshot and closed static movement receipt.
  • fixtures/boundary_gap/expected/editor-agent-loop/*: current canonical improved receipt consumers.
  • fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/*: dedicated unchanged negative control.
  • fixtures/boundary_gap/expected/assistant-loop-health/*: scenario-owned unchanged/regressed receipts and regenerated health projections.
  • docs/case-studies/TARGETED_TEST_BOUNDARY_GAP.md: reproducible scratch Git setup and bounded claim.

Evidence boundary

  • The integration journey proves static closure through current production paths.
  • The focused mutant row remains explicitly imported sample data; this PR does not claim it executed cargo-mutants.
  • Static movement, focused-test execution, mutation confirmation, edit-cage compliance, and merge approval remain separate facts.
  • No analyzer rewrite, automatic edit, support-tier promotion, release, publication, tag, signing, marketplace, or credential change is included.

Verification

Exact published head: 8e6a8888238c93901a979f55715dc4edaa37f248

Passed locally on the current repair:

  • cargo test -p ripr --lib output::pr_review_front_panel::tests::pr_review_front_panel_matches_fixture_corpus -- --nocapture
  • cargo test -p ripr --lib output::assistant_loop_health::tests::assistant_loop_health_matches_fixture_corpus -- --nocapture
  • cargo test -p xtask assistant_loop_health_fixture_corpus_guard_accepts_complete_contract -- --nocapture
  • cargo fmt --check
  • git diff --check

Earlier focused boundary, canonical-consumer, operator-cockpit, negative-control, and precommit proof passed at 769c438d0148bbfc64ba6e040e390d6f9fe40ec8.

The required cargo xtask precommit remained responsive but did not finish inside a bounded 433-second local window after the front-panel repair; it reached cargo fmt --check without emitting a failure before the lane-owned process was stopped. Full local precommit is therefore not established for the current head. Exact-head hosted checks remain authoritative for broader gates.

Refs #3165, #3160.

@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 Aug 11, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: d9540472-bfca-408a-997d-1949a5e0adbc

📥 Commits

Reviewing files that changed from the base of the PR and between 769c438 and 8e6a888.

📒 Files selected for processing (10)
  • crates/ripr/src/output/pr_review_front_panel.rs
  • docs/case-studies/TARGETED_TEST_BOUNDARY_GAP.md
  • fixtures/boundary_gap/expected/assistant-loop-health/multi-proof/assistant-loop-health.json
  • fixtures/boundary_gap/expected/assistant-loop-health/proofs/regressed-proof.json
  • fixtures/boundary_gap/expected/assistant-loop-health/proofs/unchanged-proof.json
  • fixtures/boundary_gap/expected/assistant-loop-health/regressed/agent-receipt.json
  • fixtures/boundary_gap/expected/assistant-loop-health/regressed/assistant-loop-health.json
  • fixtures/boundary_gap/expected/assistant-loop-health/unchanged/assistant-loop-health.json
  • fixtures/boundary_gap/expected/pr-review-front-panel/coverage-flat-grip-improved/pr-review-front-panel.json
  • fixtures/boundary_gap/expected/pr-review-front-panel/coverage-flat-grip-improved/pr-review-front-panel.md

Summary by CodeRabbit

  • New Features

    • Added end-to-end validation for repairing equality-boundary gaps with targeted tests.
    • Reports now identify improved seams, resolved boundary evidence, closed gaps, and associated tests.
  • Bug Fixes

    • Corrected review receipts, verification results, cockpit views, and recommendations to show improvements instead of unchanged outcomes.
    • Updated calibration results to accurately reflect agreement between static analysis and runtime evidence.
  • Documentation

    • Expanded the boundary-gap case study with updated commands, outcomes, evidence, and limitations.

Walkthrough

The change adds an end-to-end equality-boundary repair test. It updates calibration, outcome, receipt, cockpit, proof, and CLI fixtures from unchanged weak grip to improved strong grip. It also corrects fixture paths and updates the case study.

Changes

Boundary gap closure

Layer / File(s) Summary
End-to-end boundary closure test
crates/ripr/tests/boundary_gap_closure.rs, policy/process_allowlist.txt
The test creates a temporary Git repository, runs the built binary before and after adding an equality test, and validates seam and outcome JSON.
Outcome and calibration updates
fixtures/boundary_gap/calibration/*
Fixtures now report one moved and closed seam, resolved equality-boundary evidence, strong grip, and static-clean/runtime-clean agreement.
Improved front-panel output
crates/ripr/src/output/pr_review_front_panel.rs, fixtures/boundary_gap/expected/pr-review-front-panel/*
Improved grip now produces a no-repair route with strong evidence and no follow-up fields.
Expected outputs and CLI assertions
fixtures/boundary_gap/expected/*, crates/ripr/tests/cli_smoke.rs, crates/ripr/src/output/first_useful_action/tests.rs
Expected outputs and assertions now report improved movement and strong grip. Fixture-local receipt paths are corrected.
Case study alignment
docs/case-studies/TARGETED_TEST_BOUNDARY_GAP.md
The case study documents the executable regression, updated commands, closed-gap receipt, and limits of static and imported runtime evidence.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Poem

A rabbit checked the boundary line,
Equality held in tests just fine.
Weak grip changed to strong and true,
One closed gap hopped into view.
Receipts and tests now agree.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ⚠️ Warning The description explains the change and evidence, but it omits most required template sections, including scope classification, rollback, traceability, engineering checks, and gates. Reformat the description using the repository template and complete the missing required sections, especially scope, rollback, traceability, engineering checks, and gate results.
✅ Passed checks (3 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 identifies the main change: proving that an equality-boundary repair closes the product gap.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch agent/boundary-gap-closure-parity

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

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

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

Substantive exact-head review record

  • reviewed_head_sha: 7ec3c2784de69d83e86bf8f1851ee7c9ad2ac397
  • integration_basis: 8497040c2334f608c2f4f1680c5eae425a6f0b0c
  • claim_boundary: adding only the exact equality-boundary test moves the same analyzed seam from weakly gripped with a missing equality discriminator to strongly gripped with no missing discriminator, and ripr outcome records one closed gap. Runtime mutation execution, mutation adequacy, edit-cage compliance, merge approval, analyzer redesign, automatic edits, and support/release promotion remain out of scope.
  • changed_surfaces: real-binary integration journey; calibrated repo-exposure/outcome artifacts; assistant-loop receipt/verify/proof/ledger surfaces; unchanged-after-attempt negative control; case study; process allowlist.
  • blocking_findings: none after repairing the stale canonical assistant-loop assertions and restoring the dedicated unchanged-after-attempt control.
  • non_blocking_findings: none.
  • refuted_or_stale_findings: the two old hosted fixture-contract failures applied to 8464185968879c249ffa06da1c2cbaf6e6478572; both were reproduced against current production output and repaired. There are no unresolved review threads.
  • proof_observed: three focused tests pass on the reviewed head, including the just-built real binary journey; cargo xtask precommit and git diff --check origin/main...HEAD pass.
  • missing_evidence: exact-head hosted checks are queued. The broad local fixtures/goldens/dogfood sequence timed out under concurrent build contention and is therefore not established locally.
  • affected_surfaces: test stimulus and oracle, user-facing checked artifacts/docs, process policy, generated-artifact relationships, integration basis, and published PR head were inspected.
  • residual_risk: the mutation row remains imported sample data and is not runtime mutation evidence; this PR intentionally proves only the static closure slice.
  • disposition: REVIEW_INCOMPLETE pending exact-head required checks.

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

Substantive exact-head re-review after hosted fixture-contract repair

  • reviewed_head_sha: 2fcad278709930e76cb52b6063133e2b2c8838ce
  • integration_basis: 8497040c2334f608c2f4f1680c5eae425a6f0b0c
  • claim_boundary: unchanged from the prior review; exact equality-boundary static closure only, with runtime mutation, edit-cage, merge approval, analyzer redesign, automatic edits, and support/release claims excluded.
  • material_head_change: the unchanged-after-attempt control now owns an unchanged receipt instead of reading the canonical receipt that this PR intentionally moved to improved. Its rendered JSON/Markdown provenance points to that dedicated input.
  • blocking_findings: none after this repair.
  • non_blocking_findings: none.
  • proof_observed: the exact previously failing unit test passes; the first-useful-action corpus pin passes; cargo xtask precommit passes; earlier equality-boundary focused and real-binary proofs remain valid because this change does not touch their stimulus/oracle.
  • review_threads: none unresolved before this publication; current thread freshness will be checked again before merge.
  • missing_evidence: new exact-head hosted checks are running. The preceding rust-tests-junit failure on 7ec3c2784de69d83e86bf8f1851ee7c9ad2ac397 is repaired locally but not yet re-proven hosted.
  • disposition: REVIEW_INCOMPLETE pending exact-head hosted results.

This was referenced Aug 15, 2026
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