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,4 +1,5 @@
import { z } from 'zod';
import { researchActorSchema } from '@stock-bot/stock-config/research';
import { canonicalStrategyJson } from '@stock-bot/stock-config/strategy';
import {
MAX_WALK_FORWARD_RUNS,
@ -173,7 +174,7 @@ const report = z.object({
previewHash: hash,
reportHash: hash,
createdAt: z.string().min(1),
principal: z.enum(['operator', 'service']),
principal: researchActorSchema,
reset: z.literal('initial-capital-empty-positions'),
segments: z
.array(
@ -395,7 +396,7 @@ export const walkForwardApi = {
previewHash: hash,
reportHash: hash,
createdAt: z.string().min(1),
principal: z.enum(['operator', 'service']),
principal: researchActorSchema,
})
.parse(envelope(body, 'receipt'));
const value = parseWalkForwardDetail(envelope(body, 'walkForward')),