Skip to content

Latest commit

Β 

History

2,499 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AAA β€” Attention Plane & Federation Registry

🧠 Agentic CI πŸ›‘οΈ Governance Gate πŸ” Gitleaks Docker Image A2A Protocol Node License: AGPL v3

The attention plane of the arifOS federation β€” compressing reality into sovereign attention.

AAA converts federated reality into actionable sovereign attention through observation, verification, registration, and routing. It does not judge (arifOS), execute (A-FORGE), or witness (arifFlow). It makes reality visible, trustworthy, and actionable.

In a world where intelligence is abundant, attention is the scarce resource. AAA exists to ensure the right reality reaches the right authority at the right time.

Licensed under AGPL-3.0.

Audience What you get
Human One switchboard. Intent in, the right organ out. No terminal dump in your pocket
Agent / A2A Public card /.well-known/agent-card.json. JSON-RPC at /a2a/ with A2A-Version: 1.0. Extended card is authenticated, not a topology dump
Institution DISPLAY_ONLY edge: routes and shows state. Judgment is arifOS. Hands are A-FORGE

Canonical live surface: a2a/CANONICAL_SURFACE.md


The Problem

As federations grow, intelligence becomes abundant but human attention becomes scarce. The challenge is no longer generating answers β€” it is determining what matters, what requires attention now, and what can safely wait. Without an attention layer, operators drown in logs, dashboards, metrics, and agent chatter.

AAA solves this by providing:

  • Attention compression β€” converts complex federated reality into actionable sovereign attention
  • Federation state β€” canonical federation_state() object with organ health, FQ, holds, bottlenecks
  • Verification β€” cross-checks observed state against live federation reality
  • Intent routing β€” deterministic classification that maps intent to the correct organ
  • Skill catalog β€” 200+ skills discoverable and composable across organs

Architecture

                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                    β”‚    Sovereign    β”‚
                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                             β”‚
                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”
                    β”‚  AAA Attention  β”‚
                    β”‚     Plane       β”‚
                    β”‚   Port :3001    β”‚
                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                             β”‚
         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
         β”‚                   β”‚                   β”‚
         β–Ό                   β–Ό                   β–Ό
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    β”‚ Observe β”‚      β”‚   Verify    β”‚     β”‚    Route    β”‚
    β”‚ (State) β”‚      β”‚ (aaastate   β”‚     β”‚ (Intent     β”‚
    β”‚         β”‚      β”‚  verify)    β”‚     β”‚  Classify)  β”‚
    β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”˜      β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜
         β”‚                  β”‚                    β”‚
         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                            β–Ό
                   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                   β”‚ Federation State β”‚
                   β”‚  (canonical)    β”‚
                   β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                            β”‚
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    β”‚          β”‚            β”‚            β”‚          β”‚
    β–Ό          β–Ό            β–Ό            β–Ό          β–Ό
 arifOS     A-FORGE     arifFlow     WEALTH    GEOX/WELL
 Authority  Execution   Witness     Capital   Domain
  Plane      Plane       Plane      Plane      Organs

Quick Start

Docker

git clone https://github.com/arif-fazil/AAA.git
cd AAA
docker compose up -d

# Verify
curl http://localhost:3001/health
curl http://localhost:4000/health/liveliness

Local Development

cd AAA
npm install
npm run dev

# Or with Docker Compose for full stack (AAA + FED)
docker compose up -d

Key Components

A2A Mesh Gateway

Agent-to-agent communication broker using the Agent-to-Agent (A2A) protocol v1.0.0. Handles message routing, session management, and inter-organ communication.

FED Gateway (Multi-Model Inference)

Federation model gateway with fallback chains across providers (FLAME Router retired 2026-09-04):

  • FED :4000 β€” HAProxy intake into the federation model lanes (LiteLLM)
  • Fallback chains β€” retry with backoff; position 3+ on a different provider/route
  • Local fallback β€” Ollama, zero-cost

When a model fails, FED routes to the next provider β€” no interruption.

Intent Classification

Deterministic mission routing that maps human language to machine states:

  • Six stable mission states (no seventh β€” ambiguous β†’ HOLD)
  • Works even when the ML classifier is down
  • Phase 2: optional model-assisted intent parsing

Skill Catalog

200+ skills across 11 categories:

  • 333-AGI β€” General intelligence, web, research, epistemic discovery
  • 555-ASI β€” Causal reasoning, structural intelligence, vision analysis
  • 888-APEX β€” Sovereign adjudicative, constitutional audit
  • FORGE (adat) β€” Code, infrastructure, deployment (inherited capability substrate)
  • warga β€” Citizen agent skills
  • And more (productivity, media, smart home, social)

