# Chained declustering: six-node placement example

An original, deterministic Hesela calculation, generated on 2026-11-30.
Not a distributed implementation, workload benchmark or measured failure rate.

## Run
Requires Node.js with the built-in test runner; no third-party dependencies.

```sh
node model.mjs --check
node --test model.test.mjs
```

Running `node model.mjs` regenerates `results.json`. The article's tables
use the same model at build time. No random sampling or seed is involved.

## Assumptions and denominator
Partition i has complete copies on node i and its successor, with wraparound.
All copies start readable. Failure means a node's copies become inaccessible.
There are no writes, repairs, network failures or failure probabilities.

The six-node example exhausts 64 node subsets. Restricting to exactly two failed
nodes gives 15 unordered pairs: six make some partition unavailable, nine do not.
The fraction 6/15 is not an AFR, a data-loss rate or a probability for a real fleet.
Only an explicitly uniform choice among those pairs would turn it into a
conditional probability. Inaccessibility does not establish permanent destruction.

For n >= 3, there are n distinct neighboring pairs out of n(n-1)/2 pairs.
For n = 2, both fragments have the same host pair: count it once, not twice.
The test oracle independently computes partition coverage from surviving nodes
for all 8188 subsets at sizes 2 through 12, and checks input boundaries.

## Evidence
Placement reference: Hsiao and DeWitt, sections 3.1-3.2:
https://pages.cs.wisc.edu/~dewitt/includes/paralleldb/dbengin90.pdf
The author lists an ICDE February 1990 publication:
https://pages.cs.wisc.edu/~dewitt/includes/publications.html
The accessible 30-page manuscript contains draft placeholders; its identity
with the June 1989 TR854 cited by Petal has not been established.
Source download and SHA-256 retained in the session's research notes.

Related protocol:
https://www.usenix.org/legacy/events/osdi04/tech/full_papers/renesse/renesse_html/
Related parity layout:
https://pdl.cmu.edu/PDL-FTP/Declustering/ASPLOS.pdf

## Scope
This calculation checks copy placement only. A surviving copy need not be the
latest acknowledged version in an actual system. Recovery time, service quorum,
correlated faults, write ordering and replica freshness require separate evidence.
