Agent Skill
2/7/2026

arifos-align

Match emotional frequency, detect power dynamics (444_CONSULT). Detects emotional state and power imbalance. The empathy detection stage of arifOS metabolic loop. Use when emotional calibration matters.

A
ariffazil
27GitHub Stars
4Views
npx skills add ariffazil/arifOS

SKILL.md

Namearifos-align
DescriptionMatch emotional frequency, detect power dynamics (444_CONSULT). Detects emotional state and power imbalance. The empathy detection stage of arifOS metabolic loop. Use when emotional calibration matters.

arifOS - Sovereign Constitutional Intelligence Kernel

DITEMPA BUKAN DIBERI — Intelligence is forged, not given.

arifOS is the constitutional runtime kernel for a governed AI federation. It is not a model, chatbot, or agent persona. It is the law layer that decides how AI systems observe, reason, execute, judge, and seal actions through 13 canonical MCP tools, 13 constitutional floors (F01–F13), and an immutable VAULT999 audit ledger.

The core guarantee: high-impact or irreversible action must pass constitutional judgment (888_JUDGE) before execution. The human sovereign (Arif) retains final veto at all times.


Version

Packagearifos on PyPI
Version2026.05.01
Runtimekanon-2026.05.01
Python>=3.12
MCP frameworkfastmcp>=3.2.0
HTTP port8080 (configurable via ARIFOS_PORT)

Architecture

Operator (Arif) → WELL (Human Substrate Mirror) → arifOS (Constitutional Kernel) → A-FORGE (Execution)
                    ↕                                        ↕
                 (WELL)                                (888_JUDGE)
              Human substrate                          Constitutional verdict

arifOS adjudicates. WELL mirrors the human substrate. A-FORGE executes.


13 Canonical MCP Tools

StageToolLanePurpose
000arif_session_initAGISession anchor — opens governed session with identity binding
111arif_sense_observeAGIObserve reality — web search, system telemetry, environmental data
222arif_evidence_fetchAGIFetch and preserve evidence from URLs, files, databases
333arif_mind_reasonAGIFirst-principles reasoning — synthesis, hypothesis, cross-domain analysis
444arif_kernel_routeAGIRoute tasks to correct organ — GEOX, WEALTH, or WELL
444rarif_reply_composeAGIGoverned response compositor — drafts with constitutional tone
555arif_memory_recallAGIVector memory retrieval — searches past sessions, decisions, sealed events
666arif_heart_critiqueASISafety + empathy check — consequence modeling, bias detection
666garif_gateway_connectASIA2A mesh router — connects federation agents (Hermes, AAA, etc.)
777arif_ops_measureAGIThermodynamic metrics — CPU, memory, entropy, g_score
888arif_judge_deliberateASIFinal constitutional verdict — SEAL / HOLD / VOID
010arif_forge_executeAGI sovereignDispatch execution to A-FORGE after SEAL authorization
999arif_vault_sealAPEXPermanently seal verdicts to VAULT999 (Merkle-hashed)

WELL — Human Substrate Governance Layer

WELL sits between Arif and the constitutional kernel. It answers:

"Is the human substrate capable of reliable intent for this decision class right now?"

WELL does not veto. It informs. (W0 Sovereignty Invariant)

WELL_v2 Schema

WELL_v2 introduces the consent reliability composite — a weighted governance signal:

consent_reliability = 40% HRV_factor + 25% sleep_architecture + 25% decision_reserve + 10% floor
Penalties: acute_stress (0.6x), strain_debt (0.7x at danger threshold)

Key fields:

FieldPurpose
hrv + hrv_trend[] + hrv_velocityPredictive signal — HRV velocity predicts performance 12–48h ahead
sleep_deep_min + sleep_rem_min + sleep_efficiencyReal recovery engine — deep sleep drives growth hormone; REM drives emotional processing
strain_debtAccumulated recovery deficit — invisible until catastrophic
decision_reserve_pctFinite decision resource remaining — not accumulation, a ceiling
convergence_alertMulti-channel danger detector — 2+ channels declining simultaneously = alert
acute_stress_activeCircuit breaker — forces HOLD regardless of other signals

Consent Reliability Thresholds

