feat(research): cut over canonical runtime and enforce agent budgets

This commit is contained in:
Boki 2026-10-24 16:47:19 -04:00
parent ab08db82fd
commit bbf0dd4453
103 changed files with 6138 additions and 3112 deletions

View file

@ -1,38 +1,28 @@
{
"schema_version": 1,
"plan_revision": "2026-10-24.74",
"plan_revision": "2026-10-24.75",
"repository_base": "b7aeca4",
"plan_status": "scheduled_backlog_completion_in_progress",
"execution_authorized": true,
"execution_scope": {
"authorized_by": "User: how far in backlog, commit and continue; wave35 accepted and committed 366bee810b8c1881172fe5553a1a61a2242ffbe5",
"tasks": ["R05"],
"authorized_by": "Owner: commit and continue with the rest of the tasks till 100%",
"tasks": ["R05", "R07", "S06", "A01", "A02", "A03", "A04", "P04"],
"permissions": [
"R05 explicit stored EOD intraday source materialization before existing retained-data admission; reuse source preview/retention and canonical setup, no inferred metadata."
"Complete all45 scheduled tasks with independent review and relevant gates; commit validated increments.",
"Required R07/P04/A02 measurements and bounded1/2/4 trial concurrency.",
"Canonical single-asset default; research-only credentials and OS isolation; explicit human paper promotion workflow."
],
"excluded": [
"performance_profiling_or_optimization",
"performance_benchmarks",
"new_wave_commits_without_further_approval",
"push",
"pull_requests",
"live_or_paper_operations",
"default_engine_cutover",
"candidate_execution",
"provider_to_v2_inference",
"multi_asset_activation",
"AI_execution_or_credentials",
"historical_binary_provisioning",
"cross_experiment_ranking",
"strategy_performance_conclusions",
"cost_parameter_cartesian_optimization",
"cost_source_run_selector",
"cost_walk_forward_joint_studies"
"actual paper or live activation",
"existing account migration",
"unapproved multi-asset simultaneous-mark policy",
"conditional speculative optimization without its existing evidence/approval gate"
],
"pending_policy_decisions": [
"ADR-007",
"ADR-008",
"Simultaneous multi-asset mark/risk policy before default activation"
"Simultaneous multi-asset mark/risk semantics before multi-asset default activation",
"Conditional DSL/cache/distributed optimization go/no-go"
]
},
"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.",
@ -80,12 +70,16 @@
{
"id": "ADR-007",
"file": "architecture/decisions/007-ai-boundary.md",
"status": "approval_required"
"status": "approved",
"approved_by": "Owner scheduled-completion instruction; implementation only, human paper activation remains explicit",
"approved_on": "2026-10-24"
},
{
"id": "ADR-008",
"file": "architecture/decisions/008-performance.md",
"status": "proposed_with_measurement_gate"
"status": "approved_for_scheduled_measurements",
"approved_by": "Owner scheduled-completion instruction; conditional optimization gates unchanged",
"approved_on": "2026-10-24"
}
],
"epics": [
@ -967,7 +961,7 @@
"epic": "E4",
"priority": "P2",
"severity": "Medium",
"status": "in_progress",
"status": "done",
"dependencies": ["S03", "S04", "R05"],
"decision_dependencies": [],
"task_file": "backlog/tasks/S06.md",
@ -980,9 +974,13 @@
"branch": null,
"pull_request": null,
"completed_commit": null,
"blocker": "Integrated after R05 canonical single-asset cutover; shared owner preserves history and inventories callers before removal.",
"blocker": null,
"release_gates": [],
"worktree": "/tmp/stock-bot-wave37.v0zgbc/cutover"
"worktree": "/tmp/stock-bot-wave37.v0zgbc/cutover",
"integration_state": "validated_uncommitted",
"verification_reference": "ROADMAP.md#thirty-seventh-wave-handoff--2026-10-24",
"reviewed_by": "/root and independent cross-owner review",
"review_notes": "Accepted canonical default/custody preservation and bounded research authorization. Full native/database/browser gates passed; actual trading unchanged."
},
{
"id": "W01",
@ -1287,7 +1285,7 @@
"epic": "E6",
"priority": "P0",
"severity": "Critical",
"status": "in_progress",
"status": "done",
"dependencies": ["F08", "S02", "R01", "R10", "D01", "W03", "C06"],
"decision_dependencies": ["ADR-006"],
"task_file": "backlog/tasks/R05.md",
@ -1302,9 +1300,9 @@
"completed_commit": null,
"blocker": null,
"release_gates": [
"Explicit owner disposition of the simultaneous multi-asset mark/risk policy before canonical default activation"
"Multi-asset default remains unavailable pending explicit owner simultaneous-mark policy; canonical single-asset default is accepted."
],
"integration_state": "cutover_in_progress",
"integration_state": "validated_uncommitted",
"integration_base": "366bee810b8c1881172fe5553a1a61a2242ffbe5",
"worktree": "/tmp/stock-bot-wave37.v0zgbc/cutover",
"implementation_slices": [
@ -1323,16 +1321,13 @@
"scope": "Shared DTO, actual adapter/native browser proof, combined gates and deliberate before-admission planning simplification"
}
],
"reviewed_by": "/root/r04_review",
"verification_reference": "ROADMAP.md#thirty-sixth-wave-handoff--2026-10-24",
"review_notes": "Independent exact-source review and final repository/PostgreSQL/Chromium gates passed. Supported stored EOD source preparation materializes and retains before canonical admission; former in-run preparation proposal explicitly superseded. R05 remains partial for broader cutover/default gates; S06 is not unblocked.",
"reviewed_by": "/root and independent cross-owner review",
"verification_reference": "ROADMAP.md#thirty-seventh-wave-handoff--2026-10-24",
"review_notes": "Accepted canonical default/custody preservation and bounded research authorization. Full native/database/browser gates passed; actual trading unchanged.",
"partial_commit": "0c6aec4",
"execution_component": "Explicit stored EOD intraday metadata + raw bars materialized once before existing content retention and canonical admission",
"execution_component": "Full canonical single-asset default cutover, supported source preparation before immutable admission, preserved history and durable behavior",
"component_exclusions": [
"No default/multiasset/candidate/AI/paper/live activation, new run kind, SQL/runner mutation, source-query receipt or scheduler.",
"Source-query-inside-run proposal intentionally superseded by prepare-and-retain before canonical admission; not claimed implemented.",
"Stored-source scope1m/5m/1h EOD raw interval-start and explicitly assumed interval-end availability. No daily/QuestDB/auto/synthetic path or inferred evidence.",
"Performance and R07 measurement remain paused."
"Unsupported multi-asset activation and automatic paper/live operation; candidate isolation remains A02."
],
"source_preparation_disposition": "Canonical source inputs are materialized, reviewed and retained before admission. Existing atomic request/hash admission and worker binding verification remain authoritative. This replaces earlier pending-query/fenced-first-binding work with fewer states and no loss of frozen-input correctness; wider cutover remains incomplete."
},
@ -1403,10 +1398,10 @@
"assignment": "/root/r12_frontend",
"branch": null,
"pull_request": null,
"completed_commit": null,
"completed_commit": "ab08db82fda451243b9e12603810a9c92af247ac",
"blocker": null,
"release_gates": ["W04"],
"integration_state": "validated_uncommitted",
"integration_state": "validated_committed",
"integration_base": "397cd0e1603b7ccd01bf80c9ff3930ba2a1b9963",
"worktree": "/tmp/stock-bot-wave37.v0zgbc/table",
"execution_component": "Read-only cross-experiment comparison with explicit reference and retained input compatibility",
@ -1759,7 +1754,7 @@
"epic": "E7",
"priority": "P2",
"severity": "Medium",
"status": "blocked",
"status": "ready",
"dependencies": ["F07", "R06", "C06", "P01"],
"decision_dependencies": ["ADR-008"],
"task_file": "backlog/tasks/P04.md",
@ -1768,12 +1763,14 @@
"specialization": "Performance/infrastructure engineering",
"write_locks": ["worker-pool", "web-backtest-dispatch"],
"parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.",
"assignment": null,
"assignment": "/root/r12_frontend",
"branch": null,
"pull_request": null,
"completed_commit": null,
"blocker": null,
"release_gates": []
"release_gates": [],
"integration_state": "ready_for_isolated_implementation",
"worktree": "/tmp/stock-bot-wave38.PuFhtc/pool"
},
{
"id": "P05",
@ -1885,7 +1882,7 @@
"epic": "E8",
"priority": "P1",
"severity": "High",
"status": "in_progress",
"status": "done",
"dependencies": ["R06", "O01"],
"decision_dependencies": ["ADR-007"],
"task_file": "backlog/tasks/A01.md",
@ -1900,7 +1897,11 @@
"completed_commit": null,
"blocker": null,
"release_gates": [],
"worktree": "/tmp/stock-bot-wave37.v0zgbc/principals"
"worktree": "/tmp/stock-bot-wave37.v0zgbc/principals",
"integration_state": "validated_uncommitted",
"verification_reference": "ROADMAP.md#thirty-seventh-wave-handoff--2026-10-24",
"reviewed_by": "/root and independent cross-owner review",
"review_notes": "Accepted canonical default/custody preservation and bounded research authorization. Full native/database/browser gates passed; actual trading unchanged."
},
{
"id": "A02",
@ -1908,7 +1909,7 @@
"epic": "E8",
"priority": "P1",
"severity": "High",
"status": "blocked",
"status": "ready",
"dependencies": ["A01", "S01", "P01"],
"decision_dependencies": ["ADR-007"],
"task_file": "backlog/tasks/A02.md",
@ -1917,12 +1918,14 @@
"specialization": "Process isolation/security",
"write_locks": ["sandbox-contract", "worker-protocol"],
"parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.",
"assignment": null,
"assignment": "/root/r04_review",
"branch": null,
"pull_request": null,
"completed_commit": null,
"blocker": null,
"release_gates": []
"release_gates": [],
"integration_state": "ready_for_isolated_implementation",
"worktree": "/tmp/stock-bot-wave38.PuFhtc/candidate"
},
{
"id": "A03",
@ -1952,7 +1955,7 @@
"epic": "E8",
"priority": "P2",
"severity": "Medium",
"status": "blocked",
"status": "ready",
"dependencies": ["S04", "R09", "A01", "R01"],
"decision_dependencies": ["ADR-007", "ADR-005"],
"task_file": "backlog/tasks/A04.md",
@ -1961,12 +1964,16 @@
"specialization": "Full-stack paper trading integration",
"write_locks": ["paper-runtime", "web-strategies", "sql-migrations"],
"parallel_policy": "Allowed only with satisfied dependencies/approvals and disjoint write locks AND actual files; see agents/integration.md.",
"assignment": null,
"assignment": "/root/r12_backend",
"branch": null,
"pull_request": null,
"completed_commit": null,
"blocker": null,
"release_gates": []
"release_gates": [
"A02 candidate artifact/retained-factory integration and actual candidate evidence/browser proof; component implementation may run in parallel."
],
"integration_state": "ready_for_isolated_implementation",
"worktree": "/tmp/stock-bot-wave38.PuFhtc/paper"
},
{
"id": "O01",
@ -7899,6 +7906,112 @@
],
"verification": "20 production browser samples; exact all-row/status/parameter/metric/null/link/reference/current-response checks. Author strict types/lint/format passed.8 harness tests/495 assertions passed in author and integrated roots.",
"limitations": "Synthetic compact DTOs, UI only. Shared browser and fresh contexts, not cold OS/disk cache. External Google Fonts blocked and fallback fonts reported. Five samples per workload; no p95/SLO/statistical certification, financial engine, API/database storage or research-throughput claim.",
"decision": "Keep current tables. No measured need for virtualization at current100-trial limits."
"decision": "Keep current tables. No measured need for virtualization at current100-trial limits.",
"completed_commit": "ab08db82fda451243b9e12603810a9c92af247ac"
},
"previous_execution_scope": {
"authorized_by": "User: how far in backlog, commit and continue; wave35 accepted and committed 366bee810b8c1881172fe5553a1a61a2242ffbe5",
"tasks": ["R05"],
"permissions": [
"R05 explicit stored EOD intraday source materialization before existing retained-data admission; reuse source preview/retention and canonical setup, no inferred metadata."
],
"excluded": [
"performance_profiling_or_optimization",
"performance_benchmarks",
"new_wave_commits_without_further_approval",
"push",
"pull_requests",
"live_or_paper_operations",
"default_engine_cutover",
"candidate_execution",
"provider_to_v2_inference",
"multi_asset_activation",
"AI_execution_or_credentials",
"historical_binary_provisioning",
"cross_experiment_ranking",
"strategy_performance_conclusions",
"cost_parameter_cartesian_optimization",
"cost_source_run_selector",
"cost_walk_forward_joint_studies"
],
"pending_policy_decisions": [
"ADR-007",
"ADR-008",
"Simultaneous multi-asset mark/risk policy before default activation"
]
},
"thirty_seventh_wave_validation": {
"date": "2026-10-24",
"tasks": ["R05", "S06", "A01"],
"base": "ab08db82fda451243b9e12603810a9c92af247ac",
"review": "Cutover preservation inventory reviewed by root; A01 independent final source review accepted by r12_frontend. Root async/controller/UI additions independently reviewed by r12_backend; two UI race findings corrected and regression-tested.",
"behavior": [
"Default Rust canonical single-asset research; explicit canonical paper starts halted. Old new-run paths refuse; historical results/accounts/prototypes/calculations/recovery remain.",
"Research-only hashed credentials and frozen write grants, SQL-authoritative active/trial/work/attempt/deadline budgets, receipts and actor ownership; no paper/live/credential administration.",
"Web agent management, loss-of-response recovery and stale-budget fencing; canonical create/configure/run/reopen and retained legacy history browser flows.",
"Shared synchronous/asynchronous replay lifecycle and pure controller extraction are tested A02 foundations, not completed candidate isolation."
],
"tests": {
"integration_and_tooling": "1233 passed /21755 assertions /105 files",
"postgres": "254 passed; see exact log for assertion count",
"browser": "17 passed /636 assertions",
"rust": "150 passed /4 preexisting ignored",
"reviewed_ui": "8 passed /41 assertions"
},
"checks": [
"Repository check passed before narrow final A01/UI review deltas; final full integration/tooling/PostgreSQL suites passed.",
"Final application typecheck, strict authored-test types, app/lib lint and affected-test lint/format passed.",
"Production UI and release native builds passed."
],
"native_sha256": "f47e2c8bfe5a04e96dd755f2cc444a673a7b4a73b1127b862102cf4b83aa387c",
"author_archives": {
"cutover": {
"path": "/tmp/stock-bot-wave37.v0zgbc/cutover-final.tar",
"sha256": "4d33fdd31db123343b98efe6e93cf954a604a1bcdf931c241d076688d2f74363"
},
"principals": {
"path": "/tmp/stock-bot-wave37.v0zgbc/agent-final.tar.gz",
"sha256": "e87726e2524bf20cc5161873dcc633d8de9dbd80672003679b020d481f5ba13d"
}
},
"root_deltas": [
"Frontend/default and async replay foundation; actual-native browser fixtures and new agent workflow; migration28 registry; legacy reproduction/workspace fixtures; UI review fixes."
],
"limitations": [
"Singleasset/singleseries canonical production policy. No migration/activation of real paper/live accounts.",
"Candidate sandbox, pool, AI client and paper promotion are not done.",
"Four preexisting manual Rust tests ignored; existing Rust dead-code/frontend chunk warnings retained.",
"Disposable test databases only; .env unchanged."
],
"logs": {
"integration-check.log": {
"path": "/tmp/stock-bot-wave37.v0zgbc/integration-check.log",
"sha256": "b8954c1b1c6a1b494a70dca3642c933193e105896998691464573839e5a28696"
},
"integration-accepted-tests.log": {
"path": "/tmp/stock-bot-wave37.v0zgbc/integration-accepted-tests.log",
"sha256": "0ff419e893c10e8cf80c96c4a3c41ebe08c14f80bd5e94ffb6c5899223d6fef8"
},
"integration-postgres-final.log": {
"path": "/tmp/stock-bot-wave37.v0zgbc/integration-postgres-final.log",
"sha256": "55881156923902ae0b3b05e3e3bca7db32247c872afe5b6e91d7a5f0bd3d75d4"
},
"integration-browser.log": {
"path": "/tmp/stock-bot-wave37.v0zgbc/integration-browser.log",
"sha256": "037e5c7ca2c77758a52fb8532836210a179060022277321f9269c5e127758678"
},
"integration-final-lint.log": {
"path": "/tmp/stock-bot-wave37.v0zgbc/integration-final-lint.log",
"sha256": "a732e46ee09271886b7567d0ca1cfcea6e2fd6b9e4f150ffe3a5fdc0eb82eb85"
},
"root-test-types.log": {
"path": "/tmp/stock-bot-wave37.v0zgbc/root-test-types.log",
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
},
"agent-ui-reviewfix-tests.log": {
"path": "/tmp/stock-bot-wave37.v0zgbc/agent-ui-reviewfix-tests.log",
"sha256": "5adaef7869575738b46a6d4cd2588d104c3ed9128aac07ee5c16f7b7cb081aba"
}
}
}
}