Reproduce “Cordon: Semantic Transactions for Tool-Using LLM Agents” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Zheng Chen, Hanqing Liu, Duling Xu, Dong Dong, Jialin Li, Bangzheng Pu, Jidong Zhai

Cordon implements semantic transactions for tool-using LLM agents, mediating irreversible side effects by staging tool intents, derived results, and external actions for task-level validation before commit. This system successfully intercepted all 45 tested policy-violating scenarios, offering robust containment and efficient state rollback.

Key insights

  • A task-level "semantic transaction" is essential for safely managing irreversible side effects in LLM agent workflows, as granular defenses are insufficient for composed execution.
  • Tracking result lineage and staging all local mutations and external effects within a transaction provides the necessary context to detect cross-step semantic violations.
  • Decoupling local state changes (via shadow state) from external effect release (via an outbox) enables ACID-like rollback for local modifications and controlled release/auditing for irreversible external actions.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.