Metadata-Version: 2.4
Name: gpconf
Version: 0.10.0
Summary: Free test kit: does your satellite software handle catalog numbers above 99,999? Built from real CelesTrak data.
License-Expression: Apache-2.0
Project-URL: Homepage, https://gpconf.neogy.dev
Project-URL: Repository, https://github.com/hneogy/gp-omm-conformance
Project-URL: Issues, https://github.com/hneogy/gp-omm-conformance/issues
Project-URL: DOI, https://doi.org/10.5281/zenodo.22867654
Keywords: satellite,TLE,two-line element set,Alpha-5,OMM,CCSDS,SGP4,CelesTrak,catalog number,conformance testing
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering :: Astronomy
Classifier: Topic :: Software Development :: Testing
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
Provides-Extra: sgp4
Requires-Dist: sgp4>=2.27; extra == "sgp4"
Provides-Extra: pyephem
Requires-Dist: ephem; extra == "pyephem"
Provides-Extra: test
Requires-Dist: hypothesis>=6.100; extra == "test"
Dynamic: license-file

# The satellite catalog passed 99,999. Does your software know?

On 11 July 2026 the catalog assigned number 100000, and every object catalogued since has a six-digit number. The
usable five-digit range had already run out at 69,999 (CelesTrak).

**gpconf** is a free test kit that tells you whether your satellite software handles catalog numbers above 99,999 — built from real CelesTrak data, with every expected answer traced to its source.

```bash
pip install gpconf
gpconf fetch
gpconf run --preset reference
```

The fetch runs once per corpus version: 46 requests to CelesTrak, about 1.3 MB downloaded (1,276,413 bytes, 3,162,546 written) as measured at 0.8.0, kept on disk. Then name your
library's preset (`sgp4`, `pyephem`, `satellite.js`, `tle.js`) or point the runner at your own parser; Quick start,
below, has both.

## Cite as

Neogy, H. (NEOGY LLC). *gpconf: a conformance corpus for orbital-data parsers crossing the five-digit
catalog-number boundary.* https://doi.org/10.5281/zenodo.22867654

That DOI is for the corpus as a whole and resolves to the latest release. To cite the exact release you ran, use its
version DOI: `CITATION.cff` lists them, and GitHub's "Cite this repository" reads that file. If you publish a verdict
from the runner, say which gpconf version produced it.

