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

@ -28,7 +28,7 @@ No new storage service, arbitrary truncation, full corporate-action feed, or syn
- apps/stock/web-app/src/features/backtest/components/CreateBacktestDialog.tsx
- apps/stock/orchestrator/src/backtest/BacktestRunner.ts
Write locks: dataset-contract, web-backtest-detail, web-backtest-service. One agent owns this change. Lock names do not override actual overlapping files.
Write locks: dataset-contract, web-backtest-detail, web-backtest-service. Root coordinates shared contracts; backend and frontend owners may use isolated worktrees with disjoint actual files. Lock names do not override actual overlapping files.
## Dependencies and blockers
@ -68,3 +68,18 @@ Keep migrations additive and previous results readable. Do not add a switch that
## Handoff
Report scope changes (if any), fixture expectations, API/schema changes, measurements, remaining limitations and commit/PR references once authorized. Request independent review; only the integration/planning owner may mark the manifest done.
## Execution contract — 2026-10-23
- Existing web execution remains v1/legacy. Catalog v2 entries are unsupported pending R05; do not adapt them or switch engine defaults.
- Metadata-only list/detail includes the v1 manifest, storage key, version, creation time and actionable status. No bar arrays enter API memory. Validate structure/count/key agreement; describe coverage as unknown and full content integrity as not verified by catalog. The durable runner retains full content validation.
- Reuse is exact: sorted instruments, full UTC bounds (including intraday milliseconds), interval, adjustment/timestamp policy and hash. No implicit slicing. An explicit source conflicting with retained provenance rejects; omitted/auto allows exact retained reuse.
- Optional `dataSource: auto | questdb | eod` reaches existing asynchronous storage loading. Definitions and accepted snapshots retain it. No synchronous provider access in API.
- Save/update/new submission checks selected metadata before execution. Idempotent submission receipts are returned before revalidating mutable definitions or current catalog state.
- Run dataset projection reads only immutable request snapshot and atomic binding. Pending/source preparation is visibly unpinned; failed runs never become successful merely because a hash is bound.
- Reuse one picker in creation and Settings; preserve exact intraday bounds and missing hash selections. Source mode works when catalog is empty/unavailable. Keep existing economics warnings.
- Root owns shared contracts/source plumbing/route mount/browser tests/planning; backend and frontend slices own disjoint files. No Rust financial changes, extra storage/queue service, strategy catalog or performance work.
## Validated handoff — 2026-10-23
Integrated exact v1 catalog/selection/source/run-binding flow with unchanged durable content validation and engine defaults. Concurrent definition edits now lock before merge/validation. Independent review accepted; all required metadata/compatibility/source/retry cases and shared browser flows passed. Full PostgreSQL suite: 111 tests / 792 assertions; final browser: 6 / 66; final release-addon focused suite: 94 / 596. Strict test types, scoped lint/format and repository gates passed (see manifest for exact sequencing and evidence). Status, hashes, commands, limitations and acceptance state remain canonical in `manifest.json` → `nineteenth_wave_validation`. R01 is next; performance remains deferred.