feat(research): select and reuse frozen datasets in workbench
This commit is contained in:
parent
6a67ae8683
commit
b106c1ca85
29 changed files with 2295 additions and 426 deletions
|
|
@ -1,16 +1,16 @@
|
|||
{
|
||||
"schema_version": 1,
|
||||
"plan_revision": "2026-10-23.40",
|
||||
"plan_revision": "2026-10-23.42",
|
||||
"repository_base": "b7aeca4",
|
||||
"plan_status": "eighteenth_wave_review",
|
||||
"plan_status": "nineteenth_wave_review",
|
||||
"execution_authorized": true,
|
||||
"execution_scope": {
|
||||
"authorized_by": "User: commit and continue after validated S03 handoff (2026-10-23). S03 accepted/committed c01e96e; S04 prerequisites satisfied. Performance work remains deferred.",
|
||||
"authorized_by": "User: commit and continue after validated S05 handoff explicitly linked ADR-006 as next research product direction (2026-10-23). S05 accepted and committed 6a67ae868327eebc46872ab58e492933f582b7fd. ADR-006 direction approved by continuation; R11 chosen as next scoped vertical slice. Performance remains deferred.",
|
||||
"tasks": [
|
||||
"S05"
|
||||
"R11"
|
||||
],
|
||||
"permissions": [
|
||||
"S05 isolated implementation, correctness tests, independent review and planning updates; S04 commit authorized and completed"
|
||||
"R11 isolated implementation, correctness/browser tests, independent review and planning updates; prior S05 commit authorized/completed"
|
||||
],
|
||||
"excluded": [
|
||||
"performance_profiling_or_optimization",
|
||||
|
|
@ -23,15 +23,8 @@
|
|||
"other_backlog_tasks"
|
||||
],
|
||||
"pending_policy_decisions": [
|
||||
"ADR-006",
|
||||
"ADR-007",
|
||||
"ADR-008"
|
||||
],
|
||||
"exclusions": [
|
||||
"Performance profiling/optimization/benchmarks",
|
||||
"New-wave commits, push, PR or trading activation",
|
||||
"Default cutover or unapproved ADR policies",
|
||||
"Other backlog tasks"
|
||||
]
|
||||
},
|
||||
"canonical_metadata": "This manifest alone owns task status, dependency edges, approvals, assignments and write locks. Task Markdown owns scope and acceptance criteria. Index/roadmap are derived views.",
|
||||
|
|
@ -72,7 +65,9 @@
|
|||
{
|
||||
"id": "ADR-006",
|
||||
"file": "architecture/decisions/006-research-product.md",
|
||||
"status": "proposed_for_plan_approval"
|
||||
"status": "approved",
|
||||
"approved_by": "User instructed commit and continue after handoff explicitly linked pending ADR-006 for next research-product work. Direction approved; no engine/default/paper/live activation.",
|
||||
"approved_on": "2026-10-23"
|
||||
},
|
||||
{
|
||||
"id": "ADR-007",
|
||||
|
|
@ -1144,7 +1139,7 @@
|
|||
"epic": "E4",
|
||||
"priority": "P2",
|
||||
"severity": "Medium",
|
||||
"status": "review",
|
||||
"status": "done",
|
||||
"dependencies": [
|
||||
"S02",
|
||||
"F08"
|
||||
|
|
@ -1165,14 +1160,14 @@
|
|||
"assignment": "/root/s04_controls_audit",
|
||||
"branch": "wave18/s05-strategy",
|
||||
"pull_request": null,
|
||||
"completed_commit": null,
|
||||
"completed_commit": "6a67ae868327eebc46872ab58e492933f582b7fd",
|
||||
"blocker": null,
|
||||
"release_gates": [
|
||||
"R08"
|
||||
],
|
||||
"worktree": "/tmp/stock-bot-wave18.V1G17v/strategy",
|
||||
"integration_base": "75abae2cfc65229f65273bebc2ea9ef3148cce60",
|
||||
"integration_state": "validated_uncommitted",
|
||||
"integration_state": "accepted_committed",
|
||||
"implementation_slices": [
|
||||
{
|
||||
"owner": "/root/s04_controls_audit",
|
||||
|
|
@ -1395,7 +1390,7 @@
|
|||
"epic": "E6",
|
||||
"priority": "P1",
|
||||
"severity": "High",
|
||||
"status": "blocked",
|
||||
"status": "ready",
|
||||
"dependencies": [
|
||||
"O01"
|
||||
],
|
||||
|
|
@ -1750,7 +1745,7 @@
|
|||
"epic": "E6",
|
||||
"priority": "P1",
|
||||
"severity": "High",
|
||||
"status": "blocked",
|
||||
"status": "review",
|
||||
"dependencies": [
|
||||
"D01",
|
||||
"O01"
|
||||
|
|
@ -1772,14 +1767,33 @@
|
|||
"web-backtest-detail",
|
||||
"web-backtest-service"
|
||||
],
|
||||
"parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.",
|
||||
"assignment": null,
|
||||
"parallel_policy": "Root owns shared contracts, source plumbing, composition, browser harness and planning. Backend and frontend worktrees reserve disjoint actual files; independent reviewer is read-only.",
|
||||
"assignment": "/root",
|
||||
"branch": null,
|
||||
"pull_request": null,
|
||||
"completed_commit": null,
|
||||
"blocker": null,
|
||||
"release_gates": [
|
||||
"W04"
|
||||
],
|
||||
"integration_base": "6a67ae868327eebc46872ab58e492933f582b7fd",
|
||||
"integration_state": "validated_uncommitted",
|
||||
"worktree": "/home/boki/repos/stock-bot",
|
||||
"implementation_slices": [
|
||||
{
|
||||
"owner": "/root/s04_controls_audit",
|
||||
"scope": "Dataset metadata API, admission compatibility and run projection; focused integration/PostgreSQL tests",
|
||||
"worktree": "/tmp/stock-bot-wave19.do4GnG/backend"
|
||||
},
|
||||
{
|
||||
"owner": "/root/s04_feed_audit",
|
||||
"scope": "Shared dataset selection UI, both configuration forms, API client and run status",
|
||||
"worktree": "/tmp/stock-bot-wave19.do4GnG/frontend"
|
||||
},
|
||||
{
|
||||
"owner": "/root",
|
||||
"scope": "Shared contracts/metadata validation, source forwarding, route mount, browser tests, integration/planning"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -2462,6 +2476,39 @@
|
|||
"commit_authorized_by": "User: commit and continue (2026-10-22), after W04 validated handoff",
|
||||
"continuation": "Requested; no remaining scheduled task has satisfied code AND ADR prerequisites. Explicit ADR-002/003/004 approval requested before F01/D01. No policy decision or deferred activation inferred."
|
||||
}
|
||||
},
|
||||
{
|
||||
"wave": "eighteenth_wave",
|
||||
"scope": {
|
||||
"authorized_by": "User: commit and continue after validated S03 handoff (2026-10-23). S03 accepted/committed c01e96e; S04 prerequisites satisfied. Performance work remains deferred.",
|
||||
"tasks": [
|
||||
"S05"
|
||||
],
|
||||
"permissions": [
|
||||
"S05 isolated implementation, correctness tests, independent review and planning updates; S04 commit authorized and completed"
|
||||
],
|
||||
"excluded": [
|
||||
"performance_profiling_or_optimization",
|
||||
"performance_benchmarks",
|
||||
"new_wave_commits_without_further_approval",
|
||||
"push",
|
||||
"pull_requests",
|
||||
"live_or_paper_operations",
|
||||
"default_engine_cutover",
|
||||
"other_backlog_tasks"
|
||||
],
|
||||
"pending_policy_decisions": [
|
||||
"ADR-006",
|
||||
"ADR-007",
|
||||
"ADR-008"
|
||||
],
|
||||
"exclusions": [
|
||||
"Performance profiling/optimization/benchmarks",
|
||||
"New-wave commits, push, PR or trading activation",
|
||||
"Default cutover or unapproved ADR policies",
|
||||
"Other backlog tasks"
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"second_wave": [
|
||||
|
|
@ -6398,5 +6445,121 @@
|
|||
]
|
||||
},
|
||||
"next": "Accept/commit S05; next product work R01/R11 requires pending ADR-006. Performance remains deferred; no other code/ADR-ready execution task is authorized by this handoff."
|
||||
},
|
||||
"nineteenth_wave": [
|
||||
"R11"
|
||||
],
|
||||
"nineteenth_wave_base": "6a67ae868327eebc46872ab58e492933f582b7fd",
|
||||
"nineteenth_wave_notes": [
|
||||
"ADR-006 approved by continuation of explicitly linked direction. R01 is ready but outside this wave.",
|
||||
"Current durable web runner remains v1/legacy. Retained v2 datasets are visible as unsupported pending R05, with no adaptation or default cutover.",
|
||||
"Metadata catalog does not prove full content integrity or calendar coverage; exact v1 reuse and full runner validation remain authoritative.",
|
||||
"Performance engineering and benchmarks remain deferred."
|
||||
],
|
||||
"nineteenth_wave_validation": {
|
||||
"state": "validated_uncommitted",
|
||||
"task": "R11",
|
||||
"base": "6a67ae868327eebc46872ab58e492933f582b7fd",
|
||||
"evidence_directory": "/tmp/stock-bot-wave19.do4GnG",
|
||||
"source_archive": "/tmp/stock-bot-wave19.do4GnG/r11-integrated-source.tar",
|
||||
"source_archive_sha256": "4757798a17c9216bf67daf0efb6b29bbddbc47677f2782243a031c31eaf4c78f",
|
||||
"source_hashes": {
|
||||
"apps/stock/config/src/contracts/backtest.ts": "8a1dfea4ffce69834692ffc9049bc0d755f27f4ce4a82032b1e3d47d4c00dd50",
|
||||
"apps/stock/orchestrator/src/contracts/historical.ts": "5c0c613a87dec4d22c5999b25fa5d9425832a1b95db5b85fc94baff74bb131cc",
|
||||
"apps/stock/orchestrator/src/data/historical-dataset.ts": "7b1c279aa0f031282b6b725b9f50dee5362f588eb0e913e42609370ad8583dd4",
|
||||
"apps/stock/web-api/src/routes/create-routes.ts": "bb87b71c237510b638d5bcff8edb766a2976f57cf85f111d85816d1934cc519b",
|
||||
"apps/stock/web-api/src/routes/datasets.routes.ts": "001f99b321e2444c359543ad36aef8a531432898763e57395cdd7b080e50c436",
|
||||
"apps/stock/web-api/src/services/backtest-v2.service.ts": "8199972cc0b3cad9f35317b994350221b648327d48d0ef69f14ae218777e6541",
|
||||
"apps/stock/web-api/src/services/dataset-catalog.service.ts": "d7808120300922eaea2b269481ff3771ee9b3da632dfa152dfe9022640a2fadc",
|
||||
"apps/stock/web-app/src/features/backtest/BacktestDetailPageV2.tsx": "46d39c64478f0e100378b89e005cb87817cf1e1dd6f10104f3faf855b32377ca",
|
||||
"apps/stock/web-app/src/features/backtest/components/BacktestConfiguration.tsx": "b6bfc0b0609692c1316c40449468c5b239bc60499f474d9607ac43703a068635",
|
||||
"apps/stock/web-app/src/features/backtest/components/CreateBacktestDialog.tsx": "a6e1b76777ce0ba20b44be96fbe1d430e49a4bd1e5241a63d7eb87441ce74a5d",
|
||||
"apps/stock/web-app/src/features/backtest/components/HistoricalDataSelection.tsx": "63af2d46c77a766db86d73eceea5d60ecc5a3d118256fdd3a5197fa3b11b1a01",
|
||||
"apps/stock/web-app/src/features/backtest/components/RunDataset.tsx": "ee6c3cbb5e4b4beb7b6274afedc78a376847cb8c4634edc44817c61ef5f46f6d",
|
||||
"apps/stock/web-app/src/features/backtest/services/backtestApiV2.ts": "84250aa382bb71de6575ff23e63a04b1e6a8b903221add2f8c52cf21c993a43a",
|
||||
"apps/stock/web-app/src/features/backtest/services/historical-selection.ts": "ee16badd8cd3721f045b23a3666493a9dd8204b8ca447e681e0edb925a82f497",
|
||||
"apps/stock/web-app/src/features/backtest/types/backtest.types.ts": "9b6eb37fa30a43c063f27f7ecbf84d997caee4be3e0892dc5b3e5ed6eb24cc90",
|
||||
"libs/core/types/src/dataset-catalog.ts": "9f0ab029be94ec502dc4ea797e441ed075a32662048c7c141282eb99da7bd969",
|
||||
"libs/core/types/src/index.ts": "600ee1bd084b8d50ce97bbcd632ac27abba741d5a00b4e2e00562e92a7a098a0",
|
||||
"test/e2e/fixture.ts": "09fae4adcf9af66fac200b451ccfc76b9135f0e5255b47c7a98a715d5060ab51",
|
||||
"test/e2e/workbench.test.ts": "43731027c547c3529391f28d76093919b1c7b9b32856d77623b21b707e62adc0",
|
||||
"test/integration/backtest-request-contract.test.ts": "52d669e44e478070a4a0c6a4998f5e6cd4503def061393ed5de74c1c89da2a84",
|
||||
"test/integration/dataset-catalog.test.ts": "a13c14310263e46a944b0814a2aa9ffe0db9487a0a11d75f76f86c0501a55900",
|
||||
"test/integration/dataset-workbench.test.ts": "a2e2a02e3d00595b7f4bf90aa0f163ea536a709141cabd68a67c72959265e817",
|
||||
"test/integration/ingestion-backtest.test.ts": "ddfee95759278434a33db035f04680b81c42b0348ba920189fb112d1c3739784",
|
||||
"test/postgres/dataset-catalog.test.ts": "ba8388007383bd7109c56ce20028e976138d9e282249e80946f9f78d820e2866"
|
||||
},
|
||||
"independent_review": {
|
||||
"owner": "/root/s03_review",
|
||||
"outcome": "Accepted G1/G2 after concurrent-update fix and pending-source presentation fix; post-fix verification gates passed. No remaining must-fix findings.",
|
||||
"reviewed_fixes": [
|
||||
"94ca8edc5ab316d9c6a56d88b930359db477b4c8ffa5bb9044cfcad1666163ca",
|
||||
"fcec404fb706f65b6370b1f5c0e1e4cf6680c9015330e57d09cf727fad84d453"
|
||||
],
|
||||
"root_test_adjustments": "Strict happy-dom fetch mock uses browser.Response and its actual response type; existing ingestion fixture if/else expanded for scoped lint. Browser source case additionally checks pending unpinned to running pinned."
|
||||
},
|
||||
"checks": [
|
||||
{
|
||||
"command": "CARGO_BUILD_JOBS=2 bun run check",
|
||||
"log": "/tmp/stock-bot-wave19.do4GnG/check.log",
|
||||
"outcome": "Passed all repository gates: build/source/contracts, 82 tooling, 43 utility, 44 calculation, 498 integration, 150 Rust (4 manual ignored), lint. Before final backend row-lock fix; affected source/tests rechecked below."
|
||||
},
|
||||
{
|
||||
"command": "PIPELINE_TEST_DATABASE_URL=postgres://fixture:fixture@127.0.0.1:32821/stock_bot_safety BACKTEST_TEST_REDIS_URL=redis://127.0.0.1:32822/15 bun run test:postgres",
|
||||
"log": "/tmp/stock-bot-wave19.do4GnG/postgres.log",
|
||||
"outcome": "111 tests / 792 assertions passed after row-lock fix, including deterministic concurrent partial-update regression and durable freeze/retry/recovery tests."
|
||||
},
|
||||
{
|
||||
"command": "CARGO_BUILD_JOBS=2 bun run --cwd apps/stock/engine build:release",
|
||||
"log": "/tmp/stock-bot-wave19.do4GnG/native-release-build.log",
|
||||
"outcome": "Release addon restored and byte-identical to checkout release library."
|
||||
},
|
||||
{
|
||||
"command": "bun test test/integration/dataset-catalog.test.ts test/integration/dataset-workbench.test.ts test/integration/backtest-request-contract.test.ts test/integration/ingestion-backtest.test.ts test/integration/dataset-preparation.test.ts test/integration/backtest-workflow.test.ts test/integration/native-terminal-equity.test.ts",
|
||||
"log": "/tmp/stock-bot-wave19.do4GnG/release-focused.log",
|
||||
"outcome": "94 tests / 596 assertions passed against final release addon and backend row-lock fix. Subsequent test-only type annotation/brace formatting does not change runtime behavior."
|
||||
},
|
||||
{
|
||||
"command": "PIPELINE_TEST_DATABASE_URL=postgres://fixture:fixture@127.0.0.1:32821/stock_bot_safety BACKTEST_TEST_REDIS_URL=redis://127.0.0.1:32822/15 bun run test:e2e",
|
||||
"log": "/tmp/stock-bot-wave19.do4GnG/e2e-final.log",
|
||||
"outcome": "6 browser workflows / 66 assertions passed after row-lock fix and release restoration. Includes native frozen-hash run/reopen/trades, exact intraday milliseconds save/reopen, mismatch400/no dispatch, source unpinned-to-pinned, existing retry/switch/cancel flows."
|
||||
},
|
||||
{
|
||||
"command": "bun run typecheck",
|
||||
"log": "/tmp/stock-bot-wave19.do4GnG/typecheck-final.log",
|
||||
"outcome": "Passed after row-lock fix."
|
||||
},
|
||||
{
|
||||
"command": "bunx tsc --project /tmp/stock-bot-wave19.do4GnG/tests-tsconfig.json --noEmit",
|
||||
"log": "/tmp/stock-bot-wave19.do4GnG/strict-tests-final.log",
|
||||
"outcome": "Passed all new/changed integration, PostgreSQL and browser test types."
|
||||
},
|
||||
{
|
||||
"command": "bunx eslint <24 source-files.json paths> --max-warnings 0; bunx prettier --check <same paths>; git diff --check",
|
||||
"logs": [
|
||||
"/tmp/stock-bot-wave19.do4GnG/scoped-lint-final.log",
|
||||
"/tmp/stock-bot-wave19.do4GnG/scoped-format-final.log"
|
||||
],
|
||||
"outcome": "Passed."
|
||||
}
|
||||
],
|
||||
"native_release_sha256": "ef00eed556f5c32332d36a9a00ef710682e90deb00b54552e4b5c8bfdfbe8103",
|
||||
"scope": "24 source/test files; five planning files. No database migration, Rust financial source, new services or trading/default activation.",
|
||||
"limitations": [
|
||||
"Current web runner remains v1/legacy with existing unverified-economics qualification; v2 is listed unsupported until R05.",
|
||||
"Catalog validates structure/count/key metadata but cannot certify payload hash integrity or complete calendar coverage. Runner retains full validation.",
|
||||
"Exact full dataset reuse only; no implicit slicing or coverage guarantee. Source preparation uses existing configured storage."
|
||||
],
|
||||
"environment_notes": [
|
||||
"Initial sandbox-focused native worker run failed under process restrictions and was stopped via its exact exec session; escalated rerun passed34/211.",
|
||||
"Two exact disposable containers stopped after verification; development services untouched.",
|
||||
"Worktrees/logs retained. No performance profiling, optimization or benchmark measurements.",
|
||||
"No new-wave commit, push or PR."
|
||||
],
|
||||
"stopped_fixture_ids": [
|
||||
"100a9b5627d5fc80ade256f99ddbe7f88f2df1e24218c4b67baae8ae66f70d63",
|
||||
"b90c3964498805a5d69bc68540c53b85cef5b9729010d0681a2292d1aff679f8"
|
||||
],
|
||||
"next": "R01 immutable strategy versions is ADR/code-ready; performance remains deferred."
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue