Automating Trace Validation with PGo
summary
An automated pipeline compiles modular PlusCal to Go with PGo, injects runtime instrumentation, harvests full traces and synthesizes TLA+ checkers via Trace Link, then model-checks with TLC. It handles up to ~100,000 events from 26 processes by storing values in TLC binary blobs, resolves partial orders with vector clocks, and uses a single-path-with-one-step-check heuristic to avoid explosion; it finds real bugs (TCP ordering assumption, a 3‑year PGo compilation error with @@ record merge, and instrumentation corrupting vector clocks) and the prototype works.
AI-written summary · about
chapters (12)
- 0:00Introduction to Trace Validation
- 5:41What is PGo and Trace Link
- 7:07How Trace Link Works
- 8:08Live Demo of Trace Link
- 13:26How Trace Link Generates TLA+
- 19:29Optimizing Generated Specifications
- 22:00Handling Asynchrony with Vector Clocks
- 24:53Balancing Coverage and Performance
- 26:15Generating Diverse Traces
- 27:17Bugs Found Using Trace Link
- 31:12Future Work and Limitations
- 33:20Summary and Q&A
