coreason-runtime 0.1.0

Kinetic Plane execution engine for the CoReason Tripartite Cybernetic Manifold
Documentation
// Copyright (c) 2026 CoReason, Inc.
// All rights reserved.

//! Middleware API routes (stub).
//!
//! Replaces `coreason_runtime/api/middleware.py`.
//!
//! TODO: Implement Tower middleware layers for:
//! - Request/response logging
//! - Rate limiting
//! - Authentication token validation
//! - Request tracing (OpenTelemetry spans)
//! - Payload size enforcement

use axum::Router;
use std::sync::Arc;

use crate::GatewayState;

/// Build the middleware router.
///
/// Currently a no-op stub. Middleware will be added as Tower layers
/// on the top-level router rather than as route handlers.
pub fn router() -> Router<Arc<GatewayState>> {
    Router::new()
}