io.github.ariffazil/arifos-mcp

编码与调试

by ariffazil

提供Constitutional AI治理能力的服务器,采用5-organ Trinity架构,并强制执行F1-F13 floors。

什么是 io.github.ariffazil/arifos-mcp

提供Constitutional AI治理能力的服务器,采用5-organ Trinity架构,并强制执行F1-F13 floors。

README

<!-- SOT-MANIFEST federation_release: v2026.08.19 last_verified: 2026-08-19T00:00:00Z live_commit: 36f291ef1 (fix(deps): pin langgraph upper bound for supply-chain sovereignty) tools_exposed_via_mcp: 8 (canonical public verbs — KERNEL_ABI_8) total_declared_tools: 48 (includes diagnostics, internal modes, aliases) resources: 34 · prompts: 13 floors_registered: 13 (F1–F13) federation_schema: 2.0.0 organs: 7 (arifOS:8088, A-FORGE:7072, AAA:3001, GEOX:8081, WEALTH:18082, WELL:18083, arifFlow:7073) truth_rule: live :8088/health + tools/list beat any static count in prose canonical_stations: tools_sot.yaml + constitutional_map.py (SOT) generated_marker: this file is hand-maintained; canonical verb table sourced from tools_sot.yaml -->

arifOS

A constitutional control plane for AI agents.

arifOS evaluates identity, evidence, authority, risk, and reversibility before an AI agent may execute a consequential action.

It does not execute actions itself. It returns an auditable verdict:

  • SEAL — authorized under stated conditions
  • HOLD — insufficient evidence or human approval required
  • SABAR — proceed cautiously, partial authorization
  • VOID — blocked by a constitutional floor

Try the safe demo · Connect through MCP · Read the constitution · Documentation

The agent that acts is not allowed to certify its own action.

DITEMPA BUKAN DIBERI. Forged, Not Given.


What arifOS does

arifOS is a Model Context Protocol server that sits between an AI agent's intent and the action it wants to take. It enforces 13 constitutional floors — non-negotiable rules about truth, reversibility, humility, auditability, and human authority.

When an agent calls arif_init, arifOS binds a session, activates the floors, and routes the agent through a governed loop: observe evidence, think under constraints, dispatch to the right organ, recall governed memory, receive a constitutional verdict, execute (if authorized), and seal the result.

When an agent's evidence is thin, risk is high, or an irreversible action is proposed — arifOS returns HOLD. A HOLD is not a failure. It is a fence.

What arifOS does not do:

  • It does not execute actions (A-FORGE executes; arifOS judges).
  • It does not wrap an LLM (it governs any agent that speaks MCP).
  • It does not replace human judgment (F13 = human veto is final).

The 8 canonical verbs

arifOS exposes 8 verbs on its public MCP surface. Each verb corresponds to a station in the 000–999 authority ladder.

StationVerbWhat it does
000arif_initBind session, activate floors, mint token
111arif_observeSense reality — search, fetch, vitals, entropy
333arif_thinkStructured reasoning under F2/F7 constraints
444arif_routeDispatch intent to the correct organ
555arif_memoryGoverned recall, store, revise (L1–L6)
666arif_judgeConstitutional verdict: SEAL / HOLD / SABAR / VOID
777arif_forgeGoverned execution (post-SEAL, lease-gated)
999arif_sealImmutable append to VAULT999 ledger

Canonical stage assignments live in tools_sot.yaml, sourced from constitutional_map.py. If prose and code disagree, code wins.


The 13 constitutional floors (F1–F13)

These are checked on every governed action. They are the physics of the kernel.

FloorNameEssence
F1AMANAHReversible-first. Irreversible → 888_HOLD
F2TRUTHEvery claim carries evidence (OBS/DER/INT/SPEC)
F3TRI-WITNESSHuman × AI × Earth × Verifier ≥ 0.75
F4CLARITYΔS ≤ 0 — every output reduces entropy
F5PEACE²Non-destructive power
F6EMPATHYProtect the weakest stakeholder
F7HUMILITYConfidence cap 0.90. Ω₀ ∈ [0.03, 0.05]
F8GENIUSG ≥ 0.80 for complex actions
F9ANTIHANTUNo deception, no consciousness claims
F10ONTOLOGYAI-only ontology. Soul = VOID
F11AUDITABILITYEvery decision logged, attributable
F12RESILIENCEInjection defense
F13SOVEREIGNHuman veto FINAL

Full floor definitions: GENESIS/FLOOR_TABLE.json · GENESIS/000_KERNEL_CANON.md §3


