# Reading FSCQ's proof boundary

FSCQ is a filesystem, while [Crash Hoare Logic](https://hesela.dev/terms/crash-hoare-logic/)
is its specification framework. Keep the system, proof model and runnable artifact
separate when interpreting a crash-safety claim.

## Start with the assumptions

The [SOSP 2015 paper](https://pdos.csail.mit.edu/papers/fscq:sosp15.pdf) assumes atomic sector writes
(section 3.2), not arbitrary torn sectors. Section 6 puts the Haskell compiler
and runtime in the trusted computing base. A verified high-level algorithm does
not qualify the physical drive or prove its implementation of the disk interface.

One less obvious boundary is successful allocation: section 7.2 allows an
out-of-resource result even when resources remain. Preserving resources and
guaranteeing progress are different properties.

## Select the right artifact

The [authors' pinned README](https://github.com/mit-pdos/fscq/blob/2c7ef9c268fd79a81b26b44ef720f8e6a1e938a0/README.md) identifies
`master` as DFSCQ and `security` as SFSCQ/DiskSec. Checking out the current
default branch is not a replication of the 2015 artifact.
The same README labels the software unmaintained, describes unverified integration
components and advises against practical deployment.

The [DFSCQ paper](https://pdos.csail.mit.edu/papers/dfscq.pdf) explains the changed contract:
metadata forms a persisted prefix, but file-data writes may reach storage in a
different order. Its `fsync` flushes pending metadata globally; its `fdatasync`
targets the file's data. These are that paper's specifications, not universal
promises for similarly named calls on other filesystems. Both the specification
and implementation discussed there execute system calls serially.

## Read the experiment's denominator

The [CACM account, section 5.3](https://pdos.csail.mit.edu/papers/cacm-fscq.pdf) describes a test
that recorded one workload's writes and syncs, then constructed 320 disk states.
Recovery and inspection reduced those to 10 observed logical outcomes.
That is not a count of all possible filesystem executions. The authors used the
test to examine the specification and unverified integration, alongside their
formal proof.

These are author-reported counts, not independently replayed results. Hesela did
not mount FSCQ, rerun Coq or conduct power-loss tests in this review.

## Reuse the evidence

[Structured source locators](./proof-boundaries.json) preserve the original paper's
DOI and SHA-256, the inspected repository revision, the experiment scope and
explicit reproduction flags. The paper is linked, not redistributed.

For a verification claim, record five items before comparing results: exact code
revision, theorem, permitted failures, disk assumptions and trusted components.
For an experiment, additionally record workload, crash-image construction and
the inspection rule. This reading checklist is Hesela's synthesis, not a new
correctness theorem.

Related: [FSCQ](https://hesela.dev/terms/fscq/),
[crash refinement](https://hesela.dev/terms/crash-refinement/),
[crash-test oracle](https://hesela.dev/terms/crash-test-oracle/).
