Centralize strategy contracts and share indicator calculations

This commit is contained in:
Boki 2026-10-21 15:50:39 -04:00
parent 366d39001b
commit 4207bf2c1c
25 changed files with 1323 additions and 477 deletions

View file

@ -11,7 +11,10 @@ function send(message: NativeWorkerMessage | { invalid: boolean }): Promise<void
process.once('message', async (input: unknown) => {
const { config } = nativeWorkerRequestSchema.parse(input);
const behavior = config.config?.fixtureBehavior;
// Fixture controls are run labels, not unsupported production strategy parameters.
const behavior = config.name?.startsWith('fixture:')
? config.name.slice('fixture:'.length)
: undefined;
if (!behavior) {
// The same adapter can recover and run the actual Rust engine after a failed worker.
await import('../../apps/stock/orchestrator/src/backtest/native-worker');