Repository navigation
feat(trials): one registered forecast per trial over the declared eligible set (Part of #8321) - #8664
Merged
Merged
Conversation
…gible set (Part of #8321) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
Contributor
|
No description provided. |
This was referenced Nov 19, 2026
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. First slice: the mechanical enforcement (item 4) plus the data model for items 1-3.
What changed
tests/tools/trial.py: a trial now carries exactly oneforecast:{over, declared, figures}.figuresholds a[low, high]program-count range for each ofFORECAST_FIGURES(whole at first contact, whole at close-out, accounted at close-out, first-try proof).overis the eligible count anddeclaredis the declaration hash, so the forecast is bound to the eligible set it was made over.trial.py starttakes--forecast FIGURE=LOW-HIGH(one per figure) and refuses without all four, before any scan. Order: draw, scan, eligibility, declare, forecast (rehearse the counts withpreview). The forecast is written in the same ledger save as the declaration.trial.py check(viavalidate) fails a trial with no forecast, with two (forecastskey or a list), with a basis other than its declared eligible set, or with a range outside0..over.FORECAST_REQUIRED_FROM = 2026-11-19; its history is unchanged.tests/cobol_mainframe/test_trials.py: the twostartcalls pass forecasts; a new test covers refusal and eachcheckfailure.Gates
pytest tests/cobol_mainframe/test_trials.py: 61 passed.tests/test_source_reads.pyandtest_change_classifier.py: pass.trial.py check: valid, report current.ruff format(pinned 0.16.10) applied to both files.audit_check.py: dead-key, doc-refs, ast-accuracy and signal-coverage OK. mypy lists pre-existing findings in other files (cobol_to_java_uow_forge.py,det/stmt.py), none in the touched files. I did not runpr_gates --ratchets; no parser, golden or ledger-score file changed.Class / Sibling gaps
Class: a blind-trial figure reported without exactly one forecast registered over the declared eligible set. Members: whole at first contact, whole at close-out, accounted at close-out, first-try proof. All four are enforced here by
startandcheck. Sibling gaps: the pre-registration document still states the old forecast text (estate4_preregistration.md), and it should nametrials.jsonas the one place a forecast lives; the report page (fresh_estate_trials.md) does not yet print forecast vs result. Neither needs a different mechanism, only the file cap.Remaining slices
docs/language_status/estate4_preregistration.md(point to the ledger forecast as the only one, label Blind estate trial 1 (#3803): ibm/example-health-apis -- COMPLETE: 0/29 first contact, 25/29 whole, 28/28 cased, first-try det proof 23/28 (82%) #8073's number a mid-trial note) and the blind-draw skill checklist.trial.pyrender/trial_page: show each forecast range beside the measured figure (regenerates the report page and estate pages).Lessons for agents
None.
🤖 Generated with Claude Code