Agent Transaction Runtime (ATR)
ATR is the settlement layer that sits between the agent's decision loop and every external system call. It guarantees that agent actions are idempotent, recoverable, leased, and fenced. Without ATR, agent execution is fire-and-forget: if a tool call succeeds but the agent crashes before recording the result, the action is lost. If the agent retries, the action executes twice. ATR solves this w
本文说明 Agent Transaction Runtime (ATR) 在 Commander 中的职责、使用方式与相关模块。命令与代码路径与产品保持一致。
bash
Agent Decision → ATR Settlement Layer → External System
├── Idempotency (no duplicates)
├── Recovery (compensable rollback)
├── Leasing (single-owner runs)
└── Fencing (zombie process protection)要点
- 与英文源文档语义对齐;API 与 CLI 以 monorepo 为准
- 需要可运行示例时,优先使用 快速开始 中的
cliEntry.ts路径 - 指标口径:25 提供商 · 5 拓扑 · 18 工具 · 6700+ 测试