Federation State & Attention Plane

Canonical federation_state() object β€” the keystone. Every surface projects from the same state:

  • Organ health β€” 8 organs, latency, failure reasons
  • Flow Quotient (FQ) β€” per-actor metabolism, diagnosis, stuck actors
  • Authority debt β€” holds, seals, oldest hold, held actors
  • Bottleneck detection β€” infrastructure, authority, metabolism, or none
  • Verification β€” aaa_state_verify.py cross-checks state against live sources

Surfaces: Web Cockpit Β· Static API Β· Terminal (python3 federation_state.py crf) Β· Verification (python3 aaa_state_verify.py)


Federation Role

AAA sits between reality and the sovereign:

Reality β†’ AAA (observe + verify + compress) β†’ Sovereign Attention

Division of Constitutional Labor

Organ Constitutional Role Scarcity Does NOT
arifOS Authority Plane β€” constitutional judgment Authority Never executes, never witnesses
AAA Attention Plane β€” reality compression + routing Attention Never judges, never executes, never mutates
arifFlow Witness Plane β€” metabolic recording Reality Never judges, never executes
A-FORGE Execution Plane β€” bounded mutation Execution Never adjudicates, never witnesses
GEOX Earth Intelligence Domain Never judges, never routes
WEALTH Capital Intelligence Capital Never judges, never executes
WELL Human Readiness Substrate Never judges, never executes

AAA observes, verifies, compresses, and routes β€” but never judges, executes, or mutates. Verdicts belong to arifOS. Mutations belong to A-FORGE. Reality recording belongs to arifFlow.

What AAA Is Not

AAA is not an orchestrator. AAA is not a workflow engine. AAA is not a judge. AAA is not an executor. AAA is not an agent manager.

AAA does not decide truth. AAA does not mutate reality. AAA only ensures that reality reaches attention.


Federation Repository Taxonomy (5-Tier)

The arifOS Federation organizes its 35 repositories into five distinct operational tiers:

  • Tier 1 β€” Core Runtime: arifOS, A-FORGE, arifFlow, AAA, GEOX, WEALTH, WELL. The living spine of the federation.
  • Tier 2 β€” Governance Infrastructure: scripts, FRAME, web-canon, arifOS-model-registry. Rulebooks, tools, schemas, and operational scripts.
  • Tier 3 β€” Federation Interfaces: arif-fazil.com, ariffazil, HERMES. Human and sovereign public boundaries.
  • Tier 4 β€” Infrastructure Attachments: compose, searxng, syedos, A2B, awesome-mcp-servers, macrostrat. Auxiliary configurations and benchmarks without runtime authority.
  • Tier 5 β€” Archives: 15 retired historical repositories under zero execution rights ([L4 ARCHIVE]).

Health Checks

Endpoint Description Auth
GET /health AAA organ liveness None
GET /health/skills Skill catalog status None
GET /health/liveliness FED gateway liveliness (no auth) None
GET /health/agents Agent registry None

A2A Compliance (v1.0)

Required Element Status Where
Agent card discovery at /.well-known/agent-card.json βœ… public/.well-known/ Β· live: https://aaa.arif-fazil.com/.well-known/agent-card.json
Required card fields (name, description, url, version, capabilities, defaultInputModes, defaultOutputModes, skills, securitySchemes) βœ… .well-known/agent-card.json (8 skills)
JSON-RPC transport at /a2a/ with A2A-Version: 1.0 βœ… a2a/ Β· JSON-RPC 2.0 wire
Protocol binding declaration (protocolBinding: JSONRPC) βœ… supportedInterfaces
Authenticated extended card βœ… capabilities.authenticated_extended_card: true
Agent metadata card (agent.json) βœ… .well-known/agent.json
Protocol conformance evidence βœ… PROTOCOL_CONFORMANCE.md
Canonical live surface doc βœ… a2a/CANONICAL_SURFACE.md

Fetch the card from any A2A client:

curl -s https://aaa.arif-fazil.com/.well-known/agent-card.json | jq '{name, version, protocolVersion}'

Documentation


License

GNU Affero General Public License v3.0 (AGPL-3.0)

This program is free software: you can redistribute it and/or modify it under the terms of the GNU AGPL v3.0. See LICENSE for the full text.


DITEMPA BUKAN DIBERI β€” Forged, Not Given.

Built by Muhammad Arif bin Fazil.

About

A2A v1.0 federation gateway and state plane. Routes intent. Displays state. Never judges, never executes. DISPLAY_ONLY.

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Contributors

Languages