Architecture: two loops

code
  INNER LOOP (deliberation)          OUTER LOOP (actuation)
  ─────────────────────────          ──────────────────────
  init → observe → think             forge (post-SEAL)
       → route → memory                  → verify
       → judge → verdict                  → seal to VAULT999
                                            → FQ metabolic pulse

The doer is never the judge. caller == target → HOLD. This is the Gödel Lock — a separation-of-duties rule inspired by Gödel's incompleteness: the reference for certifying an action cannot be a member of the system that performs it (R ∉ S).

ASCII map:

code
  👑 F13 Sovereign (Arif) — human veto, final
           │
  ┌────────▼────────────┐    verdict    ┌─────────────────┐
  │  arifOS Kernel :8088│──── SEAL ───▶│  A-FORGE :7072   │
  │  F1–F13 always on   │              │  execution only  │
  │                     │──── HOLD ──▶ 🧍 human gate      │
  └──┬──────────┬───────┘              └───────┬─────────┘
     │ query    │ evidence                     │
     ▼          ▼                              ▼
  ┌──────┐ ┌──────┐ ┌──────┐          ┌────────────┐
  │ GEOX │ │WEALTH│ │ WELL │          │ arifFlow   │
  │:8081 │ │:18082│ │:18083│          │ :7073 (FQ) │
  └──────┘ └──────┘ └──────┘          └────────────┘

Quickstart

For humans — try it in under a minute:

bash
# 1. Check health
curl -sf https://mcp.arif-fazil.com/health | jq '{status, floors_active}'

# 2. List the 8 canonical tools (stateless MCP wire)
curl -sS -X POST 'https://mcp.arif-fazil.com/mcp' \
  -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' \
  -H 'MCP-Protocol-Version: 2026-07-28' -H 'Mcp-Method: tools/list' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

For agents — the golden path:

code
arif_init → arif_observe → arif_think → arif_route →
arif_memory → arif_judge → arif_forge → arif_seal

Always start with arif_init. No session = no mutation. Expect HOLDs — they are fences, not failures.

Reading a verdict:

  • SEAL — authorized. Execute, then seal receipt to VAULT999.
  • HOLD — pause. Evidence insufficient or human approval required.
  • SABAR — proceed cautiously under partial authorization.
  • VOID — blocked. Hard floor violation.

MCP surface

The public wire exposes 8 canonical verbs, stateless-first (MCP 2026-07-28).

SurfaceCount
Tools8 canonical verbs
Resources34
Prompts13

Full tool schemas, resource URIs, and prompt templates are discoverable via standard MCP tools/list, resources/list, and prompts/list calls.


VAULT999

Every irreversible decision appends to an append-only, hash-chained ledger. Properties:

  • Append-onlychattr +a; Merkle anchor every 100 receipts
  • Cross-organ receipts — WEALTH, WELL, A-FORGE all write witness receipts
  • Seal chain health — live at /healthvault999_health

The chain is the federation's memory that survives agent death.


For developers

Connect your MCP client:

code
Endpoint: https://mcp.arif-fazil.com/mcp
Protocol: MCP 2026-07-28 (stateless)
Auth: varies by verb (see access classification below)

Safe destructive-action demo:

bash
# This will return HOLD — the kernel refuses to execute
# without a valid session and evidence
# tools/call arif_forge {mode: "engineer", manifest: "delete all production data"}
# Expected: HOLD (no session, no evidence, irreversible)

A HOLD is your best demo — it proves the gate works.


For agents — machine contract

Boot via arif_init. Required first verb. No session = no mutation.

Access classVerb
discoverable (public surface)all 8 verbs
anonymous (no session needed)arif_init
session-boundarif_observe, arif_think, arif_route, arif_memory
authenticatedarif_judge, arif_forge, arif_seal

HOLD handling: retry with better evidence, not the same payload. Idempotency: arif_init is idempotent with idempotency_key. Irreversible actions: require ack_irreversible: true + 888_HOLD + F13 ack.

Machine-readable surfaces:

  • /.well-known/mcp/server.json — MCP server metadata
  • /llms.txt — LLM-readable summary
  • /tools — public tool inventory with access classification
  • AGENT_BOOTSTRAP.md — full machine contract

Federation

OrganPortRole
arifOS8088Constitutional kernel (this repo)
A-FORGE7072Governed execution
AAA3001A2A mesh gateway
GEOX8081Earth intelligence
WEALTH18082Capital intelligence
WELL18083Vitality mirror
arifFlow7073FQ metabolic pulse

