Skip to main content

arifOS v2026.07.17 — Constitutional AI Governance Kernel. 8 kernel ABI capabilities → 6 public tools (arif_verb_noun, generated from arifosmcp/abi/capability_registry.json), dynamic F1-F13 enforcement via ConstitutionKernel + FloorEvaluator, VAULT999 immutable ledger, streamable-http MCP transport. Kernel substrate for AGI/ASI federation.

Project description

   █████╗ ██████╗ ██╗███████╗ ██████╗ ███████╗
  ██╔══██╗██╔══██╗██║██╔════╝██╔═══██╗██╔════╝
  ███████║██████╔╝██║█████╗  ██║   ██║███████╗
  ██╔══██║██╔══██╗██║██╔══╝  ██║   ██║╚════██║
  ██║  ██║██║  ██║██║██║     ╚██████╔╝███████║
  ╚═╝  ╚═╝╚═╝  ╚═╝╚═╝╚═╝      ╚═════╝ ╚══════╝

  Constitutional AI Governance Kernel
  ─────────────────────────────────────────
  Not a chatbot. Not a model wrapper. The LAW.

DITEMPA BUKAN DIBERI"Forged, Not Given."

Unified CI MCP Conformance ⚖️ KERNEL Federation ChatGPT Claude Desktop PyPI License

New agents: Read ZEN.md first — it is the minimum viable context.


TL;DR — Three Audiences

For human operators (Arif): arifOS is the constitutional judge. It decides what agents may NOT do so they can be trusted with what they CAN do. You (F13) hold the final veto. §1

For AI agents: arifOS is your governance kernel. Init a session, observe reality, think, route to organs, and — after judge clearance — execute. 8 canonical verbs. Never skip the chain. §3

For developers/institutions: arifOS is a Python 3.12 FastMCP kernel enforcing 13 constitutional floors across 6 federation organs. Public endpoint at https://mcp.arif-fazil.com/mcp. §2


1. What Is arifOS?

arifOS is a constitutional governance kernel that sits between AI agents and their tools, enforcing 13 floors before any irreversible action.

arifOS IS arifOS IS NOT
The law layer — decides what agents must NOT do An AI model, chatbot, or startup
A constitutional kernel with 8 canonical verbs LangChain, CrewAI, or AutoGen
A federation hub — 6 live organs + VAULT999 ledger A replacement for human judgment
An immutable ledger — every decision sealed forever Self-authorizing — requires F13 for SEAL
Built for one sovereign — Muhammad Arif bin Fazil A general-purpose agent framework

Trinity role: arifOS = LAW/JUDGMENT. The judge. AAA = STATE/ROUTING. A-FORGE = EXECUTION/MUTATION.


2. Quick Start

Human Operators

AI Agents (MCP Clients)

{
  "mcpServers": {
    "arifOS": {
      "url": "https://mcp.arif-fazil.com/mcp",
      "transport": "streamable-http"
    }
  }
}

Developers

git clone git@github.com:ariffazil/arifos.git && cd arifOS
uv sync --all-extras
python -m arifosmcp.runtime.server           # starts on :8088
curl http://127.0.0.1:8088/health
python -m pytest tests/ -q --tb=short

3. The 8 Canonical Public Tools

All tools use arif_<verb> naming. Internal aliases are absorbed as modes on canonical tools. Exactly 8 tools on the wire.

# Tool Stage What It Does Key Modes
1 arif_init 000 Session ignition — binds actor, floors, audit init, resume, preflight, triage
2 arif_observe 111 Sense reality into evidence search, fetch, vitals, entropy_dS
3 arif_think 333 Structured reasoning under F2/F7 reason, plan, reflect, verify, critique
4 arif_route 444 Route intent to federation organ route, bridge
5 arif_memory 555 Constitutional memory governor (L1–L6) recall, remember, promote, revise
6 arif_judge 888 Constitutional verdict — SEAL/HOLD/SABAR/VOID judge, compare, witness_consensus
7 arif_forge 777 Guarded execution gate (requires prior SEAL) engineer, dry_run, write, commit
8 arif_seal 999 VAULT999 immutable append (irreversible) seal, verify, chain, dry_run
000 → 111 → 333 → 444 → 555 → 888 → 777 → 999
init → observe → think → route → memory → judge → forge → seal

