Expand description
Open Context & Token Lifecycle Architecture (OCLA) public OSS contract.
OCLA exposes local, provider-neutral control points. Implementations remain in the engine or an OSS extension; commercial systems may consume this versioned boundary but must never become a data-plane dependency.
Re-exports§
pub use registry::OclaRegistry;pub use traits::*;pub use types::*;
Modules§
- budget
- In-memory hierarchical budget enforcement for OCLA request admission.
- builtin
- Built-in OCLA trait implementations (P4 — Strangler Fig adoption).
- capsule
- content_
port - CompressionContentPort — resolves content refs to bounded byte slices and persists compressed results as content-addressed BLAKE3 refs.
- grpc_
bridge - Dependency-free configuration and lifecycle bridge for the OCLA gRPC server.
- health
- Aggregated health reporting for the OCLA wire surface.
- ledger_
export - Unified ledger export and offline verification.
- openapi
- OpenAPI 3.1 projection of the public OCLA wire contract.
- policy_
bundle - Tamper-evident policy bundles for distributing OCLA policy configuration.
- registry
- OclaRegistry — singleton that wires all 14 builtin trait implementations.
- regression_
gate - Compression hot-path regression gate (E11, master-plan P4).
- response_
cache - Bounded in-memory cache for identical model responses.
- routing_
experiment - Weighted A/B experiments for model-routing variants.
- routing_
quality - In-memory quality tracking for model-routing decisions.
- runtime
- Self-contained lifecycle runtime for the OCLA REST API.
- sidecar
- Standalone OCLA wire-API sidecar deployment.
- tracing
- traits
- types
- unified_
ledger - wire
- Stable JSON projection for the public OCLA contract.
- wire_
api - Axum REST projection for the public OCLA wire contract.
- wire_
middleware - Tower middleware for the OCLA HTTP wire contract.
- wire_
stream - Newline-delimited streaming frames for the public OCLA wire contract.