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.
| Mode | Setting | On failure |
|---|---|---|
| Fail-open | Default; Strict Security (Fail-Closed) off | The request continues |
| Fail-closed | Strict Security (Fail-Closed) on | The 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
| Situation | Fail-open | Fail-closed |
|---|---|---|
| Dependency failure during the check | 200, allowed: true, bypassed: true, header X-AgentID-Status: BYPASSED_INFRA_ERROR | 503, allowed: false, reason system_failure or system_failure_db_unavailable |
| Second personal-data detection stage slow or unavailable | The text is masked with the result of local detection alone (patterns and NER), which is less accurate for names and addresses | 200, allowed: false, reason pii_detection_unavailable |
| Rate-limit or quota service unavailable | Request continues | 200, allowed: false, reason ending in _unavailable |
| Automatic circuit breaker open | 503, reason circuit_breaker | 503, 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/failureModein Node.js,strict_mode/failure_modein Python). - On a timeout or network error in fail-open mode,
guard()returnsallowed: truewith a reason such astimeout_fallbackorguard_unreachable. In fail-closed mode it returnsallowed: false(for examplenetwork_error_strict_mode). - Fail-open does not mean "send raw data" for the Node.js wrappers: from
agentid-sdk0.1.40,wrapOpenAIandwithAgentIdkeep local masking of personal data and secrets when Guard or the configuration endpoint is unreachable. If you callguard()directly, a fail-open verdict has notransformed_input; mask locally (for example withprotectMessageHistory) 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
5xxresponses, 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.