Observed since 20 Oct, 23:36 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Deterministic ACID transaction and rollback engine for AI agents in <1µs
Deterministic ACID Transaction Engine for Autonomous AI Agents in <1µs
Built in Rust with native Python bindings. Part of the next-generation agent runtime ecosystem.
When production AI agents execute complex multi-step workflows (30+ tool invocations, code generation, external API calls):
agent-txagent-tx brings classical ACID semantics and Copy-on-Write branching directly into the agent execution loop:
im::Vector) allows instantaneous context branching without copying memory.with tx.transaction(): context managers and @transactional_tool decorators.| Operation | Latency | Complexity |
|---|---|---|
| Transaction Checkpoint (50 messages) | 830.62 ns | $O(1)$ Copy-on-Write |
| Speculative Fork from Root | 859.18 ns | $O(1)$ Pointer clone |
| Rollback & Compensation Unwind | < 2.5 µs | $O(k)$ where $k$ = depth |
pip install agent-tx
from agent_tx import AgentTx
tx = AgentTx()
tx.append("system", "You are a cloud orchestration agent.", 12)
tx.append("user", "Resize cluster node pool.", 15)
try:
with tx.transaction() as tx_id:
tx.append("assistant", "Calling scale_nodes(pool='prod', count=10)...", 20)
# Register compensating undo action
tx.register_undo(lambda: print("-> Compensating: Reverting node pool back to 3"))
# Simulate business failure / validation rejection
raise RuntimeError("Cloud quota exceeded!")
except RuntimeError:
print("Execution failed. Context rolled back.")
# Context automatically pruned back to safe state (system + user only)
assert len(tx.export_context()) == 2
from agent_tx import AgentTx
# Session persists across process restarts
tx = AgentTx.open("agent_session.wal")
tx.append("system", "Mission critical agent", 10)
tx.append("user", "Execute batch job", 12)
# If process dies here, re-opening "agent_session.wal" restores exact state
del tx
recovered_tx = AgentTx.open("agent_session.wal")
assert len(recovered_tx.export_context()) == 2
Dual-licensed under MIT or Apache 2.0.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 7 Sept 2026 | 0 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 23:36 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:0efaa48064346f0e090ec78a93124dab68bb12588737d23a6979276c0a12c2ef