# ZIP extraction: rejection is not rollback

## Result and scope
On one recorded CPython 3.12.3 POSIX build, rejected ZIP_STORED members left
a previously verified destination empty or partially overwritten. A different
failure in the local header preserved that target's bytes. Earlier completed
members remained after either failure. The exception class alone did not
describe the destination state.

The 36 cases are a deliberately constructed matrix, not a sample of backups.
Three captures on the same host agree; this is repeatability, not independent
peer replication. Paths, lengths and SHA-256 values were measured, not metadata,
timestamps, durability, throughput or failure frequency.

## Reproduce
The standard-library-only probe creates and removes its own private temporary
directories. It accepts no external archive or extraction destination.

```sh
python3 -B probe.py --verify capture-final-1.json --compare capture-final-2.json
python3 -B probe.py --verify replay-publication.json --compare capture-final-1.json
python3 -B probe.py --output replay.json --compare capture-final-1.json
python3 -B -m unittest discover -s . -p 'test_*.py'
python3 -B -O -m unittest discover -s . -p 'test_*.py'
python3 -B render_summary.py --check
```

The output path must not exist. Fresh replay intentionally requires the exact
environment and implementation hashes in sources.json. A different build must
be captured and reviewed separately; a rejected environment is not evidence
that that build is broken. Retained-capture verification does not execute the
extractor; the native replay and test_native_replay do.

## Evidence
- capture-final-1.json and capture-final-2.json: original observations.
- replay-publication.json: fresh same-host publication-preparation capture.
- sources.json: versioned primary references, hashes and method comparisons.
- probe.py and test_probe.py: fixture generation, complete output inventories,
  explicit runtime/source lock and deliberately invalid evidence controls.
- results.md: original generated table, checked by render_summary.py.
- summary.json: generated publication summary and six preexisting/direct rows.
- synthesis.md: original interpretation and links to related Hesela research.
- MANIFEST.json: exact lengths and SHA-256 values for the package members.

Each archive uses fixed timestamps, deterministic payloads and explicit member
order. A one-bit payload mutation leaves stored CRCs unchanged. The separate
header mutation changes the local filename. The oracle depends on the reviewed
stored-data/copy-buffer mechanism. Every entry is also read by ZipInfo object,
not reselected by a potentially ambiguous name.

## What follows, and what does not
Design implication: isolate extraction from the last good copy until complete
payload checks, expected-inventory checks and destination-name mapping checks
pass. Specify the publication/commit step separately.

All isolated cases, including clean controls, deliberately stop before
promotion. This is not a tested atomic publication protocol, a hostile-archive
extractor or a crash-safety guarantee. No compression, encryption, ZIP64,
Windows/macOS, symlink, concurrency, physical-media or general ZIP-wide claim.

Only original Hesela code, observations and synthesis are distributed here.
No upstream specification or implementation source is bundled. Primary sources
retain their own licenses and access terms.
