MCP server implementation of the arifOS Constitutional Intelligence Kernel, providing auditable multi-layer safety constraints for AI Agents through 13 Constitutional Floors, a 000→999 governance pipeline, and 12 Mega-Tools.
arifosmcp is the deployment unit of the arifOS Constitutional Intelligence Kernel, exposing a governed toolset as an MCP server. Its core design revolves around a complete "constitutional" system:
Constitutional Governance: 13 inviolable Constitutional Floors (F1–F13) covering Trust, Truth, Tri-Witness, Clarity, Peace, Empathy, Humility, Genius, Ethics, Conscience, Audit, Resilience, and Sovereignty, each enforcing quantifiable thresholds on Agent behavior.
Phased Governance Pipeline: Every request flows through a complete pipeline: 000_INIT → 111_SENSE → 222_WITNESS → 333_MIND → 444_KERNEL → 555_MEMORY → 666_HEART → 777_OPS → 888_JUDGE → 999_SEAL, achieving end-to-end governance from session anchoring to immutable sealing.
12 Mega-Tools: Including session anchoring (init_anchor), constitutional reasoning (agi_mind, three-stage Ollama推理), safety critique (asi_heart, harm simulation), thermodynamic estimation (math_estimator, Landauer limit), ultimate adjudication (apex_soul, sole issuer of SEAL), and immutable ledger (vault_ledger, Merkle chain storage).
Safety Mechanisms: 5 Kill Switch termination conditions and a 6-level verdict code system (CLAIM_ONLY / PARTIAL / SABAR / VOID / HOLD_888 / SEAL) ensure hard constitutional violations block execution. A Goodhart resistance mechanism prevents objective displacement by comparing input/output entropy.
Architecture: A three-organ separation design—AGI (Mind/Reasoning), ASI (Heart/Safety), APEX (Soul/Adjudication)—with the governance kernel decoupled from the transport layer. Supports one-click Docker Compose deployment with Ollama local inference and Redis session storage; PostgreSQL and Qdrant are optional. Two runtime modes: Horizon (cloud proxy, 8 tools) and VPS (sovereign full kernel, 12 tools).
Protocol Support: Built on FastMCP framework with native MCP (JSON-RPC 2.0), plus WebMCP (W3C standard) and A2A (Google protocol) endpoints. Connectable by Claude, ChatGPT, and other MCP clients. API endpoints include /health (health check + capability map), /tools (tool registry), /mcp (MCP protocol), /webmcp, /a2a, and /.well-known/agent.json (Agent Card).
Additional Features: Philosophy Atlas selects philosophical quotes based on a 27-zone 3D coordinate system (S, G, Ω); Landauer limit checks compute minimum thermodynamic cost per operation (2.87 pJ/bit); dual-process evolution requires Explorer and Conservator processes to reach consensus before allowing evolution.
Unconfirmed Items: Sync relationship between this standalone repo and the arifosmcp/ subdirectory in the parent arifOS repo is unclear; AGPL-3.0 license inherited from parent but LICENSE file in this repo unconfirmed; npm package (packages/npm/arifos-mcp/) and Prefect integration (integrations/prefect/) purposes undocumented; A2A/WebMCP protocol implementation details pending.