# SQLite Telemetry Provenance: Replay Package

Companion to https://hesela.com/analyses/sqlite-import-numeric-precision/

This is a controlled software experiment, not device-fleet data. It connects
input classification, SQL constraints, aggregate populations and backup state.
The original numeric-identifier matrix remains a separate experiment.

## Reproduce

Requires Python 3.11+, Python SQLite with STRICT support (3.37+) and a system
SQLite shared library discoverable by ctypes. No network, installation,
production database, device access or administrative privilege is required.

Extract the archive into an empty directory and run:

```sh
python3 -B probe.py --output observation-new.json
python3 -B -m unittest -v test_probe test_evidence
python3 -B -O -m unittest -v test_probe test_evidence
python3 -B summarize.py --output summary-rebuilt.json
sha256sum -c SHA256SUMS
```

Output filenames must not already exist. The probe creates and removes only
its own temporary databases. Keep the two original observations unchanged.
The tests compare fresh native behavior with the retained observations; a
failure on another runtime requires investigation, not replacement of the
expectations. Missing system SQLite support fails explicitly.

## Reading The Evidence

- `observation-local.json`: Python SQLite 3.53.1.
- `observation-remote.json`: Python SQLite 3.45.1.
- Both separately linked system C controls use SQLite 3.45.1.
- `summary.json`: validated findings, provenance hashes and explicit limits.
- `sources.json`: eight primary-source records and corpus connections.
- `SYNTHESIS.md`: interpretation, controls and operational consequences.
- `probe.py`, `summarize.py` and the two test modules: exact original code.
- `SHA256SUMS`: identities of the ten unmodified package payloads.

The two captures contain the runtime source IDs, compile options, typed input
representations, SQL, backup progress and database hashes. The SQL results are
designed fixtures, not random samples or estimates of frequency. Hashes identify
bytes; they do not validate the research method or authenticate the publisher.

Four synthetic inputs (10, NaN, 30 and absence) leave two finite values. AVG20
describes those two values; zero filling gives10 by changing the policy.
A distinct signed-infinity control produces NULL directly but10 after explicit
two-stage aggregation. No claim is made about optimizer rewriting, general
finite summation, other engines or all SQLite builds.

The existing SMART audit reported no invalid nonblank readings in its selected
cohorts. This experiment does not revise that field result or establish that
Backblaze data used the tested ingestion path.

## Rights

Original Hesela code, observations and prose. No new license is granted by this
package. Public access is not permission for redistribution; consult
https://hesela.com/reuse/ or legal@hesela.com if rights are unclear.
Third-party documentation and source code are linked, not bundled.
