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,6 +1,10 @@
/** Prepared inputs only: this contract does not admit runs or certify out-of-sample evidence. */
import { z } from 'zod';
import type { CanonicalBacktestAnalytics, HistoricalDatasetManifestV2 } from '@stock-bot/types';
import type {
CanonicalBacktestAnalytics,
HistoricalDatasetManifestV2,
ResearchActor,
} from '@stock-bot/types';
import type { CanonicalRunRequest } from './canonical-research';
import {
experimentInputSchema,
@ -123,7 +127,7 @@ export interface ChronologicalValidationSelection {
previewHash: string;
selectionHash: string;
createdAt: string;
principal: 'operator' | 'service';
principal: ResearchActor;
/** Current original-version approval for the new holdout admissions. */
reviewId: string;
winner: ExperimentCandidate;
@ -139,7 +143,7 @@ export interface ChronologicalValidationReport {
selectionHash: string;
reportHash: string;
createdAt: string;
principal: 'operator' | 'service';
principal: ResearchActor;
/** Independent reset accounts. This is not a continuous portfolio equity curve. */
reset: 'initial-capital-empty-positions';
/** All training candidates in ascending original candidate index. */
@ -155,7 +159,7 @@ export interface ChronologicalValidationActionReceipt {
previewHash: string;
selectionHash: string;
createdAt: string;
principal: 'operator' | 'service';
principal: ResearchActor;
}
export interface ValidationActionCapability {
available: boolean;