import type { RuntimeAttestationV3 } from "./contract.js"; import { EVENT_V3_SAFETY_REDUCER_BUILD, type GenerationSafetyStateV3, type SafetyProjectionDiagnosticV3, type SafetyProjectionV3, type WaitProjectionV3 } from "./projection.js"; import { type ReadLedgerV3Result } from "./reader.js"; export declare const EVENT_V3_COORDINATION_VIEW_VERSION: 1; export interface CoordinationGenerationViewV3 { contract_major: 2; instance_id: string; session_id: string; generation_id: string; root_id: string; run_id?: string; workflow_id?: string; workflow_agent_id?: string; identity_id?: string; runtime_attestation: RuntimeAttestationV3; parent_generation_id?: string; delegation_id?: string; delegation_role?: string; phase: "live" | "terminal"; activity: "working" | "needs_input" | "idle" | "terminal"; task_state?: string; task_state_updated_at?: string; lifecycle_state?: string; lifecycle_state_updated_at?: string; presence_state?: string; presence_state_updated_at?: string; started_at: string; last_observed_at: string; last_event_id: string; source_position: { segment_ordinal: number; byte_offset: number; }; waits: WaitProjectionV3[]; files_touched: string[]; progress_count: number; last_context_event_id?: string; provisional_termination?: GenerationSafetyStateV3["provisional_termination"]; terminal?: GenerationSafetyStateV3["terminal"]; evidence_complete: boolean; authority_eligible: boolean; } export interface CoordinationViewV3 { projection_version: typeof EVENT_V3_COORDINATION_VIEW_VERSION; contract_major: 2; reducer_build_id: typeof EVENT_V3_SAFETY_REDUCER_BUILD; source_complete: boolean; /** True when no unscoped authority diagnostic can affect every generation. */ authority_safe: boolean; diagnostics: SafetyProjectionDiagnosticV3[]; global_diagnostics: SafetyProjectionDiagnosticV3[]; diagnostics_by_generation: Record; instances: Record; terminal_generations: Record; delegations: SafetyProjectionV3["delegations"]; decisions: SafetyProjectionV3["decisions"]; health: SafetyProjectionV3["health"]; } export declare class CoordinationViewV3Error extends Error { readonly diagnostics: SafetyProjectionDiagnosticV3[]; constructor(diagnostics: SafetyProjectionDiagnosticV3[]); } /** Read the complete V3 catalog and derive the disposable coordination view. */ export declare function readCoordinationViewV3(coordRoot: string): CoordinationViewV3; /** * Build the one privacy-safe lifecycle view shared by heartbeat, status, * finalization, web, and Codec adapters. This function performs no writes. */ export declare function projectCoordinationViewV3(read: ReadLedgerV3Result): CoordinationViewV3; /** Refuse authority decisions while still allowing callers to render diagnostics. */ export declare function requireAuthoritySafeCoordinationViewV3(view: CoordinationViewV3): CoordinationViewV3; //# sourceMappingURL=coordination-view.d.ts.map