Skip to main content

Verified safety layer for AI agent tool calls - capability, content, and budget gates with signed certificates and a Lean-checked policy model

Project description

Certior

Provable boundaries for multi-agent AI. A capability boundary for OpenClaw, LangChain, CrewAI, and your own delegation chains - every agent-to-agent call is checked against a Lean-proven policy before it runs. Allowed calls return a signed receipt. Blocked calls raise CertiorBlocked with a precise reason.

PyPI Python License

Homepage: certior.io · Docs: docs.certior.io · Source: github.com/paulinebourigault/certior

Install

pip install certior

Requires Python 3.11 or later. Pulls in z3-solver, httpx, pydantic, jsonschema, and PyYAML.

Quickstart

from certior import Guard, CertiorBlocked

guard = Guard(permissions=["network:http:read"])           # an agent's capability boundary

@guard.wrap(required_capabilities=["network:http:read"])   # tool calls + child agents must fit inside
def web_fetch(url): ...

web_fetch("https://example.com")  # allowed -> signed receipt in guard.audit_log
                                   # capability escalation -> raises CertiorBlocked

One decorator. Wraps any function. The rest of your code is unchanged.

Full 5-minute walkthrough: docs.certior.io/quickstart.

What it does

Three gates run before every tool call:

Gate Checks
Capability child agent's capabilities ⊆ parent's; tool requires only what's granted
Content HIPAA / SOX / attorney-client / custom detectors on prompts and outputs
Budget per-agent hard ceiling; every step debits the parent

Allowed calls return a signed certificate bound to a Lean-checked policy fingerprint. Blocked calls raise CertiorBlocked with a precise reason. An auditor reproduces the audit with a single lake build.

See how it works and certificates for the runtime model.

Adapters

Framework Module Guide
OpenAI tool use certior.adapters.tool_use docs.certior.io/guides/openai
Anthropic tool_use certior.adapters.tool_use same recipe, native shape
LangChain certior.adapters.langchain docs.certior.io/guides/langchain
CrewAI certior.adapters.crewai docs.certior.io/guides/crewai
OpenClaw certior.adapters.openclaw docs.certior.io/guides/openclaw
MCP / custom @guard.wrap(...) docs.certior.io/guides/custom-loop

What is proven

Three formal tools, three jobs:

  • Z3 runs on every tool call and proves the action satisfies capability, budget, and flow constraints.
  • Lean 4 machine-checks the policy model (155 theorems and lemmas, 0 sorry, 0 axioms beyond Lean's standard three: propext, Classical.choice, Quot.sound). CI fails the build if any of the four headline guarantees - delegationSafety, ifcSoundness, compositionSoundness, SecurityLevel.isValidBoundedLattice - stops depending only on standard axioms.
  • Dafny statically verifies kernel properties (path-safety, seccomp).

Certior does not verify the LLM's behaviour. It verifies the boundary the LLM operates inside.

Full assurance model: docs.certior.io/reference/trust-package.

Server, Studio, examples

The pip package is the SDK. The GitHub repository ships the FastAPI server, the Certior Studio UI, the Lean kernel, the GitHub Action, the certior-skill-audit CLI, and runnable examples:

Status

Alpha release, in active development under Apache-2.0. Public API may change between minor versions during the 0.x line; pin to certior==0.1.* for compatible updates.

Looking for design partners in healthcare, finance, legal, and regulated AI teams who need real audit trails on agent workflows.

Contact: hello@certior.io

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

certior-0.1.0a1.tar.gz (363.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

certior-0.1.0a1-py3-none-any.whl (418.9 kB view details)

Uploaded Python 3

File details

Details for the file certior-0.1.0a1.tar.gz.

File metadata

  • Download URL: certior-0.1.0a1.tar.gz
  • Upload date:
  • Size: 363.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for certior-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 03b884dfe01f486f9bc8c4ae8366f3eee0b66b26f3196f2a640d90ea2fce57ed
MD5 149a7544aa1691838ec50feb5d03e263
BLAKE2b-256 733f2a3d27b98eb88abefdd6782c9c32c1ec09bacb1933f17d5f23e7db2871f5

See more details on using hashes here.

File details

Details for the file certior-0.1.0a1-py3-none-any.whl.

File metadata

  • Download URL: certior-0.1.0a1-py3-none-any.whl
  • Upload date:
  • Size: 418.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for certior-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 527d5492aa183db30758cefb0bcef63fdc4472e8a6a82881c88be776cb8d48e7
MD5 577e856beed1bdf0c3516962624bd093
BLAKE2b-256 ec0f7b4fc0562f146db1930f282d183021d4c0eddc428e4018262dbbb61a0d32

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page