/** * src/core/statuses.ts — chronicle lifecycle statuses and completion classifier. * Pure (no fs, no @earendil-works/*). Ported from the harness chronicle.ts. */ import type { ChronicleClassifyInput } from "./types.js"; /** Ordered chronological lifecycle states for a child delegation run. */ export declare const CHRONICLE_STATES: readonly ["created", "preflighted", "running", "assistant_turn_seen", "output_captured", "output_validated", "evidence_checked", "complete", "failed_preflight", "incomplete_no_assistant_turn", "incomplete_no_evidence", "failed_validation", "scope_violation", "timeout", "blocked", "planned", "agentic_failed"]; export type ChronicleState = (typeof CHRONICLE_STATES)[number]; /** States that represent a terminal (non-retryable) failure. */ export declare const TERMINAL_CHRONICLE_FAILURE_STATES: Set<"failed_preflight" | "incomplete_no_assistant_turn" | "incomplete_no_evidence" | "failed_validation" | "timeout" | "blocked" | "scope_violation" | "agentic_failed" | "running" | "complete" | "created" | "preflighted" | "assistant_turn_seen" | "output_captured" | "output_validated" | "evidence_checked" | "planned">; /** * Classify a chronicle completion state from raw run signals. Uses the same * precedence order as the harness. Returns a body-free structured summary. */ export declare function classifyChronicleCompletion(input: ChronicleClassifyInput): Record;