A Unified Protocol for Resilient Multi-Agent Intelligence Systems
XP-Arc — Exponential Architecture — is an open protocol defining the contract between multi-agent systems: a shared state surface, a QA enforcement layer, a graceful degradation model, a task fracturing protocol for primary agent failure, and a stability metric that tells operators whether their system is coherent or drifting.
Inspired by Escoffier's kitchen brigade system, XP-Arc orchestrates AI agents through a shared Intelligence Pool rather than ad-hoc chaining. Every agent reads from and writes back to the Pool. No station talks directly to another. The Pool is the message bus, the event queue, the audit log, and the ground truth — simultaneously.
xp-arc/
├── xp_arc/ # Core Python package
│ ├── core/
│ │ ├── pool.py # Intelligence Pool — SQLite WAL state machine
│ │ ├── executive.py # Routing loop — reads raw, dispatches by type
│ │ ├── station.py # Base station class — all agents inherit this
│ │ └── aboyeur.py # QA enforcement — validates every station output
│ ├── stations/
│ │ ├── forager.py # DOM scraping — seed URLs → entity extraction
│ │ ├── analyst.py # Relationship inference — domain classification + edges
│ │ ├── sentinel.py # Anomaly detection — pool health monitoring
│ │ └── plongeur.py # Cleanup — orphan recovery, GC sweeps
│ └── monitoring/
│ ├── zorans_law.py # Stability metrics — S quotient + PRO
│ └── spazzmatic.py # Adversarial review — Gemini-backed QA authority
├── dragon/ # DRAGON web dashboard
│ ├── index.html # Live visualization of Intelligence Pool
│ └── pool_state.json # Exported pipeline state
├── run_kitchen.py # CLI entry point
├── WHITEPAPER.md # Full protocol specification
├── CONSTITUTION.MD # Operational law (v1.4)
└── docs/
└── aboyeur-protocol-v1.json
- Added GitHub Actions CI workflow (tests + Bandit security scan).
- Fixed unit tests to use fresh in‑memory pool and correct row access.
- Mitigated Bandit B310 by validating URL schemes in
foragerand adding# nosec B310comment. - Updated documentation (README) to reflect new CI and security improvements.
# Run the default 5-target spread
python run_kitchen.py
# Custom targets
python run_kitchen.py https://example.com https://news.ycombinator.com
# Custom database path
python run_kitchen.py --db myrun.db https://example.com
# Re-export existing DB for DRAGON
python run_kitchen.py --export-only --db myrun.db| Tier | Scope | Requirements |
|---|---|---|
| Orchestration core | pool.py, station.py, executive.py, fracture.py |
Python 3 stdlib only — SQLite built in, zero pip deps |
| Full deployment | Production runtime | Python 3.10+, standard library sqlite3 |
| Visualization | DRAGON dashboard | Any modern browser (static pool_state.json or live via run_persistent.py) |
| # | Primitive | Implementation | Status |
|---|---|---|---|
| 1 | Shared Pool State | pool.py — SQLite WAL state machine, constitutional schema |
✓ |
| 2 | Typed Routing | executive.py — dispatches by entity type to registered stations |
✓ |
| 3 | QA Enforcement | aboyeur.py — validates every output, signs approved entities |
✓ |
| 4 | Graceful Degradation | Brigade Compression fallback roles | Spec'd |
| 5 | Cognitive Sharding | Fracture Protocol — task decomposition | Spec'd |
| 6 | Stability Measurement | zorans_law.py — S quotient + PRO |
✓ |
DRAGON (Dynamic Relational Asset Graph & Operations Network) visualizes the Intelligence Pool in real-time:
- Interactive entity network graph
- Station health cards
- Zoran's Law stability metrics (S quotient + PRO)
- SpaZzMatiC adversarial findings and safe halt alerts
- Full event timeline and Snowball cascade DAGs
Open dragon/index.html in a browser after running the pipeline.
Every station output must pass QA before propagating downstream:
{
"station_id": "string",
"entity_id": "integer",
"timestamp": "ISO 8601",
"status": "mapped | unhandled | rejected",
"payload_hash": "SHA-256 of output payload",
"output": {
"entity_type": "string",
"entity_value": "string",
"relationships": ["array of related entity IDs"],
"confidence": "float 0.0–1.0",
"notes": "string"
},
"fallback_activated": "boolean",
"aboyeur_signature": "ABOY-{hash}"
}Full schema: docs/aboyeur-protocol-v1.json
XP-Arc is not a communication protocol (that's A2A). It is not a tool-access protocol (that's MCP). It is the orchestration layer above them both — the shared Intelligence Pool that any agent writes to, the QA gate that validates what they produce, and the stability signal that tells operators when the system is drifting.
An A2A-compliant agent can be registered as an XP-Arc station. An MCP server can be wrapped as a Forager. The pool doesn't care what protocol the station uses internally.
See WHITEPAPER.md §2 for the full positioning argument.
- WHITEPAPER.md — Full protocol specification (v0.2)
- CONSTITUTION.MD — Operational law (v1.4)
- LEGAL.md — Legal framework and operator responsibilities
MIT License. Free to use for any purpose including commercial production. No license fee, no attribution requirement beyond the copyright notice.
Version: 0.2.0 Author: David J. Riedl (UnkleJack) Repository: github.com/unklejack/xp-arc