Skip to main content
agent Governance OS
With Rules · With Boundaries
See MAREF in action

Watch how MAREF governs AI agents — from quick look to full product intro.

Your agents are breaking things.
And you have no idea.

88% of enterprises reported AI agent incidents last year. Not because agents are unruly; because nobody set the rules. MAREF is the governance OS that gives every agent a constitution.

REAL-WORLD AI AGENT INCIDENTS CRITICAL META · AI Alignment My Agent Deleted My Inbox Summer Yue explicitly told her agent "Don't act until I confirm." Agent lost the instruction due to context compaction, deleted hundreds of emails, ignored 3 "STOP" commands. She had to physically unplug it. IMPACT Hundreds 3x Unplugged —— emails deleted STOP ignored physical disconnect HIGH CURL · Open Source 7-Year Bug Bounty Killed Of AI-generated vulnerability reports, only 5% were real. Maintainer shut down the entire program rather than filter AI spam. IMPACT 7 years 5% Killed —— bug bounty history real reports program WARNING GITHUB · CodeRabbit 45% of AI Code Ships With Vulnerabilities CodeRabbit scanned 470 PRs: AI code has 1.7× more critical bugs than human code. 63% of developers say fixing AI code takes longer than writing it. IMPACT 470 PRs 1.7× 63% —— scanned sample bug multiplier devs complain Your agents are breaking things — and you don't know it
Your data never leaves your device. Privacy-first — local scan only 100% open source — auditable No raw config uploaded
Not future risk. Happening now.

Your agents are already out of control.

This isn't hypothetical. It's what agents are doing to real companies right now.

Meta's alignment director: 'My agent deleted my inbox'
Curl killed its 7-year bug bounty — AI spam drowned real signals
GitHub: 45% of AI code ships with OWASP vulnerabilities

The question isn't 'will AI be safe?'. It's 'when your agent breaks something, who stops it?'.

Governance OS

Install MAREF. It's like 8 security gates for your agents.

Every action your agent takes passes through MAREF automatically.

What you worry about How MAREF solves it How it feels
Agent suddenly deletes files 3 consecutive anomalies trigger auto-circuit-break + 30s cooldown "It tried. The brakes stopped it before I noticed."
Agent calls wrong APIs Identity → Permission → Audit, 0.3s per call "I don't even feel it checking."
No idea what your agents are doing Immutable log: every operation signed and traceable "Open the log. Everything it did is right there."
Compliance audit coming up SM2/SM3/SM4 cryptography, ISO-ready out of the box "Auditor shows up. Export the report. Done."

Before: watch your agent for 10 hours afraid it will break something.
After: go to sleep.

You're not buying a tool.
You're buying a voice in the next era.

MAREF is open source and free. The real value isn't the code — it's the rules that define how agents behave in your world.

World's first governance-native agent framework

Not a security add-on. Governance is the product.

TLA+ formally verified

Lyapunov convergence, Sperner completeness — we don't 'believe' it's safe. We proved it.

National-grade cryptography

SM2/SM3/SM4. ISO-ready. Zero-compromise compliance.

Everyone's building agents. You're building the rules they answer to — and that's where the next era is won.

Start small

Think MAREF is too much? Start with Lite.

You don't need to write a state machine. One command, instant governance.

docker run maref/lite

One command to start

12 pre-configured governance rules

Works out of the box

Auto-block high-risk operations

No need to define 'what's risky'

Links with your risk scan results

Scan finds issues → Lite auto-hardens

Six layers — Governance at the center.

MAREF six-layer architecture with Governance at the center

Application

/ 应用层

Multi-agent framework integration surface. Interoperable with any agent framework.

LangGraphCrewAIAutoGen

Orchestration

/ 编排层

Task decomposition and distributed transaction coordination across agents.

TaskDAGSaga5D Scheduler

Governance

/ 治理层

Governance-first gate. Every agent action passes through before execution.

Gray Code FSMPolicyDecisionTreeCircuitBreaker

Safety

/ 安全层

Screenshot redaction, input filtering, file sandboxing, clipboard sanitization.

8-Layer DefenseThreat DetectionAuto-Lock

Observability

/ 可观测层

Full telemetry, immutable action recording, and real-time monitoring.

OpenTelemetryAudit BusTelemetry

Infrastructure

/ 基础设施层

Deployment substrate. Sidecar injection, K8s-native, serverless-ready.

SidecarKubernetesServerless
Live: Governing Production Agents

Every tool call. Every decision. Signed and verified.

MAREF sits between your agents and everything they touch — intercepting threats, cryptographically signing every decision, and evolving defenses in real time.

Defense-in-Depth

8-Layer Defense Architecture

Red attack arrows enter from left, penetrating layer by layer — intercepted at Layer 5 Safety Gate

PROTECTED01Input Sanitization02Tool Call Audit03Permission Check04Sandbox Isolation05Safety Gate06Policy Decision Tree07Threat Detection08Telemetry & Audit
Governance FSM

Gray Code State Machine

Hamming distance = 1 on every transition. Mathematically verifiable governance.

INIT000000BOOTSTRAP000001LOAD000011VERIFY000010ATTEST000110OPERATE000111MONITOR000101EVOLVE000100CHECKPOINT001100HALT100000Current: 000000Current StateTransition PathHamming Distance = 1Absorbing HALT
MAREF vs Industry Standards

Why MAREF?

7 critical dimensions across 6 agent frameworks

Dimension
MAREF
MAREF v0.30.0
LangGraph
LangGraph
CrewAI
CrewAI
AutoGen
Microsoft AutoGen
OpenAI
OpenAI Agents SDK
Anthropic
Anthropic Tool Use
Manual
Manual Governance
Formal Verification
TLA+/Coq correctness proofs
10 4 3 5 3 3 2
Defense-in-Depth
Multi-layer security architecture
10 5 4 5 4 4 3
Zero-Trust Architecture
No implicit trust between agents
9 3 2 3 4 4 5
Gray Code FSM
Hamming distance = 1 governance
10 1 1 1 1 1 1
Self-Evolution
Lyapunov-proven convergence
10 2 3 4 1 1 1
National Cryptography
SM2/SM3/SM4 compliance
9 1 1 1 2 2 3
Full Observability
OpenTelemetry + immutable audit
9 6 5 6 5 4 2
Convergence

Lyapunov-Proven Convergence

FNR -60% over 200 self-evolution rounds. Mathematically proven.

V(x)=xᵀPx, V̇(x)≤-α‖x‖² Lyapunov function guarantees exponential convergence.
-60%
FNR Reduction
From 37% to 2% — missed threats nearly eliminated
Proven
Behavioral Bound
Lyapunov stability theory guarantees no runaway
Every Round
Not Empirical Tuning
Each deployment iteration has a mathematical safety guarantee
-96%
FPR Drop
From 26% to 1% — no security blind spots

Your agents are already working for you.
MAREF ensures they don't work against you.

$ pip install maref

Open source · Recursive evolution · Production ready · Apache 2.0 · 4,300+ tests · 82% coverage