/** * A single task entry parsed from JSONL. */ export type TaskStatus = "pending" | "in_progress" | "completed" | "cancelled" | "blocked"; export type SpawnMethod = "l1" | "l2" | "l3"; export interface TaskEntry { id: string; title: string; scope?: string; /** M2: declared read-only scope (default = empty; never conflicts). */ read_scope?: string; /** M2: declared authoritative write set (default = scope). */ write_scope?: string; /** M2: declared artifact paths (default = write_scope). */ artifact_scope?: string; depends_on: string[]; verification?: string[]; priority: "high" | "medium" | "low"; status: TaskStatus; /** Number of prior L2 Normal-failure retries (default cap: 3). */ retry_count?: number; spawn_method?: SpawnMethod; estimated_files?: number; design_context?: string; assigned_to?: string; } /** * Validate a tasks.jsonl file. * * Reads the file, parses each JSONL line, validates required fields, * checks value constraints, verifies dependency references, and detects cycles. * * @param tasksJsonlPath - Absolute path to the tasks.jsonl file * @returns Object with `valid` boolean and `errors` string array */ export declare function validateTasksDag(tasksJsonlPath: string): Promise<{ valid: boolean; errors: string[]; }>; /** * Parse a tasks.jsonl file and return parsed tasks plus any errors. * Unlike validateTasksDag, this does NOT run DAG validation — it only parses * each JSONL line into a TaskEntry. * * @param jsonlPath - Absolute path to the tasks.jsonl file * @returns Object with `tasks` array and `errors` string array */ export declare function parseTasksJsonl(jsonlPath: string): Promise<{ tasks: TaskEntry[]; errors: string[]; }>;