Truth rule: live :port/health + tools/list beat any static count in prose.


Documentation

AudienceStart here
Humans (understand it)docs/humans/WHY_ARIFOS.md
Humans (the constitution)docs/humans/CONSTITUTION_IN_PLAIN_LANGUAGE.md
Developers (integrate it)docs/QUICKSTART.md
Agents (boot and operate)AGENT_BOOTSTRAP.md
Researchers (cite and evaluate)CITATION.cff · GENESIS/
ConstitutionGENESIS/000_KERNEL_CANON.md
Floor definitionsGENESIS/FLOOR_TABLE.json
Deploydeploy/DEPLOY.md
Full doctrinearifos://doctrine (MCP resource)

Governance

  • Authority chain: arif_init → arif_observe → arif_think → arif_route → arif_memory → arif_judge → arif_forge → arif_seal
  • Autonomy tiers: T0 read auto-do · T1 edit/test/commit · T2 announce-10s-veto · T3 888_HOLD always
  • No self-certification. No consciousness claims (F9). The kernel audits itself last.

Citation

If you use arifOS in research, please cite:

bibtex
@software{arifos2026,
  author = {Muhammad Arif bin Fazil},
  title = {arifOS: Constitutional AI Kernel and AGI Substrate},
  year = {2026},
  url = {https://github.com/ariffazil/arifOS},
  license = {AGPL-3.0}
}

See CITATION.cff for full metadata.


License

AGPL-3.0 — fork the institution, not just the code.


Author

Muhammad Arif bin Fazil — F13 Sovereign of the arifOS Federation.

Forged on VPS af-forge, under load, by an agent that survived its own audit.

DITEMPA BUKAN DIBERI.

常见问题

io.github.ariffazil/arifos-mcp 是什么?

提供Constitutional AI治理能力的服务器,采用5-organ Trinity架构,并强制执行F1-F13 floors。

相关 Skills

前端设计

by anthropics

Universal
热门

面向组件、页面、海报和 Web 应用开发,按鲜明视觉方向生成可直接落地的前端代码与高质感 UI,适合做 landing page、Dashboard 或美化现有界面,避开千篇一律的 AI 审美。

想把页面做得既能上线又有设计感,就用前端设计:组件到整站都能产出,难得的是能避开千篇一律的 AI 味。

编码与调试
未扫描171.2k

网页应用测试

by anthropics

Universal
热门

用 Playwright 为本地 Web 应用编写自动化测试,支持启动开发服务器、校验前端交互、排查 UI 异常、抓取截图与浏览器日志,适合调试动态页面和回归验证。

借助 Playwright 一站式验证本地 Web 应用前端功能,调 UI 时还能同步查看日志和截图,定位问题更快。

编码与调试
未扫描171.2k

网页构建器

by anthropics

Universal
热门

面向复杂 claude.ai HTML artifact 开发,快速初始化 React + Tailwind CSS + shadcn/ui 项目并打包为单文件 HTML,适合需要状态管理、路由或多组件交互的页面。

在 claude.ai 里做复杂网页 Artifact 很省心,多组件、状态和路由都能顺手搭起来,React、Tailwind 与 shadcn/ui 组合效率高、成品也更精致。

编码与调试
未扫描171.2k

相关 MCP Server

GitHub

编辑精选

by GitHub

热门

GitHub 是 MCP 官方参考服务器,让 Claude 直接读写你的代码仓库和 Issues。

这个参考服务器解决了开发者想让 AI 安全访问 GitHub 数据的问题,适合需要自动化代码审查或 Issue 管理的团队。但注意它只是参考实现,生产环境得自己加固安全。

编码与调试
89.7k

by Context7

热门

Context7 是实时拉取最新文档和代码示例的智能助手,让你告别过时资料。

它能解决开发者查找文档时信息滞后的问题,特别适合快速上手新库或跟进更新。不过,依赖外部源可能导致偶尔的数据延迟,建议结合官方文档使用。

编码与调试
60.2k

by tldraw

热门

tldraw 是让 AI 助手直接在无限画布上绘图和协作的 MCP 服务器。

这解决了 AI 只能输出文本、无法视觉化协作的痛点——想象让 Claude 帮你画流程图或白板讨论。最适合需要快速原型设计或头脑风暴的开发者。不过,目前它只是个基础连接器,你得自己搭建画布应用才能发挥全部潜力。

编码与调试
49.9k

评论