# Private page history: publication package

This package accompanies the existing Hesela memory-mapped-file analysis:
https://hesela.com/analyses/mmap-visibility-size-durability/#private-history

## Result and scope
A same-value store in one private mapped page preceded an ordered external writer.
After the child exited, the mapping read AB although the file history was
AA -> BA -> BB. Each letter represents a whole uniform 4096-byte page.
Read-only, untouched, two-page-store, discard and inode-replacement controls
separate private page history from immutable file versions.

Six cases, three repetitions in each of two original captures: 36 observations
on one Linux 6.8.0-146-generic/ext4/CPython 3.12.3 host.
The publication session reran the unchanged six-case native test normally and
under Python -O; this is same-host replay, not independent-platform replication.
No failure rate, performance, power-loss or database-engine claim is made.

## Contents and reproduction
The twelve original files (manifest plus its eleven sealed artifacts) are
byte-preserved from research revision cc48440a7. README.md, source-review.md and
integration.md retain their historical research-stage wording. This companion
note records publication packaging separately; it does not rewrite that record.
The original manifest does not hash this note. ZIP determinism is checked by
the versioned exporter and publication tests.

Requirements: Linux, CPython with native mmap.madvise, findmnt, writable directory.
After extracting the ZIP into its own writable directory, run:
```sh
python3 -B verify_package.py
python3 -B -m unittest -v test_probe
python3 -B -O -m unittest -v test_probe
python3 -B probe.py --output new-capture.json
```
Do not invoke the collector's internal --writer mode on existing data.
The collector refuses existing output files and rejects unexpected observations.
A different host outcome requires investigation, not an automatic OS-bug claim.
Do not edit the sealed originals to make a replay pass.

## Evidence versus contract
The MAP_PRIVATE documentation leaves later file-change visibility unspecified.
The Linux v6.8 write-fault path and CPython v3.12.3 indexed-store implementation
explain the measured mechanism, but are not exact distro-source identifications.
Crotty, Leis and Pavlo (CIDR 2022), section 3.1, discuss coordination of private
database workspaces. Their read-only performance measurements are not reproduced.
Primary-source URLs and limitations are retained in source-review.md.
