/** * Cancelled-child-waiver audit trail. * * Records waiver entries to `.cleo/audit/cancelled-child-waiver.jsonl` when a * caller completes a parent that has `cancelled` children by supplying * `--waive-cancelled-children ""` to bypass the * `E_CANCELLED_CHILD_NO_WAIVER` gate. * * Pattern mirrors `premature-close-audit.ts` (T1632) — one JSONL file per audit * concern, created on demand, appended atomically. * * @saga T10538 (PM-Core V2 agent-trust) */ /** * A single entry in the cancelled-child-waiver audit file. * * Written whenever `cleo complete ` is called while the parent has * one or more `cancelled` children AND the caller supplies * `--waive-cancelled-children` to bypass the gate. */ export interface CancelledChildWaiverAuditEntry { /** Parent task ID that was completed despite having cancelled children. */ parentId: string; /** * IDs of the cancelled children whose abandoned work was waived. Captured * for post-mortem traceability so a reviewer can confirm the cancelled work * was genuinely waivable or replaced. */ cancelledChildIds: string[]; /** Human-readable reason supplied by the caller for waiving the cancelled children. */ waiverReason: string; /** ISO-8601 timestamp of the waiver. */ timestamp: string; /** Agent / user identity that performed the completion. */ agent: string; } /** * Append a cancelled-child-waiver entry to the audit file. * * Creates `.cleo/audit/` if it does not exist and atomically appends a * single-line JSON record to `.cleo/audit/cancelled-child-waiver.jsonl`. * * @param entry - The audit entry to append. * @param projectRoot - Absolute path to the project root (defaults to `getProjectRoot()`). */ export declare function appendCancelledChildWaiverAudit(entry: CancelledChildWaiverAuditEntry, projectRoot?: string): Promise; //# sourceMappingURL=cancelled-child-waiver-audit.d.ts.map