The CEE is not a runtime module. It is a client library, with Python bindings over it, that composes calls to the CAE and the CTE into four operations. This page shows how each operation maps onto the pieces below it.
Core class
ContextInterface
Operations
bundle, query, retrieve, destroy
Agents
iowarp-cei-mcp (MCP server)
The pieces
Every CEE operation becomes one or more ordinary CAE or CTE
tasks. There is no CEE state in the runtime.
The context interface
All logic lives in one C++ class in the caller's process. Constructing it does nothing; the first operation initializes the runtime client, then the CAE client (which brings up the CTE client), and checks that the runtime client is up. A failed runtime initialization is remembered rather than retried in a loop, because repeatedly creating the messaging context corrupted the allocator under Python 3.13.
Operations
Bundle
Builds assimilation contexts from the caller's list and sends them to the CAE core as one ParseOmni task, then waits. Everything the CAE can import, the CEE can bundle.
Query
Returns matching blob names in one of three modes. With a time bound it runs a temporal query. With a text query it runs the CTE's BM25 semantic search, served by the indexer, with a positive top-k (10 if none is given). Otherwise it runs a regular-expression query over tag and blob names.
Retrieve
Resolves names with the same three modes, then fetches the blobs in batches into one shared buffer: for each name it looks up the tag and the size (each a waited round trip), issues the get asynchronously, and waits for a batch's gets together. It returns the packed bytes. A blob that would overflow the buffer ends its batch; later batches still add blobs that fit. Missing and empty blobs are skipped.
Destroy
Deletes each named context's tag through the CTE.
A splice operation is declared but not yet implemented.
How a query finds blobs
A query is one broadcast task, not a scan from the client. BM25
search ends at the indexer, which scores a forward index it keeps current
from the puts passing through it, including the puts a bundle's
assimilators make. Regex and temporal queries pass the indexer and are
answered from the core's tag and blob metadata.
How retrieve packs its buffer
Retrieve first resolves names with the same three modes as
query, then fills one buffer in batches. A blob that would overflow the
buffer ends its batch, but the next batch still adds blobs that fit, so
the result is not a prefix of the match list. The blobs are packed back to
back with no sizes or separators.
The MCP server
iowarp-cei-mcp is a Python server (FastMCP) that gives AI agents tools over the Model Context Protocol. It wraps the CTE's Python bindings (clio_cte_core_ext), not the context interface: its tools query tags and blobs by regular expression, put, get, size and delete blobs, rescore a blob, and poll the telemetry log.
Costs of this design
Decision
Buys
Costs
Client-side composition
No extra module to compose or operate
Each call pays client round trips to the CAE and CTE
Search via the indexer
Fast keyword search without rescans
Needs the indexer in the chain; lexical matching only