import type { ReconstructResult } from '@cleocode/contracts'; import type { ReconstructOptions } from '@cleocode/contracts/audit'; /** * Reconstruct exact task references and containing tags from bounded local Git reads. * @param taskId - Exact uppercase task token (for example T994), never a grep substring. * @param repoRoot - Explicit repository root, otherwise the captured caller scope or cwd. * @param options - Optional limits which cannot extend an inherited execution deadline. * @returns Existing lineage fields plus mandatory assessment coverage on every new result. * @remarks Reads commit messages and parents once, then propagates ancestry in topological * order. Git failures, truncated output, shallow history and cancellation are explicit. * No remote fetch or writes occur. Numeric child inference is retained for compatibility * and is not proof of task ownership. CPU stages yield cooperatively; this is not preemption. * @example * ```ts * const lineage = await reconstructLineage('T994', '/project', {}); * if (lineage.assessment?.coverage !== 'current') return; * ``` */ export declare function reconstructLineage(taskId: string, repoRoot?: string, options?: ReconstructOptions): Promise; //# sourceMappingURL=reconstruct.d.ts.map