import type { AttemptStatus, OrchestrationTaskStatus, WorkerRole } from "../orchestration/contracts.ts"; import type { TaskRuntimeProjection } from "../orchestration/task-runtime.ts"; /** Keep task views within the same durable session fan-out ceiling as the worker fleet. */ export declare const MAX_WORKER_TASK_VIEW_ENTRIES: number; /** Bound model-facing serialization independently of task-count and field-count limits. */ export declare const MAX_WORKER_TASK_VIEW_BYTES: number; export interface WorkerTaskAttemptView { agentId?: string; status: AttemptStatus; reasonCode?: string; retry?: { retriesUsed: number; notBefore: string; }; } export interface WorkerTaskView { taskId: string; title: string; role: WorkerRole; status: OrchestrationTaskStatus; dependsOn: readonly string[]; verificationOfTaskId?: string; verificationOutcome?: { verifierTaskId: string; verdict: VerificationVerdict; reasonCode: string; }; latestAttempt?: WorkerTaskAttemptView; } type VerificationVerdict = "accepted" | "rejected" | "inconclusive"; export interface WorkerTaskSessionView { totalTasks: number; omittedTaskCount: number; tasks: readonly WorkerTaskView[]; } /** * Derive a provider-neutral, bounded team-task read model from the durable runtime projection. * Every returned field is selected explicitly so execution authority and provider diagnostics * cannot cross this read boundary through object spread. */ export declare function projectWorkerTaskSessionView(snapshot: TaskRuntimeProjection): WorkerTaskSessionView; export {}; //# sourceMappingURL=worker-task-view.d.ts.map