# Pointer-removal teaching example

Run `node --test model.test.mjs` with Node.js.
Import `example()` from `model.mjs` to inspect the three transitions.

This original Hesela example has one permanent root, integer block labels,
unique edges and a connected directed acyclic graph. Inputs are copied.
The initial chain is 0 -> 1 -> 2. A rejected operation changes no edge.
The accepted sequence removes 1 -> 2, then 0 -> 1; the remaining graph is empty
and the permanent root still exists. Shared-child tests distinguish removing
one reference from removing the final reference.

The model implements only the logical deletion rule discussed in section 3.3 of
[Type-Safe Disks](https://www.fsl.cs.stonybrook.edu/docs/tsd-osdi2006/index.html).
It does not implement the full API, allocation, access control, concurrent
updates, crash recovery, overwrite scheduling or a physical device.
It cannot certify secure deletion or reproduce performance measurements.
The exhaustive test covers 21 connected increasing-label DAGs on four nodes,
not all storage graphs. No random seed or external dependency is required.
