faultwall

faultwall  /  how it works

How FaultWall sits between your agents and their APIs, MCP servers and databases.

A gateway runs next to your agent and holds the real keys for its APIs and MCP servers. For Postgres, FaultWall's Postgres proxy holds the database login. The agent uses a FaultWall key instead of the real one, and each call is checked against your rules, then allowed, blocked, or held for someone on your team.

  1. 01Where it runs
  2. 02Connecting an agent
  3. 03What happens to a call
  4. 04Built, in the pilot, and next
  5. 05What we're building
  6. 06Fair questions

01  Where it runs

It runs next to your agent, and keeps the real keys.

The gateway runs on the same server as your agent, or in the same pod. It listens only on that machine. The real keys stay with the gateway, and the agent gets a FaultWall key.

AI agentholds only its FaultWall key
FaultWall gatewaychecks every call against your rules, holds the real keys
APIsone base URL each, like /stripe
MCP serversover HTTP, or stdio servers it starts
outbound HTTPS, opened by the gateway
FaultWall websiteIN PILOTcompany rules, exec and engineer dashboards, which calls are waiting

POSTGRES PATH · LIVE TODAY

Postgres doesn't go through the gateway. Agents connect to FaultWall's Postgres proxy (faultwall --proxy), which you run in your network. It holds the database login, so agents never see it, and it applies your rules to every statement.

YOUR NETWORK
AI agentconnects with its FaultWall key
FaultWall Postgres proxychecks every query against your rules, holds the database login
Postgresthe agent never holds its password

CALL PATH

Agent to gateway to service. Your agent code changes only where it sends calls and the key it sends, plus a retry for a held call that's approved after the wait. Run the gateway as its own OS user, so the agent can't read the real keys.

CONTROL PATH · IN PILOT

Company rules come down about every 30 seconds and, by default, can only make the gateway's own rules stricter. Literal-free stats go up, like POST /v1/refunds held, then approved. No keys, no argument values. Leave it off and nothing leaves the box.

APPROVALS

A held API or MCP call is approved on the gateway's own approval page, where the approver sees its values. That page is on the gateway's machine, or behind your own proxy or VPN. For those calls the website shows that a call is waiting and who to ask, and has no approve button. The Postgres proxy's held writes are approved on your side too, through the proxy's approval API.

02  Connecting an agent

Point the agent at FaultWall. Give it a FaultWall key.

# API: same call, the gateway's base URL, a FaultWall key
curl https://api.stripe.com/v1/charges -u <stripe-key>:
curl http://127.0.0.1:8443/stripe/v1/charges -u <agent-key>:

# MCP over HTTP: the client talks to the gateway
http://127.0.0.1:8444/mcp/<server>
Authorization: Bearer <agent-key>

# MCP over stdio: launch mcp-wrap where the server went
"command": "/usr/local/bin/faultwall",
"args": ["mcp-wrap", "--server", "fs",
         "--socket", "/run/faultwall/mcp.sock"],
"env": {"FAULTWALL_AGENT_KEY": "<agent-key>"}

# Postgres: swap one connection string, to the proxy
postgres://app_user:<db-password>@db.internal/orders
postgres://support-agent:<agent-key>@fw-proxy/orders
  1. Mint a key on the gateway. faultwall gateway keys add --agent billing-bot shows it once. Only its hash goes in policies.yaml. Postgres agents connect to the proxy with their own key instead of the database password.
  2. Give it rules for each service. Allow, block, or hold for a person, per agent and per API, MCP server or database. The real keys stay with FaultWall (the gateway, or for Postgres the proxy), never in the agent's config.
  3. Point the agent at FaultWall. The FaultWall key goes where the provider key went, so its SDK, MCP client or Postgres driver needs no code change. Postgres is tested with psql, pgx, psycopg 2 and 3, SQLAlchemy, asyncpg and node-postgres. If a call you hold is approved after the wait, the agent sends the same call again. With Stripe's SDKs, send a stable Idempotency-Key or turn off automatic retries, or each retry is held as a new call.
  4. Watch first. Start with --mode monitor: calls your rules would block or hold go through and are logged. Unknown keys are still refused, and on the gateway so are agents with no grant. Watch-only monitoring is free.
  5. Revoke on the gateway. Remove the key from policies.yaml and reload. Its open MCP sessions and its calls in flight end at once.

03  What happens to a call

Five outcomes, from our test runs.

Four come from our end-to-end pilot run: two gateways, Stripe's simulator, a Zendesk stand-in and the reference MCP file server, with scripted agents. The revoked key is the classic Postgres proxy, live today. Synthetic data.

04  Built, in the pilot, and next

What's built, what's in the pilot, and what's next.

The gateway is a pilot, open to design partners. It isn't generally available yet. What is live today is the Postgres proxy, which you run in your network. The hosted app at app.faultwall.com shows its activity.

LIVE TODAY

  • Postgres through FaultWall's Postgres proxy. The proxy logs in to the database with its own login, so agents never hold the password
  • Rules per agent: allow, block, or hold the writes you pick
  • Held writes wait at the proxy until someone approves or denies them through the proxy's approval API. No decision in time means denied
  • faultwall audit --fix for native per-agent Postgres privileges

