feat(research): select and reuse frozen datasets in workbench

This commit is contained in:
Boki 2026-10-23 18:13:37 -04:00
parent 6a67ae8683
commit b106c1ca85
29 changed files with 2295 additions and 426 deletions

View file

@ -467,3 +467,17 @@ The [comparison example](../../apps/stock/orchestrator/examples/canonical-regime
Validation: `bun run check` passed build/source/contracts, 82 tooling, 43 utility, 44 calculation, 479 integration and 150 Rust tests (four manual ignored), plus lint. The final added public-schema matrix passed separately. Full disposable PostgreSQL/Redis suite: **105 tests / 728 assertions**. Final strict new-test types, scoped lint/format and diff checks passed. **98 tests / 580 assertions** passed against the final release addon, including the added matrix, worker reports, SMA regressions and durable recovery. Exact commands, hashes and logs are recorded in `manifest.json` → `eighteenth_wave_validation` and `/tmp/stock-bot-wave18.V1G17v/`.
Only the two exact disposable test containers and identified sandbox-stalled verifier test processes were stopped; development resources, worktrees and logs remain. No S05 commit, push, PR, optimization, benchmark measurement, default cutover or trading activation occurred. Next after acceptance/commit: **R01 immutable strategy versions and R11 dataset workbench integration**, subject to the pending [ADR-006 research-product decision](architecture/decisions/006-research-product.md). Performance work remains deferred.
## Nineteenth-wave execution — 2026-10-23
S05 is accepted and committed as `6a67ae8`, superseding its uncommitted handoff above. Owner continuation approves the explicitly linked ADR-006 research-product direction. R11 is the next focused vertical slice; R01 is ready but outside this wave. Backend and frontend worktrees under `/tmp/stock-bot-wave19.do4GnG/` reserve disjoint files. Root owns contracts, composition, source forwarding and browser integration; review is independent.
The workbench will select exact retained v1 datasets or explicit source requests through the existing durable runner. Metadata listing does not certify bar integrity or calendar coverage. V2 datasets remain visibly unsupported until R05; existing economics warnings remain. No new service, default engine cutover, trading activation, profiling or benchmark work.
**Validated handoff:** R11 is `review` / `validated_uncommitted`. Twenty-four source/test files add a metadata-only retained dataset catalog, exact hash selection shared by creation and Settings, explicit source forwarding through the existing runner, and run-specific preparation/pinned status. Intraday UTC milliseconds survive save/reopen. Missing/unsupported metadata stays visible; source mode remains independent of catalog availability. Save and submit validate exact compatibility; concurrent partial updates serialize under the existing backtest row lock. Accepted idempotent submissions still return their original receipt before checking current templates/catalog state.
Independent G1/G2 review accepted the final changes. Repository checks passed 498 integration and 150 Rust tests (four manual ignored), plus build/source/contracts, 82 tooling, 43 utility, 44 calculation and lint gates. The final row-lock fix passed the full disposable PostgreSQL/Redis suite: **111 tests / 792 assertions**. Final release-addon focused coverage: **94 tests / 596 assertions**. Final browser coverage: **6 workflows / 66 assertions**, including real native frozen-hash reuse/reopen/trades, exact intraday save/reopen, mismatch rejection before dispatch and source unpinned-to-pinned display. Strict changed-test types and scoped lint/format/diff checks passed. Exact commands, source hashes and logs are in `manifest.json` → `nineteenth_wave_validation` and `/tmp/stock-bot-wave19.do4GnG/`.
The catalog does not certify full content integrity or calendar coverage. Current web economics remain legacy/qualified; v2 entries remain unsupported until R05. No financial Rust change, schema migration, new service, performance measurement, default cutover or trading activation. The final release addon matches this checkout's release library. Both exact disposable fixtures were stopped; development resources, logs and worktrees remain. No R11 commit, push or PR. **Next after acceptance/commit: R01 immutable strategy versions**, now ready under approved ADR-006.