{
  "slug": "a-megabyte-of-residuals-and-a-nightly-that-is-off",
  "title": "An astrodynamics library published 996 kB of residuals, then switched the nightly off",
  "date": "2026-10-25",
  "summary": "A Rust astrodynamics library shipped on 23 October with a verification ledger larger than most of its code, naming its oracles and its own disagreements with them. Its continuous integration now runs only on a typed command, because one night of it cost 1,702 of the 2,000 runner-minutes the plan includes. Published provenance carries a date, not a guarantee.",
  "author": "Ido Yahalomi",
  "tags": [
    "tooling",
    "propagation",
    "provenance",
    "verification"
  ],
  "provenance": "measured",
  "words": 1750,
  "headings": [
    {
      "id": "the-ledger-is-the-product",
      "level": 2,
      "text": "The ledger is the product"
    },
    {
      "id": "the-nightly-that-produced-it-is-off",
      "level": 2,
      "text": "The nightly that produced it is off"
    },
    {
      "id": "a-residual-is-measured-against-a-version-not-against-a-libra",
      "level": 2,
      "text": "A residual is measured against a version, not against a library"
    },
    {
      "id": "the-licences-decide-which-atmosphere-you-may-use",
      "level": 2,
      "text": "The licences decide which atmosphere you may use"
    },
    {
      "id": "what-would-change-my-mind",
      "level": 2,
      "text": "What would change my mind"
    },
    {
      "id": "sources",
      "level": 2,
      "text": "Sources"
    }
  ],
  "html": "<p>A Rust astrodynamics library reached crates.io on 23 October carrying a 996,052-byte verification ledger. Two days later its continuous integration runs only when a human types the command, and the comment explaining why names the bill. Both halves of that are worth an operator&apos;s attention.</p>\n<p>The library is <code>spacelab</code>, published by SpaceDataLab under MIT or Apache-2.0. Measured first-party today from the crates.io API: versions 0.1.0 and 0.2.0, both created 2026-10-23, 11 and 36 downloads, 47 in total. Measured from the GitHub API today: repository created 2026-10-23, last push 2026-10-25, zero stars, zero forks, zero open issues, zero watchers, 18,705 kB on disk. Those numbers say the obvious thing, which is that this is two days old and nobody is using it yet. BeamDesk has no relationship with SpaceDataLab and none of what follows is an endorsement or a recommendation to adopt. What follows is about a document.</p>\n<h2 id=\"the-ledger-is-the-product\">The ledger is the product</h2>\n<p><code>docs/verification.md</code> is 996,052 bytes. Its neighbours in the same directory are <code>provenance.md</code> at 56,777 bytes, <code>limitations.md</code> at 30,971 and <code>design.md</code> at 4,055. Sizes measured from the GitHub contents API on 25 October. A library two days old with roughly a megabyte of verification prose is an unusual object, and the structure is more unusual than the volume.</p>\n<p>The document separates checks that decide correctness from comparisons that only measure distance to another code. Its own sentence, read on 25 October, is that &quot;a row whose only check is a comparator is a row whose mathematics is not yet in place&quot;. That is a taxonomy almost nothing in this field publishes. Most astrodynamics code tells you it agrees with Orekit or with STK. Agreement is not correctness, because the other code can be wrong, and the usual way that gets discovered is in flight.</p>\n<p>The recorded figures are documented, not verified by BeamDesk: these are the library&apos;s claims about itself, read from its own file. Against satellite.js 4.1.4 the ledger records a campaign over 16,085 catalogued objects and 9,281,045 samples, with worst position difference 4.220168e-5 m, worst velocity difference 7.718614e-9 m/s, 92 per cent of samples between one nanometre and one hundred nanometres, 4.34 per cent bit-identical, and no disagreement about whether an element set loaded or a propagation completed. Against the SGP4-VER official element sets it records position agreement below 1e-3 m over more than 700 states.</p>\n<p>More interesting than the agreements are the three places it records disagreement and keeps the number. The ledger states that Orekit&apos;s Knocke albedo implementation uses the cosine of the geocentric angle rather than the physical emission cosine, giving 1.971 times the flux at 500 km, and that the library corrected its own port and kept Orekit&apos;s version only for comparison. It states that a lunar frame kernel composition disagreed with SPICE&apos;s documented convention by 1.255e-7 rad, about 0.22 m at the lunar surface, and that the tolerance was set at 2e-7 to admit the difference rather than widened to hide it. And it records a correction to the library&apos;s own documentation, where a claimed polar motion rate was wrong by factors of 250 and 150 and was internally inconsistent, found by measuring against 19,976 daily IERS rows spanning 54.7 years.</p>\n<p>A project that publishes the residual it could not close is doing the thing BeamDesk&apos;s own register is for. <code>app/src/std/registry.ts</code> pins the edition of every standard the console computes against and carries a caveat next to each. The reason is the same: a number without the document and the residual behind it is a number you cannot defend to a buyer.</p>\n<h2 id=\"the-nightly-that-produced-it-is-off\">The nightly that produced it is off</h2>\n<p><code>.github/workflows/ci.yml</code> is 34,444 bytes and defines nine jobs: format and lint and test and docs, minimum supported Rust version, a packaging rehearsal, a toolchain canary, two mutation-testing lanes, Python linting, bindings and wheels, and dependency licence compliance. Its trigger block, read verbatim today, is <code>workflow_dispatch:</code> and nothing else. No push, no pull request, no cron.</p>\n<p>The comment above that line is the most useful thing in the repository. It records that the nightly schedule this replaced cost 1,702 runner-minutes on a single run on 2026-10-01, nine mutation lanes of which four were stopped by the 240-minute ceiling, against 2,000 runner-minutes a month on the organisation&apos;s plan. It records that the Actions budget is zero with further usage blocked, and that the nightly runs from 2026-09-25 to 09-30 were therefore refused in seconds. It records two things given up with the schedule: an advisory-database check whose clean verdict is only as recent as its last run, and the mutation lane that only a push or a pull request can start, which this trigger block cannot deliver.</p>\n<p>So one of the nine jobs is unreachable by construction, and the author says so rather than leaving it to be found. The arithmetic on the two documented figures is that a single night consumed about 85 per cent of a month&apos;s allowance. That is not a criticism of the plan. It is the price of verification at this depth.</p>\n<p><code>weekly.yml</code> is where the deepest rows come from, and it is named for a schedule it does not have. Its trigger, read today, is also <code>workflow_dispatch:</code> alone. Its six jobs are the expensive ones: Earth orientation parsing against the full published IERS series, orbit fitting against IGS final combinations and JPL ephemeris kernels, thermospheric density across solar cycles against measured satellite data, winds against a Fortran reference model compiled at run time, RINEX navigation readers against complete broadcast products, and long integrations including a degree-70 field and a lunar case. Every one of those jobs fetches external data through its own script.</p>\n<p>That is the shape of the finding. The ledger is a snapshot of a verification campaign that a person ran, on data fetched on a day, against oracle versions pinned on that day. It is not a continuously enforced invariant, and the file that would enforce it is switched off for a reason the repository states in plain numbers.</p>\n<p>BeamDesk has the same asymmetry and should say so. <code>app/scripts/assert-offline.mjs</code> runs inside <code>npm run build</code> and fails the build if the offline console acquires an external reference, which is an enforced invariant. The pinned standards editions in <code>registry.ts</code> are not enforced by anything: they are re-read by a daily scan that a person reads, and when the issuing body moves an edition the pin is stale until somebody edits it. One of those two is a gate. The other is a ledger with a date on it.</p>\n<h2 id=\"a-residual-is-measured-against-a-version-not-against-a-libra\">A residual is measured against a version, not against a library</h2>\n<p>The comparator in that nine-million-sample campaign is satellite.js 4.1.4. BeamDesk&apos;s own <code>app/package.json</code> pins <code>satellite.js</code> at <code>^6.0.2</code>, and the npm registry metadata read today gives 7.1.0 as the current tag. Three different numbers, and the ledger&apos;s residual is a statement about exactly one of them.</p>\n<p>This matters more than it sounds. Beam-hours in this product are a measurement derived from published element sets, and the propagator is in that derivation. A residual of 4.2e-5 m against one minor version of a JavaScript SGP4 is not evidence about another major version of it, and nobody has published the equivalent campaign for the version shipping in production here or anywhere else. The honest position is that the comparison exists for 4.1.4 and does not exist for 6.0.2.</p>\n<p>There is also a reason this library changes nothing in the console today, and it is not quality. The README offers a Python wheel and a C ABI. The CI job builds an embedded ARM target. Neither the workflow nor the limitations document mentions a wasm32 target or a browser, and the console propagates in the browser. The tooling bar worth applying is whether something replaces work a team is doing by hand, and what <code>spacelab</code> would replace here is not the propagator but the validation harness, which is exactly the part that cannot be imported.</p>\n<h2 id=\"the-licences-decide-which-atmosphere-you-may-use\">The licences decide which atmosphere you may use</h2>\n<p><code>limitations.md</code> is the other document worth reading, because several of its entries are legal rather than technical. It records that NRLMSISE 2.0 and 2.1 are excluded because the licence forbids commercial use and modification, that DTM2020 is restricted to academic non-commercial use, that the HWM14 wind model is CC BY-NC-ND and so bars commercial derivatives, that MT_CKD coefficients are research-only, and that SET solar indices and HASDM are restricted to research. It also records that SGP4-XP is absent because no public algorithm specification exists.</p>\n<p>Read that list as a procurement fact. A commercial tool computing drag, lifetime or decay for a low-orbit constellation may not legally use the best available thermospheric models. It uses the models it may licence. The physical limitations in the same file are ordinary by comparison: no reaction wheel or momentum management, a three-hourly geomagnetic index rather than hourly, and horizontal density gradients set to zero in the state transition matrix. Anyone sizing a power-beaming constellation in low orbit is inheriting that gap whether or not their vendor names it, and this is the first library this job has seen that names it in its own repository rather than in a footnote to a paper.</p>\n<h2 id=\"what-would-change-my-mind\">What would change my mind</h2>\n<p>If <code>ci.yml</code> acquires a schedule or a pull-request trigger and the oracle jobs in <code>weekly.yml</code> run with it, then the ledger stops being a dated snapshot and becomes close to an enforced invariant, and the central claim here expires. A funded runner budget would do it; this is a money problem, not a design one.</p>\n<p>If a wasm32 target appears, the browser objection dies and this becomes a candidate to delete code rather than a document to admire. The verification ledger is what would make that swap worth making.</p>\n<p>If a third party reproduces one of the recorded disagreements and gets a different answer, particularly the Knocke albedo factor of 1.971 at 500 km, the ledger&apos;s authority drops sharply, because every comparison in it is currently adjudicated by the same author who wrote the code under test. Independent verification is the stated organising principle, and no independent party has verified it yet. One reproduction attempt by somebody with an Orekit installation would settle that, in either direction.</p>\n<p>And if someone shows that the satellite.js version gap is immaterial at the scale BeamDesk publishes, by running the equivalent campaign against 6.0.2, then the third section above is a worry about nothing and should be withdrawn.</p>\n<h2 id=\"sources\">Sources</h2>\n<ul>\n<li><a href=\"https://github.com/SpaceDataLab/spacelab\" rel=\"noreferrer noopener\">https://github.com/SpaceDataLab/spacelab</a></li>\n<li><a href=\"https://api.github.com/repos/SpaceDataLab/spacelab\" rel=\"noreferrer noopener\">https://api.github.com/repos/SpaceDataLab/spacelab</a></li>\n<li><a href=\"https://crates.io/api/v1/crates/spacelab\" rel=\"noreferrer noopener\">https://crates.io/api/v1/crates/spacelab</a></li>\n<li><a href=\"https://raw.githubusercontent.com/SpaceDataLab/spacelab/main/docs/verification.md\" rel=\"noreferrer noopener\">https://raw.githubusercontent.com/SpaceDataLab/spacelab/main/docs/verification.md</a></li>\n<li><a href=\"https://raw.githubusercontent.com/SpaceDataLab/spacelab/main/docs/limitations.md\" rel=\"noreferrer noopener\">https://raw.githubusercontent.com/SpaceDataLab/spacelab/main/docs/limitations.md</a></li>\n<li><a href=\"https://raw.githubusercontent.com/SpaceDataLab/spacelab/main/.github/workflows/ci.yml\" rel=\"noreferrer noopener\">https://raw.githubusercontent.com/SpaceDataLab/spacelab/main/.github/workflows/ci.yml</a></li>\n<li><a href=\"https://raw.githubusercontent.com/SpaceDataLab/spacelab/main/.github/workflows/weekly.yml\" rel=\"noreferrer noopener\">https://raw.githubusercontent.com/SpaceDataLab/spacelab/main/.github/workflows/weekly.yml</a></li>\n<li><a href=\"https://registry.npmjs.org/satellite.js\" rel=\"noreferrer noopener\">https://registry.npmjs.org/satellite.js</a></li>\n</ul>"
}