Repository navigation
feat(trials): forecast range beside the measured figure in the report and trials pages (Part of #8321) - #8669
Merged
Conversation
… and trials pages (Part of #8321) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 perFORECAST_FIGURESentry.render(the trials page) gets a "Forecast beside measured" table across trials.forecast_rows(trial)intests/tools/trial.pyis the single source for both. Onlyfirst_try_proofis 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_the_forecast_range_sits_beside_the_measured_figure_8321.trial.py report --writeoutput 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.py62 passed;audit_check.pyall clear (ruff, mypy, dead-key, doc-refs, ast-accuracy, signal-coverage);ruff format --checkclean. Not run:pr_gates --ratchets(no engine/parsing change; the files are a test tool and its test).🤖 Generated with Claude Code