# GNU dd sparse destination preconditions

Bounded research supplement, 24 October 2026. Scope issue:
https://github.com/hesela/hesela-seo/issues/2469

This is a native generated-file experiment, not a storage-device benchmark or a
new coreutils bug report. Upstream documents and tests the stale-output behavior.
The added value is a compact byte-verified block-size counterexample, a successful
fsync witness, guarded range-update controls, and integration with Hesela's
existing allocation-versus-content explanation.

## Evidence and reproduction

- reproduce.py constructs all fixtures itself and invokes GNU dd. No input-device
  argument exists. Only fresh temporary regular files are modified.
- capture-01.json and capture-02.json are retained native outputs. Cases agree
  exactly; timestamps are recorded separately.
- test_reproduce.py checks byte-oracle behavior, native outcomes, exact commands,
  hashes, complete case inventory, successful fsync and trailing-size witnesses.
- summarize.py generates summary.json and summary.md from the retained captures.
- sources.json records primary-source locators, upstream pin and claim mappings.
- manuscript.md and integration.json target existing Hesela content, not new pages.

From this directory, with GNU dd, stat, dpkg-query and strace on PATH:

```sh
PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover -v
PYTHONDONTWRITEBYTECODE=1 python3 -O -m unittest discover -v
PYTHONDONTWRITEBYTECODE=1 python3 summarize.py --check
PYTHONDONTWRITEBYTECODE=1 python3 reproduce.py --output ../dd-sparse-replay.json
sha256sum -c SHA256SUMS
```

The output must not already exist. Keep replays outside this manifest-controlled directory. Compare the replay's cases with a retained
capture. Syscall rendering may differ across strace versions; do not rewrite
old evidence to match another environment. Re-running native cases on another
version is a new observation, not automatically equivalent to the retained one.

The generator needs about a few hundred KiB of scratch space at a time and no
network or extra Python dependencies. It does not make allocation or durability
claims. Tests require strace witnesses retained in the supplied captures even if
strace is absent from another reproduction environment.

All hashes and byte offsets refer to generated fixtures. No user data, serial
numbers, secrets or copyrighted third-party source files are included.

## Publication integration and validator revision

The original research commit is 163d87272c510877203516839b3627cf8afa347c.
The two captures, native reproducer and numerical summaries are unchanged.
A publication review reproduced acceptance of two equally truncated captures.
The summarizer now invokes the shared complete-case validator; additional tests
reject missing/duplicate/reordered rows, false successes, wrong commands, hashes,
types, producer bindings and modified guards. It also requires matching recorded
environments. These checks do not authenticate observations against an adversary
who can replace the entire package.

This directory is reproduced under the existing sparse-copy evidence route:
https://hesela.dev/research/seek-hole-observer/gnu-dd/README.md
Its internal research-stage manuscript/integration status is historical provenance,
not evidence of present deployment or independent peer review.
The current continuation is a source-tested publication candidate. Full-site
builds, visual review and deployment remain subject to the unchanged disk guard.
Use the paired PR/checkpoint status, not the existence of these files, to determine
whether the candidate has been published.

The publication validator also checks every retained filtered stdout syscall in
order, including write lengths/results, seek positions, trailing extension and
successful final fsync. Only column-alignment whitespace is ignored. It requires
tracer provenance and empty trace arrays for configurations not traced by this
reproducer. This is a validator for these supplied witnesses, not a general strace
parser or evidence of persistence after power loss. Twelve mutation tests reproduce
the formerly accepted missing, failed, reordered or malformed synchronization
evidence. The raw captures and byte-result summaries remain unchanged.
