docs: plan cleanup and maintainability backlog

This commit is contained in:
Boki 2026-10-26 13:17:01 -04:00
parent fbf2eb9e0c
commit 4ddffa6b67
19 changed files with 1743 additions and 7 deletions

View file

@ -1,9 +1,9 @@
{
"schema_version": 1,
"plan_revision": "2026-10-24.78",
"plan_revision": "2026-10-26.79",
"repository_base": "b7aeca4",
"plan_status": "scheduled_backlog_complete",
"execution_authorized": true,
"plan_status": "cleanup_backlog_proposed",
"execution_authorized": false,
"execution_scope": {
"authorized_by": "Owner: commit and continue with the rest of the tasks till 100%",
"tasks": ["R05", "R07", "S06", "A01", "A02", "A03", "A04", "P04"],
@ -25,6 +25,44 @@
"Conditional DSL/cache/distributed optimization go/no-go"
]
},
"cleanup_scope": {
"requested_on": "2026-10-26",
"requested_by": "Owner: come up with stories for it",
"baseline_commit": "fbf2eb9e",
"planning_file": "CLEANUP.md",
"tasks": [
"CL01",
"CL02",
"CL03",
"CL04",
"CL05",
"CL06",
"CL07",
"CL08",
"CL09",
"CL10",
"CL11",
"CL12",
"CL13"
],
"first_wave": [
"CL01",
"CL03",
"CL04"
],
"authorization": "Stories and planning artifacts only. Top-level execution_authorized is false; historical execution_scope applies to the completed original backlog.",
"preserved_original_tasks": 55,
"preserved_original_completed_tasks": 45,
"excluded": [
"application implementation",
"agent launch",
"Git commits or pushes",
"performance work",
"financial policy changes",
"historical artifact or calculation deletion",
"AI research product redesign"
]
},
"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.",
"decisions": [
{
@ -118,6 +156,10 @@
{
"id": "E9",
"title": "Migration and operational safeguards"
},
{
"id": "E10",
"title": "Cleanup and maintainability foundations"
}
],
"first_wave": ["C01", "C03", "C04", "W01"],
@ -2037,6 +2079,524 @@
"completed_commit": null,
"blocker": "Optional cross-service monitoring expansion; required run diagnostics belong to W01/F07 and paper readiness to S04.",
"release_gates": []
},
{
"id": "CL01",
"title": "Replace permissive DI configuration tests with production-path assertions",
"epic": "E10",
"priority": "P1",
"severity": "High",
"status": "ready",
"dependencies": [],
"decision_dependencies": [],
"task_file": "backlog/tasks/CL01.md",
"findings": [
"CL-F03"
],
"complexity": "M",
"specialization": "TypeScript infrastructure testing",
"write_locks": [
"di-builder-tests"
],
"parallel_policy": "Ready independently. Can run with CL03 and CL04 in isolated worktrees; do not share test-process module mocks. CL02 waits for this test baseline.",
"assignment": null,
"branch": null,
"pull_request": null,
"completed_commit": null,
"blocker": null,
"release_gates": [],
"integration_state": "planned",
"integration_base": "fbf2eb9e",
"review_notes": "Planning-only cleanup story requested 2026-10-26. Current implementation authorization is false. No implementation, tests or completion are claimed by this entry.",
"concrete_write_scope": [
"libs/core/di/test/container-builder.test.ts",
"libs/core/di/test/di.test.ts"
]
},
{
"id": "CL02",
"title": "Normalize database configuration once and enforce consistent service switches",
"epic": "E10",
"priority": "P1",
"severity": "High",
"status": "blocked",
"dependencies": [
"CL01"
],
"decision_dependencies": [],
"task_file": "backlog/tasks/CL02.md",
"findings": [
"CL-F01"
],
"complexity": "M",
"specialization": "TypeScript configuration and database adapters",
"write_locks": [
"di-configuration",
"di-container",
"di-builder-tests"
],
"parallel_policy": "After CL01. Must be serialized with CL03 because both can edit container/builder.ts; this is an actual-file lock, not an additional code dependency.",
"assignment": null,
"branch": null,
"pull_request": null,
"completed_commit": null,
"blocker": "Waiting for implementation prerequisites: CL01.",
"release_gates": [],
"integration_state": "planned",
"integration_base": "fbf2eb9e",
"review_notes": "Planning-only cleanup story requested 2026-10-26. Current implementation authorization is false. No implementation, tests or completion are claimed by this entry.",
"concrete_write_scope": [
"libs/core/config/src/schemas/database.schema.ts",
"libs/core/config/src/schemas/unified-app.schema.ts",
"libs/core/di/src/config/schemas/",
"libs/core/di/src/container/builder.ts",
"libs/core/di/src/registrations/database.registration.ts",
"libs/core/di/src/registrations/cache.registration.ts",
"test/integration/questdb-configuration.test.ts",
"libs/core/di/test/container-builder.test.ts",
"test/integration/store-configuration.test.ts"
]
},
{
"id": "CL03",
"title": "Roll back failed shared-service startup and clear initialization timers",
"epic": "E10",
"priority": "P1",
"severity": "High",
"status": "ready",
"dependencies": [],
"decision_dependencies": [],
"task_file": "backlog/tasks/CL03.md",
"findings": [
"CL-F02"
],
"complexity": "M",
"specialization": "TypeScript resource lifecycle and concurrency",
"write_locks": [
"di-container",
"di-service-lifecycle"
],
"parallel_policy": "Ready independently and disjoint from CL01/CL04. Serialize with CL02 on di-container; use separate test files from CL01.",
"assignment": null,
"branch": null,
"pull_request": null,
"completed_commit": null,
"blocker": null,
"release_gates": [],
"integration_state": "planned",
"integration_base": "fbf2eb9e",
"review_notes": "Planning-only cleanup story requested 2026-10-26. Current implementation authorization is false. No implementation, tests or completion are claimed by this entry.",
"concrete_write_scope": [
"libs/core/di/src/utils/lifecycle.ts",
"libs/core/di/src/container/builder.ts",
"libs/core/di/test/lifecycle.test.ts",
"test/integration/service-startup-rollback.test.ts"
]
},
{
"id": "CL04",
"title": "Provide one consistent research startup path and repair stale commands",
"epic": "E10",
"priority": "P1",
"severity": "Medium",
"status": "ready",
"dependencies": [],
"decision_dependencies": [],
"task_file": "backlog/tasks/CL04.md",
"findings": [
"CL-F08"
],
"complexity": "S",
"specialization": "Bun/Turbo developer tooling",
"write_locks": [
"root-scripts",
"docker-startup",
"startup-documentation"
],
"parallel_policy": "Ready independently. Can run with CL01/CL03. CL05 uses the existing libs/* workspace glob and must not edit root scripts concurrently.",
"assignment": null,
"branch": null,
"pull_request": null,
"completed_commit": null,
"blocker": null,
"release_gates": [],
"integration_state": "planned",
"integration_base": "fbf2eb9e",
"review_notes": "Planning-only cleanup story requested 2026-10-26. Current implementation authorization is false. No implementation, tests or completion are claimed by this entry.",
"concrete_write_scope": [
"package.json",
"scripts/docker.sh",
"scripts/test/workspace.test.ts",
"README.md",
"apps/stock/README.md",
"apps/stock/web-app/README.md"
]
},
{
"id": "CL05",
"title": "Extract shared dataset and reporting logic behind a research library boundary",
"epic": "E10",
"priority": "P2",
"severity": "High",
"status": "ready",
"dependencies": [
"D01",
"F08",
"R05"
],
"decision_dependencies": [
"ADR-001",
"ADR-003",
"ADR-004"
],
"task_file": "backlog/tasks/CL05.md",
"findings": [
"CL-F04"
],
"complexity": "M",
"specialization": "TypeScript domain boundaries and package migration",
"write_locks": [
"research-domain-package",
"dataset-domain",
"research-architecture-tests"
],
"parallel_policy": "Code-ready against completed D01/F08/R05. Independent of the DI stories. Serialize exact API file edits with CL08 and dataset-client edits with CL06; CL06/CL08 depend on this boundary.",
"assignment": null,
"branch": null,
"pull_request": null,
"completed_commit": null,
"blocker": null,
"release_gates": [],
"integration_state": "planned",
"integration_base": "fbf2eb9e",
"review_notes": "Planning-only cleanup story requested 2026-10-26. Current implementation authorization is false. No implementation, tests or completion are claimed by this entry.",
"concrete_write_scope": [
"apps/stock/orchestrator/src/data/historical-dataset-v2.ts",
"apps/stock/orchestrator/src/backtest/canonical-result.ts",
"apps/stock/web-api/src/services/canonical-research.service.ts",
"apps/stock/web-api/src/services/backtest-v2.service.ts",
"apps/stock/web-api/src/services/dataset-preparation.service.ts",
"apps/stock/web-api/src/services/validation-preview.ts",
"apps/stock/web-api/src/services/chronological-validation.service.ts",
"scripts/test/architecture.test.ts",
"tsconfig.check.json",
"libs/research/package.json",
"libs/research/tsconfig.json",
"libs/research/src/dataset-contracts.ts",
"libs/research/src/datasets.ts",
"libs/research/src/results.ts"
]
},
{
"id": "CL06",
"title": "Use shared dataset response schemas and eligibility checks in the workbench",
"epic": "E10",
"priority": "P2",
"severity": "Medium",
"status": "blocked",
"dependencies": [
"CL05"
],
"decision_dependencies": [],
"task_file": "backlog/tasks/CL06.md",
"findings": [
"CL-F05"
],
"complexity": "M",
"specialization": "Shared contracts and frontend validation",
"write_locks": [
"dataset-response-contracts",
"web-backtest-api"
],
"parallel_policy": "After CL05. Disjoint from CL07, which initially excludes backtestApiV2.ts; reserve this client file explicitly.",
"assignment": null,
"branch": null,
"pull_request": null,
"completed_commit": null,
"blocker": "Waiting for implementation prerequisites: CL05.",
"release_gates": [],
"integration_state": "planned",
"integration_base": "fbf2eb9e",
"review_notes": "Planning-only cleanup story requested 2026-10-26. Current implementation authorization is false. No implementation, tests or completion are claimed by this entry.",
"concrete_write_scope": [
"apps/stock/web-app/src/features/backtest/services/backtestApiV2.ts",
"apps/stock/web-api/src/services/canonical-research.service.ts",
"apps/stock/config/src/contracts/canonical-research.ts",
"libs/research/src/dataset-contracts.ts",
"test/integration/dataset-source-preparation-ui.test.tsx",
"test/integration/canonical-workbench.test.tsx"
]
},
{
"id": "CL07",
"title": "Share JSON transport handling across experiment and validation clients",
"epic": "E10",
"priority": "P2",
"severity": "Medium",
"status": "ready",
"dependencies": [],
"decision_dependencies": [],
"task_file": "backlog/tasks/CL07.md",
"findings": [
"CL-F06"
],
"complexity": "M",
"specialization": "Frontend HTTP contracts and retry semantics",
"write_locks": [
"web-experiment-transport"
],
"parallel_policy": "Ready independently. It can run with CL05/CL06 and frontend component stories only when actual client/test files are disjoint.",
"assignment": null,
"branch": null,
"pull_request": null,
"completed_commit": null,
"blocker": null,
"release_gates": [],
"integration_state": "planned",
"integration_base": "fbf2eb9e",
"review_notes": "Planning-only cleanup story requested 2026-10-26. Current implementation authorization is false. No implementation, tests or completion are claimed by this entry.",
"concrete_write_scope": [
"apps/stock/web-app/src/lib/api.ts",
"apps/stock/web-app/src/features/experiments/services/experimentApi.ts",
"apps/stock/web-app/src/features/experiments/services/chronologicalValidationDurableApi.ts",
"apps/stock/web-app/src/features/experiments/services/walkForwardApi.ts",
"apps/stock/web-app/src/lib/requestJson.ts",
"test/integration/research-http-transport.test.ts"
]
},
{
"id": "CL08",
"title": "Split backtest template, run and reproduction responsibilities behind the existing service",
"epic": "E10",
"priority": "P2",
"severity": "Medium",
"status": "blocked",
"dependencies": [
"CL05"
],
"decision_dependencies": [
"ADR-005",
"ADR-006"
],
"task_file": "backlog/tasks/CL08.md",
"findings": [
"CL-F07"
],
"complexity": "M",
"specialization": "TypeScript application services and PostgreSQL transactions",
"write_locks": [
"web-backtest-service",
"web-run-reproduction"
],
"parallel_policy": "After CL05. Must not overlap CL12 or another backtest service owner. Can run with disjoint frontend work.",
"assignment": null,
"branch": null,
"pull_request": null,
"completed_commit": null,
"blocker": "Waiting for implementation prerequisites: CL05.",
"release_gates": [],
"integration_state": "planned",
"integration_base": "fbf2eb9e",
"review_notes": "Planning-only cleanup story requested 2026-10-26. Current implementation authorization is false. No implementation, tests or completion are claimed by this entry.",
"concrete_write_scope": [
"apps/stock/web-api/src/services/backtest-v2.service.ts",
"apps/stock/web-api/src/services/run-reproduction.ts",
"apps/stock/web-api/src/services/reproduction-comparison.ts",
"apps/stock/web-api/src/routes/backtests-v2.routes.ts",
"apps/stock/web-api/src/services/backtests/templates.ts",
"apps/stock/web-api/src/services/backtests/runs.ts",
"apps/stock/web-api/src/services/backtests/reproduction.ts",
"apps/stock/web-api/src/services/backtests/results.ts"
]
},
{
"id": "CL09",
"title": "Separate strategy metadata, version inspection and publication UI",
"epic": "E10",
"priority": "P2",
"severity": "Medium",
"status": "ready",
"dependencies": [],
"decision_dependencies": [],
"task_file": "backlog/tasks/CL09.md",
"findings": [
"CL-F07"
],
"complexity": "M",
"specialization": "React strategy workflows",
"write_locks": [
"web-strategy-detail"
],
"parallel_policy": "Ready independently; disjoint from DI, CL06 and CL07. Reserve strategy detail/panel/test files against any other frontend owner.",
"assignment": null,
"branch": null,
"pull_request": null,
"completed_commit": null,
"blocker": null,
"release_gates": [],
"integration_state": "planned",
"integration_base": "fbf2eb9e",
"review_notes": "Planning-only cleanup story requested 2026-10-26. Current implementation authorization is false. No implementation, tests or completion are claimed by this entry.",
"concrete_write_scope": [
"apps/stock/web-app/src/features/strategies/StrategyDetailPage.tsx",
"apps/stock/web-app/src/features/strategies/components/",
"apps/stock/web-app/src/features/strategies/services/candidatePublication.ts",
"test/integration/strategy-workbench.test.tsx",
"apps/stock/web-app/src/features/strategies/components/StrategyVersionPanel.tsx",
"apps/stock/web-app/src/features/strategies/hooks/useStrategyClone.ts"
]
},
{
"id": "CL10",
"title": "Separate experiment modes and make draft/submission state explicit",
"epic": "E10",
"priority": "P2",
"severity": "Medium",
"status": "ready",
"dependencies": [],
"decision_dependencies": [],
"task_file": "backlog/tasks/CL10.md",
"findings": [
"CL-F07"
],
"complexity": "M",
"specialization": "React experiment workflow state",
"write_locks": [
"web-experiment-editor"
],
"parallel_policy": "Ready independently. Can run alongside CL07 only with disjoint authored client/test files and preserved public client contracts. Integration checks must cover their combination.",
"assignment": null,
"branch": null,
"pull_request": null,
"completed_commit": null,
"blocker": null,
"release_gates": [],
"integration_state": "planned",
"integration_base": "fbf2eb9e",
"review_notes": "Planning-only cleanup story requested 2026-10-26. Current implementation authorization is false. No implementation, tests or completion are claimed by this entry.",
"concrete_write_scope": [
"apps/stock/web-app/src/features/experiments/components/ExperimentEditor.tsx",
"apps/stock/web-app/src/features/experiments/components/ChronologicalValidationPreflight.tsx",
"apps/stock/web-app/src/features/experiments/components/WalkForwardPreflight.tsx",
"test/integration/experiments-ui.test.tsx",
"apps/stock/web-app/src/features/experiments/hooks/useExperimentSubmission.ts",
"apps/stock/web-app/src/features/experiments/components/ExperimentDraftForm.tsx"
]
},
{
"id": "CL11",
"title": "Separate backtest template loading, run monitoring and submission state",
"epic": "E10",
"priority": "P2",
"severity": "Medium",
"status": "ready",
"dependencies": [],
"decision_dependencies": [],
"task_file": "backlog/tasks/CL11.md",
"findings": [
"CL-F07"
],
"complexity": "M",
"specialization": "React asynchronous state and durable-run UX",
"write_locks": [
"web-backtest-monitor"
],
"parallel_policy": "Ready independently. Can run with CL08 because UI/client contracts remain stable. Serialize with other backtest page/hook owners; keep CL06 API-client edits separate.",
"assignment": null,
"branch": null,
"pull_request": null,
"completed_commit": null,
"blocker": null,
"release_gates": [],
"integration_state": "planned",
"integration_base": "fbf2eb9e",
"review_notes": "Planning-only cleanup story requested 2026-10-26. Current implementation authorization is false. No implementation, tests or completion are claimed by this entry.",
"concrete_write_scope": [
"apps/stock/web-app/src/features/backtest/hooks/useBacktestV2.ts",
"apps/stock/web-app/src/features/backtest/BacktestDetailPageV2.tsx",
"test/integration/backtest-run-controls.test.tsx",
"test/integration/canonical-workbench.test.tsx",
"apps/stock/web-app/src/features/backtest/hooks/useRunMonitoring.ts",
"apps/stock/web-app/src/features/backtest/hooks/useRunSubmission.ts"
]
},
{
"id": "CL12",
"title": "Simplify retired execution seams while preserving historical reads",
"epic": "E10",
"priority": "P2",
"severity": "Medium",
"status": "blocked",
"dependencies": [
"CL08"
],
"decision_dependencies": [
"ADR-005"
],
"task_file": "backlog/tasks/CL12.md",
"findings": [
"CL-F09"
],
"complexity": "M",
"specialization": "Compatibility cleanup and execution boundaries",
"write_locks": [
"web-backtest-service",
"legacy-execution-boundaries"
],
"parallel_policy": "After CL08. One owner for the affected execution/API seams. This is not authority to remove unrelated code merely because static imports look absent.",
"assignment": null,
"branch": null,
"pull_request": null,
"completed_commit": null,
"blocker": "Waiting for implementation prerequisites: CL08.",
"release_gates": [],
"integration_state": "planned",
"integration_base": "fbf2eb9e",
"review_notes": "Planning-only cleanup story requested 2026-10-26. Current implementation authorization is false. No implementation, tests or completion are claimed by this entry.",
"concrete_write_scope": [
"apps/stock/web-api/src/services/backtest-v2.service.ts",
"apps/stock/web-api/src/services/backtest-result.ts",
"apps/stock/orchestrator/src/backtest/BacktestRunner.ts",
"apps/stock/orchestrator/src/backtest/execution-engine.ts",
"apps/stock/orchestrator/src/api/rest/backtest.ts",
"scripts/test/architecture.test.ts"
]
},
{
"id": "CL13",
"title": "Hide placeholder navigation while preserving useful product routes",
"epic": "E10",
"priority": "P2",
"severity": "Low",
"status": "ready",
"dependencies": [],
"decision_dependencies": [],
"task_file": "backlog/tasks/CL13.md",
"findings": [
"CL-F10"
],
"complexity": "S",
"specialization": "React navigation and product clarity",
"write_locks": [
"web-navigation"
],
"parallel_policy": "Ready independently but lower priority than the first cleanup wave. Reserve route/navigation files against any concurrent product work.",
"assignment": null,
"branch": null,
"pull_request": null,
"completed_commit": null,
"blocker": null,
"release_gates": [],
"integration_state": "planned",
"integration_base": "fbf2eb9e",
"review_notes": "Planning-only cleanup story requested 2026-10-26. Current implementation authorization is false. No implementation, tests or completion are claimed by this entry.",
"concrete_write_scope": [
"apps/stock/web-app/src/lib/constants.ts",
"apps/stock/web-app/src/app/App.tsx",
"apps/stock/web-app/README.md",
"docs/guide/README.md",
"test/integration/navigation.test.tsx"
]
}
],
"review_note": "Independent skeptical revision: four superseded tasks retain stable IDs; deferred work is not a dependency of scheduled tasks. Release gates are distinct from implementation prerequisites.",