# Numeric sorting and storage-record identity

Controlled native software observations, 6 November 2026.
Publication package prepared 7 November 2026.
Companion: https://hesela.com/analyses/sqlite-import-numeric-precision/#sort-identity

## What this packet establishes

On the captured GNU Coreutils 9.4 runtime, general numeric uniqueness discarded
one of two distinct decimal integers at 2^64. SQLite correctly stored the
surviving string. Its successful integrity check did not establish that all
external input records had reached the database.

The 60 paths cross ten deliberately constructed fixtures with six command
modes. They separate approximate comparison, accepted numeric syntax, full-line
identity and stable adjacency. These are not statistical samples or real device
measurements. Large integers are boundary witnesses, not measured drive ages.

The compiled C control measured radix 2 and 64 significand bits for long double;
the 2^53 and unsigned-64-bit controls remained distinct. Do not transfer the
familiar binary64 precision threshold to this executable without checking it.
An upstream source match explains the mechanism but does not prove this
distribution executable was built from those exact bytes.

## Replay

Requirements: Python 3.11+ with sqlite3, GNU sort and uniq, and a C11 compiler
available as cc. No third-party Python packages, network, privileges, hardware
or existing database are required. Work is limited to a temporary compiler
directory and the explicit output JSON. The compiler directory is removed.

Extract into an empty directory and keep the frozen evidence unchanged:

```sh
sha256sum -c SHA256SUMS
python3 -B run.py --output capture-new.json
python3 -B run.py --verify capture-new.json
python3 -B -m unittest -v test_run test_summary
python3 -B -O -m unittest -v test_run test_summary
python3 -B summarize.py --check
```

The two captures repeat the same host and match except their generation times.
Tests retain the recorded 64-bit-significand profile. A different platform is
a new observation to investigate, not permission to overwrite expected values.
Native input strings and exact rational numerators are JSON strings, so reading
the evidence does not require floating-point interpretation of large integers.

summary.json is generated from capture-1.json, with its SHA-256. Every table
count is the length of an observed command output. The source hashes and HTTP
receipts in evidence/sources.json identify documents accessed, not guarantees
that their claims are correct. SHA256SUMS checks package identity, not signature
authenticity, source completeness or empirical validity.

## Scope and sources

No crash, backup, durable write, performance benchmark, non-C locale, large-file
external merge or smartctl acquisition was performed. All SQLite controls here
are in-memory. A successful sortedness check validates the selected comparator,
not the preservation of an external identity set.

Decide whether the operation should preserve complete records, exact numbers,
or device/sample identities. Retain source bytes and the intended reduction rule.
The ordinary complete-line deduplication control is scoped to these ASCII,
LF-delimited records and LC_ALL=C, not multiline CSV or arbitrary binary input.

Primary references:

- GNU Coreutils 9.4 manual, pinned revision: https://github.com/coreutils/coreutils/blob/9530a14420fc1a267e90d45e8a0d710c3668382d/doc/coreutils.texi
- GNU Coreutils 9.4 sort implementation: https://github.com/coreutils/coreutils/blob/9530a14420fc1a267e90d45e8a0d710c3668382d/src/sort.c
- smartctl JSON manual, pinned revision: https://github.com/smartmontools/smartmontools/blob/9f83095a631ff71df44f8065c7a4a00134d3d404/smartmontools/smartctl.8.in
- JSON numeric interoperability: https://www.rfc-editor.org/rfc/rfc8259.html#section-6
- SQLite integrity-check scope: https://sqlite.org/pragma.html#pragma_integrity_check
- SQLite type affinity: https://sqlite.org/datatype3.html

No third-party documentation or source is redistributed. Original Hesela code,
observations and prose retain their existing repository rights; this packet
does not introduce a new license. External source licenses remain their own.
This is a bounded reproduction package, not independent peer review or a novel
Coreutils defect claim.
