import type { DecisionDefinition } from './types.js'; export type DagLivePattern = 'shortlist-rerank' | 'taxonomy-beam' | 'extractor-verifier-fallback'; export declare const DAG_LIVE_PATTERNS: readonly DagLivePattern[]; export declare const dagLiveDigest: (value: unknown) => `sha256:${string}`; export interface DagLiveTask { id: string; pattern: DagLivePattern; slice: string; label: string; /** Model-visible synthetic subject. The label is never part of it. */ subject: Record; } export interface DagLiveWorkload { schemaVersion: 'dag-live-workload/v1'; issue: '#2686'; syntheticOnly: true; generator: 'lcg-1664525-1013904223/v1'; seed: number; tasksPerPattern: number; tasks: DagLiveTask[]; } type Leaf = { id: string; name: string; cues: readonly string[]; }; /** Fixed two-level support taxonomy: two branches of five leaves each. */ export declare const DAG_LIVE_TAXONOMY: Readonly>; export declare const DAG_LIVE_STATUSES: readonly [{ readonly id: "delivered"; readonly name: "Delivered"; readonly cue: "was handed to the recipient and signed for"; }, { readonly id: "in-transit"; readonly name: "In transit"; readonly cue: "left the regional hub and is on the way"; }, { readonly id: "delayed"; readonly name: "Delayed"; readonly cue: "is held up by a missed connection and will arrive later than planned"; }, { readonly id: "returned"; readonly name: "Returned to sender"; readonly cue: "was refused at the door and is going back to the sender"; }, { readonly id: "lost"; readonly name: "Lost"; readonly cue: "cannot be located after a warehouse search and has been declared lost"; }, { readonly id: "awaiting-pickup"; readonly name: "Awaiting pickup"; readonly cue: "is waiting at the parcel locker for the recipient to collect it"; }]; export declare const DAG_LIVE_SEED = 9862; export declare const DAG_LIVE_TASKS_PER_PATTERN = 100; /** Pure generator for the preregistered workload. Same seed, same bytes. */ export declare function generateDagLiveWorkload(seed?: number, tasksPerPattern?: number): DagLiveWorkload; /** * Definitions asked by each arm for one task, keyed by node ID. `flat` is the single-call * baseline; the other keys are graph nodes. Host-local nodes (taxonomy, select) ask nothing. */ export declare function dagLiveDefinitions(task: DagLiveTask): Record; /** Preregistered analysis, economics and stop rules. Changing any value changes the digest. */ export declare const DAG_LIVE_ANALYSIS: { readonly qualityMetric: "exact-match-accuracy"; readonly pairing: "task-id"; readonly armOrder: "alternating-by-task-index"; readonly nonInferiority: { readonly method: "newcombe-10"; readonly levelBps: 9000; readonly marginBps: -1000; }; readonly economics: { readonly maxCallRatio: 3; readonly maxP95LatencyRatio: 4; readonly maxExtraTokensPerTaskUpper: 8000; readonly bootstrap: { readonly levelBps: 9000; readonly seed: 9862; readonly resamples: 20000; }; }; /** Call ratios (economics and the stop rule) count first attempts of usable pairs; retries are charged and reported. */ readonly stopRules: { readonly maxPatternCallRatio: 3; readonly callRatioBasis: "first-attempt-calls-of-usable-pairs"; readonly budgetStopFraction: 0.8; readonly speculativeAction: "stop-run"; }; /** * Jev returns occasional non-success outcomes (about 2-3% invalid output in the #2613 study). A retryable * outcome gets at most one retry, reserved and charged like any call; a second failure makes the TASK a * measurement failure in both arms, excluded from the paired table. More than the tolerated fraction of a * pattern's tasks makes that pattern insufficient evidence (and it is abandoned), not a run stop. * Identity, accounting, budget and credential anomalies still stop the run at once. */ readonly providerFailurePolicy: { readonly retriesPerCall: 1; readonly retryCharged: true; readonly retryableOutcomes: readonly ["provider-invalid-output", "provider-timeout", "provider-network-transient", "provider-rate-limited", "provider-overloaded", "provider-service-error", "unknown-usage"]; readonly measurementFailure: "task-excluded-from-both-arms"; readonly maxMeasurementFailureFractionPerPattern: 0.05; readonly beyondTolerance: "pattern-insufficient-evidence"; readonly immediateStops: readonly ["served-model-mismatch", "usage-exceeded-reservation", "missing-request-id", "budget", "credential-or-authorization", "data-boundary-denied", "invalid-request", "adapter-exception", "any-other-provider-outcome"]; }; readonly perCallTokenBound: 4000; readonly concurrency: 1; }; export interface DagLivePreregistration { schemaVersion: 'dag-live-preregistration/v1'; issue: '#2686'; workloadDigest: `sha256:${string}`; definitionsDigest: `sha256:${string}`; tasksPerPattern: number; arms: { baseline: 'flat-single-call-flowgraph/v1'; candidate: 'decision-graph-template/v1'; }; analysis: typeof DAG_LIVE_ANALYSIS; promotionOwner: string; automaticPromotion: false; } export declare function dagLivePreregistration(workload: DagLiveWorkload, promotionOwner?: string): DagLivePreregistration; export {}; //# sourceMappingURL=graph-live-workload.d.ts.map