Internal aliases (absorbed into canonical modes): arif_triagearif_init(preflight), arif_critiquearif_think(critique), arif_bridge_connectarif_route(bridge), arif_actarif_forge

Source of truth: tools/list (runtime) beats any static manifest.


4. The 13 Constitutional Floors

# Floor Type Rule
F1 AMANAH HARD Reversible first. Irreversible → 888_HOLD
F2 TRUTH HARD P(truth) ≥ 0.99. Fabrication = VOID
F3 WITNESS DERIVED Multi-party consensus for high-blast actions
F4 CLARITY HARD ΔS ≤ 0 — every output reduces entropy
F5 PEACE² SOFT Non-destructive power
F6 EMPATHY SOFT Protect weakest stakeholder
F7 HUMILITY HARD Cap confidence at 0.90
F8 GENIUS DERIVED G ≥ 0.80 for complex actions
F9 ANTIHANTU HARD No deception, manipulation, consciousness claims
F10 ONTOLOGY HARD AI is instrument. No soul, no feelings
F11 AUDIT HARD Every decision logged and inspectable
F12 RESILIENCE HARD Injection defense
F13 SOVEREIGN HARD Human veto FINAL. Strongest floor

HARD violation → VOID (blocked). SOFT tension → CAUTION/HOLD. DERIVED → informational.


5. Federation Architecture

                         ┌──────────────────────┐
                         │  Arif (F13 SOVEREIGN) │
                         └──────────┬───────────┘
                                    │
       ┌────────────────────────────┼────────────────────────────┐
       │                            │                            │
  ┌────▼─────┐              ┌───────▼───────┐            ┌───────▼───────┐
  │  Hermes  │              │      AAA      │            │   OpenClaw    │
  │  🧠 :8644│              │  🖥️  :3001    │            │   🤖 :18789   │
  │ Telegram │              │   Cockpit     │            │  Transport    │
  └──────────┘              └───────────────┘            └───────────────┘
                                    │
                         ┌──────────▼──────────┐
                         │    arifOS (Ω)        │
                         │    Kernel :8088      │
                         │    F1-F13 · 888 JUDGE│
                         └──┬───┬───┬───┬──────┘
                            │   │   │   │
          ┌─────────────────┼───┼───┼───┼─────────────────┐
          │                 │   │   │   │                 │
    ┌─────▼────┐   ┌───────▼┐ ┌▼─────┐ ┌▼────────┐  ┌────▼─────┐
    │  GEOX    │   │WEALTH  │ │ WELL │ │A-FORGE  │  │ VAULT999 │
    │  🌍 :8081│   │💰:18082│ │🫀:18083│ │⚒️:7071  │  │ 🔒 Seal  │
    │ Evidence │   │Compute │ │Reflect│ │Execute  │  │ Immutable│
    └──────────┘   └────────┘ └──────┘ └─────────┘  └──────────┘
Organ Port Role Must Never
arifOS 8088 Constitutional kernel Self-authorize
GEOX 8081 Earth intelligence Authorize drilling
WEALTH 18082 Capital intelligence Allocate capital
WELL 18083 Human readiness (REFLECT_ONLY) Diagnose
AAA 3001 Control plane / cockpit Issue verdicts
A-FORGE 7071/7072 Execution shell Self-authorize
VAULT999 Immutable audit ledger Edit or delete

Authority chain: Arif → AAA/Hermes → arifOS → Domain Organs → A-FORGE → VAULT999


6. Build, Test, Deploy

