Skip to content

Det durations: warn at 25% unmeasured, fail only past 50%; measure 27 missing cases - #9127

Merged
squid-protocol merged 3 commits into
mainfrom
durations-feed
Nov 23, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
durations-feed

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Why. #8873 failed four planner tests because the committed tests/equivalence/det_sweep_durations.json lacked timings for ~25% of det cases and check_measured had one 25% cliff. Every unmeasured case already plans at the measured median, so the failure was about file freshness, not a broken plan.

Root cause. The nightly det sweep writes its measurements to a CI cache, never to the committed file. The file changes only when a PR adds cases by hand, or when the evidence-refresh bot PR lands (#8564 sat stale for six days). So it drifts until the next PR that adds a few cases tips it over.

What this changes.

  • ci_shard_plan.check_measured: past 25% unmeasured it prints a ::warning:: and plans at the median; it fails (PlanError) only past 50%, where the feed has clearly stopped.
  • Measured the 27 missing cases that prove on melek (durations 273 → 300 entries).
  • Tests updated: ok / warns / fails bands in test_ci_shard_plan.py, and test_det_sweep_plan.py.

Tested. 246 planner tests pass (and the durations tool's tests). Not done: nothing yet writes nightly measurements back to the committed file, so it will drift again, slowly and now only as a warning. A real fix is a step that opens or updates a small bot PR from the nightly cache; not built here.

🤖 Generated with Claude Code

…t 50%; 27 more cases measured

Cause: the nightly det sweep feeds a CI cache, never tests/equivalence/det_sweep_durations.json; the file changes only when a PR
adds cases by hand or when the evidence-refresh bot PR lands (#8564 sat stale six days). It fell to ~25% unmeasured, so a PR that
added three cases tripped the single 25% cliff in check_measured and failed four planner tests, though every unmeasured case
already plans at the measured median. Now: warn past MAX_UNMEASURED, fail past FAIL_UNMEASURED (the feed has stopped).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol
squid-protocol marked this pull request as ready for review November 23, 2026 15:31
squid-protocol and others added 2 commits November 23, 2026 11:14
…past 25% unmeasured, fail past 50%)

Two tests in tests/cics_crucible/test_shards_5498.py still expected the old hard failure at 25% and failed CI.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol
squid-protocol merged commit a48ee0a into main Nov 23, 2026
52 checks passed
@squid-protocol
squid-protocol deleted the durations-feed branch November 23, 2026 17:51
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