Skip to content

IMPORTANT

AI Assist Note (Knowledge Heritage): This document is part of the "Sovereign Reality" documentation.

  • @docs ARCHITECTURE:Documentation
  • Failure Path: Information drift, legacy terminology, or documentation mismatch.
  • Telemetry Link: Cross-reference with execution/parity_guard.py results.

AI Assist Note

Automated governance and architectural tracking.

🔍 Debugging & Observability

Traceability via parity_guard.py.

IMPORTANT

AI Assist Note (Knowledge Heritage): This document is the high-fidelity semantic hub for the Tadpole OS Engine.

  • @docs ARCHITECTURE:Hub
  • Telemetry Link: Verified via execution/parity_guard.py.

🏗️ Tadpole OS Architecture: Technical Hub

Intelligence Level: High (ECC Optimized)
Version: 1.1.13
Last Hardened: 2026-04-17 (Alignment Patch)
Standard Compliance: ECC-ARA (Enhanced Contextual Clarity)


🎯 Executive Summary

Tadpole OS is a sovereign, high-performance runtime for multi-agent swarms. It utilizes a Gateway-Runner-Registry pattern implemented in Rust to provide a local-first, privacy-respecting intelligence environment.

TIP

New to the codebase? Start with the Architecture Overview for a 3-paragraph executive brief and core system topology.


🛰️ Documentation Suite

To maintain technical clarity and reduce information density, the architecture is decomposed into the following specialized modules:

ModuleDescriptionKey Technologies
🏗️ OverviewCore topology and system philosophy.Axum, Mermaid, Sovereign Layer
🛡️ Security ModelGovernance, Merkle trails, and Oversight.ED25519, SubtleCrypto, Audit
🤖 Agent RunnerExecution lifecycle and Swarm protocols.Tokio, LLM Dispatch, Recruitment
🧠 Memory & RAGHybrid memory strategy and ingestion.LanceDB, SQLite, BM25 Reranking
⚛️ Client ArchitectureFrontend state and multi-window sync.React 19, Zustand, Portals

🏗️ 2026 Framework Modernization

Tadpole OS leverages a cutting-edge stack to ensure peak performance:

  • React 19: Adopting modern hydration and zero-jank telemetry patterns.
  • Tailwind CSS v4: CSS-first theme architecture with sub-millisecond HMR.
  • Axum 0.8: High-performance Rust networking with decoupled router isolation.
  • OTel Tracing: Enterprise-grade observability via the Telemetry Hub.

📂 Directory Structure

├── directives/         # Layer 1: OS Identity and Rules
├── execution/          # Layer 3: Deterministic Tools & Skills
│   └── agent_generated/ # Provenance Barrier: Agent-authored code
├── server-rs/          # Layer 2: Rust Orchestration Engine
│   ├── src/agent/       # Core Runner, RAG, and Persistence
│   ├── src/security/    # Merkle Audit, Metering, and Scanner
│   └── src/state/       # Modular AppState Hubs
├── docs/               # Technical Specification Suite
├── data/               # Persistent State (SQLite, Vector DB)
└── src/                # Frontend (React/Zustand)

🤖 Context for AI Assistants

  1. State Ownership: The Rust engine is the primary source of truth for agent configurations.
  2. Tool Protocol: All agent tools must return an anyhow::Result<String>.
  3. Workspace Roots: Never hardcode workspace paths; always use ctx.workspace_root.
  4. Sovereignty: Enforce the Oversight Gate for all destructive file or network operations.
  5. Rate Limiting: Never bypass RateLimiter.acquire(). It is the only budget enforcement point.

🔍 Glossary & References

For a comprehensive breakdown of domain terminology (e.g., Swarm, Bunker, Oversight Gate), refer to the GLOSSARY.md.

Sovereign Intelligence Architecture.