/** * Optional integration with @a5c-ai/tasks-adapter proven subsystem. * * Provides cryptographic verification of breakpoint answers when the * adapters-tasks package is available as an optional peer dependency. * Never throws -- always returns a graceful result. */ /** * Configuration for breakpoint answer verification. */ export interface BreakpointVerificationConfig { /** Whether verification is enabled. When false, verification is skipped. */ enabled: boolean; /** Directory containing trusted public keys. Passed to adapters-tasks verifyAnswer. */ trustedKeysDir?: string; } /** * Result of a breakpoint answer verification attempt. */ export interface BreakpointVerificationResult { /** Whether the answer was successfully verified as authentic. */ verified: boolean; /** Detailed verification result from adapters-tasks (when available). */ verificationResult?: { valid: boolean; publicKeyFingerprint?: string; responderName?: string; reason?: string; verifiedAt: string; }; /** Reason verification was skipped or failed (when verified is false). */ reason?: string; } /** * Check whether a breakpoint result carries signature fields, * indicating it was cryptographically signed via the proven subsystem. */ export declare function hasSignatureFields(result: Record): boolean; /** * Verify a breakpoint result's cryptographic signature using the * adapters-tasks proven subsystem. * * This function never throws. If adapters-tasks is not installed, * verification is disabled, or the result is unsigned, it returns * a graceful { verified: false } result with an explanatory reason. * * @param result - The breakpoint result (may or may not contain signature fields). * @param config - Verification configuration. If omitted, defaults to { enabled: true }. */ export declare function verifyBreakpointResult(result: Record, config?: BreakpointVerificationConfig): Promise; //# sourceMappingURL=proven-verification.d.ts.map