EU AI Act Article 50 β€” 20 days to seal | Get passport
πŸ‰

System Architecture Deep Dive

7-layer sovereign stack Β· 30 MCP servers Β· 12 domains Β· BFT-33 governance Β· SIGIL Ed25519 chain Β· Edge-deployable Β· UK sovereign cloud

v1.0.0 PRODUCTION
7
Layers
30
MCP Servers
12
Domains
188+
Tools
33
BFT Agents
90.6%
Test Coverage

πŸ›οΈ The DEFONEOS Stack β€” 7 Layers

Each layer is independently deployable, independently testable, and independently replaceable. Defense-in-depth from silicon to strategy.

L7
☁️ Strategy & Governance Layer β€” BFT-33 Council
33-agent Byzantine Fault Tolerant council Β· Quorum 23/33 Β· Ed25519 signed proposals Β· Charter articles Β· Crosswalk mappings Β· 14 compliance frameworks Β· DEFONEOS-SEAL credential issuance Β· Council deliberation on SIGIL chain
⬇
L6
πŸ“Š Audit & Compliance Layer β€” SIGIL Chain
Ed25519 hash-chained ledger Β· JSP 936 / 440 / 604 auto-generation Β· ISO 42001 Β· SOC 2 Β· GDPR Β· UK AI Bill 2025 Β· National Security Act 2023 Β· 3-layer OrgKernel audit (L1 Identity β†’ L2 Execution β†’ L3 Compliance) Β· Immutable replay for regulators
⬇
L5
🎯 C2 & Decision Layer β€” FreeTAKServer + Mava
TAK/CoT bridge Β· FreeTAKServer integration Β· Mava multi-agent reinforcement learning Β· 34 reward functions Β· PX4 SITL Β· Swarm orchestration Β· Mission planning Β· Tasking orders Β· AAR (After Action Review) generation
⬇
L4
🧠 Fusion & Inference Layer β€” YOLOv8 + OpenAthena
YOLOv8 ISR detection (mAP50 0.9234) Β· OpenAthena geospatial query Β· Multi-sensor fusion (video/RF/AIS/ADS-B/satellite) Β· Cesium 3D globe rendering Β· Real-time COP (Common Operating Picture) Β· Edge GPU inference (ONNX/TensorRT)
⬇
L3
πŸ”Œ MCP Federation Layer β€” 30 Servers Γ— 188+ Tools
JSON-RPC MCP protocol Β· 12 domain clusters Β· Auto-discovery Β· Neural routing (OLM) Β· Rate limiting (4-tier) Β· OAuth2 + JWT (Ed25519) Β· Federation search Β· Tool composition Β· MCP marketplace integration
⬇
L2
πŸ” Security & Identity Layer β€” Zero Trust
SPIFFE workload identity Β· mTLS all services Β· PQC-ready (ML-DSA-65 / ML-KEM-768) Β· Distroless containers Β· Morris-II worm defense Β· Prompt injection scanner Β· Supply chain SBOM Β· Secrets in GPG-encrypted vault Β· Air-gap deployable
⬇
L1
πŸ–₯️ Infrastructure Layer β€” UK Sovereign Cloud
5 UK sovereign cloud regions Β· Kubernetes (RKE2) Β· Terraform IaC Β· Docker Compose (dev) Β· ARM64 + x86_64 Β· NVIDIA GPU pools (A100/H100 for training) Β· Jetson Orin edge nodes Β· Intel Tiber edge Β· Air-gapped bare-metal capable

🌐 12 Domain Clusters

πŸ›°οΈ
ISR
4 MCPs
🌊
Maritime
3 MCPs
πŸ€–
Swarm
3 MCPs
πŸ“‘
Comms
3 MCPs
πŸ”
Security
3 MCPs
πŸ“Š
Intel
2 MCPs
🌐
GIS
2 MCPs
πŸ›οΈ
Governance
3 MCPs
🏭
Civil
3 MCPs
πŸ§ͺ
Test
1 MCP
⚑
Edge
2 MCPs
🧠
Core
1 MCP

πŸ”Œ MCP Federation Protocol

JSON-RPC 2.0 Message Flow

{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "name": "detect_objects",
    "arguments": {
      "image_source": "rtsp://192.168.1.100/stream1",
      "model": "yolov8n-defoneos-v3",
      "confidence": 0.75,
      "sigil_sign": true
    }
  },
  "id": "req-7f3a2b"
}

// Response (truncated)
{
  "jsonrpc": "2.0",
  "result": {
    "detections": [
      {"class": "vehicle", "confidence": 0.94, "bbox": [120, 340, 280, 510]},
      {"class": "person", "confidence": 0.87, "bbox": [450, 200, 520, 380]}
    ],
    "sigil": "S|detect|yolov8-v3|ed25519:8a4cc85da8dbba21...",
    "processing_ms": 132,
    "model_version": "yolov8n-defoneos-v3",
    "sigil_chain_seq": 14782
  },
  "id": "req-7f3a2b"
}

