Recon: checking an allocation at the commit boundary =================================================== Hesela original finite example. Created 2026-11-23. This is executable teaching material, not a reproduction of Recon. A fresh digest can match a semantically invalid metadata image. Our deliberately small example also shows why agreement between a bitmap and the SET of referenced blocks is weaker than requiring a unique owner for each allocated block. Model ----- Three named inodes each contain one pointer: absent (-1), block 0, or block 1. The two allocation bits may each be false or true. All 3^3 * 2^2 = 108 states are enumerated. Blocks are exclusive: this model has no reflinks, hard-link directory entries, reserved blocks, snapshots or shared extents. Membership means the set of referenced blocks equals the set of allocated blocks. Consistency additionally requires each referenced block to occur exactly once. A candidate state is hashed AFTER it is constructed, as would happen when a buggy producer calculates a correct digest over the wrong metadata. No collision is needed. SHA-256 here is only an unkeyed byte-integrity check, not authentication. Results ------- Check States accepted A fresh digest equals the digest of these same bytes 108 Bitmap agrees with the set of referenced blocks 27 Bitmap agrees and each referenced block has one owner 13 The 14 extra membership-accepted states have duplicate owners. These are exact counts of a chosen finite universe, not a corruption rate or measured prevalence. Independent counting: 1 empty state + 3*2 single allocations + 3*2 assignments of two distinct blocks = 13 consistent states. With pointers [0,0,-1] and bitmap [true,false], both inodes claim block 0. Membership and the fresh digest pass; unique ownership fails. Starting with no allocations, updating just the pointer or just the bitmap temporarily fails consistency. Applying both updates as one candidate passes. The commit function inspects the complete candidate; rejection returns the unchanged starting state. This is an in-memory model, not a durable journal. Even the stronger rule does not know user intent. If inode 0 was intended to receive block 0, assigning that block to inode 1 is structurally consistent. The tests retain this control so acceptance is not presented as full correctness. Connection to the literature ---------------------------- Recon's updated FAST 2012 paper, section 3.2, separately checks paired allocation changes and pointer multiplicity. This example motivates that distinction; it does not reveal a flaw in Recon. Sections 2.1 and 2.4 explain the checking boundary and trust assumptions. The FAST 2014 follow-up adds per-write location rules for transactional atomicity and durability; this model does not implement them. Reproduce --------- Use Python 3.10 or later, standard library only, in this directory: python3 -B model.py --check python3 -B test_model.py python3 -B -O test_model.py To regenerate results.json after an intentional model change: python3 -B model.py Tests enumerate all 108 states against an independently constructed assignment oracle and all 13*108 consistent-start/candidate pairs. Other controls cover unchanged digests after byte mutation, both field-update orders, invalid inputs, an inconsistent starting state and a consistent but unintended owner. Files: model.py, test_model.py and generated results.json. Public definition: https://hesela.dev/terms/recon/ Related explanation: https://hesela.dev/terms/filesystem-consistency-invariant/ Primary sources, accessed 2026-11-23: Fryer et al., Recon: Verifying File System Consistency at Runtime, FAST 2012: https://www.usenix.org/system/files/conference/fast12/fryer2-16-12.pdf Fryer et al., Checking the Integrity of Transactional Mechanisms, FAST 2014: https://files.usenix.org/s3fs-public/cdn/fast14-paper_fryer.pdf The papers remain with their respective rights holders. No paper text, figure, experimental dataset or benchmark result is redistributed in this packet.