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.pyresults.
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:
| Module | Description | Key Technologies |
|---|---|---|
| 🏗️ Overview | Core topology and system philosophy. | Axum, Mermaid, Sovereign Layer |
| 🛡️ Security Model | Governance, Merkle trails, and Oversight. | ED25519, SubtleCrypto, Audit |
| 🤖 Agent Runner | Execution lifecycle and Swarm protocols. | Tokio, LLM Dispatch, Recruitment |
| 🧠 Memory & RAG | Hybrid memory strategy and ingestion. | LanceDB, SQLite, BM25 Reranking |
| ⚛️ Client Architecture | Frontend 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
- State Ownership: The Rust engine is the primary source of truth for agent configurations.
- Tool Protocol: All agent tools must return an
anyhow::Result<String>. - Workspace Roots: Never hardcode workspace paths; always use
ctx.workspace_root. - Sovereignty: Enforce the Oversight Gate for all destructive file or network operations.
- 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.