Federation Discovery

StepActionProtocolLatency
1Client sends discover to federation hubJSON-RPC~2ms
2Hub returns catalog of 30 servers Γ— 188 toolsJSON-RPC~5ms
3OLM neural router ranks tools by query semanticsPython~8ms
4Client calls tools/call on best-match serverJSON-RPC~varies
5Server returns result + SIGIL receiptJSON-RPC~varies
6SIGIL appended to hash-chained ledgerSQLite/PG~1ms

⛓️ SIGIL Audit Chain Architecture

3-Layer OrgKernel Audit Pattern

L1 β€” Identity

Each agent registers an Ed25519 public key. Required before any execution. Base64-encoded 32-byte key. Org name optional. Identity is the root of trust β€” without it, no actions are logged.

L2 β€” Execution

Every agent action is logged with hash-chained linkage to the previous execution. Ed25519-signed payload. Parameters + results recorded. Tamper-evident by construction β€” any modification breaks the hash chain.

L3 β€” Compliance

Each execution is asserted against a framework (EU AI Act, JSP 936, ISO 42001, GDPR, SOC 2). Compliant/non-compliant + evidence. Ed25519-signed. Regulator-replayable via dorado_replay.

SIGIL Line Format

S|<source_agent>|<action>|<payload>|ed25519:<signature>

# Example
S|yolov8-v3|detect_objects|{"detections":2,"confidence_avg":0.905}|ed25519:8a4cc85da8dbba21...
S|bft-council|charter_amendment|{"article":"Art-7","vote":28_for_3_against}|ed25519:cef92dd24cfb85b5...
S|mava-swarm|tasking_order|{"swarm_id":"alpha-7","waypoints":[...]}|ed25519:5f6210fb5c633db8...

Chain Integrity Verification

# Verify entire chain (runs in O(n))
def verify_chain(events: list[SIGIL]) -> bool:
    prev_hash = "0" * 64  # genesis
    for event in events:
        computed = sha256(prev_hash + event.payload).hexdigest()
        if computed != event.prev_hash:
            return False  # TAMPER DETECTED
        if not ed25519_verify(event.signature, event.payload, event.pubkey):
            return False  # FORGERY DETECTED
        prev_hash = computed
    return True  # Chain intact

πŸ›οΈ BFT-33 Governance Council

Council Composition

The 33-agent council is the sovereign governance authority. No single agent (including the King) can issue a DEFONEOS-SEAL credential, approve a charter amendment, or authorize a kinetic-adjacent action without quorum.

RoleAgentsResponsibilityQuorum
Charter Guardians7Constitutional articles, red lines, charter amendments5/7
Safety Overseers7Harm prevention, red-line enforcement, kill switches5/7
Compliance Auditors5JSP 936, ISO 42001, GDPR, AI Bill compliance checks4/5
Strategic Advisors5Mission alignment, resource allocation, prioritization4/5
Technical Reviewers5Code review, architecture validation, security audit4/5
Observers (non-voting)4Log-only, cannot vote, full transparencyβ€”
Total33Council quorum for DEFONEOS-SEAL: 23/3323/33

Voting Protocol

PROPOSAL PHASE:
  1. Any agent submits proposal to council
  2. Proposal hashed + signed β†’ SIGIL chain
  3. 30-second deliberation window opens

VOTING PHASE:
  4. Each of 33 agents casts vote: FOR / AGAINST / ABSTAIN
  5. Each vote is Ed25519-signed β†’ SIGIL chain
  6. Vote window: 5 minutes (configurable)

RESOLUTION:
  7. If FOR β‰₯ quorum threshold β†’ APPROVED
  8. Resolution signed by all voting agents β†’ DEFONEOS-SEAL
  9. Result broadcast to all MCP servers + edge nodes

RED LINES (auto-reject, no vote needed):
  - Kinetic targeting patterns
  - Personal surveillance patterns
  - Cross-compartment data leakage (meok-defoneos ↔ csoai-defoneos ↔ dagon)

πŸ“‘ End-to-End Data Flow β€” ISR Pipeline Example

From Camera to COP in 132ms

StepComponentActionLatency
1RTSP Camera (edge)Capture frame at 30fps33ms
2rtsp-camera-mcpIngest RTSP stream, decode H.2648ms
3yolov8-mcp (edge GPU)Run YOLOv8n inference on Jetson Orin42ms
4fusion-mcpFuse detections with AIS + ADS-B feeds15ms
5cesium-mcpPlot detections on 3D globe (COP update)12ms
6sigil-mcpSign detection result β†’ SIGIL chain3ms
7FreeTAKServerBroadcast CoT to TAK clients9ms
8BFT CouncilIf detection triggers alert threshold β†’ council voteasync
Total Camera→COP latency~132ms

Swarm Tasking Flow

