import type { BacktestRunResult } from '@stock-bot/types'; /** Display saved evidence only; the mutable definition remains a separate settings view. */ export function ResultProvenance({ result }: { result: BacktestRunResult }) { const provenance = result.provenance; const config = provenance?.configurationSource === 'stored-snapshot' ? result.config : null; return (

Saved run evidence

Research only · Unverified economics

Completion is not financial validation. Do not use this result alone as evidence for promotion to paper or live trading.

Known limitations: same-bar execution, funding constraints, strategy attribution and metric conventions.

Configuration, provenance and simulation limitations
Run
{result.runId}
Recorded engine
{result.engine === 'legacy' ? 'Unknown' : result.engine}
Engine build
{provenance?.engineVersion ?? 'Unknown — not recorded'}
Financial semantics version
{provenance?.economicsVersion ?? 'Unknown — not recorded'}
Strategy artifact
{provenance?.strategyArtifactHash ?? 'Unknown — not recorded'}
Dataset hash
{provenance?.datasetHash ?? 'Unknown — not recorded'}
{config ? (

Stored run configuration

Exact saved snapshot, including parameters and data policy when recorded. This is not the current editable definition.

                {JSON.stringify(config, null, 2)}
              
) : (

Stored run configuration: Unknown. Current strategy settings and defaults are not historical evidence.

)} {provenance ? (
    {provenance.limitations.map(limitation => (
  • {limitation.message}
  • ))}
) : (

Provenance metadata is unavailable from this API. Execution timing, funding, strategy attribution and metric conventions are unverified.

)}
); }