/** * src/core/stop-conditions.ts — pure stop-condition classifiers and oracle/runaway * helpers. No fs, no @earendil-works/*. Ported from the harness chronicle.ts. */ import type { ChildStopCondition, ChildStopConditionInput, DelegationTelemetryInput, RunawayGuardInput } from "./types.js"; /** True when the output carries a recognised evidence marker. */ export declare function outputHasEvidenceMarker(output: string | undefined): boolean; /** Detect oracle FAIL / no_ship markers in an output string. */ export declare function detectOracleFail(output: string | undefined): { oracleFailed: boolean; noShip: boolean; stopCondition: ChildStopCondition; }; /** Summarize a runaway-guard evaluation into a body-free structured record. */ export declare function summarizeRunawayGuard(input?: RunawayGuardInput): Record; /** * Classify the child stop condition from raw run signals. Precedence order is * ported exactly from the harness. Returns a body-free structured summary. */ export declare function classifyChildStopCondition(input: ChildStopConditionInput): Record; /** Classify a delegation telemetry record into a chronicle completion summary. */ export declare function classifyDelegationChronicleCompletion(input: DelegationTelemetryInput): Record;