@agentlaw/sink-supabase
v0.1.0
Published
Optional Supabase sink for AgentLaw: mirror the hash-chained audit, run a cross-host approval channel, and publish per-environment policy summaries for a governance console.
Maintainers
Readme
@agentlaw/sink-supabase
Optional bring-your-own-Supabase sink for AgentLaw. Mirrors what an enforcement point does into your own Supabase project so the governance console and @agentlaw/mcp can read it:
- one
agentlaw_environmentsrow per governed environment (policy summary + mode, heartbeat-upserted), - the hash-chained audit feed in
agentlaw_audit, - a cross-host approval channel for
approvedecisions.
Enforcement never depends on it: the sink is fire-and-forget and fail-open for delivery (the local audit chain stays the source of truth), while decisions themselves remain fail-closed in the gateway.
Setup
- Create a Supabase project and apply
console/db/001_agentlaw.sqlfrom the repo. - Point the sink (and console) at it:
AGENTLAW_SUPABASE_URL=https://<your-project>.supabase.co
AGENTLAW_SUPABASE_KEY=<service key>Apache-2.0.
