Decision context
Records include outcome, reason, request context, masked columns where applicable, and available subject metadata.
Every Safe Boundary surface emits structured decision data: what was allowed, blocked, or masked and the caller information that surface can actually establish.
Why this exists
MCP writes rotating local JSONL and can mirror records to the console on a best-effort basis. The wire path uses a bounded event buffer with optional Parquet output. REST can uplink policy decisions to the same console shape.
Human SSO sessions can carry certificate-verified identity. PostgreSQL roles come from upstream authentication. MCP agent names are operator-supplied attribution. The audit keeps those meanings distinct.
What it does
Records include outcome, reason, request context, masked columns where applicable, and available subject metadata.
MCP JSONL and wire-path Parquet options keep inspectable records inside the deployment.
Observe mode and counters show which rules would fire before production behavior changes.
Evidence example
Illustrative audit shape. Storage, retention, and SIEM delivery remain deployment choices.
Sample event
{
"outcome": "masked",
"reason": "configured_column",
"surface": "mcp",
"masked_columns": ["customers.email"],
"subject": {"kind": "agent_label", "value": "analyst-tool"}
}Operator question
What happened?
Which policy reason fired?
Which fields changed?
How strong is the caller identity?How it works
Emit an event at the policy decision point.
Attach verified or supplied identity according to the access surface.
Write to the configured local sink and optionally mirror to the console.
Use JSONL or Parquet in your existing analytics and retention pipeline.
Protected when
Important boundaries
Continue the story
Understand trust boundaries, credentials, identity, and bypass conditions.
Give AI tools a bounded PostgreSQL query surface with local audit.
See the path with verified human-session identity.
Start in observe mode and validate the policy against representative traffic before you enforce it. That gives the team evidence for each decision, along with explicit bypass controls for the cases that need a deliberate exception.