Smart Casual Verification of CCF's Distributed Consensus and Consistency Protocols
<|reference_start|>Smart Casual Verification of CCF's Distributed Consensus and Consistency Protocols: The Confidential Consortium Framework (CCF) is an open-source platform for developing trustworthy and reliable cloud applications. CCF powers Microsoft's Azure Confidential Ledger service and as such it is vital to build confidence in the correctness of CCF's design and implementation. This paper reports our experiences applying smart casual verification to validate the correctness of CCF's novel distributed protocols, focusing on its unique distributed consensus protocol and its custom client consistency model. We use the term smart casual verification to describe our hybrid approach, which combines the rigor of formal specification and model checking with the pragmatism of automated testing, in our case binding the formal specification in TLA+ to the C++ implementation. While traditional formal methods approaches require substantial buy-in and are often one-off efforts by domain experts, we have integrated our smart casual verification approach into CCF's continuous integration pipeline, allowing contributors to continuously validate CCF as it evolves. We describe the challenges we faced in applying smart casual verification to a complex existing codebase and how we overcame them to find subtle bugs in the design and implementation before they could impact production.<|reference_end|>
@article{howard2024smart,
    title={Smart Casual Verification of the Confidential Consortium Framework},
    author={Heidi Howard, Markus A. Kuppe, Edward Ashton, Amaury Chamayou, Natacha
  Crooks},
    journal={arXiv preprint arXiv:2406.17455},
    year={2024},
    archivePrefix={arXiv},
    eprint={2406.17455},
    primaryClass={cs.DC cs.FL cs.SE}
}