Refactor execution boundaries and add durable strategy recovery

This commit is contained in:
Boki 2026-10-21 12:23:43 -04:00
parent d6b09eb635
commit 694c48bbdb
36 changed files with 3077 additions and 491 deletions

View file

@ -216,11 +216,8 @@ describe('one simulation execution gateway', () => {
{} as ModeManager,
execution
);
await strategy.initialize();
await strategy.start();
// Inject only the strategy fixture; market delivery, gateway, accounting, and native projection are real.
Object.defineProperty(manager, 'strategies', { value: new Map([['strategy', strategy]]) });
Object.defineProperty(manager, 'activeStrategies', { value: new Set(['strategy']) });
await manager.attachStrategy(strategy);
cleanup.push(() => manager.shutdown());
const first = quote('1');
const second = quote('2', 100, 100, start + 1);