Skip to content

The proof's repeat count is chosen in one place, and its routes report runs that never reached the page apart - #931

Merged
coderhelm[bot] merged 1 commit into
mainfrom
proof-count-seam
Dec 1, 2026
Merged

coderhelm[bot] merged 1 commit into
mainfrom
proof-count-seam

Conversation

@nambok

@nambok nambok commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #927 (merged): the repeat proof's count is chosen in one place, and its routes report their runs in a form the test-fix evidence can count. This is the seam #928 (the evidence-led test fix) connects to.

  • proof_routes::repeat_count(asked, measured): the count a proof's routes run. measured is the count from the test's own measured failure rate (A failing test is fixed from its evidence, or not changed at all #928's fix_evidence::repeats_for); without it, the count the review asked for. Capped at 300.
  • Plan::tally(): the plan's runs as counts: runs that passed or failed on the page, and routes that never reached it (refused by the network, no address, no start script). Those are never failures, the same rule as A failing test is fixed from its evidence, or not changed at all #928's RunResult::NotReached.
  • The pull request watch's owed proof and the test fix's ready check take their count from repeat_count.

Wiring with #928. #928 merges after this, so it rebases onto main and connects the two: Measure::from(Tally), fix_evidence::measured_repeats(rate) passed as measured in both callers, and the ready check judging the routes' tally with fix_evidence::proof (only runs that reached the page count, and enough of them for the measured rate). That change has been built and tested on main plus #928 plus this pull request.

Changes

  • common::e2e::proof_routes: repeat_count, MAX_REPEAT, Tally, Plan::tally, with tests.
  • pr_watch::prove_owed and test_fix::ready_gate call repeat_count.

Verification

…t runs that never reached the page apart

proof_routes::repeat_count takes the count measured from the test's failure
rate when the run has one, else the review's; Plan::tally gives the runs that
passed or failed on the page and the routes that never reached it, which are
never failures. This is the seam the evidence-led test fix wires into.
@nambok nambok added the ch-review CoderHelm reviews this pull request label Dec 1, 2026

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

✅ Approved 8ef5737 (merged)

@coderhelm

coderhelm Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

💚 Post-merge health check passed: the deploy of a029c52 completed and stayed green for the full 15-minute watch window (no new failures vs. the pre-merge baseline).
Auto-merge

  • ✅ CoderHelm approved
  • ✅ CI green
    The rest is in the pull request description.

@coderhelm
coderhelm Bot merged commit a029c52 into main Dec 1, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ch-review CoderHelm reviews this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant