/** * Shared tool-failure detection — SP-303, GitHub #186. * * Single source of truth for deciding whether a tool-result message * represents a failure. Used by loop escalation (pin break) and the * HyDRA `loop:` metadata flag. * * Precedence: structured host signals (`is_error`, then `status`) win; * a tightened body heuristic applies only when no structured signal * is present. Benign negations ("no errors", "without failure") never * count as failures. */ import type { Message } from '../types/index.js'; /** * Decide whether a tool-result message represents a failure. * Prefers structured host signals (`is_error` / `status`); falls back to a * tightened body heuristic only when no structured signal is present. */ export declare function isToolFailure(msg: Message): boolean; //# sourceMappingURL=tool-failure.d.ts.map