# SQLite recovery copies: preserve or recompute?
Hesela controlled-software evidence, prepared for the existing analysis:
https://hesela.com/analyses/sqlite-index-runtime-dependencies/#recovery-copy

## What this package contains
The recovery/ directory contains 160 designed configurations in each of two
retained captures, exact native return codes, complete query answers, bytecode,
source identities, code, tests and evidence-linked findings. Read recovery/REPORT.md.
The derived/ directory retains the preceding generated-value controls and the
newer-build BLOB rejection controls. experiment.py is their native API helper.

Original research bytes are unchanged. Historical README statements saying
publication is pending describe the archived research stage, not live deployment.
This package does not establish deployment status. No third-party binaries or
third-party source bodies are redistributed. Sources are linked with receipts.

## Offline evidence verification
Python 3.12 standard library is sufficient for retained-output validation.
From the extracted package root:
```sh
sha256sum -c SHA256SUMS
cd recovery
python3 -B verify_recovery.py
python3 -B build_findings.py --check
```
These commands check evidence and generated findings; they do not run SQLite.

## Fresh native replay
Linux is required by the binary-identity collector (/proc/self/maps).
The original system library is the recorded distribution-patched SQLite 3.45.1;
the comparison library is the separately recorded 3.54.1 build. Full source IDs,
compile options and SHA-256 binary identities are in both observation captures.
The comparison path stored in the historical script is specific to the study host.
Supply your own path:
```sh
python3 -B observe_recovery.py --comparison-library /absolute/path/libsqlite3.so.0 --output fresh.json
HESELA_SQLITE_COMPARISON_LIBRARY=/absolute/path/libsqlite3.so.0 python3 -B -W error -m unittest -v test_recovery
```
Run these from recovery/. The fresh unit test accepts only the two pinned binary
identities; matching a version number alone is insufficient. Other builds require
a separately reviewed expectation profile, not removal of identity checks.
The binaries are not included, so this package alone cannot reconstruct the
exact native environment. No package installation or network access occurs during replay.

## Reading the result
Backup, VACUUM INTO and compatible-schema star transfer preserve this already
inconsistent source. Explicit input projection recomputes the fixture.
WHERE 1 rejects the star transfer; a checked-ok empty table is not a restored
database. A newer engine preventing the old write is not a repair of old data.

Only newly created disposable databases are used. No existing database path is
accepted. These are controlled examples, not incident rates, benchmarks, crash
tests, a new vulnerability or independent researcher replication.
