/** * Dispatch-trace BRAIN hook. * * Emits a structured {@link DispatchTrace} observation into the BRAIN memory * pipeline at the agent-resolver decision point. Each trace captures the * classifier's prediction alongside the registry outcome, enabling future * training data extraction for the FP peer-note guardrail. * * Storage contract: * - Routes through `verifyAndStore` — never bypasses the extraction gate. * - `memoryType = 'pattern'` — procedural knowledge about dispatch behaviour. * - `sourceConfidence = 'speculative'` — unverified tier-2 training candidate * until a ground-truth channel is added. * - Errors are swallowed (fire-and-forget) so the synchronous resolver path * is never blocked or disrupted by BRAIN write failures. * * @module dispatch-trace * @task T1325 * @epic T1323 */ import type { DispatchTrace } from '@cleocode/contracts'; /** * Emit a dispatch-trace observation into the BRAIN memory pipeline. * * The write is fire-and-forget relative to the synchronous `resolveAgent` * path — callers do NOT await this function inside the resolver. Use * `.catch(() => undefined)` at the call site to suppress promise-rejection * noise when BRAIN is unavailable. * * @param projectRoot - Absolute path to the project root (for `brain.db` access). * @param trace - The resolved dispatch trace to persist. * @returns A promise that resolves when the BRAIN write completes (or is gated/rejected). * * @task T1325 */ export declare function emitDispatchTrace(projectRoot: string, trace: DispatchTrace): Promise; //# sourceMappingURL=dispatch-trace.d.ts.map