/** * RCASD Pipeline ADR Auto-linking (T4942, T4947) * * When an architecture_decision stage completes for a pipeline task, this * module automatically: * 1. Finds ADRs in .cleo/adrs/ that reference the task in Related Tasks * 2. Upserts those ADRs into architecture_decisions DB * 3. Creates adr_task_links with link_type='implements' * 4. Links related ADRs via adr_relations if cross-references exist * * Called from lifecycle/pipeline.ts when advancing FROM architecture_decision. * * @task T4947 * @see ADR-017 ยง5.3 for adr_task_links and adr_relations schemas */ export interface PipelineAdrLinkResult { linked: Array<{ adrId: string; taskId: string; }>; synced: number; skipped: number; errors: Array<{ file: string; error: string; }>; } /** * Link ADRs to a pipeline task when the architecture_decision stage completes. * * @param projectRoot - Absolute path to project root * @param taskId - Task ID that owns the pipeline (e.g., 'T4942') */ export declare function linkPipelineAdr(projectRoot: string, taskId: string): Promise; //# sourceMappingURL=link-pipeline.d.ts.map