Governance for every AI deployment
From regulated fintech to internal ops — governance-sdk adapts to your risk profile with the same in-process, zero-dependency enforcement engine.
AI payment agents can authorize wire transfers, bulk exports, and credential reads — any of which can cause irreversible financial damage.
Block high-risk tools by default. Require L3+ score for any payment action. Gate wire transfers behind human approval. Enforce time windows.
blockTools(['wire_transfer', 'bulk_export'])requireLevel(3)requireApproval(['payment'])timeWindow(9, 17)Agents accessing patient records must comply with HIPAA, log every decision, and never exfiltrate PHI — even in error cases.
Append-only HMAC audit trail. Token budget controls to prevent bulk record reads. Injection detection on all user inputs. EU AI Act alignment.
tokenBudget(10000)detectInjection()requireAuditLogging()blockTools(['bulk_export', 'fs_write'])DevOps agents run shell commands, write config files, and manage cloud resources. A single policy mistake can take down production.
Block destructive shell patterns. Require verified-identity for infra changes. Sequence checks: plan before apply. Kill switch for runaway agents.
blockTools(['shell_exec', 'db_drop'])requireSequence('tf_apply', ['tf_plan'])requireLevel(4)killSwitch(priority=999)Support agents handle thousands of tickets per hour. Prompt injection attacks, off-script responses, and data leaks are constant risks.
64+-pattern injection detection. Rate limits per agent. Block CRM writes from injected payloads. Score agents and auto-demote bad actors.
detectInjection()rateLimit(100, 3600000)blockTools(['crm_delete', 'bulk_export'])requireLevel(2)SaaS platforms ship AI features to hundreds of customers. Each tenant needs isolated policies, separate audit logs, and custom governance rules.
Enterprise multi-tenancy with namespace isolation. Per-tenant policy overrides. Org-level analytics. RBAC so tenant admins can't escape their sandbox.
namespace(tenantId)rbac(['admin', 'operator', 'viewer'])policyTemplates.saasfleetReport()Internal agents have access to everything: Slack, calendars, databases, email. Without governance, one compromised agent can exfiltrate the whole org.
EU AI Act Article 9 risk management. Time-window enforcement for business hours. Approval gates on external sends. Full audit trail exportable for legal.
assessCompliance()timeWindow(9, 18)requireApproval(['message_send'])auditExport()Ready to govern your agents?
One SDK. Every use case. Zero runtime dependencies.
npm install governance-sdkRead the docs →