Agentic Patterns
Stdlib-only safety patterns for agentic AI systems. Built from production experience coordinating 5+ AI agents with 6,000+ tests. Provides circuit breaker, kill switch, coordination bus, schema validator, and health probes.
Stdlib-only safety patterns for agentic AI systems. Built from production experience coordinating 5+ AI agents with 6,000+ tests. Provides circuit breaker, kill switch, coordination bus, schema validator, and health probes.
| Module | Purpose | Status |
|---|---|---|
circuit_breaker.py |
CLOSED/OPEN/HALF_OPEN state machine with configurable thresholds | Pass |
kill_switch.py |
4 emergency modes: DISENGAGED through EMERGENCY | Pass |
coordination_bus.py |
Append-only TSV bus with flock locking and HMAC signing | Pass |
schema_validator.py |
JSON Schema Draft 2020-12 subset without jsonschema dependency | Pass |
health_probe.py |
Composable health interface with latency tracking | Pass |
Perfect score — zero dependencies, clean stdlib-only implementation extracted from production founder-mode codebase.
Refactored per Arbiter feedback:
_check_object decomposed for A+ score (commit
3eafdab).
Want an audit like this for your codebase? Free for open-source repos.
Request Free Audit