export interface TaskRuntimeIdentityRecord { projectRoot: string; projectId: string; hostId: string; sessionId: string; turnId: string; requestId: string; executionId?: string; } export interface TaskRuntimeEventRecord { schemaVersion: 'task-runtime-event.v1'; producer: string; producerVersion: string; eventId: string; sequence: number; identity: TaskRuntimeIdentityRecord; taskSpecHash: string; kind: string; payload: Record; createdAt: number; } export type TaskRuntimeChannelRequirement = 'required' | 'optional' | 'not_required'; export type TaskRuntimeChannelStatus = 'satisfied' | 'intentional_abstention' | 'empty_valid' | 'degraded' | 'failed'; export type TaskRuntimeObligationState = 'pending' | 'satisfied' | 'degraded' | 'failed'; export interface TaskRuntimeChannelRecord { requirement: TaskRuntimeChannelRequirement; status: TaskRuntimeChannelStatus; reasonCode: string; evidenceIds: string[]; material: boolean; } export interface TaskRuntimeObligationRecord { requirement: TaskRuntimeChannelRequirement; state: TaskRuntimeObligationState; receiptId?: string; reasonCode?: string; } export interface TaskRuntimeSnapshotRecord { schemaVersion: 'task-runtime-snapshot.v1'; producer: string; producerVersion: string; identity: TaskRuntimeIdentityRecord; taskSpecHash: string; lastEventSequence: number; artifacts: { requiredIdentityIds: string[]; resolvedIdentityIds: string[]; ambiguousIdentityIds: string[]; }; channels: Partial>; contextReceiptId?: string; action: TaskRuntimeObligationRecord; verification: TaskRuntimeObligationRecord; memory: TaskRuntimeObligationRecord; durableWorkIds: string[]; terminal: 'running' | 'retry_pending' | 'completed' | 'completed_with_degradation' | 'failed'; runtimeHealth: 'healthy' | 'degraded' | 'unavailable'; snapshotHash: string; updatedAt: number; } export declare function stableTaskRuntimeJson(value: unknown): string; export declare function stableTaskRuntimeHash(value: unknown): string; export declare function mapTaskRuntimeEventRow(row: Record): TaskRuntimeEventRecord; export declare function mapTaskRuntimeSnapshotRow(row: Record): TaskRuntimeSnapshotRecord;