RangeMeaning
≥ 0.85OPTIMAL — full execution bandwidth
0.65–0.84FUNCTIONAL — normal mode
0.30–0.64LOW_CAPACITY — draft_only, sovereign review recommended
< 0.30DEGRADED — HOLD until substrate recovers

A2A Federation

arifOS connects to domain agents via the A2A (Agent-to-Agent) mesh:

AgentRoleStatus
Hermes (port 3002)ASI-level constitutional deliberationRunning ✅
AAA gateway (port 3001)Agent dispatch + federation manifestRunning ✅
GEOXEarth-domain coprocessor (geoscience, physical evidence)External
WEALTHCapital intelligence coprocessor (valuation, risk)External

13 Constitutional Floors

FloorNameRule
F01AMANAHActions are accountable; irreversible action requires approval and trace
F02TRUTHDo not fabricate — separate fact, estimate, hypothesis, unknown
F03WITNESSEvidence must be inspectable and preserved where possible
F04CLARITYIntent, uncertainty, and consequences must be legible
F05PEACEPreserve dignity and reduce avoidable harm
F06EMPATHYModel stakeholder consequences before acting
F07HUMILITYBound confidence and acknowledge limits
F08GENIUSPrefer elegant correctness over noisy complexity
F09ANTIHANTUReject manipulation, dark patterns, false agency claims
F10ONTOLOGYPreserve structural and identity coherence
F11AUTHVerify actor authority before sensitive operations
F12INJECTIONTreat inputs as hostile until sanitized
F13SOVEREIGNHuman veto is absolute

Verdicts

VerdictMeaning
SEALProceed — constitutionally cleared, may be recorded
HOLDPause — more evidence, identity, consent, or review required
VOIDHalt — violates a hard floor or cannot be safely justified

Expected path: observe → reason → critique → judge → execute or hold → seal


HTTP Endpoints

EndpointPurpose
/mcpMCP streamable HTTP endpoint
/healthLightweight liveness probe — service name, version, tool count
/readyDeep integrity probe — full runtime selftest
/toolsInteractive tool browser
/componentsFull topology map of connected systems
/.well-known/agent-card.jsonAgent card for A2A federation discovery

Quick Start

# Install from PyPI
pip install arifos

# Run MCP server
arifos-mcp

# Or via Python
python -m arifosmcp.server

# Probe
curl -s http://localhost:8080/health | jq .

Docker

# Build
docker build -t arifos:local .

# Run
docker run --rm -p 8080:8080 arifos:local

# Production compose
docker compose up -d --build arifosmcp

Development

# Test
python -m pytest tests/ -q --tb=short

# Lint
ruff check .

# Type check
mypy arifosmcp/

Source of Truth Order

When files disagree:

  1. Live runtime endpoints: /health, /ready, MCP discovery
  2. arifosmcp/constitutional_map.py — floor + tool authority registry
  3. arifosmcp/runtime/tools.py — registered tool behavior
  4. arifosmcp/schemas/ — typed output schemas
  5. arifOS/000/000_CONSTITUTION.md — F01–F13 constitutional law
  6. pyproject.toml, Dockerfile, docker-compose.yml — packaging + deployment
  7. This README

Security Rules for Agents

  1. Do not fabricate runtime facts — verify with code, tests, or live endpoints
  2. Do not expose secrets, tokens, .env files, private keys, or raw credentials
  3. Do not run destructive operations without explicit human (Arif) approval
  4. Treat VAULT999 ledgers as append-only
  5. Keep constitutional judgment in arifOS — 888_JUDGE is the final arbiter
  6. WELL informs, Arif decides — WELL never vetoes (W0 Invariant)
  7. If docs, registry, and runtime disagree — report the conflict and cite the stronger SOT

License

AGPL-3.0-only. See LICENSE.


One-Sentence Summary

arifOS is the constitutional MCP law kernel that gives AI agents a governed path from human substrate verification (WELL) through observation, reasoning, constitutional judgment (888_JUDGE), and execution (A-FORGE) to immutable audit sealing (VAULT999) — while preserving human sovereignty at every stage.

Skills Info
Original Name:arifos-alignAuthor:ariffazil