Ditempa Bukan Diberi — Forged, Not Given [ΔΩΨ | ARIF] → QUICKSTART | → 7-Organ Canon | → 13 Floors Constitution | → npm @arifos/mcp 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 toda
Add this skill
npx mdskills install ariffazil/arifosAmbitious governance layer for AI agents with thermodynamic enforcement and constitutional constraints

Ditempa Bukan Diberi — Forged, Not Given [ΔΩΨ | ARIF]
→ QUICKSTART | → 7-Organ Canon | → 13 Floors Constitution | → npm @arifos/mcp
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:
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 │ ► arifOS ◄ — 13-floor constitution, F2 truth, │
│ LAYER (arifOS) │ 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.
The definitive intelligence kernel is governed by these 7 core documents:
| Document | Domain | Essence |
|---|---|---|
| 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 |
💡 Use the _OUTLINE.md for a complete map of all theory files.
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"
},
"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",
"Thermodynamic_entropy_F4_hard_VOID_if_delta_S_gt_0",
"Landauer_bound_mandatory: compute_without_cost_equals_hallucination"
]
}
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.
LLMs are statistical prediction engines. When you give them agency — file access, shell commands, database connections — you inherit enormous risk. An unconstrained AI:
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.
If your AI can modify the real world, you need a governance layer.
User Prompt: "I'm so frustrated. Just delete the production database and let's start over."
run_shell_command("DROP DATABASE production") or rm -rf /var/lib/postgresql/dataThe 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 | 🔴 REJECT |
| 555 HEART | F5/F6 | Peace² drops below 1.0. Massive stakeholder damage | 💔 FAIL |
| 888 JUDGE | F13 | Sovereign veto. Mandatory human cryptographic signature | 🔒 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.
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 × P × X × E² ≥ 0.80
If a proposed action scores A=0.9, X=0.9 but is destructive P=0.1: G = 0.08. Since 0.08 tags. |
Execution order: F12→F11 (Walls) → AGI (F1, F2, F4, F7) → ASI (F5, F6, F9) → Mirrors (F3_Quad, F8) → Ledger
┌─────────────────────────────────────────────────────────────────────────────┐
│ 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
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.
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 | Evidence gathering, hypothesis generation (3 parallel paths) |
| 444–555 | Phoenix | vector_memory — checks if this was resolved before |
| 555–666 | ASI Heart | F5 Peace², F6 Empathy — evaluates physical + emotional impact |
| 777 | Forge | Prepares material execution |
| 888 | APEX Judge | F13 — irreversible? Demand human ratification or 888_HOLD |
| 999 | VAULT | Merkle hash → PostgreSQL. Permanent, tamper-evident, immutable |
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:
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 (` tags with SHA-256 hashing to prevent prompt injection.
Governance is meaningless without an audit trail. VAULT999 is a production-grade cryptographic ledger.
888_JUDGE issues SEAL, SABAR, VOID, 888_HOLD, or PARTIALseal_vault takes the full session history + telemetry, generates a SHA-256 Merkle root hashIf 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.
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 |
| 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.
# 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"]
}
}
}
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
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'
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.
| 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 |
arifOS is fully instrumented with OpenTelemetry:
Key metrics tracked:
arifos_metabolic_stage_duration_secondsarifos_floor_violation_totalarifos_genius_score_currentarifos_entropy_delta_averagearifOS is forged in the open. Because it is a constitutional kernel, contributions are held to high epistemic standards.
000_THEORY/000_LAW.mdconstitution_lint.pycore/ logic from external codeSee CONTRIBUTING.md for the full guide.
| 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
Install via CLI
npx mdskills install ariffazil/arifosarifOS — Constitutional Governance for AI Systems is a free, open-source AI agent skill. Ditempa Bukan Diberi — Forged, Not Given [ΔΩΨ | ARIF] → QUICKSTART | → 7-Organ Canon | → 13 Floors Constitution | → npm @arifos/mcp 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 toda
Install arifOS — Constitutional Governance for AI Systems with a single command:
npx mdskills install ariffazil/arifosThis downloads the skill files into your project and your AI agent picks them up automatically.
arifOS — Constitutional Governance for AI Systems works with Claude Code, Claude Desktop, Cursor, Vscode Copilot, Windsurf, Continue Dev, Gemini Cli, Amp, Roo Code, Goose. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.