DCCRApr 26

Towards System-Oriented Formal Verification of Local-First Access Control

arXiv:2604.235606.4
AI Analysis

This work addresses the need for formal verification of access control in large-scale, trust-agnostic local-first systems, though it is an incremental step with limited immediate impact.

The authors propose a bottom-up approach for formally verifying authorization algorithms in Byzantine fault-tolerant local-first systems, contributing semantics and invariants for a CRDT managing simplified collaboration groups. Preliminary results demonstrate the potential of using Verus for system-oriented formal verification, but scaling to real-world systems like Matrix remains future work.

Conflict-free replicated data types (CRDTs) and the local-first concept are increasingly employed not only in small-scale collaboration systems among few users who trust each other, but also in large-scale systems, like Matrix for instant messaging and Keyhive for collaborative documents. Since mutual trust is no longer warranted, these systems require Byzantine fault tolerance and fine-grained access control. As of today, Matrix and Keyhive pair an informal specification with an unverified reference implementation. In this work, we follow a bottom-up approach towards constructing formally verified authorization algorithms for Byzantine fault-tolerant local-first systems. As intermediate target for formal verification, we contribute semantics and invariants of a replicated data type for managing simplified collaboration groups, based on capabilities for access control and hash chronicles for replication. To enable future integration into local-first systems like Matrix and Keyhive, we strive for accessibility to system engineers by using the Rust programming language for formal specification, verification, and implementation, enabled by the Verus framework using the Z3 theorem prover at zero runtime cost. We report on our experience and preliminary results following this approach, and discuss next steps towards scaling up access control expressiveness. Whether this approach can be scaled up to the complexity of real-world local-first access control systems like Matrix or Keyhive remains future work, but our findings demonstrate the potential of system-oriented formal verification with Verus.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes