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,5 +1,6 @@
/** A bounded collection of existing chronological validations, not a new execution engine. */
import { z } from 'zod';
import type { ResearchActor } from '@stock-bot/types';
import {
chronologicalValidationInputSchema,
type ChronologicalValidationDetail,
@ -70,7 +71,7 @@ export interface WalkForwardReport {
previewHash: string;
reportHash: string;
createdAt: string;
principal: 'operator' | 'service';
principal: ResearchActor;
reset: 'initial-capital-empty-positions';
/** Every frozen window in ascending index; absent evidence cannot be omitted. */
segments: WalkForwardSegment[];
@ -107,7 +108,7 @@ export interface WalkForwardReceipt {
previewHash: string;
reportHash: string;
createdAt: string;
principal: 'operator' | 'service';
principal: ResearchActor;
}
export interface WalkForwardActionResult {
receipt: WalkForwardReceipt;