Skip to main content

Module ocla

Module ocla 

Source
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.