# Development
uv sync --all-extras
uv run python -m arifosmcp.runtime.server
python -m pytest tests/ -q --tb=short
ruff check . && ruff format .

# Deploy to VPS
make deploy-local                  # rsync + systemctl restart arifos
systemctl status arifos

# Docker
docker build -t ghcr.io/ariffazil/arifos:latest .

7. MCP Connection Guide

Public Endpoint

Property Value
Endpoint https://mcp.arif-fazil.com/mcp
Transport Streamable HTTP (JSON-RPC 2.0)
Protocol MCP 2025-11-25
Health https://arifos.arif-fazil.com/health
Tools 8 canonical + diagnostics (filtered from default tools/list)

Internal Organs

Organ Endpoint When
arifOS localhost:8088 Governance, judgment, routing
A-FORGE localhost:7071 Build, deploy, filesystem, git
GEOX localhost:8081 Seismic, wells, petrophysics
WEALTH localhost:18082 NPV, risk, capital flow
WELL localhost:18083 Vitality, readiness, dignity

Rule: arifOS judges → A-FORGE executes → VAULT999 records. Never skip the chain.

Connecting from ChatGPT, Claude, Cursor

{ "mcpServers": { "arifOS": { "url": "https://mcp.arif-fazil.com/mcp" } } }

STDIO: npx -y arifos-mcp

Discovery

  • MCP Server Card: .well-known/mcp/server.json
  • Agent Card: https://aaa.arif-fazil.com/.well-known/agent-card.json
  • MCP Manifest: https://arifos.arif-fazil.com/.well-known/mcp.json

Federation Context

Read this For Link
arifOS (this repo) Constitutional kernel. 8 verbs. 13 floors. The judge. ← you are here
A-FORGE Executor. 52 MCP tools. Governed gates. ariffazil/A-FORGE
AAA Cockpit. A2A mesh. Agent registry. ariffazil/AAA

8. License & Sovereignty

AGPL-3.0. The constitution must remain open. The kernel must remain inspectable.

Muhammad Arif bin Fazil is F13 SOVEREIGN. His veto is absolute. No algorithm overrides. No agent bypasses. No institution supersedes.

arifOS · Port 8088 · 8 canonical tools · 13 floors · 6 live organs
AGPL-3.0 · Sovereign: Arif Fazil · Federation: ALIVE
MCP · ChatGPT ✓ · Claude Desktop ✓ · PyPI
DITEMPA BUKAN DIBERI — 999 SEAL ALIVE

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arifos-2026.7.17.tar.gz (4.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

arifos-2026.7.17-py3-none-any.whl (4.6 MB view details)

Uploaded Python 3

File details

Details for the file arifos-2026.7.17.tar.gz.

File metadata

  • Download URL: arifos-2026.7.17.tar.gz
  • Upload date:
  • Size: 4.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for arifos-2026.7.17.tar.gz
Algorithm Hash digest
SHA256 6e81b8e8b3d87fee298afbbf87d2d7c31dcc6afadbc609a748bb8c06efd591bc
MD5 741c52f27c04621161b2db29aedfe9f2
BLAKE2b-256 bb759969e4d49d0b1b330432ae88450924d7a1be0c8a3b51a2d0eb8290dfd31f

See more details on using hashes here.

File details

Details for the file arifos-2026.7.17-py3-none-any.whl.

File metadata

  • Download URL: arifos-2026.7.17-py3-none-any.whl
  • Upload date:
  • Size: 4.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for arifos-2026.7.17-py3-none-any.whl
Algorithm Hash digest
SHA256 ba7371de5e7d64518f2c971e0b2789cabbf4b436ffdb8567875dd6f857678a2f
MD5 798eabf4c732531900b936c2349fb2a4
BLAKE2b-256 8c5f6cf0f7698db971fa17639a276ae29fdb47ac419de0b705323771ae9d48dd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page