ACTP: Algebraic Capability Transport Protocol for Sandbox-Free Agentic Tool Execution with Dual-Lattice Information Flow Control
Tool-calling architectures for Large Language Model (LLM) agents face a persistent engineering trade-off amongcontext efficiency, deterministic information-flow security, and sandbox operational overhead. Pass-by-value proto-cols such as the Model Context Protocol (MCP) and deferred Tool-Search incur substantial token costs wheneverintermediate tool outputs traverse the LLM context window across multi-step workflows. Conversely, programmaticexecution approaches (Code Mode) keep intermediate payloads out of context but require operating arbitrarycode-execution sandboxes and obscure fine-grained information-flow tracking across script variables. This paperpresents ACTP (Algebraic Capability Transport Protocol), a brokered transport architecture implemented in purePython 3.11+ standard library, together with a reproducible security audit and head-to-head empirical evaluation.ACTP combines a total-functional, loop-free, eval-free pipe language (ACTP-IR), an HMAC-authenticated content-addressed memory bus (cap://), Dual-Lattice Information Flow Control (Biba Integrity × Decentralized Readers)with a finite-domain quarantined extraction operator (q_extract), and an Adaptive Inline/Reference Router. Across executable benchmarks with zero hardcoded baselines: (1) ACTP passes 16/16 core functional and protocoltests and neutralizes 44/44 adversarial attack vectors (including Python str.format() traversal, exponential andpolynomial ReDoS, variable-indirection schema bypasses, cumulative q_extract entropy chaining, and a 20-threadTOCTOU approval race); (2) under cl100k BPE-approximated tokenization, ACTP reduces effective token costby 244.07×–433.43× over MCP-Naive, 34.54×–80.29× over MCP-Stateless+Cache, and 19.1%–21.3% over VMPwhile achieving cost parity with Code Mode (+0.5% to +2.8%) without a code-execution sandbox, at a medianbroker latency of 0.357 ms; and (3) transparent stress testing on a 500-tool catalog exposes current limitations inabstract semantic retrieval (25.0% Recall@5 for pure BM25+Trigram; 50.0% for Hybrid SVD) alongside openwork on live LLM/Q-LLM evaluation.
Authors
- M.Ilham Mufid
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-30
- DOI
- https://doi.org/10.5281/zenodo.24678483
- Primary Topic
- Security and Verification in Computing
- Type
- preprint