/** * Surfaces failures reported through runtime.reportError for model-visible recovery and * owner escalation. */ import type { ReportedError } from "../errors.js"; import type { Provider } from "../types/components.js"; /** * Internal scheduler/plumbing failure codes that must NEVER be narrated into the * owner's chat (#SHADOW-ACCOUNT-DEBUG). These are self-healing or * operator-facing, not user-actionable: surfacing them made the agent post * near-identical "a scheduled task failed … TASK_WORKER_MISSING" messages 9× * into Shadow's chat. The failures are still logged and still flow to the * ERROR_REPORTED escalation path (which has its own owner-facing threshold); * they just don't get turned into assistant messages every turn. Matching is * done on the error `code`, so app-level/actionable failures are unaffected. */ export declare const QUIET_ERROR_CODES: ReadonlySet; export declare function isProviderThrottleReport(entry: Pick): boolean; export declare function serializeContext(context: Record | undefined): string | undefined; /** * RECENT_ERRORS — injects deduped, aged-out recent runtime failures into the * agent context so the agent can react to problems outside the action path. */ export declare const recentErrorsProvider: Provider;