export type WorkflowSurface = "queue" | "plan" | "memory"; export interface WorkflowPlanCandidate { title: string; status: string; updatedAt?: string; } export interface CurrentFocus { kind: "plan" | "task" | "none"; label: string; } export interface OperatingBrief { currentFocus: string; recommendedSurface: "QUEUE" | "PLAN" | "MEMORY"; why: string; nextAction: string; } export interface StructuredTask { id: string; title: string; status: "backlog" | "in_progress" | "done" | "cancelled"; planId?: string; priority?: "critical" | "high" | "medium" | "low"; dependsOn?: string[]; } export interface StructuredPlan { id: string; title: string; status: "proposed" | "planned" | "in_progress" | "blocked" | "done" | "archived"; } /** * Derive an operating brief from structured task and plan data. */ export declare function deriveOperatingBrief(input: { tasks: StructuredTask[]; plans: StructuredPlan[]; }): OperatingBrief; export declare function chooseCurrentFocus(input: { plans: WorkflowPlanCandidate[]; inProgressTasks: string[]; backlogTasks: string[]; }): CurrentFocus; export declare function recommendSurface(input: { hasPlanSignals: boolean; hasDurableKnowledgeSignal: boolean; itemLabel?: string; }): { surface: WorkflowSurface; why: string; }; export declare function safeTime(value?: string): number; //# sourceMappingURL=workflow-policy.d.ts.map