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

@ -16,6 +16,7 @@ import {
import { canonicalWorkerUrl } from './canonical-build';
import {
nativeWorkerMessageSchema,
nativeWorkerRequestSchema,
parseRetainedStrategyResult,
retainedStrategyRequestSchema,
type NativeWorkerRequest,
@ -34,6 +35,7 @@ export class NativeBacktestWorker {
onProgress: (progress: { progress: number; message: string }) => void
): Promise<string> {
signal.throwIfAborted();
request = nativeWorkerRequestSchema.parse(request);
if (this.active) {
throw new BacktestConflictError('A native backtest worker is already running');
}