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

@ -1,6 +1,6 @@
# ADR-006 — Web-first research product and minimal persistence
Status: **proposed for plan approval**; web as primary product is user-mandated.
Status: **approved by owner continuation on 2026-10-23**, after the S05 handoff explicitly linked this decision for the next research-product work. Web as primary product is user-mandated. Approval covers direction; engine cutover and trading activation remain separate release gates.
## Selected approach

View file

@ -1,6 +1,6 @@
# Integrated research product contracts
Status: proposed under ADR-006. This is the minimum product model, not a general laboratory system.
Status: approved under ADR-006 on 2026-10-23. This is the minimum product model, not a general laboratory system.
## Existing paths to preserve
@ -94,7 +94,9 @@ No extra AI database, simulator or agent framework is needed for this workflow.
Reuse current Card/Dialog/DataTable/layout/chart/metric components and responsive layouts. Add only research/strategy/experiment navigation. Preserve draft input on errors, show loading separate from empty, label incomplete/cancelled/legacy/ungated results, and allow reopening exact saved URLs. Do not replace working components for cosmetic consistency.
Existing [analytics-ui tests](../../../test/integration/analytics-ui.test.tsx#L1) use server rendering; there is no declared browser harness in [web package](../../../apps/stock/web-app/package.json). W01 adds narrowly scoped interaction tests; W04 adds real navigation E2E, preferably Playwright. Dependency installation is an explicit task step requiring the usual approval, not an assumed existing capability.
Existing [analytics-ui tests](../../../test/integration/analytics-ui.test.tsx#L1) use server rendering. W04 now supplies the shared [Playwright workflow harness](../../../test/e2e/workbench.test.ts), real authenticated Hono routes, disposable SQL/Redis, durable dispatch and native smoke coverage. Extend it for research-product flows instead of creating a second harness.
R11 exposes retained v1 metadata and exact hash selection in both backtest forms. Catalog coverage is unknown and full content integrity is not verified by metadata inspection; the runner validates retained bytes before binding/execution. The current web runner remains legacy/v1, so v2 entries are visibly unsupported until R05. Source requests remain unpinned until prepared asynchronously. These product capabilities do not remove the existing economics qualifications.
## Review clarifications