# File timestamp interpretation

Controlled software examples, not a new filesystem discovery or backup benchmark.
The native runner uses three fresh files per operation on Linux:
chmod from 0600 to 0640; setting the existing atime and mtime again; and changing
one byte before restoring atime and mtime. All inputs contain 4096 ASCII A bytes;
only the last operation changes byte zero to B.

Each operation is followed by full byte verification and metadata comparison.
The reader uses O_NOATIME on files owned by the process so the oracle does not
change atime. Nanosecond timestamps and inode identifiers are decimal strings.
A 1.1-second pause separates observations; it is not a measured latency.
The runner rejects unsupported timestamp precision or an unobserved ctime change
rather than substituting the expected answer.

## Reproduce

Use a Linux host with Python 3.8+ and GNU stat; no extra Python package is needed.
Only the private temporary directory is modified, apart from the requested JSON
output. The default scratch directory is /dev/shm; change it to an owned directory
to examine another filesystem, without changing system mount configuration.

```sh
python3 -B observe.py --scratch /dev/shm --output replay.json
python3 -B -m unittest -v test_observe.py
python3 -O -B -m unittest -v test_observe.py
```

Tests validate the retained results.json and include negative controls.
A replay has different ctime, inode and generation-time values; compare
operations and checks, not whole-file hashes. results.json records the exact
runner hash and environment. The runner itself validates each fresh observation.

## Interpretation

A changed ctime can accompany unchanged bytes, while a restored mtime can
accompany changed bytes. These fields do not supply an authenticated version
number. This experiment does not invoke rsync; the article links the existing,
separate rsync selection evidence. It does not test birth-time availability,
relatime/noatime policy, lazytime persistence, remote filesystems or crash recovery.
There is no concurrent writer. A descriptor-based read and fstat do not freeze
contents or promise a point-in-time metadata snapshot; Linux stat/statx can return
fields sampled at different instants when another process changes the file.
See https://man7.org/linux/man-pages/man2/stat.2.html.

Primary documentation:
- https://man7.org/linux/man-pages/man7/inode.7.html
- https://man7.org/linux/man-pages/man2/utimensat.2.html
- https://man7.org/linux/man-pages/man2/statx.2.html
- https://man7.org/linux/man-pages/man8/mount.8.html

Source review accessed 2026-10-21. No third-party text or measurement dataset is
redistributed. Runner and tests: MIT (SPDX headers). Constructed observations:
CC0-1.0. The same evidence is mirrored for the Observatory build; hesela.dev is
the linked reproduction endpoint.
