EU AI Act self-assessment1,328 tests · 0 deps · MIT

Runtime
governance for
AI agent fleets.

Enforce policy before action, detect injection inline, and audit every decision on a tamper-evident chain. Open source SDK with a hosted control plane.

Get started
45 exports
11 adapters
1,328 tests
0 deps
MastraMastra
Vercel AI SDKVercel AI SDK
LangChainLangChain
OpenAI AgentsOpenAI Agents
AnthropicAnthropic
GenkitGenkit
LlamaIndexLlamaIndex
MistralMistral
OllamaOllama
MCPMCP
BedrockBedrock
MastraMastra
Vercel AI SDKVercel AI SDK
LangChainLangChain
OpenAI AgentsOpenAI Agents
AnthropicAnthropic
GenkitGenkit
LlamaIndexLlamaIndex
MistralMistral
OllamaOllama
MCPMCP
BedrockBedrock
Before / After

3 lines to governed agents

Drop into any TypeScript agent framework. No config files, no external services, no runtime dependencies.

Before — ungoverned
ts
After — governed
ts
How it works

Governance in 4 steps

From install to fully governed fleet in under 5 minutes. No external services. No configuration files. Just TypeScript.

01
Register

Register your agents

Call gov.register() once at startup. The SDK computes a 7-dimension governance score and assigns a trust level (L0–L4). No external service. No API key.

ts
02
Policy

Define policies

13 condition types. Boolean combinators. Priority-ordered evaluation. Block tools, require levels, gate payments behind human approval — all in TypeScript.

ts
03
Enforce

Enforce before every call

gov.enforce() runs inline — same process, same event loop, before the tool executes. No network round-trip. Returns allow or block with the matching rule. Automatically writes to the HMAC audit chain.

ts
04
Audit

Audit everything

Every enforce() decision is written to an HMAC-SHA256 hash-chained audit trail. Modify any event — the chain breaks. chain.verify() detects tampering at the exact index.

ts
1,328
tests passing
0
external deps
13
condition types
6/6
EU AI Act articles

One job: govern agent actions

Runtime policy enforcement with auditability and compliance built in. Not guardrails — governance.

Core

Before-Action Enforcement

Every tool call passes through enforce()before execution. 13 condition types with boolean combinators, priority-ordered evaluation. Synchronous, in-process, no network round-trip. This is the entire product — everything else serves it.

tool_blockedrequire_approvalrate_limittoken_limitagent_leveltool_sequencetime_windowany_ofall_ofnot
Auditability

HMAC Audit Trail

SHA-256 hash-chained event log. Modify any event — the chain breaks. Tamper-evident by default.

chain.verify() → {valid, brokenAt}
chain.export() → auditor-ready JSON
Defense

Injection Detection

54 regex patterns across 7 categories. Synchronous, in-process. Block prompt injection before it reaches your agent. Plug in an ML classifier for higher recall.

instruction_overriderole_manipulationcontext_escapedata_exfiltrationencoding_attacksocial_engineeringobfuscation
Compliance

EU AI Act Mapping

Map governance posture against 6 articles. Built-in gap analysis with remediation steps.

Art. 9
Risk management
Art. 11
Technical docs
Art. 12
Record-keeping
Art. 14
Human oversight
Art. 15
Accuracy
Art. 50
Transparency

7-Dimension Scoring

Identity, permissions, observability, guardrails, auditability, compliance, lifecycle. Score 0–100, levels L0–L4.

Kill Switch

Agent going rogue? One call kills it. Fleet-wide? Kill them all. Priority 999 overrides everything.

8 Policy Presets

blockTools, requireApproval, rateLimit, tokenBudget, requireLevel, requireSequence, timeWindow, allowOnlyTools.

Interactive Playground

See governance in action

No signup, no backend — everything runs client-side with the real SDK logic.

Policy Enforcement
Block tools, require approval, enforce levels
Pick a scenario or build your own:
enforce.ts
ts
Framework Adapters

Works with your stack

First-class adapters for the major JS agent frameworks. One import. Zero config.

Featured
9
Specialty
2
Storage Backends
2
In-Memory
createMemoryStorage()Built-in default. 10K event capacity. Zero config.
PostgreSQL
governance-sdk/storage-postgresProduction-ready. Auto-migrate. Custom table prefix.
Built for production

Governance where it matters

In-process enforcement that deploys anywhere your agents run — cloud, edge, or air-gapped.

Financial Services

Block unauthorized wire transfers before execution. Tamper-evident HMAC audit chain supports SOX-style review requirements.

payment_sendwire_transferaccount_close
requireApproval + blockTools
Healthcare

Zero-dependency deployment into regulated environments. HIPAA-aligned policy templates (BAA not offered — self-host if required).

patient_lookupprescription_writerecord_export
requireLevel(3) + timeWindow
Developer Platforms

Govern agent tool access across multi-tenant SaaS. Per-tenant policy isolation.

shell_execdeploydb_migrate
requireSequence + tokenBudget
MIT LicenseTypeScript-nativeZero dependenciesEdge-compatibleHMAC-SHA256 auditTree-shakeable
FAQ

Questions developers actually ask

No fluff. Direct answers to the objections we hear most.

Still have questions? Ask on GitHub Discussions or email us.

Ship governed agents today.

One import. Zero dependencies. Runtime enforcement in-process, no network round-trip. Start governing in 5 minutes.

1,328 tests·0 dependencies·TypeScript-native·MIT license