Space Data Module SDK

Conformance kit

Status: v1 — W1.4 of graph/tasks/official-harness-shapes-program.md, implementing graph/findings/official-harness-shapes.md §5. Shipped family kits: propagator and estimation. Maneuver is Wave 2 (EXPERIMENTAL, fix-then-freeze). A family with no kit can never be CORE.

WASM artifacts ONLY (owner ruling 2026-08-10: "No JS propagator!!!! WASM ONLY"). The runner instantiates a compiled dist/isomorphic/module.wasm and drives the family's ABI directly; there is no path that certifies a JavaScript object, because JS registries are internal engine plumbing, never a public contract.

Commands

space-data-module conformance propagator --artifact ./dist/isomorphic/module.wasm
space-data-module conformance propagator --artifact ./dist/isomorphic/module.wasm \
    --vectors ./vectors/vectors.json --json
space-data-module conformance propagator --self-test    # must exit 0 BY failing
space-data-module conformance estimation --artifact ./dist/isomorphic/module.wasm \
    --evidence ./conformance/estimation-receipt.json
space-data-module conformance estimation --self-test    # planted failures

Library surface: space-data-module-sdk/conformance exports runConformance, runPropagatorSuite, runPropagatorSelfTest, runEstimationSuite, runEstimationSelfTest, computeVerdict, the ABI driver and the error-code table.

What is checked

TierCheckSource of authority
0real instantiation + required export setpropagator-abi.md §The export set
0cross-runtime byte-identityGAP here by design — the parity gate (space-data-module parity-gate) is the Tier 0 authority; this runner never re-certifies half of it
Bcorpus anchors reproduced within bandthe module's vectors.json (tolerance policy `abs + rel *expected`); NaN is its own failure class
Cvis-viva closure, period closurecorpus-declared invariants (conformance.mu from the corpus; ECEF un-rotation when the module declares frame 3) — run only where the corpus declares them applicable to the model
Cdeterminism as BYTES, surviving destroy/re-ingestABI §Parity envelope
Cframe/flags/reserved declared, corpus-consistentABI §Frames — a frame declaration that contradicts the module's own corpus is the silently-wrong-numbers defect
Cbatch and single agree exactlyABI §Threading — the batch path is the same physics
Ctyped refusals (NOT_INITIALIZED / BAD_ENTITY_INDEX / unphysical ingest)ABI §Error codes — the degradation ladder needs distinguishable codes
Ccreate RETURNS its handleABI §Identity — "the entity I just created is count−1" is the race the harness exists to kill (finding §4.4)
4lifecycle leak: zero page growth after warm-upABI §Lifetime
4destroy idempotent, refuses typed, comes back cleanlyABI §Lifetime
4leak-metric negative controla gate never observed to fail is indistinguishable from one that cannot fail

The self-test

--self-test runs the SAME suite against mock propagators, each carrying ONE planted defect drawn from a real defect class the finding documented live:

Planted defectReal-world citationMust be caught by
units-km (1000× error)the orbpro_propagator.h km/meters contradiction (finding §4.1)tierB/anchors
leaky-destroydestroySource(){} in both shipped propagators (§4.5)tier4/lifecycle-leak
confident-nonsense (accepts e ≥ 1)the underground phasing orbit (§5)tierC/typed-refusals
count-fallback (returns success, not the handle)three families deriving count−1 (§4.4)tierC/create-returns-handle
frame-lies (declares TEME, writes ECEF)the Δv frame never pinned (§4.3)tierC/frame-flags-reserved-declared
batch-divergencebatch path not the same physicstierC/batch-single-agreement
nondeterministicbyte-determinism is the parity envelope's floortierC/determinism-byte-identity
missing-exportsdestroy was optional once; it is not nowtier0/instantiation-and-exports

The self-test exits 0 only when the conformant baseline mock is clean AND every planted defect is caught by the check that owns it. It needs no toolchain, no artifact and no network — npm run conformance:self-test.

Receipt & trust (Wave 4, not yet wired)

The conformance receipt travels as a bundle ATTESTATION entry in the trailer. The module's publication signature does not cover it (that signature covers only the bytes before the trailer), so the entry needs its own attestor signature under the attestor domain named below. The graduated listing requirement (receipt REQUIRED for CORE+ANONYMOUS, badge for RECOMMENDED) and the SDN-CONFORMANCE-RECEIPT-V1 third-party attestor domain are W4.1/W4.2 of the program — see the finding §5 "Receipt & trust".

The estimation self-test plants runtime-byte divergence, the historical EKF/UKF covariance alias, and a placeholder $OCM. All three must be caught.

Reference implementation

space-data-network-modules propagator/keplerian-reference is the exemplar the kit was generalized from: its tests/ are the original expression of these checks, its vectors/ suite is the corpus format, and tests/sdk-conformance-runner.test.mjs proves the runner reaches the same verdict on the same artifact — including the corrupted-corpus negative control.

templates/estimation-module is the force-model-blind estimation reference. Its compiled direct export performs a covariance-form position update against a caller-supplied propagator sample; it contains no propagator and no JS physics.