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
|
|
@ -3,10 +3,7 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|||
import { Link, useNavigate, useParams } from 'react-router-dom';
|
||||
import { isCanonicalRunResult } from '@stock-bot/stock-config/canonical-research';
|
||||
import { SaveFindingDialog } from '@/features/research/components/SaveFindingDialog';
|
||||
import {
|
||||
catalogExecutionReason,
|
||||
supportedLegacyStrategy,
|
||||
} from '@/features/strategies/components/StrategySelection';
|
||||
import { catalogExecutionReason } from '@/features/strategies/components/StrategySelection';
|
||||
import { useWebSocket } from '@/hooks/useWebSocket';
|
||||
import { ArchiveBacktestDialog } from './components/ArchiveBacktestDialog';
|
||||
import { BacktestConfiguration } from './components/BacktestConfiguration';
|
||||
|
|
@ -77,9 +74,7 @@ export function BacktestDetailPageV2() {
|
|||
? runResults
|
||||
: null;
|
||||
const catalog = Boolean(backtest?.strategyVersionId) || backtest?.strategy === 'catalog';
|
||||
const unsupportedLegacy = Boolean(
|
||||
backtest && !catalog && !supportedLegacyStrategy(backtest.strategy)
|
||||
);
|
||||
const unsupportedLegacy = Boolean(backtest && !catalog);
|
||||
const executionUnavailable = catalog ? !canonicalCapability?.available : unsupportedLegacy;
|
||||
const canSubmit = (!archived && !executionUnavailable) || hasPendingSubmission;
|
||||
|
||||
|
|
@ -572,8 +567,8 @@ export function BacktestDetailPageV2() {
|
|||
)}
|
||||
{unsupportedLegacy && (
|
||||
<p role="status" className="mb-4 text-sm text-text-secondary">
|
||||
This legacy strategy is not supported for new submissions by this form. Its existing
|
||||
history remains readable.
|
||||
Legacy execution is retired. Create a catalog backtest to run with retained canonical
|
||||
inputs. Its existing history remains readable.
|
||||
</p>
|
||||
)}
|
||||
{archived && (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue