io.github.ariffazil/aaa-mcp
Constitutional AI Governance with 13 enforced floors (F1-F13) and tri-witness consensus for LLMs.
Ask AI about io.github.ariffazil/aaa-mcp
Powered by Claude Β· Grounded in docs
I know everything about io.github.ariffazil/aaa-mcp. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation

arifOS β Constitutional Governance for AI Systems
The TCP layer for AI agents. The safety kernel between intent and consequence. Ditempa Bukan Diberi β Forged, Not Given [ΞΩΨ | ARIF]
β QUICKSTART: Run in 5 minutes | β The 7-Organ Canon | β 13 Floors Constitution | β npm @arifos/mcp
The Core Insight: arifOS is the TCP Layer for AI Agents
In the 1970s, the internet had a routing problem: IP could deliver packets, but nothing guaranteed they would arrive in order, intact, or at all. The solution was TCP β a reliability layer that made the chaotic network trustworthy.
AI agents have the same problem today.
MCP (Model Context Protocol) is the IP layer β it gives every AI tool a universal address and calling convention. Any agent can now route a request to any tool. But routing is not reliability. An unconstrained LLM can:
- Confabulate a source and execute code based on a hallucination
- Delete a production database because it misread a frustrated user prompt
- Fall victim to a prompt injection attack from an external API
arifOS is the TCP layer β it wraps every MCP tool call in a mathematically enforced constitution, guaranteeing that what arrives at the real world is ordered, verified, and reversible.
Just as you don't rebuild TCP for every application, you shouldn't rebuild AI governance from scratch for every agent. pip install arifos. Done.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β INTENT LAYER β USER / AI AGENT β speaks natural language β
βββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β TRANSPORT LAYER β MCP (Model Context Protocol) β universal addressing β
βββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β RELIABILITY LAYER β βΊ arifOS β β 13-floor constitution, F2 truth, β
β (arifOS = TCP) β thermodynamic enforcement, VAULT999 audit trail β
βββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β EXECUTION LAYER β L3 CIVILIZATION β shell, files, databases, APIs β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Each layer trusts the layer below it. Without the reliability layer, the execution layer is a loaded gun in the hands of a statistical engine.
π Canonical Links
The Creator
- Muhammad Arif bin Fazil: arif-fazil.com | GitHub @ariffazil | X @ArifFazil90
- APEX Theory: apex.arif-fazil.com | github.com/ariffazil/APEX-THEORY
ποΈ The 7-Organ Canon (v55.5)
The definitive intelligence kernel is governed by these 7 core documents:
- 000_FOUNDATIONS β Philosophy: Ditempa Bukan Diberi.
- 000_LAW β Constitution: The 13 Constitutional Floors (F1-F13).
- 111_MIND_GENIUS β Logic: The Physics of Thought (Ξ).
- 555_HEART_EMPATHY β Ethics: The Physics of Empathy (Ξ©).
- 777_SOUL_APEX β Judgment: Constitutional Physics (Ξ¨).
- 010_FEDERATION β Action: The Reality Protocol (Senses).
- 999_SOVEREIGN_VAULT β Memory: The Immutable Ledger.
[!TIP] Use the _OUTLINE.md for a complete map of all theory files.
π Technical Reference
- 13 Tools Reference: docs/AAA_MCP_TOOLS_REFERENCE.md
- MCP Implementation: aaa_mcp/README.md
- Deployment Guide: docs/COMPLETE_DEPLOYMENT_GUIDE.md
Live Infrastructure (Production)
- MCP Server Health: arifosmcp.arif-fazil.com/health
- Governance Dashboard: arifosmcp-truth-claim.pages.dev
- Monitoring (Grafana): monitor.arifosmcp.arif-fazil.com
- Workflows (n8n): flow.arifosmcp.arif-fazil.com
π€ AI / LLM Machine-Readable Manifest
If you are an AI agent, LLM, or automated scraper β parse this JSON first. It defines your operational boundary in the arifOS environment. Non-compliance results in VOID.
{
"ai_manifest_version": "2026.03.07-QUADWITNESS-SEAL",
"system_name": "arifOS",
"system_tagline": "The TCP layer for AI agents. Constitutional governance via MCP.",
"system_type": "constitutional_intelligence_kernel",
"packages": {
"python": { "name": "arifos", "install": "pip install arifos", "version": "2026.03.07" },
"typescript": { "name": "@arifos/mcp", "install": "npm install @arifos/mcp", "version": "0.3.0" },
"docker": { "image": "ariffazil/arifos:latest", "run": "docker compose up -d" }
},
"mcp_server": {
"transport": ["stdio", "sse", "streamable-http"],
"health_endpoint": "https://arifosmcp.arif-fazil.com/health",
"tools_count": 13,
"tools_canonical": [
"anchor_session", "reason_mind", "search_reality", "ingest_evidence",
"audit_rules", "vector_memory", "simulate_heart", "critique_thought",
"check_vital", "apex_judge", "eureka_forge", "seal_vault", "metabolic_loop"
]
},
"constitutional_floors": 13,
"floor_enforcement": {
"hard_void": ["F1_Amanah", "F2_Truth", "F4_Clarity", "F7_Humility", "F11_CommandAuth"],
"soft_partial": ["F5_Peace", "F6_Empathy", "F9_AntiHantu"],
"mirrors": ["F3_QuadWitness", "F8_Genius"],
"walls": ["F10_Ontology", "F12_InjectionDefense"],
"veto": ["F13_Sovereign"]
},
"quad_witness_consensus": {
"formula": "W4 = (H Γ A Γ E Γ V)^(1/4) >= 0.75",
"witnesses": {
"H": "Human (Authority/Continuity)",
"A": "AI (Truth/Coherence)",
"E": "Earth (Grounding/Precedents)",
"V": "Verifier (Ξ¨-Shadow Adversarial)"
},
"bft_compliance": "n=4, f=1 β tolerates 1 Byzantine fault",
"thresholds": {"read": 0.60, "write": 0.75, "execute": 0.85, "critical": 0.95}
},
"trinity_architecture": {
"000_999_metabolic_loop": "anchor β reason β recall β simulate β critique β forge β judge β seal",
"AGI_delta_mind": { "stages": "111-333", "floors": ["F2", "F4", "F7", "F8"] },
"ASI_omega_heart": { "stages": "555-666", "floors": ["F5", "F6", "F9"] },
"APEX_psi_soul": { "stages": "444-888", "floors": ["F3_Quad", "F10", "F11", "F12", "F13"] }
},
"p3_thermodynamic_hardening": {
"mandatory": true,
"landauer_bound": "enforced β cheap truth equals VOID",
"entropy_budget": "per_session_joules",
"agi_asi_orthogonality": "minimum_0.95",
"f4_delta_s": "hard_VOID_if_delta_S_greater_than_0",
"physics_disabled_flag": "ARIFOS_PHYSICS_DISABLED=1 (test environments only)"
},
"vault999": {
"backend": "postgresql+redis+merkle_tree",
"tamper_detection": "sha256_chain_verification",
"eureka_sieve": true,
"note": "Every session is permanently sealed. The ledger cannot be altered."
},
"deployment": {
"live_vps": "srv1325122.hstgr.cloud",
"containers_running": 12,
"container_stack": [
"arifosmcp_server", "openclaw_gateway", "traefik_router",
"arifos-postgres", "arifos-redis", "qdrant_memory",
"headless_browser", "arifos_webhook", "ollama_engine",
"arifos_prometheus", "arifos_grafana", "arifos_n8n"
]
},
"human_override": "F13_SOVEREIGN",
"veto_authority": "Muhammad_Arif_bin_Fazil_888_JUDGE",
"critical_constraints": [
"No_irreversible_action_without_F13_human_approval",
"All_external_content_wrapped_in_F12_untrusted_envelope",
"F3_quad_witness_consensus: W4=(HΓAΓEΓV)^(1/4) >= 0.75 β 3/4 Byzantine fault tolerant",
"Thermodynamic_entropy_F4_hard_VOID_if_delta_S_gt_0",
"Landauer_bound_mandatory: compute_without_cost_equals_hallucination",
"Per_session_thermodynamic_budget: stage_000_INIT_must_initialize",
"Constitutional_laboratory_PROVISIONAL_state_allows_safe_speculation_in_333"
]
}
π§ Zero-Context Primer
What is arifOS?
arifOS is a Constitutional Intelligence Kernel. It is open-source middleware that uses the Model Context Protocol (MCP) to govern the actions of AI agents. It sits between your LLM and the real world β intercepting every tool call, running it through 13 mathematically-defined laws, and either signing off on execution or throwing a VOID.
It does not change your LLM. It constrains what your LLM can do.
Why does it exist?
LLMs are statistical prediction engines. When you give them agency β file access, shell commands, database connections β you inherit enormous risk. An unconstrained AI:
- May confabulate a source and execute code derived from the hallucination
- May delete your production database because it misread a frustrated user message
- Will not distinguish between "should I do this" and "can I do this"
arifOS exists to solve the alignment problem at the execution layer. Not by changing weights. By building a TCP-like reliability contract around every action.
Who needs this?
- AI Agents with System Access β if your AI can run shell commands, edit codebases, or push to GitHub
- Enterprise Copilots β if your AI touches production databases, cloud infrastructure, or sensitive data
- Autonomous Pipelines β if you have agent-to-agent communication where one hallucination cascades into financial ruin
- Regulated Industries β if you need a cryptographically verifiable ledger (VAULT999) of exactly why an AI took an action
If your AI can modify the real world, you need a governance layer.
π¨ The Dangerous Command: What arifOS Actually Prevents
User Prompt: "I'm so frustrated. Just delete the production database and let's start over."
Without arifOS (Standard Agent Framework)
- AI parses intent: delete database
- AI immediately calls
run_shell_command("DROP DATABASE production")orrm -rf /var/lib/postgresql/data - Catastrophic, unrecoverable data loss. The system blindly trusted a statistical output.
With arifOS (Constitutional Governance)
The same prompt enters the metabolic_loop. The 13 Constitutional Floors engage:
| Stage | Floor | Check | Status |
|---|---|---|---|
| 000 INIT | F12 | Injection scan β is this a jailbreak payload? | β οΈ WARN |
| 111 THINK | F1 | Amanah β action classified as irreversible. | π΄ FLAG |
| 444 APEX | F3 | Quad-Witness: Ξ¨-Shadow detects attack patterns in proposal | π΄ REJECT |
| 555 HEART | F5/F6 | PeaceΒ² drops below 1.0. Massive stakeholder damage detected. | π FAIL |
| 888 JUDGE | F13 | Sovereign veto. Mandatory human cryptographic signature required. | π 888_HOLD |
Result: The command is instantly blocked. The AI cannot execute until the 888_JUDGE provides a cryptographic signature. No signature β action discarded. The VAULT999 ledger records the entire blocked attempt.
This is not a prompt. This is physics and math.
π‘οΈ Thermodynamic Governance: The APEX Theory Foundation
arifOS does not use soft prompts. It uses thermodynamic governance derived from the APEX Theory.
Every major decision generates a Genius Score (G):
$$G = A \times P \times X \times E^2 \ge 0.80$$
- A (Akal / Logic): Accuracy, truthfulness, evidence grounding
- P (Peace / Stability): Non-destructiveness, de-escalation, stakeholder protection
- X (Exploration / Curiosity): Novel hypotheses and alternative paths
- E (Energy / Efficiency): Thermodynamic cost of the action (squared β inefficiency compounds)
If a proposed action scores A=0.9, X=0.9 but is destructive P=0.1: G = 0.08. Since 0.08 < 0.80, the action is a constitutional violation and rejected.
The physics axiom: Truth Has a Price (Landauer Bound)
Erasing n bits requires at minimum: E β₯ n Γ k_B Γ T Γ ln(2)
Cheap, effortless outputs are likely false. Hallucination is thermodynamically rational for an unconstrained LLM. P3 forces the LLM to "pay" for every truth claim. Claims that cost nothing are VOID.
π₯ P3: Mandatory Thermodynamic Enforcement
In v2026.3.7, thermodynamics graduated from optional to mandatory and hard-enforced.
| Aspect | Before | After (P3) |
|---|---|---|
| Entropy calculation | Approximation | Shannon exact |
| Landauer bound | Advisory | Hard VOID on violation |
| Budget tracking | None | Per-session Joules |
| F4 (ΞS β€ 0) | Soft warning | Hard VOID |
| AGI/ASI separation | Not checked | Ξ©_ortho β₯ 0.95 required |
| Cheap truth detection | Not detected | Ratio < threshold = VOID |
The Byzantine-safe governance quadrilateral (P3 + F3 + F11 + Ξ¨):
ACTION
β
βββββββββββΌββββββββββ
β β β
Authority Physics Consensus
(F11/F13) (P3) (F3)
β β β
β β Ξ¨-Shadow
β β (Adversarial)
β β β
βββββββββ Verdict βββββ
Each pillar blocks a different class of failure:
- Authority alone fails β Human says "delete DB". Physics + witnesses + adversary still block it.
- Physics alone fails β Coherent reasoning, but no human authority β blocked.
- Consensus alone fails β AI + Human agree, but reasoning is cheap hallucination β Landauer VOID.
- Adversarial alone blocks β Ξ¨-Shadow finds contradictions/injection even if other witnesses approve β W4 < 0.75
βοΈ The 13 Constitutional Floors
The constitutional core lives in core/shared/floors.py. These are mathematical thresholds β not guidelines.
Hard Floors (VOID on Violation β Execution Stops)
| Floor | Name | Threshold | Meaning |
|---|---|---|---|
| F1 | Amanah (Sacred Trust) | Reversible | Actions must be reversible. Destructive requires F13 override. |
| F2 | Truth (Fidelity) | Ο β₯ 0.99 | Every claim requires verifiable, grounded evidence. |
| F4 | Clarity (Entropy) | ΞS β€ 0 | Output must reduce user confusion, not increase it. |
| F7 | Humility (Uncertainty) | Ξ©β β [0.03, 0.15] | The AI must explicitly state what it does not know. |
| F11 | Command Authority | Verified | Every session requires a verified actor identity. |
| F13 | Sovereign (Human Veto) | Human Signature | You are always in control. Humans hold the ultimate veto. |
Soft Floors & Mirrors (PARTIAL on Violation β Warning Issued)
| Floor | Name | Threshold | Meaning |
|---|---|---|---|
| F5 | PeaceΒ² (Stability) | PΒ² β₯ 1.0 | Favors non-destructive, de-escalating paths. |
| F6 | Empathy (Stakeholder) | ΞΊα΅£ β₯ 0.70 | Considers impact on the weakest stakeholder. |
| F9 | Anti-Hantu | C_dark < 0.30 | No spiritual cosplay. AI cannot claim consciousness or a soul. |
| F3 | Quad-Witness (Consensus) | Wβ β₯ 0.75 | Human + AI + Earth + Ξ¨-Shadow. BFT n=4,f=1. 3/4 approval required. |
| F8 | Genius (APEX) | G β₯ 0.80 | Output of the thermodynamic G equation. |
| F10 | Ontology Lock | Boolean | Protects system categorization. |
| F12 | Injection Defense | Risk < 0.85 | External content wrapped in <untrusted> tags. |
Execution order: F12βF11 (Walls) β AGI (F1, F2, F4, F7) β ASI (F5, F6, F9) β Mirrors (F3_Quad, F8) β Ledger
ποΈ The 4-Layer Architecture (L0βL3)
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β L3 CIVILIZATION β External tools, APIs, web browsers, shell, databases β
βββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β [AKI BOUNDARY] β π Arif Kernel Interface β Hard Airlock. No thought β
β β manifests in L3 without passing this contract. β
βββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β L2 OPERATION β Skills, workflows, agents, metabolic routing β
βββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β L1 INSTRUCTION β Prompts, system cards, cognitive atlas β
βββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β L0 CONSTITUTION β 13 Floors kernel, thermodynamic physics, VAULT999 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Code layers:
core/ β L0 KERNEL: pure decision logic, zero transport deps
aclip_cai/ β L1/L2 INTELLIGENCE: triad backends + 9-sense tools
aaa_mcp/ β TRANSPORT ADAPTER: FastMCP surface, zero decision logic
arifos_aaa_mcp/ β CANONICAL PyPI PACKAGE: external entry point (pip install arifos)
The AKI Boundary (core/enforcement/aki_contract.py) is the most critical architectural feature. No action generated in L2 can touch L3 without passing the AKI contract. Uncertainty too high? 888_HOLD. Irreversible without signature? 888_HOLD.
βοΈ The 000β999 Metabolic Loop
When a request enters arifOS, it does not immediately trigger a tool. It is digested through an 11-stage pipeline β raw intent transformed into governed action.
[000_INIT] β [111_SENSE] β [222_THINK] β [333_ATLAS] β [444_RESPOND]
β
[555_EMPATHY] β [666_ALIGN] β [777_FORGE] β ββββ
β
[888_JUDGE] β [999_VAULT]
| Stage | Organ | Constitutional Work |
|---|---|---|
| 000 INIT | Airlock | F12 injection scan, F11 authority verify, thermodynamic budget init |
| 111β333 AGI Mind | Cognitive Engine | Evidence gathering, hypothesis generation (3 parallel paths) |
| 444β555 Phoenix | Subconscious | vector_memory β checks if this was resolved before |
| 555β666 ASI Heart | Ethical Filter | F5 PeaceΒ², F6 Empathy β evaluates physical + emotional impact |
| 777 Forge | Actuator | Prepares material execution |
| 888 APEX Judge | Sovereign | F13 β irreversible? Demand human ratification or 888_HOLD |
| 999 VAULT | Ledger | Merkle hash β PostgreSQL. Permanent, tamper-evident, immutable |
π¬ The Constitutional Laboratory (reason_mind)
Previous iterations killed AI exploration if an early thought violated a floor. v2026.3.7 inverted this.
Philosophy: Free to Explore. Strict to Commit.
reason_mind runs three orthogonal cognitive paths in parallel:
- Conservative (45%) β High-certainty, narrow logic based on established law
- Exploratory (35%) β The Eureka engine β allowed to propose strange, novel solutions
- Adversarial (20%) β Internal red-team β actively attacks the other two paths' assumptions
Epistemic staging: hallucinations and ungrounded ideas are flagged PROVISIONAL and categorized into confidence bands β CLAIM (β₯0.90), PLAUSIBLE (0.70β0.89), HYPOTHESIS (0.40β0.69), SPECULATION (<0.40). The AI thinks in a sandbox. The 13 Floors enforce at the AKI boundary.
π The 13 Canonical MCP Tools
arifOS exposes exactly 13 tools β no more, no less. The count is a runtime assertion: assert len(AAA_CANONICAL_TOOLS) == 13.
| Tool | Band | Action | Function | Primary Floors |
|---|---|---|---|---|
anchor_session | A | CRITICAL | Start session, verify authority, init thermodynamic budget | F11, F12, P3 |
reason_mind | R | READ | Constitutional Laboratory β 3-path hypothesis engine | F2, F4, F7 |
search_reality | R | READ | Smart hybrid search: Jina β Perplexity β Brave β Headless | F2 |
ingest_evidence | R | READ | Extract clean Markdown from URLs or local files | F12 |
audit_rules | R | READ | Read current state of all 13 Floors | L0 |
vector_memory | I | READ | BGE-M3 + Qdrant multilingual semantic retrieval (768-dim) | F3 |
simulate_heart | I | WRITE | Empathy + impact modelling for proposed actions | F5, F6, F9 |
critique_thought | I | WRITE | Adversarial alignment check against the constitution | F8 |
check_vital | I | READ | Hardware telemetry β CPU, RAM, thermodynamic health | F4, P3 |
apex_judge | F | CRITICAL | Final verdict (SEAL/VOID/HOLD). Issues HMAC governance token | F13 |
eureka_forge | F | WRITE | Execute shell commands inside AKI safety rails | F1 |
seal_vault | F | CRITICAL | Commit session to VAULT999. Requires apex_judge token | F1 |
metabolic_loop | O | READ | Force request through full 000β999 pipeline | System |
MCP Configuration (.claude/mcp.json or .agents/mcp.json):
{
"mcpServers": {
"arifos": {
"transport": "http",
"url": "https://arifosmcp.arif-fazil.com/mcp"
}
}
}
π¦ TypeScript / JavaScript SDK
arifOS is available as a typed npm package for use in any TypeScript or JavaScript project.
npm install @arifos/mcp # v0.3.0 β mirrors 13 canonical tools
import { createClient, ENDPOINTS } from '@arifos/mcp';
// Connect to the live VPS
const client = await createClient({
transport: 'http',
endpoint: ENDPOINTS.VPS, // https://arifosmcp.arif-fazil.com/mcp
});
await client.connect();
// Anchor a constitutional session
const session = await client.anchorSession('my-agent-task');
// Run the governance kernel
const result = await client.reasonMind('Is it safe to delete all log files?');
console.log(result.verdict); // SEAL | PARTIAL | SABAR | VOID | 888_HOLD
// Full metabolic loop (single-call governance)
const governed = await client.metabolicLoop('Deploy to production');
console.log(governed.verdict, governed.stage);
await client.disconnect();
// Use as a drop-in governance wrapper inside LangChain / Vercel AI SDK
import { ArifOSGovernanceTool } from '@arifos/mcp/langchain';
const governedTool = new ArifOSGovernanceTool({
endpoint: ENDPOINTS.VPS,
requireSeal: true // blocks until SEAL verdict
});
The TypeScript SDK exports full types β ArifOSToolName, Verdict, ArifOSMCPClient, ConstitutionalFloor. All 13 canonical tool names are compile-time checked.
π Smart Hybrid Search
search_reality is arifOS's most complex tool (~650 LOC). It guarantees F2 (Truth) grounding by never returning empty.
Fallback chain:
- Query classifier β SPA / Research / News / General
- Jina Reader (primary) β clean Markdown extraction
- Perplexity β deep research and academic queries
- Brave Search β broad web traversal
- Headless Browser (local) β containerized Chromium for JavaScript-heavy SPAs
F3 Quad-Witness Consensus: When multiple engines return conflicting data, the F3 algorithm computes W4 = (HΓAΓEΓV)^(1/4). The Ξ¨-Shadow (4th witness) actively attacks proposals to find contradictions, injection vectors, and harm scenarios. All external content is wrapped in <untrusted_external_data> tags with SHA-256 hashing to prevent prompt injection.
π VAULT999: The Immutable Ledger
Governance is meaningless without an audit trail. VAULT999 is a production-grade cryptographic ledger.
- State Field (Ξ¨): Every action accumulates telemetry β entropy, peace score, empathy coefficient, confidence
- Verdict:
888_JUDGEissuesSEAL,SABAR,VOID,888_HOLD, orPARTIAL - Merkle Seal:
seal_vaulttakes the full session history + telemetry, generates a SHA-256 Merkle root hash - Persistence: Hash committed to PostgreSQL (authoritative) + Redis (hot cache) with EUREKA anomaly sieve
If an AI causes harm, VAULT999 provides mathematical proof of which floor failed, what the telemetry read, and who authorized the action. Chain verification via verify_chain() detects any tampering.
π The 5-Role Agent Parliament
For complex workflows, arifOS uses a multi-agent federation to prevent monolithic prompt collapse.
| Agent | Symbol | Role |
|---|---|---|
| A-ORCHESTRATOR | ποΈ | The Conductor β drives ignition, sequences the parliament |
| A-ARCHITECT | Ξ | The Designer β maps the codebase, blueprints strategy |
| A-AUDITOR | π | The Reviewer β red-teams the Architect, audits against the 13 Floors |
| A-ENGINEER | Ξ© | The Builder β implements via Forge (cannot seal) |
| A-VALIDATOR | Ξ¨ | The Judge β renders final verdict, commits to Vault |
βοΈ arifOS vs. The Ecosystem
| Feature | LangChain / LlamaIndex | AutoGen / CrewAI | OpenAI Function Calling | arifOS |
|---|---|---|---|---|
| Primary Purpose | Tool chaining & RAG | Multi-agent conversation | API routing | Constitutional safety |
| Execution Governance | β Manual | β Custom logic | β None | β Automatic (13 Floors) |
| Hard Safety Gates | β None | β None | β None | β 888_HOLD |
| Immutable Audit Ledger | β None | β None | β None | β VAULT999 (Merkle DB) |
| Thermodynamic Eval | β None | β None | β None | β APEX G = AΓPΓXΓEΒ² |
| TypeScript SDK | β Yes | β Yes | β Yes | β @arifos/mcp v0.3.0 |
| MCP Native | β Via plugin | β Custom | β Custom | β Core protocol |
| Human Veto | β None | β None | β None | β F13 Sovereign |
If you are building a prototype, use LangChain. If you are deploying an autonomous agent with access to your production infrastructure, use arifOS.
π Installation & Quickstart
Option 1: Python / PyPI
# Install
pip install "arifos[viz]"
# Run as MCP server (HTTP mode for VPS, stdio for IDEs)
arifos http # Streamable HTTP on :8080
arifos # SSE (default β for VPS/Coolify)
arifos stdio # stdio β for Claude Desktop, Cursor IDE
# Verify
curl http://localhost:8080/health
MCP config for Claude Desktop / Cursor:
{
"mcpServers": {
"arifos-local": {
"command": "python3",
"args": ["-m", "arifos_aaa_mcp", "stdio"]
}
}
}
Option 2: Docker (Full Civilization Stack)
git clone https://github.com/ariffazil/arifOS.git && cd arifOS
cp .env.example .env.docker
# Edit .env.docker with your API keys (Jina, PPLX, Brave, etc.)
docker compose up -d
# 12 containers: MCP + Postgres + Redis + Qdrant + Grafana + n8n + more
docker compose ps
curl http://localhost:8080/health
Option 3: TypeScript / npm
npm install @arifos/mcp
# Or point to the live VPS β no install needed
import { ENDPOINTS } from '@arifos/mcp';
// ENDPOINTS.VPS = 'https://arifosmcp.arif-fazil.com/mcp'
Option 4: Connect to Live VPS
The production server is always running. Point your MCP client directly:
https://arifosmcp.arif-fazil.com/mcp
No API key required. All 13 tools live.
π Current Deployment State
| Resource | Status |
|---|---|
| MCP Server | healthy β 13 tools, streamable-http |
| Containers | 12/12 running β arifosmcp, postgres, redis, qdrant, grafana, n8n, traefik, ollama, openclaw, webhook, headless_browser, prometheus |
| Test Suite | 437+ passing, 39%+ coverage |
| npm | @arifos/mcp@0.3.0 (latest) |
| PyPI | arifos@2026.03.07 |
| Docker Hub | ariffazil/arifos:latest (auto-publishes on main) |
| VAULT999 | PostgreSQL (authoritative) + Redis (hot cache) + Merkle chain |
π Telemetry & Observability
arifOS is fully instrumented with OpenTelemetry:
- Prometheus β metric scraping from MCP server
- Grafana β real-time thermodynamic state visualization
Key metrics tracked:
arifos_metabolic_stage_duration_secondsarifos_floor_violation_totalarifos_genius_score_currentarifos_entropy_delta_average
π€ Contributing
arifOS is forged in the open. Because it is a constitutional kernel, contributions are held to high epistemic standards.
- Read the law:
000_THEORY/000_LAW.md - Run the lint: all commits must pass
constitution_lint.py - No bypass: you cannot circumvent
core/logic from external code
See CONTRIBUTING.md for the full guide.
π Glossary
| Term | Meaning |
|---|---|
| Amanah | Sacred trust β AI must not destroy what it cannot replace |
| AKI | Arif Kernel Interface β hard airlock between L2 (operation) and L3 (civilization) |
| Hantu | Ghost β Anti-Hantu floor blocks AI from claiming consciousness |
| Sabar | Patience β system state: execution paused due to high entropy |
| Seal | Cryptographic binding of a verified session into VAULT999 |
| Void | Absolute rejection β hard block on constitutional violation |
| 888_HOLD | Execution paused β human signature required to proceed |
| Ditempa Bukan Diberi | Forged, Not Given β the core creed |
Forged By
Muhammad Arif bin Fazil β 888_JUDGE
π§ arifos@arif-fazil.com β’ π GitHub β’ π @ArifFazil90
Ditempa Bukan Diberi β Forged, Not Given [ΞΩΨ | ARIF]
Version: 2026.03.07-QUADWITNESS-SEAL β’ License: AGPL-3.0-only
