feat(research): cut over canonical runtime and enforce agent budgets

This commit is contained in:
Boki 2026-10-24 16:47:19 -04:00
parent ab08db82fd
commit bbf0dd4453
103 changed files with 6138 additions and 3112 deletions

View file

@ -1,13 +1,14 @@
import type { BacktestRunner } from '../src/backtest/BacktestRunner';
import type { BacktestEngine } from '../src/backtest/BacktestEngine';
import { BacktestConfigSchema, type BacktestConfig } from '../src/types';
/**
* Call with the application's already-composed TypeScript runner and real historical range.
* Preserved offline prototype for older strategy algorithms; not a production research route.
* Importing this example starts no services, loads no model and submits no work.
* The caller owns runner/service shutdown; the ordinary runner persists the actual result.
* A standalone prototype engine owns this demonstration. It does not create durable research results.
* Production research uses approved retained versions and the canonical runner.
*/
export function runMultiStrategyBacktest(
runner: Pick<BacktestRunner, 'runBacktest'>,
runner: Pick<BacktestEngine, 'runBacktest'>,
range: Pick<BacktestConfig, 'symbols' | 'startDate' | 'endDate'>
) {
const request = BacktestConfigSchema.parse({