feat(research): run durable chronological validation and retain reports

This commit is contained in:
Boki 2026-10-24 12:03:41 -04:00
parent 67ab30cb7a
commit abd1c5b83d
42 changed files with 5345 additions and 74 deletions

View file

@ -84,3 +84,17 @@ The first component is independently reviewed and `component_validated_uncommitt
Full repository checks passed (786 integration /150 Rust tests), PostgreSQL (194 tests /1655 assertions), Chromium (12 workflows /306 assertions), strict test types, lint and formatting. Native regressions prove independent initial cash/positions/state, no warmup orders/fills and earlier-phase invariance to a changed test suffix. Browser/database tests prove preview makes no retained-data/job/template writes. Hashes and logs: `manifest.json` → `twenty_ninth_wave_validation`.
Next: immutable experiment-owned recipe and guarded staged admission, with all candidate training evidence complete before a write-once winner selection and validation/test admission. Existing ordinary experiment/retry behavior must remain intact. This preflight does not satisfy immutable report reopening, holdout access history, walk-forward aggregation or cost-sensitivity execution; R09 remains blocked.
## Authorized durable single-recipe component — 2026-10-24
Preflight is accepted and committed as `67ab30c`. Extend the training experiment with the immutable preparation manifest and write-once selection/report. Validation and test are ordinary singleton child experiments linked to the root, preserving existing run, outbox and retry contracts. Reuse full `getRunResults` financial/analytics validation before sealing evidence; compact UI summaries are insufficient.
Explicit receipt-bearing submit, select-and-admit and finalize endpoints; GET remains read-only. Retain all three slices atomically with training admission. All training candidates must complete and be comparable before selection. Freeze selection and both same-winner heldout experiments/runs/outbox in one transaction. Each phase resets capital/state as declared. Accepted receipt replay precedes current eligibility checks; current original approval/build gates new execution only. Finalization assembles verified historical evidence even after archival/build changes. Root cancellation propagates through existing cancellation routes and SQL guards.
The web supports saved validations, training admission, selection, heldout progress and report reopen; ambiguous requests retain exact intent/key and exclude conflicting editor actions. Child experiment links reuse existing retry/history UI. SQL guards protect recipe lineage, phase linkage, candidate completeness, selection and report immutability. Test native full lifecycle, prefix independence, all-candidate failures, atomic rollback, concurrent receipts/cancellation, upgrade preservation and browser recovery. No new scheduler, simulator, run schema, AI/candidate activation or performance work. Multi-window walk-forward/reset-series aggregation and cost sensitivity remain outstanding after this component.
### Validated durable handoff
The single-recipe component is independently accepted and `component_validated_uncommitted`. Shared Rust economics, ordinary runs/outbox, SQL22/23 retry semantics and original evidence are preserved. All repository gates pass (825 integration /150 Rust tests), PostgreSQL/Redis 205 tests /1773 assertions, Chromium 13 workflows /357 assertions, strict test types and lint. Exact source hashes and review evidence: `manifest.json` → `thirtieth_wave_validation`.
The UI supports the complete staged lifecycle and immutable report reopening. Native regressions prove unchanged training scores/winner after modifying only future test prices; malformed or missing candidate evidence cannot seal selection. Atomicity, SQL tamper, receipt/cancel races, migration preservation and phase retries pass. Full R08 remains incomplete for repeated walk-forward windows/reset-series aggregation and bounded cost sensitivity. R09 remains blocked. No performance or trading/default/AI activation occurred.