/** * Continuation-handoff advisory — a PURE, deterministic analyzer over a chained * scene plan, plus the failure atlas. No I/O, no Date, no Math.random. * * Harvested from the MIT `Emily2040/seedance-2.0` repo (`references/failure-atlas.md` * + the chain-depth rule in model-mechanics #5, pinned commit 63b32dc): * - errors compound across output-seeded chained generations — the ~4th–5th * link visibly drifts, so warn and prompt a re-anchor / intentional cut; * - a symptom -> likely cause -> repair-variable atlas for diagnosing a failed * continuation. * * Advisory by construction: `analyzeChainContinuity` returns warnings; nothing * here changes the chain engine, render behavior, or spend. */ export interface FailureAtlasEntry { symptom: string; cause: string; repair: string; } /** The 12 failure-atlas rows, verbatim from references/failure-atlas.md. */ export declare const CONTINUATION_FAILURE_ATLAS: readonly FailureAtlasEntry[]; /** * Filter the atlas by a keyword over symptom/cause/repair (case-insensitive). * No query → every row (a fresh array copy). */ export declare function diagnoseContinuation(query?: string): FailureAtlasEntry[]; export interface ChainSceneInput { sceneIndex: number; /** The scene this one seeds from (its rendered output), or null when it re-anchors. */ chainedFrom: number | null; } export type ContinuationAdvisoryCode = 'chain-depth-reanchor'; export interface ContinuationAdvisory { code: ContinuationAdvisoryCode; severity: 'warning'; message: string; } export declare const DEFAULT_MAX_CHAIN_DEPTH = 4; /** * Chain-depth advisory. Each scene's depth is its position within an unbroken * output-seeded run: `chainedFrom === null` (or an unseen parent) re-anchors to * depth 1; otherwise depth is the parent's depth + 1. Scenes are processed in * order so a parent is already memoized — no recursion, no cycles. Emits ONE * advisory naming the scenes at or beyond `maxChainDepth`. */ export declare function analyzeChainContinuity(scenes: ChainSceneInput[], opts?: { maxChainDepth?: number; }): ContinuationAdvisory[]; //# sourceMappingURL=continuation-handoff.d.ts.map