feat(research): cut over canonical runtime and enforce agent budgets
This commit is contained in:
parent
ab08db82fd
commit
bbf0dd4453
103 changed files with 6138 additions and 3112 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue