Skip to content
AgentIDDocs

Type at least two characters to search titles, headings and content.

↑ ↓ to navigate↵ to open
AgentID Docs

Data protection

Failure modes

What happens when AgentID cannot complete a check, and how fail-open and fail-closed behave in each integration.

A check can fail for reasons unrelated to the prompt: a network error, a timeout, or an unavailable dependency. The system's failure mode decides what happens next.

ModeSettingOn failure
Fail-openDefault; Strict Security (Fail-Closed) offThe request continues
Fail-closedStrict Security (Fail-Closed) onThe request is blocked

The failure mode is a setting of each AI system, chosen at registration and in its Guardrails. A new system is fail-open unless you choose otherwise.

Shadow Mode always behaves as fail-open. A policy block (for example pii_blocked) is never a failure: it is enforced in both modes.

Guard API responses

SituationFail-openFail-closed
Dependency failure during the check200, allowed: true, bypassed: true, header X-AgentID-Status: BYPASSED_INFRA_ERROR503, allowed: false, reason system_failure or system_failure_db_unavailable
Second personal-data detection stage slow or unavailableThe text is masked with the result of local detection alone (patterns and NER), which is less accurate for names and addresses200, allowed: false, reason pii_detection_unavailable
Rate-limit or quota service unavailableRequest continues200, allowed: false, reason ending in _unavailable
Automatic circuit breaker open503, reason circuit_breaker503, reason circuit_breaker

Always read allowed; do not rely on the HTTP status alone.

Integrations

Node.js, Vercel AI SDK and Python SDKs

  • The SDKs follow the system's setting unless you set it in code (strictMode / failureMode in Node.js, strict_mode / failure_mode in Python).
  • On a timeout or network error in fail-open mode, guard() returns allowed: true with a reason such as timeout_fallback or guard_unreachable. In fail-closed mode it returns allowed: false (for example network_error_strict_mode).
  • Fail-open does not mean "send raw data" for the Node.js wrappers: from agentid-sdk 0.1.40, wrapOpenAI and withAgentId keep local masking of personal data and secrets when Guard or the configuration endpoint is unreachable. If you call guard() directly, a fail-open verdict has no transformed_input; mask locally (for example with protectMessageHistory) before you send the text.
  • In fail-closed mode the wrappers can run a local fallback check; a local hit still blocks.
  • Guard calls are retried on network errors, timeouts and 5xx responses, up to three attempts in total.

Browser extension

The extension follows the system's live setting. Before it can read the system configuration it uses its bootstrap protection mode: Fail Closed for managed deployments unless set otherwise, Fail Open for manual setup. In fail-closed mode, guard, network or configuration failures stop the prompt from being sent. A slow check is retried once in a faster mode before the failure mode applies. A plan limit (for example a trial quota) is a decision, not a failure: the prompt or file is blocked in both modes. In Shadow Mode prompts, pastes and files reach the AI tool unchanged and are checked in the background for the log.

Claude plugin

The plugin follows the system's current failure mode and Shadow Mode, read when a Claude session starts:

  • Fail-open: Claude continues. A prompt AgentID cannot check in time is let through unchanged.
  • Fail-closed: a prompt AgentID cannot check in time is held back, and protected document reads and calls that can carry data off the device (shell, web, MCP actions other than reads) do not run when AgentID cannot inspect them. Local tools and responses continue.

Claude Desktop companion

The Windows and macOS companions follow the system's current failure mode, which they check about once a minute and keep across restarts; no reinstall is needed after a change. With fail-closed, a prompt is not sent when AgentID is unreachable, and also when a Claude Desktop update stops the companion from detecting the prompt box.

Choosing a mode

  • Choose fail-closed where sending unchecked data is worse than an interrupted user: regulated data, healthcare, finance, legal.
  • Choose fail-open where availability matters most and you accept that a prompt can reach the AI unchecked while AgentID is unavailable.
  • Calibrate new systems in Shadow Mode, then switch to Active Guard and pick the failure mode.