Every finding reported upstream, as of 2026-11-22, is in the table below: the full list, not highlights. It is generated from the maintainer's upstream record (`docs/upstream/table.json`, by `tools/upstream_table.py`), and a check (`tools/check_upstream_table.py`, run in CI on every change and weekly) confirms that every link resolves, every status matches GitHub, a fix is counted as this project's only when the pull request that made it is, and each release named holds the fix and is the first version that does (one row, by the maintainer's ruling, names an earlier release it does not count, with the reason). The proof is the merged pull request; else the maintainer's fixing commit, or the release notes where no commit is linked; for an open item, the issue. A link the record can only infer says so. Findings not yet reported upstream are not listed. The same table, with each library's published runs, is in [`docs/LIBRARIES.md`](https://github.com/hneogy/gp-omm-conformance/blob/v0.10.0/docs/LIBRARIES.md).

<!-- upstream-table:begin (generated by tools/upstream_table.py from docs/upstream/table.json; do not edit) -->
| library | finding | status | proof | release | date |
|---|---|---|---|---|---|
| python-sgp4 | an empty `OBJECT_ID` in OMM XML raised `TypeError` | merged, not yet released | [PR #172](https://github.com/brandon-rhodes/python-sgp4/pull/172) |  | 2026-09-24 (merged) |
| satellite.js | OMM JSON epochs truncated to the millisecond | released | [PR #186](https://github.com/shashwatak/satellite-js/pull/186) | [7.2.0](https://github.com/shashwatak/satellite-js/releases/tag/7.2.0) | 2026-09-26 (merged) |
| satellite.js | no decoder for Alpha-5 catalog fields | released | [PR #187](https://github.com/shashwatak/satellite-js/pull/187) | [7.2.0](https://github.com/shashwatak/satellite-js/releases/tag/7.2.0) | 2026-09-28 (merged) |
| satellite.js | a stray letter in a TLE field read with no error | released | [PR #197](https://github.com/shashwatak/satellite-js/pull/197) | [7.2.0](https://github.com/shashwatak/satellite-js/releases/tag/7.2.0) | 2026-10-14 (merged) |
| Gpredict | the mean motion lost its last digit on every record | released | [PR #428](https://github.com/csete/gpredict/pull/428) | [v2.7](https://github.com/csete/gpredict/releases/tag/v2.7) | 2026-10-08 (merged) |
| gods-eye-view | Alpha-5 satellites collapsed onto one entry keyed NaN, the rest dropped | released | [PR #767](https://github.com/bilawalsidhu/gods-eye-view/pull/767) | [v0.3.0](https://github.com/bilawalsidhu/gods-eye-view/releases/tag/v0.3.0) | 2026-10-17 (merged) |
| tle.js | Alpha-5 fields gave NaN; two-digit years pivoted at 50 | released | [PR #64](https://github.com/davidcalhoun/tle.js/pull/64) | [v6.0.0](https://github.com/davidcalhoun/tle.js/releases/tag/v6.0.0) | 2026-10-19 (merged) |
| SGP.NET | Alpha-5 TLEs refused (reproduced and fix verified with gpconf) | released | [PR #47](https://github.com/parzivail/SGP.NET/pull/47) | [v1.6.1](https://github.com/parzivail/SGP.NET/releases/tag/v1.6.1) | 2026-11-10 (merged) |
| SGP.NET | `OmmKvnParser` refused a day-of-year EPOCH and a unit in brackets | released | [PR #49](https://github.com/parzivail/SGP.NET/pull/49) | [v1.6.1](https://github.com/parzivail/SGP.NET/releases/tag/v1.6.1) | 2026-11-10 (merged) |
| Basilisk | `satTle2elem` runs type 4 sets as SGP4, and a blank designator, a name starting with 1 or 2, or one bad set fails the whole file; for one bad set, the fix is an opt-in (`on_error`), and the default behaviour is unchanged | merged, not yet released | [PR #1677](https://github.com/AVSLab/basilisk/pull/1677) |  | 2026-11-12 (merged) |
| astroz | Alpha-5 decoded without skipping I and O | released | [PR #99](https://github.com/ATTron/astroz/pull/99) | [v0.13.0](https://github.com/ATTron/astroz/releases/tag/v0.13.0) | 2026-09-26 (merged) |
| astroz | `Tle.epoch` off by hundreds of days | released | [PR #99](https://github.com/ATTron/astroz/pull/99) | [v0.13.0](https://github.com/ATTron/astroz/releases/tag/v0.13.0) | 2026-09-26 (merged) |
| astroz | seconds passed through a half-precision float, up to 15.5 ms off | released | [PR #104](https://github.com/ATTron/astroz/pull/104) | [v0.14.0](https://github.com/ATTron/astroz/releases/tag/v0.14.0) | 2026-09-26 (merged) |
| libsgp4 | every Alpha-5 field refused (results posted on the open PR) | released | [PR #46](https://github.com/dnwrnr/sgp4/pull/46) | [v3.0](https://github.com/dnwrnr/sgp4/releases/tag/v3.0) | 2026-09-26 (merged) |
| Gpredict | a letter in the epoch field accepted | released | [PR #430](https://github.com/csete/gpredict/pull/430) | [v2.7](https://github.com/csete/gpredict/releases/tag/v2.7) | 2026-10-10 (merged) |
| gods-eye-view | a set missing a line dropped the rest of its group | released | [PR #936](https://github.com/bilawalsidhu/gods-eye-view/pull/936) | [v0.3.0](https://github.com/bilawalsidhu/gods-eye-view/releases/tag/v0.3.0) | 2026-10-12 (merged) |
| SGPKit (swift-sgp4) | satellites numbered 100000 and up refused | released | [4.1.0 release notes](https://github.com/csanfilippo/swift-sgp4/releases/tag/4.1.0); likely fixing commit (inferred: only code change in 4.1.0, no commit references #4): [a416eea](https://github.com/csanfilippo/swift-sgp4/commit/a416eea220625c55a1a9cff5549643c395359ef0) | [4.1.0](https://github.com/csanfilippo/swift-sgp4/releases/tag/4.1.0) | 2026-10-11 (released) |
| satvis | `ommToTle` wrote element set 999 for `ELEMENT_SET_NO` 0 | merged; the project has no releases | [PR #85](https://github.com/anttikuosmanen-rgb/satvis/pull/85) |  | 2026-11-10 (merged) |
| akhenakh/sgp4 | Alpha-5 catalog numbers refused; a type 4 TLE propagated as SGP4 | released | [44978c8](https://github.com/akhenakh/sgp4/commit/44978c8e5c175200f792451dbf924514e8e59500) | [v1.0.4](https://github.com/akhenakh/sgp4/releases/tag/v1.0.4) (v1.0.3 not counted: re-tagged to the fixed commit after Go's checksum database had stored the unfixed v1.0.3) | 2026-11-10 (merged) |
| Basilisk | `satOmm2elem` skipped CelesTrak's KVN (`MEAN_ELEMENT_THEORY = SGP/SGP4`) | merged, not yet released | [PR #1675](https://github.com/AVSLab/basilisk/pull/1675) |  | 2026-11-11 (merged) |
| satkit | `TLE.from_lines` dropped a whole file for one bad set; the fix is an opt-in (`on_error`), and the default behaviour is unchanged | released | [PR #287](https://github.com/ssmichael1/satkit/pull/287) | [v0.24.3](https://github.com/ssmichael1/satkit/releases/tag/v0.24.3) | 2026-11-11 (merged) |
| SGPKit (swift-sgp4) | `TLEDecoder.decodeCollection` dropped every TLE in a file for one bad set; found by gpconf (`corrupt-input`); the fix is an opt-in (`decodeValidSets`), and the default behaviour is unchanged | released | [PR #17](https://github.com/csanfilippo/swift-sgp4/pull/17) | [4.5.0](https://github.com/csanfilippo/swift-sgp4/releases/tag/4.5.0) | 2026-11-14 (merged) |
| CelesTrak's fundamentals-of-astrodynamics (SGP4 reference code) | `twoline2rv` reads an Alpha-5 field beginning with I or O as a five-digit number | merged, not yet released | [PR #175](https://github.com/CelesTrak/fundamentals-of-astrodynamics/pull/175) |  | 2026-11-15 (merged) |
| brahe | `OMM.from_str` refuses CelesTrak's ndm-wrapped XML and KVN with an empty CREATION_DATE; `parse_norad_id("A+123")` accepted; Alpha-5 encoding below 100000 unpadded | merged, not yet released | [PR #645](https://github.com/duncaneddy/brahe/pull/645) |  | 2026-11-20 (merged) |
| PyEphem | Alpha-5 fields read as catalog number 0, silently | open | [#296](https://github.com/brandon-rhodes/pyephem/issues/296) |  | 2026-09-25 (reported) |
| python-sgp4 | `Satrec.sgp4init` writes I and O as Alpha-5 letters | open | [#173](https://github.com/brandon-rhodes/python-sgp4/issues/173) |  | 2026-10-10 (reported) |
| python-sgp4 | a type 4 (SGP4-XP) TLE propagated as plain SGP4 | open | [#178](https://github.com/brandon-rhodes/python-sgp4/issues/178) |  | 2026-11-08 (reported) |
| python-sgp4 | line 2's catalog number not checked against line 1's | open | [#179](https://github.com/brandon-rhodes/python-sgp4/issues/179) |  | 2026-11-08 (reported) |
| CelesTrak's fundamentals-of-astrodynamics (SGP4 reference code) | `twoline2rv` returns the element set and revolution numbers with the checksum digit attached | open | [#174](https://github.com/CelesTrak/fundamentals-of-astrodynamics/issues/174) |  | 2026-10-08 (reported) |
| strf | no range check in `number_to_alpha5` above 339999 | open | [#88](https://github.com/cbassa/strf/issues/88) |  | 2026-09-23 (reported) |
| libsgp4 | epoch rounded by 8 µs; `FromCsv` reads stray microseconds | open | [#45](https://github.com/dnwrnr/sgp4/issues/45) |  | 2026-09-24 (reported) |
| tle.js | `getEpochDay()` reads up to a stray letter and `isValidTLE()` calls the TLE valid | open | [#63](https://github.com/davidcalhoun/tle.js/issues/63) |  | 2026-09-28 (reported) |
| SatelliteKit | B* read from a TLE as e-53 instead of e-05 | open | [#16](https://github.com/gavineadie/SatelliteKit/issues/16) |  | 2026-10-08 (reported) |
| SatelliteKit | deep-space Lyddane check on `abs(inclination)` where the reference SGP4 code's is signed | open | [#24](https://github.com/gavineadie/SatelliteKit/issues/24) |  | 2026-11-09 (reported) |
| sgp4 crate (Rust) | a type 4 (SGP4-XP) TLE propagated as plain SGP4 | open | [#23](https://github.com/neuromorphicsystems/sgp4/issues/23) |  | 2026-11-10 (reported) |
| PyEphem | a letter in the epoch field accepted and the epoch read up to it | declined | [#297](https://github.com/brandon-rhodes/pyephem/issues/297) |  | 2026-10-01 (closed) |
| SatDump | Alpha-5 sets dropped silently; SupGP CSV rejected whole on master | closed (maintainers said planned) | [#1221](https://github.com/SatDump/SatDump/issues/1221) |  | 2026-09-27 (closed) |
| python-sgp4 | nine-digit NORAD_CAT_ID refused by the OMM reader (reported by another user; gpconf tested the fix) | another user's report, open upstream | [#169](https://github.com/brandon-rhodes/python-sgp4/issues/169) |  | 2026-08-20 (reported) |

38 findings: 10 fixed by this project's pull requests, 14 by maintainers and contributors after this project's report, 11 still open, 3 others: 2 that ended another way and 1 another user's report; as of 2026-11-22.
<!-- upstream-table:end -->

Every report, the open ones included, is on the [library page](https://gpconf.neogy.dev/library/) of the site.

## What gpconf is

gpconf is the GP/OMM conformance corpus. This repository, `gp-omm-conformance`, holds the corpus and its runner.

A conformance corpus for orbital-data parsers crossing the five-digit catalog-number boundary:
Alpha-5 TLEs, six- and nine-digit `NORAD_CAT_ID`s, and the CCSDS Orbit Mean-Elements Message
(OMM) in CSV, JSON, XML and KVN, as actually served by CelesTrak.

It answers one question for a developer: **does my parser survive the migration?** You point it
at your parser; it tells you, case by case, what breaks and why, with every expected value
traceable to a provider response whose URL, retrieval time and SHA-256 are recorded. One case
(`tle-writer-alpha5`) asks the same of code that *writes* TLEs: Alpha-5 in the catalog field,
valid lines, and a refusal for the numbers the format cannot carry.

Status: version `0.10.0`, a minor release of fixes found by 0.9.0's own reviews, in which four changes alter what a
check concludes (the changelog's "Changes that can move your result"). In `tle-omits-six-digit-objects`, CelesTrak's
no-data TLE answer beside an OMM set holding ids below 100000 is compared with it only when the files' metadata shows
they were fetched together, and a TLE file no parser read (refused by the runner, or rejected by the reference reader)
is not compared; a source with no provider URL, a file shipped with the corpus, never reads a provider's no-data text
as the empty answer; and a `.meta.json` whose `http_status` is present and not an integer leaves its file unread.
Re-run on 0.9.0's released data, the 19 reports of the re-measure workflow (the presets and the libraries it runs)
keep every one of their 399 case verdicts; the libraries measured outside that workflow were not re-run (D-579). The
full upstream table and its check against GitHub, published on main before this release, are in a release for the
first time; the check reads whose pull request made each fix and which version first shipped it, and, for a fix the
maintainer's record marks as an opt-in, that the upstream's release notes or changelog contain its name, or, for a fix
not yet released, the merged pull request or commit; it cannot find an opt-in the record does not mark (D-552, D-553,
D-583 to D-586, D-593), and pytest-gpconf 0.1.0 fails a session in which gpconf grades no
case, unless `--gpconf-allow-ungraded` is given (D-575). The grader is held to wrong-on-purpose adapters in
`tests/adversarial/`, and `tools/mutant_fuzz.py` holds it to 500 one-bug parsers on every push and 5,000 every night
and on every release tag, failing on any that survives outside a reviewed list. Measured for 0.9.0, the naive adapter
fails 14 of the 21 cases with the corpus's launch-window captures added (13 from a user's fetch alone), and
python-sgp4 2.27 fails 7 from a user's fetch alone (D-483, D-489). Each request the fetch makes says who asks:
`gpconf/0.10.0 (+https://github.com/hneogy/gp-omm-conformance; fetch, each URL once)` (D-252). A user's fetch is 46
requests, the same 46 as in 0.6.0, and asks for nothing it knows will answer 404: CelesTrak's 16-byte answer `No GP
data found` ships with the corpus as a recorded response, the one provider response it carries, and the fetch writes
it where it used to request it (D-247). The corpus says "TLE set" for an object's lines and "line" for one line:
604 derived Alpha-5 TLE sets, 304 fetched TLE sets (D-248). The independent audit
(`AUDIT.md`) covered v0.1.0; none of the releases since has been separately audited (v0.7.0's two outside readings
audited the grader, not the answer key). What changed in each release, this one and every one before it, is in
`CHANGELOG.md`. Maintainer: Honorius Neogy (NEOGY LLC).

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.22867654.svg)](https://doi.org/10.5281/zenodo.22867654) See `DECISIONS.md` for the full decision log and `MANIFEST.md` for every case,
source and known gap.

## The migration in one page

**The short version.** Prefer the OMM formats (CSV, JSON, XML, KVN) and hold catalog numbers as integers; the
Alpha-5 cases are for anyone still parsing Space-Track TLEs, since CelesTrak serves no Alpha-5. The recommended
migration path, failure by failure with a minimal fix for each, is [`docs/MIGRATION.md`](https://github.com/hneogy/gp-omm-conformance/blob/v0.10.0/docs/MIGRATION.md); to test
your own parser, [`docs/ONBOARDING.md`](https://github.com/hneogy/gp-omm-conformance/blob/v0.10.0/docs/ONBOARDING.md) gets you to a first run in five minutes.

**What changed.** On 2026-07-11 the US Space Force catalog assigned number 100000 (to the
Portuguese CubeSat SARAMAGO) after exhausting the five-digit range, which ends at 69999 (CelesTrak).
Of the 70000-99999 block, the regular GP data holds only analyst objects, 80000-89999, the range Space-Track documents
for them. CelesTrak's supplemental data gave launch 2026-219 the temporary ids 72000 (the stack) and 72001 (a single
satellite); in the corpus's TLE captures they appear only there (measured, D-274).
Every object catalogued since has a six-digit number. The fixed-width
TLE format has room for five characters, so two coexisting answers exist:

- **Alpha-5** (US Space Force stopgap; Space-Track serves it, CelesTrak does not): the first two digits of a
  six-digit number are written as one letter, A=10 ... Z=33 with I and O skipped, and the last four are kept, so
  100000 becomes `A0000` and the ceiling is 339999. Only TLE/3LE lines carry it.
- **OMM** (CCSDS 502.0-B-3, served by CelesTrak since May 2020 and by Space-Track's GP class): `NORAD_CAT_ID` is
  an integer of up to nine digits; four-digit years; no fixed widths.

**What CelesTrak does.** It emits no Alpha-5 at all. A TLE/3LE/2LE request returns only the
objects below 100000; if none qualify (today, any group of recent launches) the response is
HTTP 404 with the body `No GP data found`. The OMM formats return everything. For GP and SupGP
queries CelesTrak's default `FORMAT` has been CSV since 2026-05-09.

**What breaks** (each item is a corpus case; see `docs/FAILURES.md` for the evidence):

1. `int()` on TLE columns 3-7, or any five-character assumption about the catalog number.
2. Treating an empty TLE file or a 404 as "no new data" and silently losing every object
   launched after 2026-07-11.
3. Requiring `OBJECT_ID`: analyst objects have an empty one in every format, and Python's
   ElementTree returns `None` for the empty element (other XML libraries may do the same).
4. Requiring the constant metadata keywords: CelesTrak CSV/JSON omit `CENTER_NAME`,
   `REF_FRAME`, `TIME_SYSTEM`, `MEAN_ELEMENT_THEORY` and the whole header.
5. One epoch format: CCSDS allows day-of-year, no fraction and a trailing `Z`.
6. Assuming `CLASSIFICATION_TYPE` is `U`, that `ELEMENT_SET_NO` is never 0, or that a CSV has
   no columns you do not know (`RMS`, `DATA_SOURCE` in supplemental data).
7. Comparing a TLE to its OMM digit for digit: the TLE truncates eccentricity to 7 digits and
   rounds the BSTAR and second-derivative mantissa to 5, so OMM to TLE to OMM does not round trip.
8. Reading `MEAN_MOTION_DOT` as the true derivative: the OMM carries the TLE field as printed
   (the ndot/2 convention).
9. Storing the catalog number as an Alpha-5 string internally: python-sgp4 cannot load any
   nine-digit record, and such records are live (launch nominals of the 18th Space Defense
   Squadron, 18 SDS, in CelesTrak SupGP).
10. Writing a TLE with the catalog number through an integer format (`%05d`, `f"{n:05d}"`):
    above 99999 that yields six digits, a 70-character line and a checksum over shifted columns.
    The field must be Alpha-5 from 100000, and a number above 339999 cannot be written as a TLE
    at all: the correct output is a refusal, and the record belongs in an OMM format.
11. Reading a corrupt record as if it were whole: a letter in a numeric column read as the number before it, a line
    one character short read at shifted columns, a set with no second line passed over without a word, an invalid
    catalog field (I9999) read as a number, a file cut mid-record loaded in part with nothing said. The bad record
    should be refused with a reason, and the records after it still read.

**What to change.** Parse the catalog number as an integer from any source; decode Alpha-5
strictly (reject I, O, lowercase) if you read Space-Track TLEs; treat empty `OBJECT_ID` and
`OBJECT_NAME` as legitimate; default the constant metadata; accept all CCSDS epoch forms;
tolerate unknown keys and non-`U` classifications; compare TLE and OMM under the precision
rules; treat a TLE 404 as "unrepresentable in this format", not as an outage; and prefer the
OMM formats, which are what both providers say the future is. When writing TLEs, encode the
catalog number as Alpha-5 above 99999 and refuse numbers above 339999 (or below 0).

## What is in the corpus, and what is not

| in the repository | not in the repository |
|---|---|
| `fixtures/<case>/expected.json`: frozen expected values and structural checks for 21 cases, all numbers as decimal strings | raw CelesTrak responses (`fixtures/<case>/raw/`): rebuilt on your machine by `tools/fetch.py` or `gpconf fetch` under CelesTrak's own usage policy, except ten launch-window captures that no fetch requests (D-229) |
| `fixtures/<case>/case.md`: what the case tests, how to read a failure, coverage gaps stated per case | Space-Track data, in any form (a `.gitignore` guard refuses such paths) |
| `derived/`: Alpha-5 TLE lines rendered from real CelesTrak OMM records (letters A and T only); 152 synthetic-derived TLE sets, the same real elements with the catalog number, the epoch's year or date, or the classification replaced, for both ends of every letter, every two-digit year, day 366 of five leap years and a classification of C, each id a specification vector and no catalogued object (D-286, D-300, D-384, D-404); six CCSDS-legal KVN variants, one synthetic-derived KVN file of day-366 and post-2038 epochs (D-384, D-385) and one XML re-serialisation; seven shipped TLE sets with an exact OMM CSV twin of each (D-406), and one of them, 20453, with ephemeris type 4 and type 0 as TLE, CSV, JSON, XML and KVN (D-409); each with a provenance sidecar | invented element sets: none, anywhere |
| `vectors/`: specification vectors (Alpha-5 table, catalog-id text forms, two-digit-year pivot, CCSDS epoch strings) | |
| `manifest.json` / `MANIFEST.md`: every source with URL, retrieval time, SHA-256, tier; every check and ambiguity by id | SupGP-derived snapshot values: the element values of CelesTrak supplemental records are withheld from the public release; the nine-digit case keeps its structural checks and runs against your own fetch, and `supgp-celestrak-classification-c`, whose files are all launch-window captures, cannot run from a fetch (D-229) |
| `schemas/`: SANA NDM/XML schema sets 2.0.0 and 4.0.0, unmodified | |
| `gpconf/`: the runner (standard library, Python 3.9+) and the adapters and harnesses behind its presets | |
| `harnesses/`: recipes for the five libraries of the one-off runs that cannot be presets (libsgp4, Gpredict, SatDump, astroz, gods-eye-view), and for Vallado's SGP4 C++ as CelesTrak publishes it (D-216): each harness, its pinned commit and build commands; best-effort, not in the pip package, and tied to the projects' internals (D-155) | SatDump's link stand-ins: the recipe lists the symbols to define instead (D-152) |
| `docs/`: the adapter guide (`docs/ADAPTERS.md`), research notes with verbatim sources, cross-check, breakage catalogue, upstream bug-report drafts, the letter-in-field reference (`docs/LETTER-IN-FIELD.md`); `AUDIT.md`: the independent audit and its resolutions | |

The pip package, `gpconf`, carries the runner and the corpus's own files: every case's `expected.json` and
`case.md`, `derived/`, `vectors/`, `recorded/`, `manifest.json` and the fetch list. It carries no provider data,
and one provider response, named below; the schemas, the other documents, the build tools, the test suite and the
recipes stay in the repository.

Why no raw files: CelesTrak's site states no redistribution terms for its data
(`docs/RESEARCH.md` §11), and silence is not permission. Rebuilding locally means the
provider's terms apply to you directly, fixtures cannot rot unnoticed, and SHA-256 hashes tell
you whether you are looking at the exact bytes we tested.

One exception, named here because the rule has no other (D-247, which amends D-023): the corpus ships one response
from CelesTrak, `recorded/celestrak-no-gp-data-found.txt`. It is the 16 bytes `No GP data found`, which CelesTrak
returns with HTTP 404 to a TLE request for an object numbered above 99999. It holds no orbital data: no element, no
catalog number, nothing that stands in for a fetch. It ships so that a fetch does not have to request four answers
it already knows to be errors; the file beside it gives the URL, time and SHA-256 of each capture, and the fetch
writes the body where it used to ask for it. It is CelesTrak's text, and the corpus's licence does not cover it.

## Quick start

From v0.3.0 the runner installs from PyPI with the corpus's own files; the provider data is fetched once,
into a per-user cache:

```bash
pip install gpconf
gpconf run --preset reference   # before any fetch: 5 of the 7 cases whose files ship in the package run, the TLE/OMM twins and the ephemeris-type-4 case skipping without a propagate hook, as the Vallado propagation case does; 11 need provider data, 1 needs data no fetch brings, 1 is a data check not made by default. The run says so: "5 of 21 cases graded offline; not a full conformance result."
gpconf fetch                    # once per corpus version: 46 requests, 1.3 MB (1,276,413 bytes downloaded, 3,162,546 written, measured at 0.8.0); kept on disk, not requested again
gpconf run --preset reference   # then sixteen run, as in a clone: one case needs launch-window data no fetch brings, and the SATCAT data check its own file (--include-satcat)
```

Or from a clone, as before:

```bash
git clone https://github.com/hneogy/gp-omm-conformance.git && cd gp-omm-conformance
python3 tools/fetch.py            # once per corpus version: 46 requests, 1.3 MB (1,276,413 bytes downloaded, 3,162,546 written, measured at 0.8.0); kept on disk, not requested again
python3 -m gpconf run --preset reference   # the control: 16 cases pass; one is not-available, its files being launch-window captures no fetch requests; the SATCAT case is a data check on a file the fetch brings only with --include-satcat, and reports not-exercised for every parser, with the file or without; the nine-digit check says not-exercised outside a launch window
python3 -m gpconf run --preset naive       # the parser most projects have: a demonstration of failure, not a parser to use
```

Installed, the command is `gpconf`; in a clone it is `python3 -m gpconf`; the two take the same arguments.
A preset runs a shipped adapter with nothing written. `python3 -m gpconf presets` lists them:
`reference` and `naive` (standard library only), `sgp4` (needs python-sgp4 2.27 or newer: `pip install sgp4`, or
`pip install "gpconf[sgp4]"`, which pins `sgp4>=2.27` and therefore needs Python 3.10+ — python-sgp4 dropped 3.9 at
2.26, and on 3.9 the extra refuses to install rather than silently fetching the older 2.25), `pyephem` (needs PyEphem: `pip install ephem`, or
`pip install "gpconf[pyephem]"`), and three that need Node.js and the library
installed where you run the command: `satellite.js`, `tle.js`, which reads the epoch from the raw
year and day fields, and `tle.js-api`, which reads it through `getEpochTimestamp()`. A library
preset records the version it was tested against and the report prints the version it found beside
it, since a count is a result against one version. The `sgp4` preset runs python-sgp4's accelerated
`Satrec` class, which is Vallado's C++ reference implementation as python-sgp4 ships it, so the
reference's own readings are measured against every case; the corrupt-input case document records
what it does with a letter in a numeric field. A Node preset's harness runs from the working
directory, so the library resolves as it would for a script in your project; `--module PATH` names
the library's entry file instead, for a checkout that cannot import itself by name. A preset whose
library is missing is refused before any case runs, with exit status 2 and a message saying that
nothing ran and that this says nothing about the library (D-153, D-154). The adapters are in
`gpconf/adapters/`; the older names `tests.adapters.reference:Parser` and the like still work (D-151).

A script should read the JSON report or the exit status, never the printed lines, whose wording can change from one
version to the next (D-240). `--json FILE` writes the report: its `summary`, from 0.6.0, holds the number of
cases in each status, and `results` holds each case with its status and its item counts; the exit status is 0 when no case failed, 1 when one
did and 2 when nothing could run, no case was graded, or the report could not be written (D-370, D-389). In a GitHub Actions job the Action's outputs `failed`, `exercised` and `report` carry
the same. The [adapter guide](https://github.com/hneogy/gp-omm-conformance/blob/v0.10.0/docs/ADAPTERS.md) describes the report field by field.

In a GitHub Actions job, from v0.3.0, three lines run a preset against your library:

```yaml
- uses: hneogy/gp-omm-conformance@v0.10.0
  with:
    preset: sgp4
```

Install your library first, in the job's Python (the `python` input names the interpreter) or, for a Node
preset, in the job's working folder. The Action runs the corpus from this repository at the tag you name,
so a corpus release changes nothing in your CI until you move the tag. It runs offline and fetches nothing:
only the cases that ship with the corpus run, and the rest are reported as needing provider data. It is
report-only: failed cases do not fail the job, and the job summary carries the case table, the gate line and
the reminder that a count is a result against that version on that date, not a verdict on the project. A
preset whose library will not import fails the job as a setup error, exit status 2, saying that nothing ran.
There is no badge (D-153, D-158).

Then write an adapter for your own parser: a Python class the runner imports (`--adapter module:Class`), or, for a
parser in any other language, a command that reads a file on standard input and prints JSON (`--cmd`, with
`--vectors-cmd` and `--write-cmd` for the hooks). [`docs/ADAPTERS.md`](https://github.com/hneogy/gp-omm-conformance/blob/v0.10.0/docs/ADAPTERS.md) is the guide.

If the writer cannot be wrapped at all (an interactive program such as strf's `rffit`, which
satno2tle drives), check the file it wrote instead. The format checks need nothing else; the
round trip needs the source records the lines were written from:

```bash
python3 -m gpconf check-tle output.tle                          # lines, checksums, catalog field, column layout
python3 -m gpconf check-tle output.tle --against records.csv    # plus the round trip, per record, and each source record written
```

Name lines, `#` comment lines (rffit's trailer) and LF or CRLF endings are accepted; a six-digit
number in the catalog columns is reported with the Alpha-5 form it should have had, and a number the
format cannot carry with the statement that a refusal was the correct output. With `--against`, a source record
that no file wrote fails, an id written fewer times than the source holds it among them, and so does an id written more
often; a number the format cannot
carry, written by none, is noted as the refusal it should be; an id the source holds more than once (a history) is
compared copy by copy: a written record is paired with the source copy whose epoch it writes, by truncation or by
rounding, a record matching no copy's epoch fails, and a copy no record was paired with was not written (D-403; before,
such records read `[not compared]`, D-369, D-370; exit 3, for that, is kept and no longer occurs). Exit code 1 on any
failure or when no record is found, and 0 only when every record passed. Known limits of the pairing: copies the
record cannot tell apart (the same epoch, values within a field's resolution) are counted as one assignment can
cover them, so a writer writing one of two such copies twice is not caught; and a copy carries no catalog of which
record it was meant for beyond its epoch and values.

`python3 -m gpconf list` prints the cases and their tags; `--case ID` and `--tag TAG` select.

`python3 -m gpconf fuzz --preset NAME` (or `--adapter`, `--cmd`) fuzzes a parser against the corpus's own reference
reader: each shipped input with one mutation (shifted columns, checksums, Alpha-5 letters, exponent forms, line
endings, truncated and overlong lines, non-ASCII digits, NaN and overflowing OMM values, KVN and XML syntax breaks),
`--count` inputs from `--seed`, the same seed and count repeating a run exactly. A crash, an unreadable answer, a
record read otherwise than the reference reads it, one dropped without a refusal, or one returned more often than the
input holds it is a finding, minimised and saved
with `--out DIR`; returning what the reference refuses is reported apart, since a reader may be lenient.
`--propagate` adds the propagate hook at the edge of SGP4's domain, where code 0 without finite values is a finding.
It is opt-in, never part of `gpconf run`, and its findings move no case verdict; it exits 0 unless its own options
are wrong (D-415), or, with `--strict`, 1 when it finds anything, for an adapter's own CI step (D-422).

### Fetching responsibly

CelesTrak asks four things of software that downloads from it, in its usage policy
(https://celestrak.org/usage-policy.php) and in the FAQ of its GP formats page
(https://celestrak.org/NORAD/documentation/gp-data-formats.php). What the fetch does about each:

- **Download data once per update; GP data updates every two hours at most.** The fetch requests each URL once
  and keeps the file with its metadata. It does not request a file it already holds, with or without its
  metadata, unless you pass `--force`, and `--force` is refused for any file whose recorded `retrieved_at` is
  less than two hours old. Do not run the fetch more than once per two hours. A new corpus version fetches the
  live files again and copies the stable ones from the earlier version's folder (below).
- **Stop on any response that is not an HTTP 200, and have a person look.** The fetch stops at the first one,
  with no exception (D-247). Up to 0.5.1 it knew four in advance, four TLE requests for objects numbered above
  99999, which answer 404 with `No GP data found`. It no longer makes them: that answer ships with the corpus as
  a recorded response, and the fetch writes it where it used to ask. Anything that is not a 200 ends
  the run with exit status 2 and is kept beside the data as `<file>.unexpected`, never read as data (D-228). A
  403 is a refusal: read the kept response, which says why. The fetch then makes no request for two hours.
- **Stay under 50 errors in two hours and 100 MB a day from one address.** One run is 46 requests and 1.3 MB, and
  none of them is expected to answer with an error. The size is measured: the first-time fetch timed at the 0.8.0 release
  downloaded 1,276,413 bytes, gzip-compressed, and wrote 3,162,546, where the corpus's own captures of the same files sum to 3.1 MB; the live files change size.
  Do not run it in a loop or in CI; the GitHub Action runs offline for that reason.
- **Only download the data you need.** The legacy SATCAT file, 9.4 MB, is by far the largest piece of a full fetch, and
  it serves `satcat-70000-cutoff`, a data check in which no parser takes part. The fetch leaves it out unless you
  pass `--include-satcat` (D-231). Without the file the case reports `not-exercised`, as it does with it, and a
  line under the count says that `--include-satcat` runs the check and that nothing about your parser depends on
  it (D-232).

The rest is the corpus's own choice and not something CelesTrak asks for (D-230): requests go one at a time with
a two-second pause, no redirect is followed, nothing is retried, and no URL is requested twice in one run (a
re-capture entry is requested only when its original is on disk and two hours old). Every request carries the header
`User-Agent: gpconf/<version> (+https://github.com/hneogy/gp-omm-conformance; fetch, each URL once)`: the kit's name,
the version that asks and this repository, so that CelesTrak can tell the fetch's requests from any other's (D-252).

It carries nothing about you (D-007). Set `GPCONF_CONTACT` to append a contact of your own, or `GPCONF_USER_AGENT`
to replace the string. Each request also asks for gzip (`Accept-Encoding: gzip`), for a smaller transfer; a gzip
answer is decompressed before it is written, so a file's bytes and SHA-256 are the data itself, and its metadata
records the coding and the bytes that came over the wire (D-329).

**The one other host.** `gpconf fetch --include-propagation` also downloads Vallado's two SGP4 verification files,
`SGP4-VER.TLE` and `tcppver.out` (145 KB), which gpconf does not ship (D-388), from python-sgp4's GitHub repository at
release 2.27, commit `6e7428df7acc48e8176828289a8c14486a114759` (`raw.githubusercontent.com`). It is opt-in, and asks
only for a file not already on disk with the corpus's manifest's bytes. It runs before CelesTrak's requests and keeps
the same rules: the same `User-Agent`, one request per file, no redirect, no retry, a stop at anything but HTTP 200. It
asks for no compression, reads no more than the manifest's size, and writes a file only when its size and SHA-256 are
the manifest's, so gpconf never grades against bytes it has not checked (D-455). In a clone the files go to
`propagation/`, which `.gitignore` keeps out of commits. Installing python-sgp4 gives the same two files with no fetch
at all: every release from 2.0 to 2.27 carries them with these bytes (D-425).

After each run the fetch compares every file with the SHA-256 recorded in `manifest.json`, prints a `DRIFT` line for any stable-tier source whose bytes differ and exits 2
(`--check-drift` does the comparison without fetching).

The same fetch runs as `python3 -m gpconf fetch`, with the same options. In a clone it writes the
provider files under `fixtures/<case>/raw/` as always. `--data DIR`, or the `GPCONF_DATA` environment
variable, puts them in another folder, and `gpconf run` then reads them from the same place. A copy of
the runner outside a clone reads its corpus from the package and keeps the provider files in a per-user
cache folder, one per corpus version: `~/.cache/gpconf/<version>` (or under `$XDG_CACHE_HOME`) on
Linux, `~/Library/Caches/gpconf/<version>` on macOS, `%LOCALAPPDATA%\gpconf\Cache\<version>` on
Windows. The run prints that folder above the case table whenever it is not the corpus's own (D-150).
When a new corpus version's folder is filled, a stable-tier file whose bytes hash to the new version's
recorded SHA-256 is copied from an earlier version's folder, with its metadata, instead of requested
again; the fetch prints `reused from <version>` for it, its metadata records `reused_from`, and the run
report says how many files were reused. Live files are always requested (D-157).

### Two tiers: snapshot and live

Each source in the manifest is `stable` or `live`.

- **stable** (CelesTrak `gp-first.php` first-ever records, derived files, vectors): if your
  fetched bytes hash to the recorded SHA-256, the frozen, human-verified expected values are
  applied exactly.
- **live** (rolling groups, current objects, supplemental data, SATCAT records): CelesTrak
  updates every two hours, so your bytes will differ from the tested snapshot. The runner then
  applies the case's structural checks (cross-format agreement, count relations, presence rules,
  404 semantics) and compares values against the corpus's own reference reader applied to your
  bytes, and it says so in the report. The snapshot values remain in `expected.json` as a dated
  reference.
- **mixed** (the pairs, facts and XML-schema cases, which list files fetched for other cases): the
  case uses the file structurally and applies no frozen values of its own; whether the file may
  drift is judged by the tier the fetching case records (D-114). Vector and derived files ship with
  the repository and are never fetched; their source rows say so instead of an HTTP status.

## Writing an adapter

An adapter hands the corpus's files to your parser and returns what it read, in the corpus's field names: a Python
class with a `parse(raw, fmt)` method, or a command that reads a file on standard input and prints a JSON array.
Optional hooks answer the vector case and the writer case, and a refusal channel reports a record the library
rejected, with the library's reason. [`docs/ADAPTERS.md`](https://github.com/hneogy/gp-omm-conformance/blob/v0.10.0/docs/ADAPTERS.md), which also ships in the package (`gpconf/corpus/docs/ADAPTERS.md` in an installed copy), is the guide: both protocols, the refusal
channel, how returned records are counted, the hooks, running and reading a report, and what an adapter must not do,
with worked examples copied from the shipped adapters. The sections below describe how any parser's results are
judged and reported.

### Tolerances, and how they are reported

The oracle values are exact decimal strings. For the parser under test the runner allows:

| comparison | tolerance | why |
|---|---|---|
| a value you return as a binary `float` | 1e-12 relative: abs(got − want) / max(abs(got), abs(want)); an exact zero on either side must be matched by an exact zero | most decimal element values have no exact double; 1e-12 is far below any physical meaning and above the noise of unit conversions (observed 1e-16 in `docs/CROSSCHECK.md`) |
| an epoch you return | 2 microseconds | python-sgp4's Julian-date epoch differed from the exact value by up to 1 microsecond in the cross-check (`docs/CROSSCHECK.md`) |
| TLE epoch against the OMM epoch of the same record | 432 microseconds | half of the TLE's 1e-8 day resolution; the provider itself rounds here |

Everything else is exact. A check that passed only because of a tolerance is reported as
`pass-tolerance`, separately from `pass` (exact), with the per-field count, mean signed
difference and maximum, so a systematic sub-tolerance bias is visible instead of hidden. The
reference adapter must be exact; the test suite enforces that.

A provider file that is not on disk is reported as `not-fetched`, never as `skip`: the corpus does not
ship provider data (see "Fetching responsibly"), and `skip` is kept for a parser that has no reader for a
format or no hook for a check. A case with none of its provider files reports `not-fetched` (the SATCAT case, whose
check of the legacy file needs no parser, reads `not-exercised` instead, and its line says it read none); the count line
says how many cases need fetched data, the `n/f` column counts the missing files per case, and the runner
prints the command that fetches them. A case that ran on some of its files keeps the result of those
files and is named below the count line. The three re-capture files are an example: each is the same
endpoint requested a second time when the corpus was built, and the fetch requests it only with
`--include-recaptures`, so a normal fetch leaves those three cases without it (D-150 corrects D-148's
wording here, which said a later run would bring it). A file that ships with the
corpus (under `derived/` or `vectors/`) and is missing stops the run with exit status 2, since the copy
is incomplete and no status would be true of the parser (D-148).

A provider file that no fetch requests is reported as `not-available` (D-229). Ten files are the corpus's own
captures of a launch window: the Starlink G15-27 post-deployment file and one launch nominal, 799501621, in five
formats each. CelesTrak serves such data for the days after a launch, so a fetch that asked for them would stop
for every user once the window closed. They stay in the fetch list as a record, marked `launch_window`, and no run
plans them. One case, `supgp-celestrak-classification-c`, needs nothing else and reports `not-available`; three
more, `nine-digit-supgp-launch-nominals`, `csv-json-omitted-mandatory-fields` and `omm-xml-schema`, name some of
those files and are judged on their others. The `n/a` column counts the files, the count line says how many cases
are not available, and no fetch command is printed for them, there being none to give.

**The counts this corpus publishes here, in the recipes under `harnesses/` and on the site were measured with those
launch-window files, which a new user's fetch cannot obtain. A run from a fresh fetch cannot reproduce the failures
that rest on them and shows fewer failing cases for most of those counts.** For the built-in presets it shows 16 cases
passing for `reference` and 13 failing for `naive`, where the published figures are 17 and 14; the published `sgp4`
figure, 7 failing, is itself measured from a fresh fetch (D-483, D-489). `docs/FAILURES.md` is graded from a fresh fetch
alone, without those files (D-002, D-593), so its figures are the fresh-fetch ones: 16, 13 and 7.

A source file the corpus's own reader reads zero records from, where the manifest records some, fails
the case with a `source-readable` item that says what the file looked like (size, first bytes, and a guess
such as an HTML error page, an empty file, a BOM prefix or a TLE cut off after line 1), and the file's other
checks are not run; a 16-byte CelesTrak 404 body is a legitimate zero-record file and stays `empty-404`. A file in
place of a source the corpus records as CelesTrak's 404 answer that is not the no-data text and reads no records
fails the same way (D-515). Records read in that place are graded as records, as any other file's are: an object
catalogued since the corpus recorded the 404 answers with records.
A stable-tier source whose bytes no longer hash to the recorded SHA-256 is reported, not silently treated
as live: the case gets a failing `stable-source-drift` item naming the recorded and actual hashes, the JSON
report gets a `drift` field, and the file's values item says the frozen expected values were not applied
and that the parser was compared against the reference reader instead.

### The provider's empty answer

Four cases hold a recorded answer with no data in it: CelesTrak's HTTP 404 body, `No GP data found` or `No SupGP data found`, for a group with nothing in that format. From v0.6.0 a fetch does not request the four `No GP data found` answers: it writes each from `recorded/celestrak-no-gp-data-found.txt`, the one provider response the corpus ships, and a run says of those files that they are the corpus's record and were not requested (D-247). Six files hold such an answer in all: those four; `last-30-days-recapture.tle`, the same text from a re-capture of the same request, which a fetch brings only with `--include-recaptures`; and one with the SupGP text, a launch-window capture that no fetch requests. A file is that answer only when it holds the bytes the corpus records for its source, exactly (D-540). The runner hands the body to the parser under test (check `empty-answer-yields-no-records`): zero records and no error is the pass, an exception or an invented record is a failure, and a parser without the format skips. The point is the distinction: an empty but valid answer is one of three outcomes a parser must keep apart from "this file is unreadable" and "this value cannot be represented", and an error here collapses the first into the second.

### The gate: this month's launches

Below the case table the runner prints one gate, a headline read across existing cases rather than a new case: given the objects launched in the last 30 days, as a provider serves them, does the parser return them with the right identity? Its inputs are the CelesTrak CSV capture of the last-30-days group (256 objects, every one above 99999, captured 2026-09-21) and the corpus's Alpha-5 rendering of the same records, the form Space-Track's TLE output carries. Per format the parser reads, records are counted as loaded (returned with the expected integer id), misidentified (returned as 0, NaN, a string or a wrong number) or dropped (no record came back). The wording names the behaviour and never grades the project: "reads this month's launches", "only via CSV", "not in any format it reads", and, for a parser that reads TLE only, "nothing to load from this feed", because CelesTrak's TLE output omits these objects. A format that was never tried, because its file was not fetched or its case was not selected, limits the claim: the headline then says "every format measured here" or "not in any format measured here", names the format left out before the numbers, and never says "nothing to load from this feed", which would claim the parser reads TLE only. A freshly fetched CSV holds different records from the frozen capture; it is judged against its own record count and labelled as a live capture (D-148). Every headline carries the snapshot's date, count and id range, and the letters its Alpha-5 fields begin with: a decoder that is wrong from J upward passes a snapshot whose ids all begin with A. The JSON report carries the same under `gates`, with the counts, and each values item now carries its record counts under `counts`.

## The twenty-one cases

| case | what it covers |
|---|---|
| `epoch-year-19xx` | first ISS record (1998) in seven renderings; two-digit year 98; negative first derivative; non-zero second derivative |
| `baseline-iss-five-formats` | a current object in every rendering (live) |
| `six-digit-omm-saramago` | catalog number 100000, stable and live; TLE request 404 |
| `tle-omits-six-digit-objects` | a group that is entirely six-digit: 256 OMM records, TLE request 404 |
| `analyst-objects` | empty `OBJECT_ID`, `UNKNOWN` names, 8xxxx and 27xxxx ids, TLE keeps only the five-digit ones |
| `nine-digit-supgp-launch-nominals` | nine-digit ids (7995016xx) in CelesTrak supplemental data; perishable: the capture of one nominal in five formats is `not-available` from a fetch, and the full Starlink file exercises the nine-digit check only in the days after a launch |
| `supgp-celestrak-classification-c` | classification `C`, element set 0, extra columns, 72000-series ids; all five files are a launch-window capture, so the case is `not-available` from a fetch (D-229) |
| `bstar-and-derivative-forms` | negative BSTAR and first derivative, non-zero second derivative, implied-decimal fields |
| `satcat-70000-cutoff` | legacy SATCAT stops at 69999; CSV/JSON SATCAT continues; a data check, with no parser involved, on a 9.4 MB file the fetch brings only with `--include-satcat` (D-231) |
| `csv-json-omitted-mandatory-fields` | CelesTrak CSV/JSON omit the constant CCSDS-mandatory keywords |
| `mean-motion-derivative-convention` | OMM `MEAN_MOTION_DOT` equals the TLE field as printed (in 304 of 304 fetched TLE sets) |
| `tle-vs-omm-precision-loss` | eccentricity truncated, mantissa rounded half up, SupGP epochs quantised; TLE→OMM→TLE round trip tested (the 24-character name limit is a format rule, not observed in provider data) |
| `omm-xml-schema` | valid NDM/XML 2.0, invalid against 3.0 on the version attribute alone |
| `alpha5-encoding-vectors` | the Space-Track table, official examples, boundaries, invalid inputs (a blank and an empty field among them, D-360) |
| `alpha5-tle-derived` | 604 derived Alpha-5 TLE sets, 1,208 element lines (letters A and T), from real CelesTrak records; 152 synthetic-derived sets for every letter, every two-digit epoch year, day 366 of five leap years and a classification of C |
| `kvn-syntax-variants` | six CCSDS-legal KVN renderings CelesTrak never emits, and eight synthetic-derived OMM messages with day-366 and post-2038 epochs in one file |
| `tle-writer-alpha5` | writer side: 762 inputs written through `write_tle`: 606 frozen records (603 Alpha-5 ids and three five-digit), plus 156 synthetic-derived: the 151 sets the derived case contributes (both ends of every Alpha-5 letter, every two-digit epoch year and day 366 of five leap years; D-286, D-300, D-384), the five-digit vector 99999 with the positive-exponent BSTAR ` 12345+1` no fetched record carries (D-125), the five-digit 99998 with an eccentricity of 0 (`0000000`), which no frozen record has (D-399), and three numbers the TLE field cannot carry (340000, 799501621, -1), for which a refusal is the correct output |
| `corrupt-input` | corrupt input between valid records: a wrong checksum digit, line 2 one character short, a letter in the epoch field, a set with no line 2, an invalid Alpha-5 catalog field (D-360), a CSV cut in its last row, a JSON array left open; each a frozen record with one stated edit (synthetic-derived, D-171); the right answer is a refusal with a reason, and the records around it load as they do without it (D-175) |
| `sgp4-ver-propagation` | propagation, through an optional `propagate` hook: Vallado's 33 verification element sets, TEME position and velocity within 2e-7 km and km/s of `tcppver.out`, SGP4 error codes exact; the two files are located on your machine (`--sgp4-ver DIR`, else the installed python-sgp4 package, else the copy `gpconf fetch --include-propagation` downloads from python-sgp4's repository, the fetch's one host other than CelesTrak) and held to the corpus's manifest of their bytes, never shipped (D-388, D-401, D-455); a parser without the hook skips it |
| `propagation-tle-omm-twins` | propagation from a TLE and from its exact OMM CSV twin: seven shipped sets (near-earth and deep-space, Alpha-5 ids), six times each, against the corpus's own reference vectors (SGP4 by Vallado's C++, cross-checked with python-sgp4) within 2e-7, and the two renderings against each other; a parser without the `propagate` hook skips it (D-406) |
| `ephemeris-type-4-refused` | an SGP4-XP element set (ephemeris type 4) must not come back as SGP4 positions: one shipped set with type 4 as TLE and the four OMM formats, and a KVN saying `MEAN_ELEMENT_THEORY = SGP4-XP`; a refusal passes, positions fail, and each file's type-0 twin must propagate against the twins' reference vectors; a parser without the `propagate` hook skips it (D-409) |

Full detail, sources and per-case gaps: `MANIFEST.md`; per case: `fixtures/<case>/case.md`.

## Known gaps (summary; each is also stated in the case that has it)

- Real catalog numbers exist only for Alpha-5 letters **A** (100000-100789) and **T**
  (270000-270449, Space Fence analyst objects). The other letters, and the two-digit epoch years the real sets do
  not carry, are covered by the vectors and, from 0.7.0, by synthetic-derived TLE sets a parser reads like any
  other: real elements, the catalog number or the epoch's year replaced (D-286, D-300).
- The renderer behind the derived Alpha-5 TLE sets was validated (304 of 304 fetched TLE sets byte for byte:
  the name line, line 1 and line 2 of each) only against sub-100000 CelesTrak output, because CelesTrak emits no Alpha-5. The encoding
  step is corroborated by python-sgp4's independent implementation, by the official vectors, and
  by the maintainer's run of `tools/verify_against_spacetrack.py` against their own Space-Track
  account (44 records, zero defects, letters A and T; D-070). The derived lines are rendered
  with CelesTrak's eccentricity truncation and its zero-second-derivative sign: Space-Track's
  own TLE lines for the same records differ in the sign
  written for a zero second derivative and in the last eccentricity digits, so they are not
  byte-identical to Space-Track output. The rendering rule the corpus applies (eccentricity
  truncated, BSTAR and second-derivative mantissa rounded half up) is CelesTrak's, derived
  empirically from those 304 TLE sets and documented in no specification we located.
- No positive-exponent BSTAR (>= 1.0) exists in the fetched data. One synthetic-derived writer input (id 99999,
  BSTAR 1.2345, TLE field ` 12345+1`, rendered by the corpus, D-125) covers the field's form on the writer side only.
- No frozen writer input has an eccentricity of 0. One synthetic-derived writer input (id 99998, eccentricity 0,
  TLE field `0000000`, rendered by the corpus, D-399) covers it on the writer side.
- Two cases rest on launch-window captures that no fetch requests (D-229). A supplemental record in five formats,
  with element set 0, the 72000-series ids and the TLE epoch of a SupGP record, and a nine-digit id in JSON, XML
  and KVN, are exercised only on the maintainer's copy. From a fetch, the supplemental checks that remain are the
  ones the full Starlink CSV supports: integer ids, classification `C` and the extra columns.
- Nine-digit ids exist only in supplemental launch nominals for roughly a week after a launch;
  outside that window the nine-digit check reports `not-exercised`. What happens to a nominal's identity after
  that week is an open question the corpus states and does not answer: it checks that the nine-digit
  and six-digit forms both parse, holds no object in both, and has no ground truth for how a tracker
  should correlate a nominal with the catalogued object that follows it; the shared launch
  designator is not one-to-one. The nine-digit case's gaps say why that is out of scope rather than
  missing.
- Stability of CelesTrak's `gp-first.php` over time is assumed, not yet observed; `tools/fetch.py`
  compares every fetched file with the manifest after each run and reports `DRIFT` for stable
  sources whose bytes changed.
- The writer case's inputs are the corpus's own frozen records; no output of an external tool is
  shipped. strf's `rffit` (the writer behind satno2tle) was exercised at function level only, in a
  scratch build outside the repository, and has no adapter because it is an interactive X11 program
  (`DECISIONS.md` D-097).

## Library behaviour found while building the corpus

Documented in `docs/CROSSCHECK.md`, with draft upstream reports in `docs/upstream/`:

- python-sgp4 2.27 and Skyfield 1.55 raise `ValueError` for every nine-digit `NORAD_CAT_ID`
  loaded from OMM data.
- python-sgp4's `sgp4.omm.parse_xml` turns an empty `<OBJECT_ID/>` into `None` and
  `initialize()` raises `TypeError` on 564 of the 566 analyst XML records in the case (563 of the 565
  group records, plus the single 270449 first record).
- python-sgp4's `export_tle` writes a zero second derivative as ` 00000-0`, which matches
  Space-Track's rendering; CelesTrak writes ` 00000+0`, so byte-exact round trips of CelesTrak
  lines fail while values agree. A provider divergence, not a library defect; documented in
  `docs/upstream/`, not filed (D-072).
- python-sgp4's `omm.initialize` sets the classification and then `sgp4init` resets it to `U`,
  so CelesTrak supplemental records (`C`) come back as `U`; and its Alpha-5 decoder accepts
  `I`, `O`, lowercase and four-character input that Space-Track's definition excludes.
- As a writer, python-sgp4's `export_tle` encodes Alpha-5 correctly and `omm.initialize` refuses
  340000 and nine-digit numbers, the correct output for a TLE writer; `to_alpha5(-1)` still yields
  `-0001`, so a negative number is written rather than refused.

## Writer-side tools

The writer case (`tle-writer-alpha5`) and `check-tle` exist because every newly catalogued object
needs an Alpha-5 field and amateur tools generate TLEs for new launches. Three writers were run
(`docs/FAILURES.md`): the corpus's own renderer passes every check; a writer that formats the catalog
number as an integer fails every Alpha-5 input; python-sgp4 2.27's `export_tle` passes every real
record and refuses 340000 and nine-digit numbers, failing only the synthetic -1 vector.

strf's `rffit`, the writer behind satno2tle, could not be built here and is interactive, so it has no
adapter; its two formatting functions were exercised unmodified in an isolated build outside the
repository. Tested at function level: correct Alpha-5 across the representable range and valid lines
for real records; above 339999 no range check, so the lines carry a blank catalog field, on a route only
the interactive Satellite ID entry takes and that no real catalog number reaches today. Labels, details
and the reproduction recipe are in `docs/WRITERS.md`. No bug is claimed for the binary; a short
hardening suggestion, `docs/upstream/strf-number-to-alpha5-range-check.md`, was filed as
[cbassa/strf#88](https://github.com/cbassa/strf/issues/88) on 2026-09-23. Users of rffit or satno2tle can check the file it wrote with `python3 -m gpconf check-tle`.

## Upstream

Status of the findings above with python-sgp4, as of 2026-09-24:

- **Empty `<OBJECT_ID/>` import failure**: filed by the maintainer of this corpus as
  [brandon-rhodes/python-sgp4#171](https://github.com/brandon-rhodes/python-sgp4/issues/171)
  (draft and prepared patch in `docs/upstream/`); the patch,
  [PR #172](https://github.com/brandon-rhodes/python-sgp4/pull/172), opened 2026-09-21 and amended
  2026-09-23 after the maintainer's review, was merged by the maintainer on 2026-09-24 as commit
  `8126f77`, and #171 is closed. No release carries the fix yet (the latest is 2.27 of 2026-07-03), so
  the python-sgp4 results in this README and in `docs/FAILURES.md`, 7 of 21 cases failing on a fresh
  fetch (D-483), are against 2.27 and stand until one does.
- **Nine-digit `NORAD_CAT_ID` rejected**: independently reported before this corpus existed as
  [#169](https://github.com/brandon-rhodes/python-sgp4/issues/169), with
  [PR #170](https://github.com/brandon-rhodes/python-sgp4/pull/170) open. Not filed again. PR #170
  at head `5e4f308` was tested locally against the sixteen cases the corpus had at the time, on both the accelerated and the
  pure-Python build: it adds two tests and no library code change, the nine-digit reproducer still
  raises, and the runner results are identical to the 2.27 baseline (0 fixed, 0 regressions). The
  test report is in `docs/upstream/pr170-test-comment.md` (DECISIONS D-088).
- **Alpha-5 letters I and O written by the compiled `Satrec`**: `sgp4init` writes satellite numbers 180000 to
  189999 with the letter I and 230000 to 239999 with O, where the pure-Python class writes J and P. Filed
  2026-10-10 as [#173](https://github.com/brandon-rhodes/python-sgp4/issues/173) (D-307). No catalogued
  object is in either range today.
- **`export_tle` zero second derivative** (` 00000-0`): not a library defect, not filed (D-072).
- **`omm.initialize` classification reset to `U`**: draft note only, not filed.

For strf, `docs/upstream/strf-number-to-alpha5-range-check.md` holds a hardening suggestion, not a
bug report, drafted 2026-09-22 (D-101) and filed as [cbassa/strf#88](https://github.com/cbassa/strf/issues/88)
on 2026-09-23 (D-108).

For Gpredict, the mean-motion report, [csete/gpredict#426](https://github.com/csete/gpredict/issues/426), was closed on
2026-10-08 by the corpus's own [PR #428](https://github.com/csete/gpredict/pull/428), merged by the maintainer as
`dd2edc0`: the field is read at its full eleven characters. Checked with the recipe's harness against that commit: the
project's own test set, whose mean motion is printed 16.05824518, reads 16.0582451 at v2.6 and 16.05824518 at the
merge, and a set whose eighth decimal is 0 reads the same at both (D-316). The letter-in-epoch report of 2026-09-28,
[csete/gpredict#427](https://github.com/csete/gpredict/issues/427), was closed on 2026-10-10 by
[PR #430](https://github.com/csete/gpredict/pull/430), a contributor's fix merged by the maintainer as `f05abf3`:
`Good_Elements()` now refuses a set whose epoch field is not a well-formed number. Checked with the recipe's harness
against that commit: the altered line is refused and the unaltered line reads in full (D-309). No release carries it
yet, the latest being 2.6, so the Gpredict results here stand as run.

For satellite.js, the letter-in-field report of 2026-09-28,
[shashwatak/satellite-js#190](https://github.com/shashwatak/satellite-js/issues/190), was closed on 2026-10-14 by
the corpus's own [PR #197](https://github.com/shashwatak/satellite-js/pull/197), merged by a maintainer into `develop`
as `00752f0`; #185, the report behind #186 and #187, was closed on 2026-10-13. Checked against that commit: the
report's set with a letter in its epoch field reads the epoch day as 189.7 at 7.1.0 and as NaN at the merge, still
with no error set, and the corpus's corrupt-input case reads that record's epoch as null (D-326). No release carries
the fix yet, the latest being 7.1.0, so the satellite.js results here stand as run.

For gods-eye-view, the missing-line report of 2026-10-03,
[bilawalsidhu/gods-eye-view#906](https://github.com/bilawalsidhu/gods-eye-view/issues/906), was closed on 2026-10-12
by [PR #936](https://github.com/bilawalsidhu/gods-eye-view/pull/936), a contributor's fix (xiehuanyi) merged by a
maintainer as `8b8ccc9`: the reader now resumes at the next set after one that lacks a line. Checked with the recipe's
harness against that commit: of the report's eight sets, the second without its line 2, release v0.2.1 keeps the first
alone and the merge keeps the seven that are whole; in the `corrupt-input` case the two valid sets around the broken
one both load, where one was dropped (D-324). Release v0.3.0 of 2026-10-28 carries it (read from GitHub on 2026-11-01,
D-373); the gods-eye-view results here were run at v0.2.1 and stand as run. Another contributor, kvnloo, wrote a reference fix for the same report and
[credited it there](https://github.com/bilawalsidhu/gods-eye-view/issues/906#issuecomment-6074160493).

The Alpha-5 report of 2026-09-24, [bilawalsidhu/gods-eye-view#751](https://github.com/bilawalsidhu/gods-eye-view/issues/751),
in which every satellite with an Alpha-5 catalog number shared one NaN key and all but the first were dropped, is
answered by the corpus's own [PR #767](https://github.com/bilawalsidhu/gods-eye-view/pull/767), merged by a maintainer
on 2026-10-17 as `5ce56bd`, with the maintainer's follow-up on the branch: one decoder for the catalog field, which
takes plain digits or a valid Alpha-5 field and refuses anything else, a sign, a decimal point, an embedded space or a
trailing letter among them (D-347). Checked with the recipe's harness at the merge and on `main` (`7be5937`): every
Alpha-5 satellite now loads under its own catalog number, 256 of 256 of this month's launches where release v0.2.1
kept one, keyed NaN; the case still fails, on satellite.js's mean motion alone (D-353). #751 was closed on 2026-10-23.
Release v0.3.0 of 2026-10-28 carries the fix (read from GitHub on 2026-11-01, D-373); the gods-eye-view results here
were run at v0.2.1 and stand as run.

## Verifying the derived Alpha-5 lines against Space-Track yourself

CelesTrak emits no Alpha-5 TLEs, so the corpus's Alpha-5 lines are rendered from CelesTrak OMM
records (`derived/alpha5-tle/`). Space-Track does emit Alpha-5 for catalog numbers 100000–339999.
The corpus redistributes no Space-Track data, and its Space-Track name guard keeps any such data
out of the repository; but anyone with their own Space-Track account can check the encoding
against provider output:

```bash
python3 tools/verify_against_spacetrack.py
```

The tool asks for your Space-Track username and password interactively (never as arguments, never
logged or stored), logs in, runs exactly four queries at least three seconds apart (the current
records for 100000–100020 and 270000–270020, and the first historical record of 100000 and of
270449), logs out, saves the raw responses under `~/spacetrack-verify/` (it refuses to run if that
directory would be inside the repository), and compares each returned TLE with the derived lines. It
prints only catalog fields, verdicts, differing column numbers and summary counts, never element
values or lines. In the maintainer's run (2026-09-21, D-070) no line was byte-identical and none
was expected to be: Space-Track writes a zero second derivative as `00000-0` (column 51, and the
checksum at 69) where CelesTrak writes `00000+0`, and its eccentricity field differs in the last
one or two digits (columns 32–33) from CelesTrak's truncated rendering on exactly the 8 of 21
same-epoch records where rounding and truncation disagree (D-071); what the run verified is
that every Alpha-5 field decoded to the queried id, every line-2 field matched line 1, and
designators and inclinations agreed. Use of Space-Track is governed by its user agreement; keep the
saved responses to yourself.

## Reproducing or refreshing the corpus

The build is a pipeline of small scripts, all in `tools/`, all offline except `fetch.py`:
`fetch.py` → `inventory.py` → `validate_render.py` → `derive_alpha5.py`,
`derive_kvn_variants.py` → `make_expected.py` → `crosscheck.py` (needs python-sgp4, Skyfield and
xmlschema, pinned in `tools/crosscheck-requirements.lock.txt`: `pip install -r` it into the environment you build in)
→ `validate_xml.py` → `make_manifest.py`
→ `make_failures.py`. Refreshing live sources produces new snapshot values and bumps the
corpus minor version; frozen values of a released version are never rewritten.

## Versioning

`corpus_version` in `manifest.json`. Patch: documentation and tooling only. Minor: refreshed
live snapshots, added cases, or an additive protocol change. Major: a changed `expected.json` schema. A change of
check semantics is a minor bump before 1.0 and a major one from 1.0 (D-333). Expected values published under a version are frozen; corrections arrive as new versions
with a `DECISIONS.md` entry. The `gpconf` package carries the version of the corpus it ships, and the runner
prints both on its first line.

## How this corpus was built

The work ran in phases, each ending in a review by the project owner before the next began,
under a written decision policy (kept in the maintainer's private repository) that required every non-trivial choice, reversal
and correction to be recorded.

- **Audit trail:** `DECISIONS.md` is the complete, append-only log of decisions, including the
  ones that were reversed. Read it first if you want to know why something is the way it is.
- **Sources:** `docs/RESEARCH.md` records every document consulted, with verbatim quotations,
  URLs and retrieval dates.
- **Data provenance:** no element set was invented. Every value traces to a CelesTrak response
  whose URL, retrieval time and SHA-256 are recorded in the manifest, to a published standard
  cited by clause, or to a committed, labelled transformation of such a record (`derived/`,
  each with a `.provenance.json`).
- **Verification:** the expected values were produced by reference readers written from the
  format documents and cross-checked, record by record, against python-sgp4 and Skyfield
  (`docs/CROSSCHECK.md`); the renderer used for the derived TLE sets was validated by reproducing
  304 of 304 fetched CelesTrak TLE sets byte for byte. Where a specification and the provider's
  practice disagree, both are recorded (`manifest.json` → `ambiguities`) and neither is silently
  chosen.
- **Reproducible package:** the wheel and the sdist on PyPI are built from the export of the release's tag with
  `tools/stage_package.py` and the tagged commit's time as `SOURCE_DATE_EPOCH`, and can be rebuilt and matched by
  SHA-256 with the toolchain the release notes name (D-203). The match holds across machines as far as it has been
  tried: for v0.6.1 a build on Linux x86_64 (CPython 3.14.6 built with GCC 13.3, zlib 1.3) gave byte for byte the
  two files built on macOS arm64 (Clang, zlib 1.2.12) that PyPI serves (D-259). Untested: another Python version,
  and another implementation of deflate than zlib, such as zlib-ng; the files of 0.5.0 to 0.6.0 were not rebuilt on
  a second machine.
- **Independent audit:** completed on 2026-09-21, before publication; the report is
  [`AUDIT.md`](https://github.com/hneogy/gp-omm-conformance/blob/v0.10.0/AUDIT.md). It was performed by a separate AI session that had no access to the
  building session's context, was instructed to trust no document in the repository and to recompute
  values independently; it was not a human review. It found no wrong expected value and a number of
  documentation and tooling defects; every finding's resolution is recorded at the end of `AUDIT.md`
  and in `DECISIONS.md` (D-054 onward). The public copy of `AUDIT.md` withholds one row of its
  appendix table (a sample entry from the SupGP case, per D-033/D-049) and says so in a notice; the
  auditor's text is otherwise unchanged and the private original is intact. It covered v0.1.0; neither
  the writer-side case of v0.2.0, the fixes of v0.2.1, the packaging and protocol changes of v0.3.0 nor the
  corrupt-input case of v0.4.0, the changes of v0.5.0, those of v0.5.1, those of v0.6.0, those of v0.6.1, those of v0.6.2, those of v0.7.0 nor those of v0.8.0 have
  been separately audited.

If you find an error, the most useful report names the case id, the source file's SHA-256 and
the field, so that the discrepancy can be traced to a specific fetched byte sequence.

## Licence and attribution

Apache-2.0 from v0.7.0, copyright NEOGY LLC (see `LICENSE`, and `NOTICE` for the credit asked for and for what the licence
covers); releases up to 0.6.2 were published under the MIT licence and stay under it. gpconf is a name of NEOGY LLC.
Forks are welcome under a different name. The licence is for the corpus's code,
documentation, vectors, derived files and expected values. Provider data is not included; `tools/fetch.py` retrieves it under CelesTrak's own
terms. The one provider response that is included, CelesTrak's 16-byte answer in `recorded/`, is CelesTrak's text and is not under this licence (D-247).
The schemas under `schemas/` are CCSDS/SANA publications redistributed unmodified.

Data source: CelesTrak (Dr. T.S. Kelso), https://celestrak.org, a 501(c)(3) non-profit that
makes this data freely available; please respect its usage policy. Standards: CCSDS 502.0-B-3
(Orbit Data Messages) and CCSDS 505.0-B-3 (XML Specification for Navigation Data Messages).
Alpha-5 definition: Space-Track, https://www.space-track.org/documentation.

To cite, use `CITATION.cff` (GitHub's "Cite this repository" reads it): *Neogy, H. (NEOGY LLC).
gpconf: a conformance corpus for orbital-data parsers crossing the five-digit catalog-number boundary, version 0.10.0,
2026-11-22, https://github.com/hneogy/gp-omm-conformance.*
Zenodo gives two kinds of DOI. The **concept DOI**, [10.5281/zenodo.22867654](https://doi.org/10.5281/zenodo.22867654),
refers to the corpus as a whole and always resolves to the latest release; use it when you mean the corpus in general.
Each release also has a **version DOI** of its own, on that release's Zenodo record (the concept DOI's page lists every
version); use one when your results depend on a specific set of expected values. `CITATION.cff` lists the version DOIs:
this release's, v0.9.0 [10.5281/zenodo.24238053](https://doi.org/10.5281/zenodo.24238053), and those of the releases before it: v0.8.0 [10.5281/zenodo.23853937](https://doi.org/10.5281/zenodo.23853937),
v0.7.0 [10.5281/zenodo.23382463](https://doi.org/10.5281/zenodo.23382463),
v0.6.2 [10.5281/zenodo.23265462](https://doi.org/10.5281/zenodo.23265462),
v0.6.1 [10.5281/zenodo.23144821](https://doi.org/10.5281/zenodo.23144821),
v0.6.0 [10.5281/zenodo.23140585](https://doi.org/10.5281/zenodo.23140585),
v0.5.1 [10.5281/zenodo.23130868](https://doi.org/10.5281/zenodo.23130868),
v0.5.0 [10.5281/zenodo.23093982](https://doi.org/10.5281/zenodo.23093982),
v0.4.0 [10.5281/zenodo.23002261](https://doi.org/10.5281/zenodo.23002261),
v0.3.0 [10.5281/zenodo.22986178](https://doi.org/10.5281/zenodo.22986178),
v0.2.1 [10.5281/zenodo.22926017](https://doi.org/10.5281/zenodo.22926017),
v0.2.0 [10.5281/zenodo.22906966](https://doi.org/10.5281/zenodo.22906966), and v0.1.0, the release the independent
audit covered, [10.5281/zenodo.22867655](https://doi.org/10.5281/zenodo.22867655).
