# Git partial-clone offline recovery controls

Git 2.43.0 can accept a partial clone with absent promised blobs during full and
strict fsck. Successful HEAD reads are not evidence of complete offline history.

## Reproduce

Requires Python 3 standard library and Git. Use a disposable directory containing
observe.py, validate.py, test_observe.py and observations.json. No production
repository path is accepted. Setup allows only local file transport; the
provider path is renamed and transports disabled for offline checks.

```sh
python3 observe.py --output results.json --repeats 3
python3 validate.py results.json --compare observations.json
python3 -m unittest -v test_observe.py
```

The result path must not already exist. Temporary fixtures are removed by the
harness. Validation intentionally requires the observed Git 2.43.0 semantics:
a newer Git result is new evidence, not automatically a failed implementation.

## Evidence and scope

Seven configurations run three times in observations.json. replay.json retains
a separate 21-case capture with identical outcome records. Complete command
traces, binary identity, source commits and independent payload hashes are
included. The fixtures have three commits, five distinct blobs and two HEAD
files. Repetitions test reproducibility, not incident frequencies.

summary.json is derived from the first repeat after all repeats pass validation.
exports.json records the exact public file bytes. sources.json identifies eight
upstream documents and code files by immutable commit and SHA-256. Source text
is not redistributed.

A known-complete source inventory supplies the materialized control. This is
not a general hydration recipe for arbitrary filters, missing trees or history
boundaries. The depth-one bundle restoration failure is specific to this tested
version and fixture. No network outage, LFS, submodule, hardware, concurrent
writer or crash durability experiment was performed.

The interpretation belongs with the existing analysis:
https://hesela.com/analyses/backup-verification-is-not-a-restore-test/#git-partial-closure

Original experimental code and observations: Hesela team, 2026-10-23.
See LICENSE. These are constructed software observations, not a new vulnerability.
