refactor(orchestrator): require canonical research contracts (CL14)

This commit is contained in:
Boki 2026-10-26 19:22:01 -04:00
parent bc2b8a89da
commit 21666242f4
37 changed files with 151 additions and 319 deletions

View file

@ -2706,7 +2706,7 @@
"epic": "E11",
"priority": "P1",
"severity": "High",
"status": "in_progress",
"status": "done",
"dependencies": [],
"decision_dependencies": [],
"task_file": "backlog/tasks/CL14.md",
@ -2734,10 +2734,17 @@
"completed_commit": null,
"blocker": null,
"release_gates": [],
"integration_state": "not_started",
"integration_state": "validated_pending_commit",
"integration_base": "700ee09c",
"completion_evidence": "orchestrator-engine-cleanup.md",
"worktree": "/tmp/stock-bot-engine-cleanup-20261026/cl14"
"worktree": "/tmp/stock-bot-engine-cleanup-20261026/cl14",
"reviewed_by": "/root (independent of implement_cl14)",
"review_notes": "Accepted required canonical interfaces and preserved retirement/control behavior. Root validation:91 focused tests,33 canonical/legacy durable PostgreSQL tests; types/contracts/build pass.",
"validation": {
"focused": "91 pass,6888 assertions across6 files",
"postgres": "33 pass,181 assertions across canonical-durable-backtest and durable-backtest; disposable stock_bot_safety database/Redis15",
"static": "Orchestrator build, application typecheck, negative contract fixtures and diff checks pass"
}
},
{
"id": "CL15",
@ -2775,10 +2782,10 @@
],
"assignment": "/root/implement_cl15",
"branch": "cleanup/cl15-rust-scaffolding",
"completed_commit": null,
"completed_commit": "bc2b8a89",
"blocker": null,
"release_gates": [],
"integration_state": "validated_pending_commit",
"integration_state": "validated_committed",
"integration_base": "700ee09c",
"completion_evidence": "orchestrator-engine-cleanup.md",
"worktree": "/tmp/stock-bot-engine-cleanup-20261026/cl15",
@ -2789,7 +2796,8 @@
"focused": "75 pass,6625 assertions; bindings/terminal-equity/market-data/architecture",
"rust": "150 pass,4 ignored",
"diff": "git diff --check passed"
}
},
"implementation_commit": "bc2b8a89"
},
{
"id": "CL16",

View file

@ -30,3 +30,11 @@ Implementation records will be appended here as tasks pass review and validation
Removed 24 unused adapter/alternate-architecture files; moved two uncompiled reporting prototypes byte-for-byte into `engine/reference/legacy-reporting/` with explicit limitations. `MIGRATION.md` records every removal/preservation and current boundaries. Only compiled-code change removes the unused adapter module; canonical finance, legacy algorithms and native exports are unchanged.
Implemented by `/root/implement_cl15`; independently reviewed/integrated by `/root`. Both preserved files were compared against baseline bytes. Root rebuilt the addon and ran `bun test scripts/test/native-bindings.test.ts test/integration/native-terminal-equity.test.ts test/integration/native-market-data.test.ts scripts/test/architecture.test.ts`: 75 passed. `cargo test -p engine --lib --offline`: 150 passed, 4 ignored. `git diff --check` passed. The sandbox initially prevented NAPI from spawning `/bin/sh`; the authorized rebuild succeeded. No performance claim or stored-artifact migration.
### CL14 — accepted
The durable runner now requires canonical engine/repository capabilities. Legacy playback uses an explicit separate interface; concrete compatibility methods and historical formats remain. Removed unused adapter storage and runner engineName. Existing pause/resume/speed routes keep their production rejection behavior without SQL control writes. Negative type fixtures reject missing canonical capabilities.
Implemented by `/root/implement_cl14`; independently reviewed/integrated by `/root`. Root rebuilt the orchestrator and passed application typecheck/contract tests. Focused runner/workflow/worker/pool/isolation/architecture suite: 91 passed, 6,888 assertions. Disposable PostgreSQL canonical and retained durable-run suites: 33 passed, 181 assertions. No SQL/native/economic policy changes. Worker tests required execution outside the sandbox; two transient worktree Bun dependency-reading failures passed on separate reruns and root integration. Legacy-only provider-spy assertions were removed with the unused injection, not replaced with fabricated coverage. Full combined repository gate follows CL16 integration.
CL15 implementation commit: `bc2b8a89`.