Skip to main content

Module ocla

Module ocla 

Source
Expand description

Open Context & Token Lifecycle Architecture (OCLA) public OSS contract.

Traits and types are defined in the standalone lean-ctx-ocla crate and re-exported here so that engine-internal code continues using crate::core::ocla::* without import changes.

Re-exports§

pub use catalogue::CatalogueEntry;
pub use catalogue::ModelEntry;
pub use catalogue::ProviderEntry;
pub use catalogue::TechnicalCatalogue;
pub use registry::OclaRegistry;
pub use traits::*;
pub use types::*;

Modules§

adapters
Native capability adapters and their versioned registry.
budget
In-memory hierarchical budget enforcement for OCLA request admission.
builtin
Built-in OCLA trait implementations (P4 — Strangler Fig adoption).
cache_coordinator
Coordinator for the L1-to-L3 generalized delivery cache lookup chain.
cache_delivery
Shared adapter helpers for generalized cross-agent delivery caching.
cache_tiers
Process, daemon, and disk cache tiers for generalized delivery entries.
cache_types
Versioned identities and metadata for generalized delivery caching.
capability_fabric
Canonical manifest normalization shared by OCLA discovery sources.
capsule
catalogue
Public technical metadata used by the shadow scheduler.
compose_cache
Section-aware cache for ctx_compose results.
content_port
CompressionContentPort — resolves content refs to bounded byte slices and persists compressed results as content-addressed BLAKE3 refs.
health
Aggregated health reporting for the OCLA wire surface.
invocation
Common invocation and measurement envelopes for OCLA capability adapters.
registry
OclaRegistry — singleton that wires all 15 builtin trait implementations.
response_cache
Bounded in-memory cache for identical model responses.
traits
Compatibility reexports for the canonical OCLA traits.
types
Compatibility reexports for the canonical OCLA types.
unified_ledger
wire
Stable JSON projection for the public OCLA contract.
wire_api
Axum REST projection for the public OCLA wire contract.