export interface TaskIdentityRecord { projectRoot: string; projectId: string; hostId: string; sessionId: string; turnId: string; requestId: string; executionId: string; } export interface TaskIntentArtifactRecord extends TaskIdentityRecord { version: number; supersedesHash?: string; rawPrompt: string; normalizedPrompt: string; command?: string; slashArgs: string[]; activeSkill?: string; intent: string; action: string; entities: string[]; targetAnchors: string[]; policyConstraints: string[]; classificationEvidence: Array>; sourceEventIds: string[]; sourceHash: string; artifactHash: string; createdAt: number; } export interface ChannelQueryPlanRecord extends TaskIdentityRecord { sourceIntentHash: string; planHash: string; code: Array>; memory: Array>; knowledge: Array>; generatedBy: 'deterministic' | 'host_semantic' | 'hybrid'; degradation?: Record; createdAt: number; } export interface CanonicalSemanticTaskWrite { revision: number; activation: RuntimeActivationSnapshotV1; context: SemanticExecutionContext; definition: TaskDefinitionV1; } export type ToolNameResolutionStatus = 'canonical' | 'alias' | 'unsupported'; export interface ToolNameResolutionRecord extends TaskIdentityRecord { id: string; sourceHash: string; requestedName: string; canonicalName?: string; projectedName?: string; status: ToolNameResolutionStatus; attempt: number; capabilityMechanism?: string; reason?: string; createdAt: number; } export interface TerminalTransitionRecord extends TaskIdentityRecord { sequence: number; fromState?: string; toState: string; receiptId: string; sourceReceiptId?: string; reason: string; payload: Record; createdAt: number; } export interface TranscriptCheckpointRecord { id: string; projectRoot: string; hostId: string; sessionId: string; sourcePath: string; sourceHash: string; byteOffset: number; eventCount: number; createdAt: number; } export declare function stableSemanticJson(value: unknown): string; export declare function mapTaskIntentArtifactRow(row: Record): TaskIntentArtifactRecord; export declare function mapChannelQueryPlanRow(row: Record): ChannelQueryPlanRecord; export declare function mapToolNameResolutionRow(row: Record): ToolNameResolutionRecord; export declare function mapTerminalTransitionRow(row: Record): TerminalTransitionRecord; export declare function mapTranscriptCheckpointRow(row: Record): TranscriptCheckpointRecord; export declare function assertTaskIdentity(record: TaskIdentityRecord): void; import type { RuntimeActivationSnapshotV1, SemanticExecutionContext, TaskDefinitionV1 } from '@devflow-tools/sdk';