SDK Status
Test suite results, benchmark data, and release metrics for governance-sdk v0.5.0.
964/964
Tests passing
0 failures
20
Test suites
all passing
0
Runtime deps
zero-dep
<1ms
p50 enforce()
in-memory
Test Suite Results
964/964 passingCore enforcement engine
src/governance.test.ts
108/108
passed
Policy condition types
src/conditions.test.ts
92/92
passed
Injection detection
src/injection.test.ts
56/56
passed
Audit integrity chain
src/audit.test.ts
62/62
passed
EU AI Act compliance
src/compliance.test.ts
44/44
passed
Kill switch
src/kill.test.ts
36/36
passed
Governance scoring
src/scoring.test.ts
52/52
passed
Mastra MW adapter
plugins/mastra.test.ts
42/42
passed
Mastra processor adapter
plugins/mastra-processor.test.ts
34/34
passed
Vercel AI SDK adapter
plugins/vercel-ai.test.ts
38/38
passed
LangChain adapter
plugins/langchain.test.ts
33/33
passed
OpenAI Agents SDK adapter
plugins/openai-agents.test.ts
36/36
passed
PostgreSQL storage
storage/postgres.test.ts
54/54
passed
In-memory storage
storage/memory.test.ts
28/28
passed
Boolean combinators
src/combinators.test.ts
43/43
passed
Adversarial & edge cases
src/adversarial.test.ts
68/68
passed
Policy composition
src/composition.test.ts
40/40
passed
Dry-run simulation
src/dry-run.test.ts
38/38
passed
Event emitter & metrics
src/events.test.ts
31/31
passed
Policy suggestions
src/suggestions.test.ts
29/29
passed
Performance Benchmarks
Node.js 22 · M3 Pro · 10k iterations each
| Operation | p50 | p95 | p99 |
|---|---|---|---|
| enforce() — in-memory | 0.3ms | 0.7ms | 1.1ms |
| enforce() — PostgreSQL | 2.1ms | 4.3ms | 7.8ms |
| register() — in-memory | 0.8ms | 1.6ms | 2.4ms |
| detectInjection() — 22 pat | 0.1ms | 0.2ms | 0.3ms |
| chain.verify() — 1k events | 4.2ms | 6.1ms | 9.4ms |
| fleetReport() — 50 agents | 3.1ms | 5.4ms | 8.2ms |