BFT COUNCIL APPROVES MISSION
       ↓
Mava RL Policy selects waypoint assignments
       ↓
PX4 SITL validates flight paths (collision check)
       ↓
FreeTAKServer issues CoT tasking orders
       ↓
Swarm executes (simulated or real PX4)
       ↓
Telemetry streams back via MQTT β†’ fusion-mcp
       ↓
SIGIL chain records every waypoint + telemetry sample
       ↓
AAR (After Action Review) auto-generated

πŸ“¦ Edge Deployment Topology

πŸ—οΈ HQ Node (Cloud)

Full stack: 30 MCPs + BFT-33 + SIGIL chain + Cesium globe + Mava training. NVIDIA A100/H100 for model training. 5 UK sovereign cloud regions. Terraform-provisioned.

🚐 Field Node (Edge)

Minimal stack: 8 critical MCPs (ISR + C2 + SIGIL + comms). Jetson Orin NX 16GB. YOLOv8n INT8 quantized. Air-gapped capable. Docker Compose. 4G/Starlink uplink.

πŸ“Ÿ Drone Node (Ultra-Edge)

Bare-metal inference only. YOLOv8n TensorRT on Jetson Orin Nano. MAVLink β†’ PX4. MQTT telemetry. No MCP server β€” just the sensor payload. SIGIL signing on-device.

Edge Resource Requirements

Node TypeComputeRAMStoragePowerMCPs
HQ (Cloud)8Γ— A100 80GB512GB10TB NVMe~4kW30
Field (Edge)Jetson Orin NX16GB512GB NVMe25W8
Drone (Ultra)Jetson Orin Nano8GB128GB eMMC15W0 (payload only)

πŸ› οΈ Technology Stack

LayerTechnologyVersionPurpose
RuntimePython3.12All MCP servers, fusion, BFT, SIGIL
ML TrainingPyTorch + Ultralytics2.4 + 8.3YOLOv8 fine-tuning, Mava RL
ML Inference (edge)TensorRT / ONNX Runtime10.3 / 1.20INT8/FP16 quantized inference on Jetson
C2FreeTAKServer2.1TAK/CoT bridge, tasking orders
Swarm SimPX4 SITL + Mava1.14 + 1.1Drone simulation, RL policy training
3D GlobeCesiumJS1.120Common Operating Picture visualization
ProtocolMCP (JSON-RPC 2.0)1.0Server-to-server, server-to-client
CryptoPyNaCl (Ed25519)1.5SIGIL signing, JWT, identity
PQC (ready)liboqs-python0.10ML-DSA-65 / ML-KEM-768 post-quantum
DatabaseSQLite / PostgreSQL3.45 / 16SIGIL chain, memory, telemetry
ContainerDocker + RKE227 + 1.5Containerization, K8s orchestration
IaCTerraform1.9Infrastructure provisioning
Testingpytest + hypothesis + playwright8.3 + 6.110 + 1.48Unit, property-based, E2E
CI/CDGitHub Actionsβ€”10-gate pipeline, auto-deploy

πŸš€ Deployment Modes

3 Operating Modes

ModeDescriptionUse CaseNetwork
CONNECTEDFull cloud + edge. All 30 MCPs federated. BFT council live.HQ operations, training, strategic planningUK sovereign cloud
DISCONNECTEDField node operates autonomously. 8 critical MCPs. Local SIGIL chain syncs on reconnect.Field deployment, disaster response, austere environments4G/Starlink intermittent
AIR-GAPPEDFully isolated. No network egress. All inference local. SIGIL chain on removable media.Classified networks, SCIF, exercisesNone (physical media only)

Air-Gap Deploy Procedure

# 1. Build on connected system
docker compose -f docker-compose.prod.yml build
docker save defoneos-mcps.tar $(docker compose config --images)

# 2. Transfer via approved media (USB/CD with virus scan)
sha256sum defoneos-mcps.tar > checksums.txt

# 3. On air-gapped system
sha256sum -c checksums.txt  # Verify integrity
docker load < defoneos-mcps.tar
docker compose -f docker-compose.airgap.yml up -d

# 4. Verify
python scripts/verify_airgap.py --check-sigil --check-mcps --check-bft
# Expected: 30 MCPs healthy, SIGIL chain intact, BFT-33 quorum reachable

πŸ”— Related Documentation

PageDescription
Security Architecture7-layer security deep-dive, threat model, mitigations
Deployment Runbook15-step 90-day deployment guide
API Documentation87 REST endpoints + WebSocket + MCP JSON-RPC
Partner Integration5 integration paths, SDK examples, onboarding
Testing Framework5-layer test pyramid, 1,730+ tests, chaos engineering
Performance BenchmarksLatency, throughput, resource benchmarks
JSP 936 ComplianceAuto-generation of statutory compliance artifacts
ChangelogVersion history v0.1.0-alpha β†’ v1.0.0