refactor(orchestrator): narrow historical storage to reads (CL17)

This commit is contained in:
Boki 2026-10-26 20:30:40 -04:00
parent 03518c8ae4
commit 984dc1a9cc
17 changed files with 88 additions and 232 deletions

View file

@ -144,7 +144,7 @@ R06/R08/R09 and the R07 comparison/measurement are complete. The default support
## E11 — Orchestrator and engine cleanup
Owner authorized planning and per-task implementation commits. [Execution plan and validation](../orchestrator-engine-cleanup.md). First wave CL14/CL15/CL16 is completed and committed. CL17–CL20 are ready; CL21 remains conditional. Earlier cleanup reviews and the six original conditional tasks remain unchanged.
Owner authorized planning and per-task implementation commits. [Execution plan and validation](../orchestrator-engine-cleanup.md). First wave CL14/CL15/CL16 is completed and committed. CL17/CL18 are completed; CL19/CL20 are in progress; CL21 remains conditional. Earlier cleanup reviews and the six original conditional tasks remain unchanged.
| Task | Priority | Dependencies |
| --- | --- | --- |

View file

@ -1,6 +1,6 @@
{
"schema_version": 1,
"plan_revision": "2026-10-26.82",
"plan_revision": "2026-10-26.83",
"repository_base": "b7aeca4",
"plan_status": "orchestrator_engine_cleanup_remaining_wave",
"execution_authorized": true,
@ -2854,7 +2854,7 @@
"epic": "E11",
"priority": "P2",
"severity": "Medium",
"status": "in_progress",
"status": "done",
"dependencies": [
"CL14"
],
@ -2880,9 +2880,15 @@
"completed_commit": null,
"blocker": null,
"release_gates": [],
"integration_state": "implementing",
"integration_state": "validated_pending_commit",
"integration_base": "580a6de7",
"completion_evidence": "orchestrator-engine-cleanup.md"
"completion_evidence": "orchestrator-engine-cleanup.md",
"reviewer": "/root",
"validation": {
"integration": "Root 60 passed, 519 assertions; implementer expanded103 plus architecture17",
"postgres": "12 passed, 92 assertions: stored preparation and strategy recovery on disposable database",
"review": "Root independently accepted; normalization bodies and baseline frozen hashes unchanged"
}
},
{
"id": "CL18",
@ -2914,10 +2920,10 @@
],
"assignment": "/root/implement_cl18",
"branch": "cleanup/cl18-native-helpers",
"completed_commit": null,
"completed_commit": "03518c8a",
"blocker": null,
"release_gates": [],
"integration_state": "validated_pending_commit",
"integration_state": "validated_committed",
"integration_base": "580a6de7",
"completion_evidence": "orchestrator-engine-cleanup.md",
"reviewer": "/root/review_cl18",
@ -2925,7 +2931,8 @@
"rust": "150 passed, 4 existing ignored",
"native": "28 passed, 227 assertions; rebuilt integrated addon",
"review": "Accepted by /root/review_cl18; root integration checks passed"
}
},
"implementation_commit": "03518c8a"
},
{
"id": "CL19",

View file

@ -57,3 +57,12 @@ CL16 implementation commit: `8546fce4`. Disposable test containers were stopped/
Replay and paper hosts now share private strict parsing and financial-view helpers. Host identities/errors stay separate; required nullable fields, reservation ordering, and paper intermediate versus final admission revisions are preserved. No financial kernel, wire version or economic policy changed.
Implemented by `/root/implement_cl18`, independently accepted by `/root/review_cl18`, integrated by `/root`. Local and root Rust gates: 150 passed, 4 existing ignored. Root rebuilt the integrated addon and ran native-bindings/native-replay/native-replay-report: 28 passed, 227 assertions. Added replay-to-paper checkpoint/view parity at each fixture boundary and nested/missing/null negatives. Explicit authored-test types, lint, format and diff checks passed. Sandbox-blocked child-worker test was stopped; the authorized rerun passed. Logs: `/tmp/stock-bot-engine-cleanup-20261026/cl18-root-{build,tests-accepted,cargo}.log`. Combined repository gate follows integration of the remaining independent stories.
CL18 implementation commit: `03518c8a`.
### CL17 — accepted
Historical storage now borrows only its logger, MongoDB and QuestDB readers. Removed uncalled market/performance writes, ad hoc DDL, PostgreSQL injection, mode state and empty shutdown; retained ModeManager/examples no longer give this reader a resource lifecycle. Provider routing, decoding, validation and synthetic calculations stay unchanged. Pinned baseline V1/V2 hashes and malformed-volume negatives protect retained data semantics.
Implemented by `/root/implement_cl17`, independently reviewed/integrated by `/root`. Root scoped historical/dataset/mode suite: 60 passed, 519 assertions; application types passed. Expanded implementer suite: 103 passed, 895 assertions; architecture rerun: 17 passed. Root disposable stored-dataset preparation plus strategy recovery: 12 passed, 92 assertions. Authored-test types/lint and diff checks passed. Three obsolete parameterized storage-lifecycle cases were removed with the nonexistent stages; actual execution/feed/strategy rollback cases remain. Initial worktree browser bundling read errors cleared on architecture rerun. Nine pre-existing lint findings in other historical test bodies and the already-broken no-argument legacy example were not widened into this task. Logs: `/tmp/stock-bot-engine-cleanup-20261026/cl17-{root-tests,root-types,postgres}.log`.