fix(core): own cache transports and accept cleanup reviews

This commit is contained in:
Boki 2026-10-26 23:57:39 -04:00
parent bd9332b2f6
commit b4ac6460ef
24 changed files with 504 additions and 97 deletions

View file

@ -1,5 +1,7 @@
# Cleanup and maintainability plan
Current acceptance: all 13 cleanup stories received independent review; the resulting cache/configuration corrections and check evidence are recorded in [real-data-research.md](real-data-research.md). Earlier review-pending statements below describe the historical execution state.
Baseline: `fbf2eb9e`, inspected October 26, 2026. This extends the existing development backlog. The original 45 scheduled tasks remain complete; these 13 cleanup stories are new work. The owner subsequently authorized implementation and validated commits; progress and checks are recorded in [cleanup-execution.md](cleanup-execution.md). All 13 stories are implemented and validated. They remain in `review` until an independent reviewer signs off; no additional agents have been launched.
[manifest.json](backlog/manifest.json) remains the scheduling source of truth. It records task states, prerequisites, priorities and write locks. This page explains the execution contract and recommended order; it is not a second status tracker. Current evidence is appended to [findings.md](backlog/findings.md#cleanup-audit-2026-10-26).

View file

@ -2,13 +2,13 @@
**The original 45/45 scheduled tasks are complete.** The canonical Rust engine, TypeScript research/workbench, bounded worker pool, isolated candidates, AI evidence workflow and human-reviewed paper promotion are validated. Implementation commits: `bbf0dd4`, `26b9726`, `25b5cbf` (R07 measurement `ab08db8`). Six conditional tasks remain deferred; four merged IDs remain redirects. This is scheduled-backlog completion, not live-trading activation.
**New work:** [13 cleanup stories](../CLEANUP.md) were proposed on October 26, 2026. The owner subsequently authorized implementation and commits; see [execution evidence](../cleanup-execution.md). All 13 are implemented and validated; independent review is the remaining completion gate.
**New work:** [13 cleanup stories](../CLEANUP.md) were proposed on October 26, 2026. The owner subsequently authorized implementation and commits; see [execution evidence](../cleanup-execution.md). All 13 are implemented and independently accepted; review corrections are recorded in [real-data-research.md](../real-data-research.md).
## One source of truth
[manifest.json](manifest.json) owns scheduling metadata: status, priorities, dependencies, ADR approvals, assignments and write locks. Task Markdown owns implementation scope/evidence/acceptance. This index and the [graph](dependencies.mmd) are derived views. Only the planning/integration owner updates scheduling state.
**Current total: 76 retained IDs.** The earlier 68 IDs retain their state. E11 adds seven authorized cleanup tasks and one conditional replay extraction; see the manifest for current scheduling. The original backlog accounted for 55 IDs. F09/P07 added projection/profiling work; the owner deferred P08's TypeScript optimization. Merged records preserve traceability; never execute them separately. Deferred work requires its stated trigger and explicit activation.
**Current total: 78 retained IDs.** RP01/RP02 add the authorized real-data workflow. The earlier 68 IDs retain their state. E11 adds seven authorized cleanup tasks and one conditional replay extraction; see the manifest for current scheduling. The original backlog accounted for 55 IDs. F09/P07 added projection/profiling work; the owner deferred P08's TypeScript optimization. Merged records preserve traceability; never execute them separately. Deferred work requires its stated trigger and explicit activation.
States: ready, claimed, in_progress, review, done, blocked, deferred, merged. “Ready” means no code/ADR prerequisite, not execution authority. Implementation dependencies require accepted integration. `release_gates` govern enabling an end-to-end feature, not component coding or integration; conditional gates apply only to the named capability. F05 may integrate before F06, but its replay behavior is not released until F06 proves it.
@ -122,19 +122,19 @@ Scope and first execution wave: [CLEANUP.md](../CLEANUP.md). The owner has autho
| Task | Priority / status | Implementation prerequisites | Release gate | Specialist / size |
| --- | --- | --- | --- | --- |
| [CL01 Replace permissive DI configuration tests with production-path assertions](tasks/CL01.md) | P1 / review | None | — | TypeScript infrastructure testing / M |
| [CL02 Normalize database configuration once and enforce consistent service switches](tasks/CL02.md) | P1 / review | CL01 | — | TypeScript configuration and database adapters / M |
| [CL03 Roll back failed shared-service startup and clear initialization timers](tasks/CL03.md) | P1 / review | None | — | TypeScript resource lifecycle and concurrency / M |
| [CL04 Provide one consistent research startup path and repair stale commands](tasks/CL04.md) | P1 / review | None | — | Bun/Turbo developer tooling / S |
| [CL05 Extract shared dataset and reporting logic behind a research library boundary](tasks/CL05.md) | P2 / review | D01, F08, R05 | — | TypeScript domain boundaries and package migration / M |
| [CL06 Use shared dataset response schemas and eligibility checks in the workbench](tasks/CL06.md) | P2 / review | CL05 | — | Shared contracts and frontend validation / M |
| [CL07 Share JSON transport handling across experiment and validation clients](tasks/CL07.md) | P2 / review | None | — | Frontend HTTP contracts and retry semantics / M |
| [CL08 Split backtest template, run and reproduction responsibilities behind the existing service](tasks/CL08.md) | P2 / review | CL05 | — | TypeScript application services and PostgreSQL transactions / M |
| [CL09 Separate strategy metadata, version inspection and publication UI](tasks/CL09.md) | P2 / review | None | — | React strategy workflows / M |
| [CL10 Separate experiment modes and make draft/submission state explicit](tasks/CL10.md) | P2 / review | None | — | React experiment workflow state / M |
| [CL11 Separate backtest template loading, run monitoring and submission state](tasks/CL11.md) | P2 / review | None | — | React asynchronous state and durable-run UX / M |
| [CL12 Simplify retired execution seams while preserving historical reads](tasks/CL12.md) | P2 / review | CL08 | — | Compatibility cleanup and execution boundaries / M |
| [CL13 Hide placeholder navigation while preserving useful product routes](tasks/CL13.md) | P2 / review | None | — | React navigation and product clarity / S |
| [CL01 Replace permissive DI configuration tests with production-path assertions](tasks/CL01.md) | P1 / done | None | — | TypeScript infrastructure testing / M |
| [CL02 Normalize database configuration once and enforce consistent service switches](tasks/CL02.md) | P1 / done | CL01 | — | TypeScript configuration and database adapters / M |
| [CL03 Roll back failed shared-service startup and clear initialization timers](tasks/CL03.md) | P1 / done | None | — | TypeScript resource lifecycle and concurrency / M |
| [CL04 Provide one consistent research startup path and repair stale commands](tasks/CL04.md) | P1 / done | None | — | Bun/Turbo developer tooling / S |
| [CL05 Extract shared dataset and reporting logic behind a research library boundary](tasks/CL05.md) | P2 / done | D01, F08, R05 | — | TypeScript domain boundaries and package migration / M |
| [CL06 Use shared dataset response schemas and eligibility checks in the workbench](tasks/CL06.md) | P2 / done | CL05 | — | Shared contracts and frontend validation / M |
| [CL07 Share JSON transport handling across experiment and validation clients](tasks/CL07.md) | P2 / done | None | — | Frontend HTTP contracts and retry semantics / M |
| [CL08 Split backtest template, run and reproduction responsibilities behind the existing service](tasks/CL08.md) | P2 / done | CL05 | — | TypeScript application services and PostgreSQL transactions / M |
| [CL09 Separate strategy metadata, version inspection and publication UI](tasks/CL09.md) | P2 / done | None | — | React strategy workflows / M |
| [CL10 Separate experiment modes and make draft/submission state explicit](tasks/CL10.md) | P2 / done | None | — | React experiment workflow state / M |
| [CL11 Separate backtest template loading, run monitoring and submission state](tasks/CL11.md) | P2 / done | None | — | React asynchronous state and durable-run UX / M |
| [CL12 Simplify retired execution seams while preserving historical reads](tasks/CL12.md) | P2 / done | CL08 | — | Compatibility cleanup and execution boundaries / M |
| [CL13 Hide placeholder navigation while preserving useful product routes](tasks/CL13.md) | P2 / done | None | — | React navigation and product clarity / S |
## Scheduling checks
@ -156,3 +156,8 @@ Owner authorized planning and per-task implementation commits. [Execution plan a
| [CL19 Share pure strategy bookkeeping and event ordering](tasks/CL19.md) | P2 | None |
| [CL20 Return validated retained results from the worker supervisor](tasks/CL20.md) | P2 | CL14 |
| [CL21 Extract private deterministic replay preparation when needed](tasks/CL21.md) | P3 | Conditional |
## E12 — Real-data research workflow
- [RP01: Stored source coverage and quality](tasks/RP01.md) — in progress.
- [RP02: Retained real-data pilot](tasks/RP02.md) — in progress; preserves explicit strategy approval.

View file

@ -1,8 +1,8 @@
{
"schema_version": 1,
"plan_revision": "2026-10-26.86",
"plan_revision": "2026-10-26.87",
"repository_base": "b7aeca4",
"plan_status": "orchestrator_engine_cleanup_scheduled_complete",
"plan_status": "real_data_research_in_progress",
"execution_authorized": true,
"execution_scope": {
"authorized_by": "Owner: commit and continue with the rest of the tasks till 100%",
@ -189,7 +189,8 @@
"id": "E10",
"title": "Cleanup and maintainability foundations"
},
{"id": "E11", "title": "Orchestrator and engine cleanup"}
{"id": "E11", "title": "Orchestrator and engine cleanup"},
{"id": "E12", "title": "Real-data research workflow"}
],
"first_wave": ["C01", "C03", "C04", "W01"],
"tasks": [
@ -2115,7 +2116,7 @@
"epic": "E10",
"priority": "P1",
"severity": "High",
"status": "review",
"status": "done",
"dependencies": [],
"decision_dependencies": [],
"task_file": "backlog/tasks/CL01.md",
@ -2131,10 +2132,10 @@
"assignment": null,
"branch": null,
"pull_request": null,
"completed_commit": null,
"completed_commit": "8c39ccf7",
"blocker": null,
"release_gates": [],
"integration_state": "validated_pending_independent_review",
"integration_state": "validated_committed",
"integration_base": "fbf2eb9e",
"review_notes": "Implementation and relevant checks are complete. Separate self-review performed; independent reviewer sign-off remains pending. No reviewer agent was launched.",
"concrete_write_scope": [
@ -2146,7 +2147,9 @@
"implementation_commits": [
"805a9f8f",
"8c39ccf7"
]
],
"reviewer": "/root/review_cleanup_foundations",
"review_evidence": "real-data-research.md"
},
{
"id": "CL02",
@ -2154,7 +2157,7 @@
"epic": "E10",
"priority": "P1",
"severity": "High",
"status": "review",
"status": "done",
"dependencies": [
"CL01"
],
@ -2177,7 +2180,7 @@
"completed_commit": null,
"blocker": null,
"release_gates": [],
"integration_state": "validated_pending_independent_review",
"integration_state": "validated_pending_commit",
"integration_base": "fbf2eb9e",
"review_notes": "Primary follow-up reproduced and fixed configuration/lifecycle defects; all repository gates pass on 9d3e1a7b. Independent reviewer-agent permission/sign-off is pending; status remains review.",
"concrete_write_scope": [
@ -2198,7 +2201,9 @@
"8c39ccf7",
"9d3e1a7b"
],
"review_followup_file": "cleanup-review.md"
"review_followup_file": "cleanup-review.md",
"reviewer": "/root/review_cleanup_foundations",
"review_evidence": "real-data-research.md"
},
{
"id": "CL03",
@ -2206,7 +2211,7 @@
"epic": "E10",
"priority": "P1",
"severity": "High",
"status": "review",
"status": "done",
"dependencies": [],
"decision_dependencies": [],
"task_file": "backlog/tasks/CL03.md",
@ -2226,7 +2231,7 @@
"completed_commit": null,
"blocker": null,
"release_gates": [],
"integration_state": "validated_pending_independent_review",
"integration_state": "validated_pending_commit",
"integration_base": "fbf2eb9e",
"review_notes": "Primary follow-up reproduced and fixed configuration/lifecycle defects; all repository gates pass on 9d3e1a7b. Independent reviewer-agent permission/sign-off is pending; status remains review.",
"concrete_write_scope": [
@ -2242,7 +2247,9 @@
"8c39ccf7",
"9d3e1a7b"
],
"review_followup_file": "cleanup-review.md"
"review_followup_file": "cleanup-review.md",
"reviewer": "/root/review_cleanup_foundations",
"review_evidence": "real-data-research.md"
},
{
"id": "CL04",
@ -2250,7 +2257,7 @@
"epic": "E10",
"priority": "P1",
"severity": "Medium",
"status": "review",
"status": "done",
"dependencies": [],
"decision_dependencies": [],
"task_file": "backlog/tasks/CL04.md",
@ -2268,10 +2275,10 @@
"assignment": null,
"branch": null,
"pull_request": null,
"completed_commit": null,
"completed_commit": "8c39ccf7",
"blocker": null,
"release_gates": [],
"integration_state": "validated_pending_independent_review",
"integration_state": "validated_committed",
"integration_base": "fbf2eb9e",
"review_notes": "Implementation and relevant checks are complete. Separate self-review performed; independent reviewer sign-off remains pending. No reviewer agent was launched.",
"concrete_write_scope": [
@ -2287,7 +2294,9 @@
"implementation_commits": [
"805a9f8f",
"8c39ccf7"
]
],
"reviewer": "/root/review_cleanup_foundations",
"review_evidence": "real-data-research.md"
},
{
"id": "CL05",
@ -2295,7 +2304,7 @@
"epic": "E10",
"priority": "P2",
"severity": "High",
"status": "review",
"status": "done",
"dependencies": [
"D01",
"F08",
@ -2321,10 +2330,10 @@
"assignment": null,
"branch": null,
"pull_request": null,
"completed_commit": null,
"completed_commit": "8c39ccf7",
"blocker": null,
"release_gates": [],
"integration_state": "validated_pending_independent_review",
"integration_state": "validated_committed",
"integration_base": "fbf2eb9e",
"review_notes": "Implementation and relevant checks are complete. Separate self-review performed; independent reviewer sign-off remains pending. No reviewer agent was launched.",
"concrete_write_scope": [
@ -2347,7 +2356,9 @@
"implementation_commit": "8c39ccf7",
"implementation_commits": [
"8c39ccf7"
]
],
"reviewer": "/root/review_cleanup_backend",
"review_evidence": "real-data-research.md"
},
{
"id": "CL06",
@ -2355,7 +2366,7 @@
"epic": "E10",
"priority": "P2",
"severity": "Medium",
"status": "review",
"status": "done",
"dependencies": [
"CL05"
],
@ -2374,10 +2385,10 @@
"assignment": null,
"branch": null,
"pull_request": null,
"completed_commit": null,
"completed_commit": "8c39ccf7",
"blocker": null,
"release_gates": [],
"integration_state": "validated_pending_independent_review",
"integration_state": "validated_committed",
"integration_base": "fbf2eb9e",
"review_notes": "Implementation and relevant checks are complete. Separate self-review performed; independent reviewer sign-off remains pending. No reviewer agent was launched.",
"concrete_write_scope": [
@ -2392,7 +2403,9 @@
"implementation_commit": "8c39ccf7",
"implementation_commits": [
"8c39ccf7"
]
],
"reviewer": "/root/review_cleanup_frontend",
"review_evidence": "real-data-research.md"
},
{
"id": "CL07",
@ -2400,7 +2413,7 @@
"epic": "E10",
"priority": "P2",
"severity": "Medium",
"status": "review",
"status": "done",
"dependencies": [],
"decision_dependencies": [],
"task_file": "backlog/tasks/CL07.md",
@ -2416,10 +2429,10 @@
"assignment": null,
"branch": null,
"pull_request": null,
"completed_commit": null,
"completed_commit": "8c39ccf7",
"blocker": null,
"release_gates": [],
"integration_state": "validated_pending_independent_review",
"integration_state": "validated_committed",
"integration_base": "fbf2eb9e",
"review_notes": "Implementation and relevant checks are complete. Separate self-review performed; independent reviewer sign-off remains pending. No reviewer agent was launched.",
"concrete_write_scope": [
@ -2434,7 +2447,9 @@
"implementation_commit": "8c39ccf7",
"implementation_commits": [
"8c39ccf7"
]
],
"reviewer": "/root/review_cleanup_frontend",
"review_evidence": "real-data-research.md"
},
{
"id": "CL08",
@ -2442,7 +2457,7 @@
"epic": "E10",
"priority": "P2",
"severity": "Medium",
"status": "review",
"status": "done",
"dependencies": [
"CL05"
],
@ -2464,10 +2479,10 @@
"assignment": null,
"branch": null,
"pull_request": null,
"completed_commit": null,
"completed_commit": "8c39ccf7",
"blocker": null,
"release_gates": [],
"integration_state": "validated_pending_independent_review",
"integration_state": "validated_committed",
"integration_base": "fbf2eb9e",
"review_notes": "Implementation and relevant checks are complete. Separate self-review performed; independent reviewer sign-off remains pending. No reviewer agent was launched.",
"concrete_write_scope": [
@ -2484,7 +2499,9 @@
"implementation_commit": "8c39ccf7",
"implementation_commits": [
"8c39ccf7"
]
],
"reviewer": "/root/review_cleanup_backend",
"review_evidence": "real-data-research.md"
},
{
"id": "CL09",
@ -2492,7 +2509,7 @@
"epic": "E10",
"priority": "P2",
"severity": "Medium",
"status": "review",
"status": "done",
"dependencies": [],
"decision_dependencies": [],
"task_file": "backlog/tasks/CL09.md",
@ -2508,10 +2525,10 @@
"assignment": null,
"branch": null,
"pull_request": null,
"completed_commit": null,
"completed_commit": "8c39ccf7",
"blocker": null,
"release_gates": [],
"integration_state": "validated_pending_independent_review",
"integration_state": "validated_committed",
"integration_base": "fbf2eb9e",
"review_notes": "Implementation and relevant checks are complete. Separate self-review performed; independent reviewer sign-off remains pending. No reviewer agent was launched.",
"concrete_write_scope": [
@ -2526,7 +2543,9 @@
"implementation_commit": "8c39ccf7",
"implementation_commits": [
"8c39ccf7"
]
],
"reviewer": "/root/review_cleanup_frontend",
"review_evidence": "real-data-research.md"
},
{
"id": "CL10",
@ -2534,7 +2553,7 @@
"epic": "E10",
"priority": "P2",
"severity": "Medium",
"status": "review",
"status": "done",
"dependencies": [],
"decision_dependencies": [],
"task_file": "backlog/tasks/CL10.md",
@ -2550,10 +2569,10 @@
"assignment": null,
"branch": null,
"pull_request": null,
"completed_commit": null,
"completed_commit": "8c39ccf7",
"blocker": null,
"release_gates": [],
"integration_state": "validated_pending_independent_review",
"integration_state": "validated_committed",
"integration_base": "fbf2eb9e",
"review_notes": "Implementation and relevant checks are complete. Separate self-review performed; independent reviewer sign-off remains pending. No reviewer agent was launched.",
"concrete_write_scope": [
@ -2568,7 +2587,9 @@
"implementation_commit": "8c39ccf7",
"implementation_commits": [
"8c39ccf7"
]
],
"reviewer": "/root/review_cleanup_frontend",
"review_evidence": "real-data-research.md"
},
{
"id": "CL11",
@ -2576,7 +2597,7 @@
"epic": "E10",
"priority": "P2",
"severity": "Medium",
"status": "review",
"status": "done",
"dependencies": [],
"decision_dependencies": [],
"task_file": "backlog/tasks/CL11.md",
@ -2592,10 +2613,10 @@
"assignment": null,
"branch": null,
"pull_request": null,
"completed_commit": null,
"completed_commit": "8c39ccf7",
"blocker": null,
"release_gates": [],
"integration_state": "validated_pending_independent_review",
"integration_state": "validated_committed",
"integration_base": "fbf2eb9e",
"review_notes": "Implementation and relevant checks are complete. Separate self-review performed; independent reviewer sign-off remains pending. No reviewer agent was launched.",
"concrete_write_scope": [
@ -2610,7 +2631,9 @@
"implementation_commit": "8c39ccf7",
"implementation_commits": [
"8c39ccf7"
]
],
"reviewer": "/root/review_cleanup_frontend",
"review_evidence": "real-data-research.md"
},
{
"id": "CL12",
@ -2618,7 +2641,7 @@
"epic": "E10",
"priority": "P2",
"severity": "Medium",
"status": "review",
"status": "done",
"dependencies": [
"CL08"
],
@ -2639,10 +2662,10 @@
"assignment": null,
"branch": null,
"pull_request": null,
"completed_commit": null,
"completed_commit": "8c39ccf7",
"blocker": null,
"release_gates": [],
"integration_state": "validated_pending_independent_review",
"integration_state": "validated_committed",
"integration_base": "fbf2eb9e",
"review_notes": "Implementation and relevant checks are complete. Separate self-review performed; independent reviewer sign-off remains pending. No reviewer agent was launched.",
"concrete_write_scope": [
@ -2657,7 +2680,9 @@
"implementation_commit": "8c39ccf7",
"implementation_commits": [
"8c39ccf7"
]
],
"reviewer": "/root/review_cleanup_backend",
"review_evidence": "real-data-research.md"
},
{
"id": "CL13",
@ -2665,7 +2690,7 @@
"epic": "E10",
"priority": "P2",
"severity": "Low",
"status": "review",
"status": "done",
"dependencies": [],
"decision_dependencies": [],
"task_file": "backlog/tasks/CL13.md",
@ -2681,10 +2706,10 @@
"assignment": null,
"branch": null,
"pull_request": null,
"completed_commit": null,
"completed_commit": "8c39ccf7",
"blocker": null,
"release_gates": [],
"integration_state": "validated_pending_independent_review",
"integration_state": "validated_committed",
"integration_base": "fbf2eb9e",
"review_notes": "Implementation and relevant checks are complete. Separate self-review performed; independent reviewer sign-off remains pending. No reviewer agent was launched.",
"concrete_write_scope": [
@ -2698,7 +2723,9 @@
"implementation_commit": "8c39ccf7",
"implementation_commits": [
"8c39ccf7"
]
],
"reviewer": "/root/review_cleanup_frontend",
"review_evidence": "real-data-research.md"
},
{
"id": "CL14",
@ -3054,6 +3081,54 @@
"integration_state": "not_started",
"integration_base": "700ee09c",
"completion_evidence": "orchestrator-engine-cleanup.md"
},
{
"id": "RP01",
"title": "Inspect stored market-data coverage and quality",
"epic": "E12",
"priority": "P1",
"severity": "High",
"status": "in_progress",
"dependencies": [
"CL05",
"CL06",
"CL17"
],
"decision_dependencies": [],
"task_file": "backlog/tasks/RP01.md",
"complexity": "M",
"assignment": "/root/implement_source_inspection",
"completed_commit": null,
"blocker": null,
"integration_state": "implementing",
"integration_base": "bd9332b2",
"completion_evidence": "real-data-research.md",
"release_gates": []
},
{
"id": "RP02",
"title": "Complete a retained real-data research pilot",
"epic": "E12",
"priority": "P1",
"severity": "High",
"status": "in_progress",
"dependencies": [
"CL02",
"CL03",
"R05",
"R08",
"R12"
],
"decision_dependencies": [],
"task_file": "backlog/tasks/RP02.md",
"complexity": "M",
"assignment": "/root",
"completed_commit": null,
"blocker": null,
"integration_state": "implementing",
"integration_base": "bd9332b2",
"completion_evidence": "real-data-research.md",
"release_gates": []
}
],
"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.",

View file

@ -0,0 +1,17 @@
# RP01 — Inspect stored market-data coverage and quality
Parent: E12. Priority P1. Complexity M. Authorized by the owner's request to implement the real-data research workflow.
Outcome: the stored-EOD preparation UI shows available instruments/timeframes/date coverage and diagnostics for an explicit UTC window before requiring complete dataset metadata.
Evidence: `DatasetPreparation.tsx` currently begins with metadata JSON; `prepareStoredDataset` calls the strict historical reader, which rejects an invalid row before returning a preview. The read-only October 26 pilot again found 22 null-volume rows in 1,816 AAPL five-minute records. Quality inspection must not weaken execution admission.
Scope: browser-safe shared contracts, fixed EOD Mongo collection coverage and window inspection, existing dataset routes, separate stored-mode inspector, focused API/domain/UI regressions. Show unknown identity/timestamps, malformed OHLCV and duplicates truthfully. No implicit filtering, metadata inference, row caps, writes, cache, financial changes or research-agent permission expansion. Existing strict preview/retain remains authoritative.
Dependencies: accepted CL05/CL06/CL17. Agent lock: stored-source contracts/service/routes/UI and new tests. Can run beside cache corrections and pilot preparation.
Acceptance: actual stored coverage is inspectable; empty/error/loading/cancel states work; changing input fences late responses; full requested range is diagnosed; no source or research records are written; a clean diagnostic never implies execution eligibility. In-flight Mongo cancellation limitations are explicit.
Tests: source inspection domain/HTTP and production component tests; existing stored/prepared dataset suites; shared contract/browser bundle tests; read-only actual Mongo smoke; typecheck/lint; repository and browser integration gates. Independent backend and frontend review before completion.
Risk: falsely claiming complete sessions, losing UTC range identity, stale UI results, or bypassing strict preparation. Root owns manifest status and commit evidence in `real-data-research.md`.

View file

@ -0,0 +1,15 @@
# RP02 — Complete a retained real-data research pilot
Parent: E12. Priority P1. Complexity M. Authorized by the owner's real-data workflow request. This is a bounded workflow proof, not alpha validation or trading activation.
Outcome: one clean, explicitly declared stored-market window becomes a frozen dataset, a reviewed retained TypeScript baseline runs on Rust, chronological/cost experiments can be reopened, and exact reproduction plus an evidence-linked finding are recorded.
Scope: use existing preparation, strategy catalog, durable runner, experiments, validation, reproduction and research APIs/services. Preserve raw query bytes, metadata evidence and policies in local durable artifacts; persist research inputs/results through existing custody. Prefer a clean single session over inventing a filtering policy. Only newly created pilot research records may be written; source history and paper/live state remain untouched. No new simulator, model, optimizer, MCP framework, calendar inference or claims of statistical significance.
Dependencies: reviewed foundations and existing accepted research engine; RP01 supplies inspection but does not block offline metadata preparation. Root owns pilot artifacts and execution. A strategy's explicit operator-review gate remains in effect; prepare its exact artifact before requesting any missing approval.
Acceptance: recorded source/data/artifact/build identities; no coerced or silently excluded rows; supported calendar/action/universe declarations; deterministic economic equality on reproduction; finite predeclared parameter/cost trials, chronological selection using training only; results/finding reopened through existing product APIs. Record unavailable approval/data/runtime honestly instead of weakening gates.
Tests: existing durable research/validation/reproduction regression suites on disposable stores, pilot assertions using real stored input, relevant browser workflow, full repository gate. A one-session result must be labelled workflow-only and cannot establish profitability or universe robustness.
Risk: mislabelled source availability, retrospective universe assumptions, incomplete approvals, non-idempotent metadata writes or accidental repeated experiments. Keep an append-only local intent/receipt record and resume by saved IDs. Root records final evidence in `real-data-research.md` and canonical manifest.

View file

@ -1,5 +1,7 @@
# Cleanup execution evidence
Current acceptance: all 13 cleanup stories received independent review; the resulting cache/configuration corrections and check evidence are recorded in [real-data-research.md](real-data-research.md). Earlier review-pending statements below describe the historical execution state.
The owner authorized implementation and validated commits after plan commit `4ddffa6b`.
The [manifest](backlog/manifest.json) remains the task-state authority. No additional
agents were launched; review here is a separate self-review pass, not an independent

View file

@ -1,5 +1,7 @@
# Cleanup review and first research pilot
Current acceptance: all 13 cleanup stories received independent review; the resulting cache/configuration corrections and check evidence are recorded in [real-data-research.md](real-data-research.md). Earlier review-pending statements below describe the historical execution state.
Review baseline: `512f2f1c`, October 26, 2026. This records the primary agent's
follow-up inspection and fixes, **not independent sign-off**. The 13 cleanup stories
remain in `review`. A request to use three independent read-only reviewer agents is

View file

@ -0,0 +1,17 @@
# Real-data research workflow
Authorized follow-up to cleanup on October 26, 2026. Baseline `bd9332b2`. The manifest owns scheduling. RP01 adds read-only source inspection; RP02 exercises existing research paths with actual stored data. Performance, conditional CL21 and paper/live activation remain deferred.
## Independent cleanup reviews
- CL01/CL04: foundation reviewer accepted; CL02/CL03 required owned-cache corrections before acceptance. Real adapter probes reproduced transport leakage, cross-container endpoint reuse and ignored options. The correction owns DI/queue cache transports, preserves shared callers and namespaces, wires supported retries/TTL and diagnoses obsolete controls. Foundation reviewer accepted the fix; root scoped tests passed 38/190 assertions and application types. Expanded implementer gates passed 75/280. Three historical queue-utils expectations independently fail on the old baseline; no claim those passed.
- CL05/CL08/CL12: backend reviewer accepted; 154 domain/admission cases, 15 retained-worker cases, and 55 disposable PostgreSQL cases passed. Dataset/report moves preserve algorithms and transaction/receipt boundaries.
- CL06/CL07/CL09/CL10/CL11/CL13: frontend reviewer accepted; 390 UI/transport and 41 dataset/architecture cases passed. A pre-existing body-read abort diagnostic limitation remains nonblocking because cancelled generations are fenced.
Reviewers: `/root/review_cleanup_foundations`, `/root/review_cleanup_backend`, `/root/review_cleanup_frontend`. Exact logs under `/tmp/stock-bot-*-review*.log` and `/tmp/stock-bot-research-next-20261026/`. Combined integration evidence follows.
## Rechecked source
Read-only Mongo query reproduced the previous AAPL October 2024 snapshot exactly: 1,816 five-minute rows, 22 null volumes at 20:00 UTC, no duplicate timestamps; raw query JSON hash `a8772d01d388b8fc9bca0d2790ad0d37146570fd09d057fcf1f1fcb5e6113bde`. PostgreSQL initially contained zero retained datasets/strategy versions and no experiments; existing runs are not evidence of this pilot. The development API responds on port 2003.
Plan: inspect the full window; prepare one explicitly bounded regular trading session without changing source rows. Complete calendar/timing/action declarations and record limitations. No simulation outcome has yet been claimed here.

View file

@ -72,6 +72,18 @@ The stored-source adapter currently accepts **one raw EOD intraday series at `1m
| **QuestDB** | An existing time-series adapter and historical storage route. The current web API, ingestion and pipeline entrypoints explicitly disable it in their container composition. Do not add it to the required retained-dataset research path just because the adapter exists. |
| **Local build artifacts** | Native binary, worker bundle and retained strategy package identities are verified before execution. They supply executable code; they are not another account database. See [canonical-build.ts](../../apps/stock/orchestrator/src/backtest/canonical-build.ts). |
DI owns each service/global/proxy cache transport and closes only that container's connections.
Their key prefixes and cache DB1 remain unchanged; queue data uses DB0 and each QueueManager
owns its batch-cache transports. Direct shared-cache factory callers retain shared ownership.
`database.dragonfly.ttl` sets the service/global default cache TTL; `keyPrefix` is a deprecated
DI compatibility input and produces a diagnostic when set because service namespaces are fixed.
`database.dragonfly.maxRetries` maps to cache/rate-limiter `maxRetriesPerRequest`, and
`retryDelay` sets the fixed Redis reconnect delay in milliseconds. BullMQ workers deliberately
keep unlimited per-request retries; producers keep their fail-fast request policy.
QuestDB `bufferSize` and `flushInterval` are deprecated compatibility settings with no effect:
the client does not run a background buffered writer. Nondefault values produce a diagnostic;
explicit Influx writer operation options remain the supported batching interface.
## What the shared libraries are for
| Library | Why it exists |