IN THE PILOT · BUILT AND TESTED END TO END

  • API calls through one base URL per service, with the real key added at the gateway
  • MCP tool calls over stdio, with servers the gateway runs itself (pilot run), and over HTTP (demo run, against a mock server)
  • Allow, block or hold per agent and per service, plus hard limits no company rule can loosen
  • Approvals on the gateway, good for one call, and checked again before it's sent
  • Keys minted on the gateway. Removing one ends its open sessions
  • Watch-only mode, --mode monitor
  • Company rules written once on the website and pulled by every gateway. By default they can only tighten
  • Exec dashboard: what was blocked, what's waiting, which agents are covered
  • Engineer's page: my agents, what they did, what was blocked and why
  • Waiting calls shown with who approves, and a link to the gateway's approval page, which opens on the gateway's machine or behind your own proxy or VPN
  • Revoking a key from the website, on every gateway at its next pull
  • Rule changes in seconds: 6.4 s at the median, 14.5 s at most, in our pilot run on one machine

Later, in our pipeline: strict mode, OS-level enforcement designed so an agent can't route around it, using eBPF on Linux servers.

05  What we're building

Two pieces past allow and block.

Rules answer whether an agent may make a call. These answer what a query will do to the database right now, and what happens outside FaultWall.

Query world model

SHADOW MODE

Is this query allowed is one question. Will it slow production down right now is another.

  • Learns each query shape's own latency on a quiet database, from what it has actually observed, not the planner's estimate.
  • Samples live load from pg_stat_activity about once a second, off the query path.
  • Predicts latency under that load and flags queries likely to breach your latency target.
db load30%
predicted42ms
target
SELECT ... FROM orders JOIN ...ok

Today: the scorer runs in FaultWall's Postgres proxy in shadow mode. It scores and records, and never blocks. We'll tune it on real workloads before it acts on anything. API and MCP calls get a fixed risk class instead: a refund is money going out. Illustration above, not partner data.

eBPF visibility

PROTOTYPE

The gateway sees what goes through it. eBPF sees what actually runs.

  • Hooks Postgres query start and finish with USDT probes, below the application.
  • Attributes CPU and disk I/O to each query using kernel scheduler and block I/O tracepoints.
  • Catches queries on connections that never went through FaultWall.
agent → faultwall gatewaysees routed calls
postgresUSDT probes
linux kernel, eBPFevery query, cpu, i/o

Today: a working prototype for Postgres, not shipped. It needs self-managed Postgres on Linux; managed services like RDS don't allow kernel probes. Strict mode, in our pipeline, takes it to processes, files and network on Linux servers. Until then, faultwall audit --fix helps close the database bypass with native Postgres privileges.

06  Fair questions

You may not need us. Here's how to tell.

The proxying part is ordinary. What's on top is the point. FaultWall classes each call by what it does: a refund is money going out, a file move is destructive. Today that covers Stripe-style payments and file tools; other APIs are classed by method. A held call waits for a person, and an approval covers that one call only; sent again, it waits again. It covers MCP tool calls too, including stdio servers it runs itself, so, with the gateway as its own OS user, their credentials never run as the agent. And faultwall suggest reads what each agent actually did and proposes tighter rules. You apply them; it never edits your rules.

You can, and some teams already run a shared approval service. FaultWall enforces where calls leave for the API, the MCP server or the database, so you get one set of controls without adding approval logic to each agent.

Then keep them. FaultWall becomes relevant when you need controlled writes, reviewable exceptions, or one consistent workflow across agents and services.

Yes. The gateway becomes part of the path to every service it covers. So we start in staging, watch-only first, and test compatibility, latency, failure behavior and recovery with your workload before you decide anything.

Measured on one machine over loopback, against local mock services and a local Postgres, on our MVP build of Nov 8. With one client, the median added time was 0.39 ms per API call, 0.10 ms per MCP call over HTTP, 0.16 ms over stdio and 0.10 ms per Postgres query. The 99th percentile was 2.3 ms per API call and under 0.5 ms for the others. With more clients at once it rose: 6.0 ms per API call with 16 clients, 1.0 ms over stdio and 0.7 ms per Postgres query with 4. The machine was busy, and the pilot build hasn't been measured yet. Real-network numbers come next.

If the gateway stops, the calls it protects stop too: the agent holds only a FaultWall key. Calls waiting for approval are denied when it shuts down cleanly. If the FaultWall website is unreachable, the gateway keeps enforcing the last company rules it checked, for as long as you allow, from 1 minute to 72 hours. Past that, calls under company rules are refused until it syncs again, and agents on local rules keep working. In our pilot run the website was down for a minute: a gateway set to one minute failed closed 60 seconds after its last good sync, then recovered by itself 10 seconds after the website came back, and no event was lost. Running the gateway highly available isn't built yet.

You pick which calls wait, such as refunds over $50. Everything else runs or is blocked by rule. During an evaluation we measure how many calls wait and how fast they're decided; a lot of repeats can mean a rule is too strict. Some operations should keep needing a person regardless. And one agent can have at most 16 calls waiting by default, so a looping agent can't bury your reviewers.

Work with us

Bring us one workflow.

Tell us what your agent should be doing that it isn't allowed to do today. We'll put it under limits your team agrees on, run it in staging, and give the owner the evidence to decide on production.

Evaluate a workflow with us