← Lab /AI/ML

CBCL keeps agent message extensions within deterministic context-free languages

CBCL guarantees that all agent messages and runtime extensions remain in the DCFL class and enforces safety invariants to prevent unbounded growth

AI/ML arXiv 16 Apr 2026 Method Prototype evidence Threat model

Published as “CBCL: Safe Self-Extending Agent Communication”

Why it matters

CBCL enables agents to safely adopt new vocabularies at runtime with provable parsing guarantees and negligible performance cost.

Summary

CBCL lets agents safely extend their communication vocabulary at runtime while guaranteeing that the parser stays within the deterministic context-free language class; the paper proves this with a Lean 4 formalization and shows the Rust implementation adds only sub-microsecond overhead, parsing a simple message in 78 ns and a meta-define in 1.03 μs. The evidence is limited to synthetic benchmarks and a 100-agent gossip test.

What they found 4

  1. Safety constraints preserve DCFL membership despite unlimited dialect installations

    “Together, these constraints support DCFL preservation, meaning that the language recognized by a CBCL parser remains in DCFL regardless of how many dialects are installed.”

  2. Parsing a simple tell message takes 78 ns

    “Parse simple tell message 78 ns”

  3. Recursive expansion attacks are rejected at verification time

    “Recursive expansion attack. A malicious dialect containing (extend bomb (x) (bomb (bomb x))) is rejected at R1 verification; the self-reference is detected before installation.”

  4. Depth-bomb messages exceeding the max-depth limit are halted with an error

    “Depth bomb. A deeply nested message (lang d1 (lang d2 (lang d3 ...))) exceeding max-depth triggers resource exhaustion at the enforced limit, returning an error rather than consuming unbounded stack.”

What’s new here 4

  • Runtime self-extension of the protocol without leaving the DCFL class
  • Formal machine-checked verification of parser correctness and safety constraints (R1-R3) in Lean 4
  • Homoiconic dialect definitions that are themselves valid CBCL messages
  • Negligible performance overhead demonstrated on a Rust implementation

Threat model stated by the source

Adversaryuntrusted peers in open Byzantine environments
Capabilitysend maliciously crafted messages and malicious dialect definitions that could trigger parser differentials, resource exhaustion, or unintended computation
Assumesno central authority controls participant conduct or vocabulary evolution; agents follow the CBCL protocol specifications