Skip to content

feat(trials): forecast range beside the measured figure in the report and trials pages (Part of #8321) - #8669

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8321-20261119T1335Z
Nov 19, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8321-20261119T1335Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8321 (slice 3 of 3; slices 1-2 are #8664 and #8667).

What changed

The registered forecast now shows beside the measured figure:

  • trial_page (the per-estate regen report page) gets a "Forecast (registered at start) beside measured" table, one row per FORECAST_FIGURES entry.
  • render (the trials page) gets a "Forecast beside measured" table across trials.
  • New forecast_rows(trial) in tests/tools/trial.py is the single source for both. Only first_try_proof is measured by the ledger (proven@1 of counted programs); the other three figures read "not measured here" rather than borrowing a number from elsewhere. A pre-rule trial (blind 1, no forecast) shows no block, and a rehearsal page shows none (no registered forecast yet).
  • Test: test_the_forecast_range_sits_beside_the_measured_figure_8321.
  • trial.py report --write output is unchanged: the only committed trial predates the rule, so no generated page moves.

Class / Sibling gaps

Class: every surface that reports a trial figure must show its registered forecast range beside it, so the result cannot be read against a different number after the fact. Members: the per-trial report page (done), the trials index page (done). Sibling gaps: the SVG chart (render_svg) carries no forecast marker, since it plots attempts per estate rather than a forecast figure, so nothing to place beside it. The three translation figures (whole at first contact, whole at close-out, accounted at close-out) are measured by the census, not the ledger; wiring those measured values into the table needs a ledger field for them and is a different mechanism (follow-up).

Remaining slices

None for the issue as scoped; the follow-up above is the only open item.

Gates

pytest tests/cobol_mainframe/test_trials.py 62 passed; audit_check.py all clear (ruff, mypy, dead-key, doc-refs, ast-accuracy, signal-coverage); ruff format --check clean. Not run: pr_gates --ratchets (no engine/parsing change; the files are a test tool and its test).

🤖 Generated with Claude Code

… and trials pages (Part of #8321)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 19, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 19, 2026 13:38
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 19, 2026 13:39
@squid-shepherd
squid-shepherd Bot merged commit c9f8f2f into main Nov 19, 2026
64 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8321-20261119T1335Z branch November 19, 2026 13:51
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.

1 participant