export type DelegationStatus = 'queued' | 'running' | 'completed' | 'failed' | 'canceled'; export type DelegationKind = 'task' | 'review'; export interface PartnerDelegation { id: string; /** Missing on legacy records and therefore treated as a task delegation. */ kind?: DelegationKind; taskId: string; initiatedBy: 'user' | 'companion'; fromCompanionId?: string; toCompanionId: string; request: string; status: DelegationStatus; attempts?: number; nextAttemptAt?: number; lastAttemptAt?: number; parentSessionId?: string; createdAt: number; startedAt?: number; completedAt?: number; resultSummary?: string; /** Durable execution output awaiting board commit; retries must not invoke the executor again. */ pendingResult?: { output: string; runId: string; workRevision: number; }; executionRunId?: string; executionSessionId?: string; continuationScheduleId?: string; error?: string; /** Resource snapshot at claim time; retained until the actual executor exits. */ resourceKeys?: string[]; /** Automatic acceptance is distinct from user-requested advisory review. */ automaticReview?: boolean; reviewWorkRevision?: number; } export declare function delegationKind(value: PartnerDelegation): DelegationKind; export declare function delegationPending(value: PartnerDelegation): boolean; export interface PartnerDirectoryEntry { id: string; name: string; role: string; description: string; capabilities: string[]; enabledSkills: Array<{ id: string; name: string; }>; availability: 'available' | 'busy' | 'offline'; } //# sourceMappingURL=domain.d.ts.map