//! @docs ARCHITECTURE:Networking
//!
//! ### AI Assist Note
//! **API Surface (REST & WebSocket)**: Orchestrates the entry points
//! for the Tadpole OS engine. Features a **Sovereign Routing
//! Hierarchy**: endpoints are grouped by subsystem (e.g., `agent`,
//! `memory`, `oversight`) and versioned under `/v1/`. Real-time mission
//! telemetry is exclusively handled via the `ws` (WebSocket) bridge.
//! High-latency operations (e.g., `deploy`, `benchmarks`) utilize an
//! **Asynchronous Response Pattern**, providing a task_id for
//! poll-based or socket-based status feedback (ROUTE-01).
//!
//! ### 🔍 Debugging & Observability
//! - **Failure Path**: 404 (Incorrect subsystem route prefix), 405
//!   (Method mismatch), or WebSocket handshake failure due to
//!   missing subprotocols.
//! - **Telemetry Link**: Search for `[Route]` or `[Handler]` in
//!   tracing logs for request lifecycle benchmarks.
//! - **Trace Scope**: `server-rs::routes`

pub mod a2a;
pub mod agent;
pub mod audio;
pub mod benchmarks;
pub mod cas;
pub mod continuity;
pub mod deploy;
pub mod docs;
pub mod engine_control;
pub mod env_schema;
pub mod governance;
pub mod health;
pub mod intelligence;
#[cfg(feature = "vector-memory")]
pub mod knowledge;
pub mod mcp;
pub mod memory;
pub mod metrics;
pub mod model_manager;
pub mod nodes;
pub mod outward_routes;
pub mod oversight;
pub mod pagination;
pub mod remote;
pub mod skills;
pub mod system;
pub mod templates;
pub mod ws;

#[cfg(test)]
mod agent_tests;
#[cfg(test)]
mod auth_tests;
#[cfg(test)]
mod integration_tests;
#[cfg(test)]
mod mcp_test;
#[cfg(test)]
mod ws_tests;

// Metadata: [mod]
