refactor(orchestrator): require canonical research contracts (CL14)
This commit is contained in:
parent
bc2b8a89da
commit
21666242f4
37 changed files with 151 additions and 319 deletions
|
|
@ -82,15 +82,8 @@ describe('canonical production workflow and legacy retirement', () => {
|
|||
}
|
||||
);
|
||||
test('legacy adapter and worker envelopes refuse before mutable storage or child process access', async () => {
|
||||
let reads = 0;
|
||||
const engine = new RustBacktestAdapter({
|
||||
logger,
|
||||
storage: {
|
||||
async getHistoricalBars() {
|
||||
reads++;
|
||||
return [];
|
||||
},
|
||||
},
|
||||
});
|
||||
await expect(engine.runBacktest(legacy)).rejects.toThrow(LEGACY_EXECUTION_RETIRED);
|
||||
const request = { type: 'run', config: legacy, data: [] };
|
||||
|
|
@ -98,7 +91,6 @@ describe('canonical production workflow and legacy retirement', () => {
|
|||
await expect(
|
||||
new NativeBacktestWorker().execute(request as never, new AbortController().signal, () => {})
|
||||
).rejects.toThrow();
|
||||
expect(reads).toBe(0);
|
||||
expect(engine.getStatus().isRunning).toBe(false);
|
||||
await engine.shutdown();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue