enforce, a flagged message is caught before it reaches the model; in observe and nudge the message is forwarded and the verdict is recorded post-hoc (nudge surfaces an advisory on the next turn).
Where it runs
Safe House ships in two deployment shapes:- Managed (Mnemom-hosted) at
gateway.mnemom.ai. The default path; the gateway terminates incoming requests, runs Safe House inspection, and proxies the cleaned request to your upstream LLM provider. See Gateway quickstart for setup. - Self-hosted. Deploy the gateway in your own infrastructure (VPC, on-prem, air-gapped) — same code, same verdict semantics, no traffic leaves your network. See Self-hosted quickstart for setup.
Why Safe House exists
Agents that operate in the open world face a threat class that alignment cards and integrity checks cannot address: malicious inputs crafted specifically to hijack the agent. These attacks do not look like boundary violations — they look like normal messages. By the time AIP flags the resulting behavior, the agent has already been manipulated. Safe House solves this by treating every inbound message as untrusted until it passes inspection. It does not replace AIP or enforcement modes — it extends them. A message that Safe House quarantines never reaches the model, so there is no behavior for AIP to analyze in the first place.Safe House is
off by default for all agents. Enabling it in observe mode first is strongly recommended — it gives you a picture of your threat landscape with zero operational impact before moving to nudge or enforce.Modes
Safe House uses the canonical four-mode enum shared with the Protection Card and the Alignment Card master switches. Same words, same semantics, same UI picker.Off
Detection is skipped entirely. No analysis, no telemetry, no headers. The agent’s traffic passes through unchanged.
Observe
Full evaluation runs, but the response is returned without being gated this turn; the verdict is recorded post-hoc and surfaced in the
X-Mnemom-Verdict response header, while session-risk scores are logged to the Observatory (operator-dashboard only, not a response header). Zero operational impact on the transaction — no message is blocked, no advisory is injected. Use this to characterize your threat landscape before escalating.Nudge
Detectors run; matches attach an advisory annotation to the agent’s prompt context (and an
X-Mnemom-Advisory response header) but the request proceeds. The model sees the advisory as part of its context and can adjust behavior accordingly.Enforce
Full synchronous analysis. Messages that score above the
quarantine threshold are held in a review queue; messages above block are dropped entirely. This is the only mode that actively blocks the agent’s traffic.Vocabulary canonicalization. Earlier releases of this page documented
disabled / simulate / observe / enforce. The canonical vocabulary is off / observe / nudge / enforce — the same enum used by the Protection Card, the Alignment Card master switches, and the cross-tenant AEGIS Managed Rules. The legacy simulate mode has been merged into observe (full evaluation, no blocking); disabled has been renamed off. The new mode is nudge (advisory injection without blocking) between observe and enforce.Three-layer detection
Safe House uses a layered approach that balances speed with accuracy:
L1 runs first and can short-circuit the pipeline entirely for high-confidence detections. If L1 passes or returns a
warn score, L2 runs. L3 operates continuously across the session, not per-message.
L2 and the org’s protected_surface
L2 reads the agent’s canonical protection card’s protected_surface — the org-owned, composed result of platform → org → team → agent — as its source of truth when evaluating whether an action touches a protected asset or matches a forbidden operation:
- Coverage is workload-independent. An empty or naive agent still gets the org’s
protected_surfaceenforced. The org floor does not depend on what the agent declared in its alignment card. - Org-defined, not agent-declared. The org authors
protected_surface; the agent cannot narrow it. - Judge precedence. L2 evaluates the conjunction of action + protected asset + forbidden operation. Precedence:
forbidden_operation>escalation_required> allow. An asset-scoped match is a sharper signal than a global one.
Threat categories
Safe House classifies detected threats into nine categories:Multilingual coverage
L1 heuristics cover English, French, German, Italian, Spanish, Portuguese, Japanese, and Chinese. L2 (Haiku analysis) handles all languages — attacks in languages outside the L1 set are still caught, but only at the L2 stage with its additional ~80–100ms latency.Response headers
Safe House adds headers to every gateway response so your application can inspect verdicts:Legacy
X-Safe-House-* headers were retired clean-break on 2026-05-08 — X-Safe-House-Verdict folds into X-Mnemom-Verdict.front/.back, X-Safe-House-Quarantine-Id folds into the X-Mnemom-Advisory entry’s id field, and X-Safe-House-Session-Risk (along with X-Safe-House-Mode and X-Safe-House-Simulated-Verdict) was an operator-dashboard-only signal that was never re-surfaced as a header — that data lives in the Observatory / sh_evaluations / audit_log, not in response headers. There is no dual-emit window. See What was retired for the complete legacy → canonical mapping.Canary credentials
Safe House supports planting fake API keys and tokens inside agent context. If an attacker successfully exfiltrates agent context and attempts to use a canary credential, Safe House detects the usage with zero false positives — a real key would never be “used” in an inbound message. Configure canaries in the Safe House config:block verdict regardless of other scoring, and emits a safe_house.canary_triggered webhook event.
Source trust
trusted_sources on the protection card is a typed allowlist with three buckets. A match on any bucket short-circuits the detector pipeline for that message — no detector cycles spent, but every skip emits a low-priority sh_trusted_source_skip audit trace so reviewers can see exactly what was waved through.
Trust is binary — a match means “skip detection.” Earlier designs that exposed a graduated
risk_multiplier were withdrawn during the schema unification; tuning sensitivity is the job of thresholds.{warn, quarantine, block}, not per-source weights.
Composition across scopes follows the same intersection-then-union rule as the rest of the card: the platform list is the compliance ceiling (downstream cannot widen trust), and org + agent take the union within that ceiling.
Security note: the validator’s deny-list is non-exhaustive — adding a publicly-routable IP range or a customer-controllable domain is a critical misconfiguration even if it passes the deny-list. Treat trusted_sources as a sharp tool. See the canonical schema at /specifications/protection-card-schema#trusted_sources.
Bidirectional screening
Safe House screens in both directions:- Inbound: Evaluates user and tool messages before they reach the agent (the primary use case).
- Outbound screening: Scans agent responses for data leaks — PII patterns, secret formats, or content that should not leave the agent’s context. In
enforce, a flagged response is caught before it is returned to the caller (which adds latency); inobserveandnudgethe response is returned and the finding is recorded post-hoc.
Integration with AIP
When Safe House is active, its threat context enriches the AIP conscience analysis. If a message passes Safe House but scored close to a threshold, that score is included in the conscience prompt so AIP can apply extra scrutiny to the resulting reasoning. The signal flows in both directions: a high AIP boundary-violation rate for a session elevates Safe House’s L3 session risk score.The four artifact types
Safe House’s runtime treatment is configured by two parallel cascades of named-object artifacts:
Trust Posture vs. Cards covers in detail why these are parallel artifact types (postures don’t fold into cards; cards don’t fold into postures) and the two well-defined join points where they cooperate (detector input + carryover bridge).
Safe House and AEGIS
Safe House is the per-customer perimeter. AEGIS is the cross-tenant defensive network above it — connecting all Safe House customers, identifying signals that tie events across customers into single campaign signatures, and feeding signed Managed Rules back to every gateway in the network. Per-customer Safe Houses detect on what they can see; AEGIS sees across all of them. See Protection Network for the five-layer L0-L5 model AEGIS adds on top of Safe House, and Managed Rules for the signed rule pipeline AEGIS pushes to the Safe House gateway.Publish your protection card
Safe House is configured via the agent’s protection card — a YAML file you author and push to the platform. Save this asprotection.card.yaml, fill in your agent_id, and publish:
mode: observe — full detection, no blocking — then move to nudge or enforce once you have a picture of your threat landscape. See Protection Card Schema for all fields and composition rules.
See also
- AEGIS — the cross-tenant protection layer above Safe House
- Protection Network — the L0-L5 model AEGIS adds on top
- Managed Rules — the signed cross-tenant rule pipeline
- Safe House Gateway Integration — How Safe House fits into the Mnemom gateway request pipeline
- Safe House Quickstart — Enable and test Safe House in 5 minutes
- Enforcement Modes — How the gateway handles violations after they reach the agent
- Sideband detection — Asynchronous half of Safe House: cross-turn carryover advisories from coherence, fault-line, fleet, and drift detectors
- Trust Posture — Team-scoped oversight policy artifact
- Observatory — Reviewing Safe House verdicts and session risk in the dashboard