feat(research): add retained-input parameter sweep workbench

This commit is contained in:
Boki 2026-10-24 10:33:05 -04:00
parent 30accfcf43
commit 6f64ef62ba
41 changed files with 4469 additions and 34 deletions

View file

@ -1,14 +1,14 @@
{
"schema_version": 1,
"plan_revision": "2026-10-24.56",
"plan_revision": "2026-10-24.58",
"repository_base": "b7aeca4",
"plan_status": "twenty_sixth_wave_validated_uncommitted",
"plan_status": "twenty_seventh_wave_validated_uncommitted",
"execution_authorized": true,
"execution_scope": {
"authorized_by": "User: how far are we in the backlog, also commit and continue after R04 handoff naming original reproduction; R04 committed e3bd708838ce17a4da0bc2b4d6be701b72625dd8",
"tasks": ["R12"],
"authorized_by": "User: comit and continue after R12 handoff recommending bounded experiments and sweep UI",
"tasks": ["R06", "R07"],
"permissions": [
"Scoped same-installed-build retained canonical single-asset reproduction; independent implementation/review, fixtures and validation"
"Retained-input single-asset experiment and sweep UI components under pinned existing ADR-006; isolated implementation/review and full validation"
],
"excluded": [
"performance_profiling_or_optimization",
@ -21,9 +21,10 @@
"candidate_execution",
"provider_to_v2_inference",
"multi_asset_activation",
"other_backlog_tasks",
"AI_execution_or_credentials",
"historical_binary_provisioning"
"historical_binary_provisioning",
"failed_run_retry",
"cross_experiment_ranking"
],
"pending_policy_decisions": [
"ADR-007",
@ -1334,8 +1335,8 @@
"epic": "E6",
"priority": "P1",
"severity": "High",
"status": "blocked",
"dependencies": ["R05"],
"status": "in_progress",
"dependencies": ["R01", "R10", "F08", "S02", "D01", "W03", "C06", "R12"],
"decision_dependencies": ["ADR-006"],
"task_file": "backlog/tasks/R06.md",
"findings": ["WEB-01", "WEB-04", "KEEP-02"],
@ -1343,12 +1344,38 @@
"specialization": "Full-stack research product",
"write_locks": ["sql-migrations", "experiment-api"],
"parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.",
"assignment": null,
"assignment": "/root",
"branch": null,
"pull_request": null,
"completed_commit": null,
"blocker": null,
"release_gates": []
"release_gates": [],
"integration_state": "partial_validated_uncommitted",
"integration_base": "30accfcf4370e96e58f771dff67639ea2a278188",
"worktree": "/home/boki/repos/stock-bot",
"execution_component": "Retained-input atomic bounded experiments",
"component_exclusions": ["failed retry and broader R05 cutover"],
"satisfied_component_dependencies": [
{
"task": "R05",
"scope": "Accepted retained-input single-asset durable runner only; provider preparation/default cutover not required",
"commit": "618fb9e33cebc1fde4869eb1f975a12c55bd9b94"
}
],
"reviewed_by": "/root/r04_review",
"verification_reference": "ROADMAP.md#twenty-seventh-wave-handoff--2026-10-24",
"review_notes": "Retained-input component independently reviewed and fully integrated. Full task stays in progress for its recorded exclusions; no downstream task is silently released.",
"implementation_slices": [
{
"owner": "/root/r12_backend",
"worktree": "/tmp/stock-bot-wave27.iR6JOC/backend",
"scope": "Atomic experiment service/routes, SQL22 admission/retention, compact summaries and API/PostgreSQL tests"
},
{
"owner": "/root",
"scope": "Shared DTO/export, API/web composition, old migration fixtures, actual native browser workflow and planning"
}
]
},
{
"id": "R07",
@ -1356,7 +1383,7 @@
"epic": "E6",
"priority": "P1",
"severity": "High",
"status": "blocked",
"status": "in_progress",
"dependencies": ["R06"],
"decision_dependencies": ["ADR-006"],
"task_file": "backlog/tasks/R07.md",
@ -1365,12 +1392,32 @@
"specialization": "Full-stack research product",
"write_locks": ["web-experiments"],
"parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.",
"assignment": null,
"assignment": "/root",
"branch": null,
"pull_request": null,
"completed_commit": null,
"blocker": null,
"release_gates": ["W04"]
"release_gates": ["W04"],
"integration_state": "partial_validated_uncommitted",
"integration_base": "30accfcf4370e96e58f771dff67639ea2a278188",
"worktree": "/home/boki/repos/stock-bot",
"execution_component": "Same-experiment preview/progress/comparison UI",
"component_exclusions": ["cross-experiment comparisons and table performance measurements"],
"component_readiness": "May implement against root-pinned shared DTO; release requires accepted integration of R06 retained-input component. Full R06 is not claimed complete.",
"reviewed_by": "/root/r04_review",
"verification_reference": "ROADMAP.md#twenty-seventh-wave-handoff--2026-10-24",
"review_notes": "Retained-input component independently reviewed and fully integrated. Full task stays in progress for its recorded exclusions; no downstream task is silently released.",
"implementation_slices": [
{
"owner": "/root/r12_frontend",
"worktree": "/tmp/stock-bot-wave27.iR6JOC/frontend",
"scope": "Experiment editor/list/detail, browser client and focused interaction tests"
},
{
"owner": "/root",
"scope": "Shared DTO/export, API/web composition, old migration fixtures, actual native browser workflow and planning"
}
]
},
{
"id": "R08",
@ -1514,7 +1561,7 @@
"epic": "E6",
"priority": "P1",
"severity": "High",
"status": "review",
"status": "done",
"dependencies": ["W04", "R01", "R10", "F08", "S02", "D01", "W03", "C06"],
"decision_dependencies": ["ADR-006"],
"task_file": "backlog/tasks/R12.md",
@ -1526,10 +1573,10 @@
"assignment": "/root",
"branch": null,
"pull_request": null,
"completed_commit": null,
"completed_commit": "30accfcf4370e96e58f771dff67639ea2a278188",
"blocker": null,
"release_gates": [],
"integration_state": "validated_uncommitted",
"integration_state": "validated_committed",
"integration_base": "e3bd708838ce17a4da0bc2b4d6be701b72625dd8",
"worktree": "/home/boki/repos/stock-bot",
"satisfied_component_dependencies": [
@ -5422,7 +5469,7 @@
"log": "/tmp/stock-bot-wave17.JfETUx/root-tests-typecheck-final.log"
},
{
"command": "Scoped ESLint --no-ignore --max-warnings0 over all new tests/fixtures; scoped Prettier --check over all20 source/test files; git diff --check",
"command": "Scoped ESLint --no-ignore --max-warnings 0 over all new tests/fixtures; scoped Prettier --check over all20 source/test files; git diff --check",
"result": "passed",
"logs": [
"/tmp/stock-bot-wave17.JfETUx/root-test-lint.log",
@ -5563,7 +5610,7 @@
"log": "/tmp/stock-bot-wave18.V1G17v/root-tests-typecheck-final.log"
},
{
"command": "Scoped ESLint --no-ignore --max-warnings0, Prettier --check and git diff --check; final schema-matrix test separately formatted/linted",
"command": "Scoped ESLint --no-ignore --max-warnings 0, Prettier --check and git diff --check; final schema-matrix test separately formatted/linted",
"result": "passed",
"logs": [
"/tmp/stock-bot-wave18.V1G17v/integration-lint.log",
@ -6442,7 +6489,7 @@
"Reproduction preserves frozen economic inputs, current original-version approval and repeat-safe receipts. No current-template dependency or historical executable manager."
],
"twenty_sixth_wave_validation": {
"state": "validated_uncommitted",
"state": "validated_committed",
"log_directory": "/tmp/stock-bot-wave26.38tu9A",
"integration_base": "e3bd708838ce17a4da0bc2b4d6be701b72625dd8",
"source_archive": "/tmp/stock-bot-wave26.38tu9A/r12-integrated-source.tar",
@ -6524,6 +6571,108 @@
"Chromium only; existing build bundle-size/Rust warnings remain. No new-wave commit, push or PR."
],
"cleanup": "Both exact --rm PostgreSQL/Redis fixture containers stopped successfully. All 26 source/test hashes frozen; source archive, worktrees and logs retained. Development/production services and data untouched.",
"next": "Recommend an R06 retained-input experiment component using one immutable strategy version, eligible single-asset dataset, installed build and bounded parameter grid; a focused R07 UI component may follow pinned APIs. Before execution, explicitly record component prerequisites rather than treating full R05/R06 as complete. Reuse durable runs/outbox with guarded experiment admission; do not mutate templates per trial or misuse reproduction lineage. Keep provider preparation, candidate isolation, multi-asset/default cutover and performance work separately gated."
"next": "Recommend an R06 retained-input experiment component using one immutable strategy version, eligible single-asset dataset, installed build and bounded parameter grid; a focused R07 UI component may follow pinned APIs. Before execution, explicitly record component prerequisites rather than treating full R05/R06 as complete. Reuse durable runs/outbox with guarded experiment admission; do not mutate templates per trial or misuse reproduction lineage. Keep provider preparation, candidate isolation, multi-asset/default cutover and performance work separately gated.",
"completed_commit": "30accfcf4370e96e58f771dff67639ea2a278188"
},
"twenty_seventh_wave": ["R06", "R07"],
"twenty_seventh_wave_base": "30accfcf4370e96e58f771dff67639ea2a278188",
"twenty_seventh_wave_notes": [
"Explicit component prerequisite review: bounded retained-data grids do not require provider-to-v2 preparation. Full R05 remains partial; R06/R07 will remain partial pending exclusions.",
"One atomic expansion reuses existing durable runs/outbox; fixed input preview commitment prevents mutable-template drift. Financial and performance policies unchanged."
],
"twenty_seventh_wave_validation": {
"state": "validated_uncommitted",
"scope": "R06/R07 retained-input components; both full tasks remain in_progress",
"integration_base": "30accfcf4370e96e58f771dff67639ea2a278188",
"log_directory": "/tmp/stock-bot-wave27.iR6JOC",
"source_archive": "/tmp/stock-bot-wave27.iR6JOC/experiments-integrated-source.tar",
"source_archive_sha256": "928b1a8ee8f50af139eda98a59b18427d1dfc91c1cd5127b32a19caec2b7e518",
"source_file_count": 35,
"source_sha256": {
"apps/stock/config/package.json": "2f3990236eba9e4a628cdc2d9fadbdde298814487a88f7fab53774cf2184172b",
"apps/stock/config/src/contracts/experiments.ts": "aa313979685cd2a65cf90128ce81cfa4c712039a9919c00c2f33d5f3f5b2cd99",
"apps/stock/web-api/src/migrations/migration-runner.ts": "3031324068bd2758256bafb0797c2c80ea4ecdfb50ed0ab76f517a2c1ee2774c",
"apps/stock/web-api/src/routes/create-routes.ts": "2b5addd782d0f8c5ff5ec220d40c961c94ce785c97938a5224e8f748064bee50",
"apps/stock/web-api/src/routes/experiments.routes.ts": "65a7f4e4c8c39924c29d7928d9863e03bb6ca72663e745a4d6e358f00d76b95d",
"apps/stock/web-api/src/services/experiment-input.ts": "406fba42b7a3e34f82a70800763be51a36da18fe0a1b682cec69a8b7a775596a",
"apps/stock/web-api/src/services/experiments.service.ts": "c705479b5627af9f5cbd3c99e6bd071a97d98f2a743bdd840e019bb815bb1e67",
"apps/stock/web-app/src/app/App.tsx": "c61b008451e049b9927aed9a37bf448e2c2359d6b816c0f7a191c306d2c1ba2e",
"apps/stock/web-app/src/components/layout/Layout.tsx": "6551bb4819a8b7a7b12b6e5a5d2613ca9ff9aeb1b5ee15507dae2e844217f4bd",
"apps/stock/web-app/src/features/backtest/BacktestDetailPageV2.tsx": "6e9975b52b99a80753a195849d16edc3c5d1cbc9a0ffcadff28c10f35749763b",
"apps/stock/web-app/src/features/experiments/ExperimentDetailPage.tsx": "b18f9056108886e7c06c57f306337982b652266142a9bcd9bb0b2f31c65bb16d",
"apps/stock/web-app/src/features/experiments/ExperimentListPage.tsx": "1faa4fde018e3661b20a4ba9cb4e683dbe6915168197c4b7feb98b0c84ac64be",
"apps/stock/web-app/src/features/experiments/components/ExperimentCounts.tsx": "19215678ccb56e3453ae6787b2412e6df55c1ebfd4278afb873ca422ab79a22d",
"apps/stock/web-app/src/features/experiments/components/ExperimentEditor.tsx": "cd38441c7387fcf19903459d7d5b4cb689741c2acbab8284c3ea9a997c1cb1a2",
"apps/stock/web-app/src/features/experiments/components/ExperimentInputs.tsx": "fb701f90d46b185952c6e87ffaf427ae3f064fe68ea277dcb18a9b69ccfb4ab4",
"apps/stock/web-app/src/features/experiments/index.ts": "9aa6104fc4f3eed210417423e8e3f5284b212b5ef6dbbeb6039343d3f32b4053",
"apps/stock/web-app/src/features/experiments/services/experimentApi.ts": "88f1ab5bc884058d1a973836bec32cc5a280cbcff5c31063f1b6f3bd22d14b9d",
"apps/stock/web-app/src/lib/constants.ts": "630a37afdb28256144cdf30ea78b3a0b0ced4ca712df55f969764e3389201777",
"database/postgres/init/22-experiments.sql": "046e6c5e5e85e76d401c7e98eedcf51e1f64a2d3510471e97b2359a710bfb85a",
"test/e2e/fixture.ts": "a10f996326d95e91a6980e922b03628a8dbd47dda702afc9b0bde985c977432d",
"test/e2e/workbench.test.ts": "3afa027430295d35918deab7e4d9920dea6756401c28f82478d176f938416797",
"test/integration/experiments-api.test.ts": "ab4b0ccd22ad93fa4f533bc9c1be88834650e5cd21a1ef0c9fbc692f67682c28",
"test/integration/experiments-contracts.test.ts": "eec66ba6590d588fca6cd4b36f0eb683ad5c19cdc647654c50941bea45cdb34f",
"test/integration/experiments-ui.test.tsx": "32ea7114cdd52a71e2501272ef64912c91e8da5927d571434877011f80c258e6",
"test/postgres/canonical-durable-backtest.test.ts": "d9d4446e509d84df8e6d63c3acd16584a0e29c06d17019c078d39a77b937dcca",
"test/postgres/canonical-research.test.ts": "f7befa2f2a0dbe4b72bd7d0262c691687c58f04a748ab69287fd969d17415e1b",
"test/postgres/catalog-backtest-drafts.test.ts": "7ec1db246013177d912907c07ebbf99ce1b610d579b59fabfb6230aa13fa3929",
"test/postgres/dataset-catalog.test.ts": "4bc0cb8292bb4096165eb7a28738d027f9d484c4e0763762435cc67e313c576a",
"test/postgres/durable-backtest.test.ts": "db1a54e718bd1767bf8ffc2ac8bb0c380349668804deec8986062583381a9f46",
"test/postgres/experiments.test.ts": "94c095f002c5edffb0f870f082bb8177a6d3ba1fb6f8615528b5cdafa8229bfe",
"test/postgres/migration-runner.test.ts": "755f56f6f0368c28d4344c89444d956807a9ae90d26106ede04e677aebb16980",
"test/postgres/research-retention.test.ts": "4da75d980e6c0cff6af4da2c79fd248eda9acbabd80ee84f6638de176b96aa8a",
"test/postgres/research-runtime-isolation.test.ts": "a074ba4a12c3b6c9efa9510aa5348ca0e7e784e45db4ac6901584317fc5de644",
"test/postgres/research-workspace.test.ts": "76095e19b4b578bf6e69d1de18cbd972240633948c04daee329fea4f9975cbf4",
"test/postgres/run-reproduction.test.ts": "f8677363d3619091ff3e94346190d8a5641dcc75666a4051d9f4324822e6dacf"
},
"checks": [
{
"command": "CARGO_BUILD_JOBS=2 bun run check",
"log": "/tmp/stock-bot-wave27.iR6JOC/check.log",
"outcome": "All repository checks passed: build/source/contracts/secrets/lint; 93 tooling, 43 utility, 44 calculation, 696 integration and 150 Rust tests (4 manual Rust ignored)."
},
{
"command": "PIPELINE_TEST_DATABASE_URL=<disposable PG> BACKTEST_TEST_REDIS_URL=<dedicated Redis /15> bun run test:postgres",
"log": "/tmp/stock-bot-wave27.iR6JOC/postgres.log",
"outcome": "179 tests / 1508 assertions passed across 20 files. Focused isolated SQL/native gate separately passed 10/132, including native candidate execution, rollback, receipt/approval/archive races, cancellation fencing, compact provenance and first migration preservation."
},
{
"command": "PIPELINE_TEST_DATABASE_URL=<disposable PG> BACKTEST_TEST_REDIS_URL=<dedicated Redis /15> bun run test:e2e",
"log": "/tmp/stock-bot-wave27.iR6JOC/e2e-final.log",
"outcome": "10 Chromium workflows /258 assertions passed. New flow previews/submits2 real native trials, mutates template after admission, replays receipt, verifies rendered comparable returns, reproduces a trial with separate lineage, reopens experiment and cancels a separate pending batch. Initial new-test failure was an exact label selector including nested option text; corrected selector, focused 1/43 and final full 10/258 passed. Existing 9 workflows remained green."
},
{
"command": "bunx tsc --project /tmp/stock-bot-wave27.iR6JOC/tests-tsconfig.json --noEmit",
"log": "/tmp/stock-bot-wave27.iR6JOC/integrated-types-final.log",
"outcome": "Strict new/changed tests and dependent sources passed; root web TypeScript check also passed. Initial narrow typed assertion mismatch fixed without changing the compared values."
},
{
"command": "bunx eslint <new contract/tests and changed browser test> --max-warnings 0; bunx prettier --check <all changed TS/TSX/JSON>; git diff --check",
"log": "/tmp/stock-bot-wave27.iR6JOC/integrated-test-lint.log",
"outcome": "Scoped test lint, final source formatting and diff checks passed. Last browser formatting is whitespace only after browser verification; agent-owned hashes unchanged."
},
{
"command": "CARGO_BUILD_JOBS=2 bun run --cwd apps/stock/engine build:release",
"log": "/tmp/stock-bot-wave27.iR6JOC/native-release.log",
"outcome": "Release addon restored before PostgreSQL/browser tests. SHA256 ef00eed556f5c32332d36a9a00ef710682e90deb00b54552e4b5c8bfdfbe8103 matches previous wave and checkout release library; no financial engine or runner changes."
}
],
"reviews": [
{
"reviewer": "/root/r04_review",
"scope": "Both isolated implementations, shared contract, SQL admission and migration compatibility, actual native/browser integration",
"outcome": "Accepted all 14 agent-owned source/test hashes and final root integration delta. Independently ran combined experiment contract/API/UI 34 tests / 230 assertions, including API7/96 and UI26/127. Reviewed focused PG 10/132 evidence; root ran full suites."
}
],
"limitations": [
"Supports one current approved retained built-in version, eligible single-asset dataset and exact installed build; fixed seed/cost/risk/reporting policies. Only strategy parameters vary. Maximum 100 trials bounds one atomic admission; existing worker scheduling is unchanged.",
"R06 remains partial: failed-trial retry and preserving historical retry diagnostics are not implemented; there is no retry-failed endpoint or UI action. R07 remains partial for broader cross-experiment comparison and paused table performance measurements.",
"R05 provider preparation/default cutover remains incomplete. R08/A01/S06 dependencies are not released. No candidate code, multi-asset/default/paper/live activation, AI execution, historical binary provisioning, new simulator or job framework.",
"Summary comparisons validate retained identity and reporting conventions; they do not establish profitability or out-of-sample validity. Null, failed, missing and incomparable outcomes are explicit.",
"Ambiguous submission body/key stays in the active editor and owned-link navigation is guarded. Saved experiments are durable; unsent editor/retry state is not persisted across a deliberate unload.",
"Chromium only; existing bundle-size/Rust warnings remain. No performance profiling/optimization/benchmark runs, new-wave commit, push or PR."
],
"cleanup": "Both exact --rm disposable PostgreSQL/Redis containers stopped successfully. 35 authored source/test files archived and hashed. Worktrees/logs retained; development/production services and data untouched.",
"next": "Finish R06 failed-trial retry as a narrow durable-state change: retain prior diagnostics, keep immutable logical trial inputs, create a new fenced attempt only for failed runs without results, and reject completed/cancelled retries. Reuse existing lease/outbox machinery and expose truthful retry controls after backend integration. Keep performance paused and other release gates intact."
}
}