Skip to content

trial: a withdrawn trial reports "not measured", never a 0% first-try rate (Part of #8073) - #8318

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/trial-withdrawn
Nov 11, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/trial-withdrawn

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Blind estate trial 1 was closed at its registered L2 endpoint by the owner on 2026-11-11. Its proof phase never ran: trial-001 held all 28 eligible programs at "attempts": [], "final": "open", with no porting-loop attempt on any of them, and closed: null.

The hazard

trial.py close had no way to express "never attempted":

  • close() forced every open program to not-proven(<cause>), with cause drawn from model|ticket|generator|engine|harness — all of which assert we tried and failed.
  • _counted() reads "a program counts toward the rate once its first attempt has a verdict, or its trial is closed", so closing pulled all 28 into the denominator.

Closing trial-001 as it stood would have published a 0/28 first-try proof rate for engine v2.12.0 into fresh_estate_trials.md and the SVG — a fabricated negative against an engine that was never asked to try. The instrument could not represent an unrun trial.

The change

  • close --withdrawn REASON — an eligible program with no attempt becomes withdrawn. A program that does carry attempts still declares its cause, because its attempts are real measurements.
  • _counted() leaves a withdrawn program out of the denominator entirely.
  • headline() reads not measured (proof phase withdrawn) instead of formatting a rate over a zero denominator (it previously printed 0/0 (-)).
  • The trial table and the per-estate page gain a withdrawn column, instead of filing those programs under open.
  • Validation — withdrawn requires a withdrawn, closed trial and a program with no attempt; the trial-level reason must be a non-empty one-liner.

trial-001 is closed as withdrawn with its reason recorded in the ledger. The published headline goes from 0/0 (-) to not measured (proof phase withdrawn), and the trial row from open 28 to withdrawn 28 | open 0.

Checks

  • tests/cobol_mainframe/test_trials.py: 48 passed, 1 skipped, including three new regression tests covering the 0%-rate hazard, the attempted-program carve-out, and the validation rules.
  • python tests/tools/trial.py check → trial ledger: valid, report up to date.
  • ruff format --check clean on trial.py (it was clean before and stays clean); no new ruff check findings beyond S101 in the added test asserts, matching the 151 already in that file.

Note

This does not rule out running the proof phase later. Case-writing was a designed prerequisite for it (inputs only, oracle-derived, nothing hand-tuned), so a proof measurement on this estate would still be legitimate. The withdrawal records that it has not happened, rather than asserting a result.

🤖 Generated with Claude Code

… rate (Part of #8073)

Blind 1 was closed at its registered L2 endpoint (owner, 2026-11-11). Its proof phase never
ran: trial-001 held all 28 eligible programs at `attempts: [], final: "open"` with no porting
loop attempt on any of them.

`close` had no way to say that. It forced every open program to `not-proven(<cause>)` from
model|ticket|generator|engine|harness -- all of which assert we tried and failed -- and
`_counted()` ("or its trial is closed") pulled all 28 into the denominator. Closing trial-001
as it stood would have published a 0/28 first-try proof rate for engine v2.12.0 against an
engine that was never asked to try.

- `close --withdrawn REASON`: an eligible program with no attempt becomes `withdrawn`. A
  program that does carry attempts still declares its cause, because its attempts are real
  measurements.
- `_counted()` leaves a withdrawn program out of the denominator, and `headline()` reads
  "not measured (proof phase withdrawn)" rather than formatting a rate over zero.
- The trial table and the per-estate page get a `withdrawn` column instead of filing those
  programs under `open`.
- Validation: `withdrawn` needs a withdrawn, closed trial and a program with no attempt.

trial-001 is closed as withdrawn, with the reason recorded in the ledger. The published page
goes from "0/0 (-)" to "not measured (proof phase withdrawn)".

Co-Authored-By: Claude Opus 5 <[email protected]>
@squid-protocol

Copy link
Copy Markdown
Owner Author

Hold — do not merge as it stands. The withdrawn mechanism is still right and should land, but closing trial-001 with it is premature.

Re-checked after opening this: the proof phase on this estate is obtainable, not lost.

  • All 28 eligible programs have an equivalence case (tests/equivalence/health-*) — the oracle the proof phase needs is in place. That is precisely what L2 was a prerequisite for.
  • The frozen system is intact and reachable: engine 5e4575d77 (v2.12.0) and harness c58cb3a69 both resolve.
  • port_runner run / prove is the loop, and trial.py sync imports its port_log.jsonl as attempt 1 per program — which is the first-try measurement.

So the registered headline (first-try proof rate) can still be measured here by running the porting loop at the frozen commits. Withdrawing would discard a measurement we can still take.

Proposed change to this PR: keep the withdrawn state, its validation, the column and the tests (a real gap in the instrument regardless), and drop the trial-001 closure, leaving it open and measurable. Awaiting the owner's call on whether to run the proof phase.

…rt of #8073)

Reverts the trial-001 closure from the previous commit; keeps the `withdrawn` state itself.

The proof phase on this estate is obtainable, not lost: all 28 eligible programs have an
equivalence case (tests/equivalence/health-*), and the frozen system still resolves (engine
5e4575d, harness c58cb3a). Withdrawing would have discarded a measurement we can still
take, so trial-001 stays open and the owner has asked for the proof phase to run.

The `withdrawn` state stays, because the instrument genuinely could not express an unrun
trial and that gap is worth closing regardless. It is now unused by the committed ledger.

Side effect worth having: an OPEN trial with no attempts also stops publishing "0/0 (-)" and
reads "not measured" instead, since a rate over a zero denominator is not a rate.

Co-Authored-By: Claude Opus 5 <[email protected]>
@squid-protocol
squid-protocol marked this pull request as ready for review November 11, 2026 18:38
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 11, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 9b39af6 into main Nov 11, 2026
39 of 44 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/trial-withdrawn branch November 11, 2026 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants