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

@ -13,6 +13,7 @@ import {
type ExperimentPreview,
type ExperimentSubmission,
} from '@stock-bot/stock-config/experiments';
import { researchActorSchema } from '@stock-bot/stock-config/research';
import {
assertStrategyJsonText,
builtinStrategySelectionSchema,
@ -58,7 +59,7 @@ export function experimentId(input: unknown): string {
export function experimentReceipt(input: { principal: string; key: string }) {
const parsed = z
.object({
principal: z.enum(['operator', 'service']),
principal: researchActorSchema,
key: z.string().regex(/^[\x21-\x7e]{1,200}$/),
})
.strict()