TraceFix: Repairing Agent Coordination Protocols with TLA+ Counterexamples
summary
TraceFix synthesizes a protocol topology, compiles it to PlusCal/TLA+, runs the TLC model checker to get concrete counterexample traces, and patches the protocol until TLC reports no violations, then enforces rules with a topology monitor at runtime. Across 48 tasks fully verified, the repair loop converges in 1–4 iterations for the cases needing fixes (30/48 pass first try), and TLC-verified protocols reduce deadlock/livelock from 31.1% to 14.1% while runtime monitoring raises full objective completion from 69.7% to 81.5%.
AI-written summary · about
