Expand description
Packaged compressed ephemeris backend for the default 1900-2100 range.
Wider coverage is available as an opt-in: regenerate the artifact over a
custom window with the generate-artifact <kernel> --out <path> [--start --end] CLI subcommand.
This crate now ships a small stage-5 draft artifact backed by the
pleiades-compression codec. The bundled data is regenerated from the
checked-in JPL reference snapshot and validated against a deterministic
binary fixture that covers the comparison-body planetary set plus the
source-backed custom asteroid asteroid:433-Eros, and the backend falls
back to other providers when callers request bodies outside that packaged
slice. The packaged artifact stores J2000 ecliptic coordinates directly,
reconstructs equatorial coordinates from the stored channels and
mean-obliquity transform when requested, and adds residual correction
channels on high-curvature spans when they improve the fit. A
maintainer-facing regeneration helper can rebuild the checked-in fixture
from the bundled JPL reference snapshot without introducing any native
tooling. When the packaged-artifact-path feature is
enabled, callers can also load an explicit artifact file for larger or
externally distributed packaged datasets. See docs/time-observer-policy.md
for the explicit packaged request/lookup-epoch policy, and
spec/data-compression.md for the stored-vs-derived artifact contract.
§Examples
use pleiades_backend::{CelestialBody, Instant, JulianDay, TimeScale};
use pleiades_data::{packaged_backend, packaged_lookup};
let _backend = packaged_backend();
let instant = Instant::new(JulianDay::from_days(2_451_545.0), TimeScale::Tt);
let sun = packaged_lookup(&CelestialBody::Sun, instant)
.expect("Sun should be in the packaged artifact");
assert!(sun.distance_au.is_some());Modules§
- thresholds
- Published per-body-class accuracy ceilings and size/latency budgets (the public contract). The hold-out gate (accuracy_baseline.rs) asserts measured <= ceiling; the tight golden drift test stays as the regression catcher.
Structs§
- Body
Channel Error - Per-body accuracy summary comparing the artifact to an independent hold-out corpus.
- Packaged
Artifact Access Summary - Structured packaged-artifact access summary.
- Packaged
Artifact Body Cadence Summary - Structured summary for the packaged-artifact body cadence.
- Packaged
Artifact Body Class Span CapSummary - Structured summary for the packaged-artifact body-class span caps.
- Packaged
Artifact FitBody Outlier Summary - Packaged
Artifact FitChannel Outlier - Packaged
Artifact FitChannel Outlier Summary - Packaged
Artifact FitEnvelope Summary - Structured fit envelope for the packaged artifact.
- Packaged
Artifact FitMargin Summary - Structured fit margins for the packaged artifact.
- Packaged
Artifact FitOutlier Summary - Packaged
Artifact FitThreshold Summary - Calibrated fit thresholds for the packaged artifact.
- Packaged
Artifact FitThreshold Violation - A packaged-artifact fit threshold violation.
- Packaged
Artifact FitThreshold Violations Summary - Packaged-artifact fit threshold violations captured for the current posture.
- Packaged
Artifact Generation Manifest - Structured deterministic manifest for the packaged artifact generator.
- Packaged
Artifact Generation Policy Summary - Structured summary for the packaged-artifact generation policy.
- Packaged
Artifact Generator Parameters - Structured generation parameters for the packaged artifact generator.
- Packaged
Artifact Normalized Intermediate Summary - Structured normalized-intermediate provenance for the packaged artifact.
- Packaged
Artifact Output Support Summary - Structured output-support semantics for the packaged artifact profile.
- Packaged
Artifact Phase2 Corpus Alignment Summary - Phase-2 corpus evidence used to keep the packaged-artifact threshold policy aligned with the current reference, fixture-exactness, comparison, hold-out, selected-asteroid, boundary-overlay, and production-generation corpora.
- Packaged
Artifact Production Profile Summary - Structured production-profile skeleton for the packaged artifact generator.
- Packaged
Artifact Profile Summary - Packaged
Artifact Regeneration Summary - Structured regeneration provenance for the packaged artifact.
- Packaged
Artifact Source FitHoldout Sync Summary - Structured sync summary for the packaged-artifact source-fit and hold-out checks.
- Packaged
Artifact Speed Policy Summary - Structured speed-policy semantics for the packaged artifact profile.
- Packaged
Artifact Storage Summary - Structured storage/reconstruction summary for the packaged artifact.
- Packaged
Artifact Target Threshold Scope Envelopes Summary - Packaged
Artifact Target Threshold Scope Summary - Packaged
Artifact Target Threshold Summary - Structured target-threshold posture for the packaged artifact generator.
- Packaged
Batch Parity Summary - Structured mixed batch-parity summary for the packaged artifact.
- Packaged
Body Coverage Summary - Structured coverage summary for the bodies bundled into the packaged artifact.
- Packaged
Data Backend - A packaged compressed-data backend.
- Packaged
Frame Treatment Summary - Structured frame-treatment summary for the packaged artifact.
- Packaged
Lookup Epoch Policy Summary - Structured summary for the packaged-data lookup-epoch policy.
- Packaged
Request Policy Summary - Structured request-policy summary for the packaged-data backend.
- Packaged
Time Scale Batch Parity Summary - Structured mixed TT/TDB batch-parity summary for the packaged artifact.
Enums§
- Packaged
Artifact Access Summary Validation Error - Validation error for a packaged artifact access summary that drifted away from the current build posture.
- Packaged
Artifact Body Cadence Summary Validation Error - Validation error for a packaged-artifact body cadence summary that drifted from the current posture.
- Packaged
Artifact Body Class Span CapSummary Validation Error - Validation error for a packaged-artifact body-class span cap summary that drifted from the current posture.
- Packaged
Artifact FitChannel Outlier Summary Validation Error - Validation error for a packaged-artifact fit outlier-by-channel summary that drifted from the current posture.
- Packaged
Artifact FitEnvelope Summary Validation Error - Validation error for a packaged-artifact fit envelope that drifted from the current posture.
- Packaged
Artifact FitThreshold Summary Validation Error - Validation error for a packaged-artifact fit threshold summary that drifted from the current posture.
- Packaged
Artifact FitThreshold Violations Summary Validation Error - Validation error for a packaged-artifact fit threshold violation summary that drifted from the current posture.
- Packaged
Artifact Generation Policy - Structured generation policy for the packaged artifact.
- Packaged
Artifact Generation Policy Summary Validation Error - Validation error for the packaged-artifact generation policy summary.
- Packaged
Artifact Generation Policy Validation Error - Validation error for the packaged-artifact generation policy.
- Packaged
Artifact Load Error - Errors that can occur while loading an external packaged artifact.
- Packaged
Artifact Phase2 Corpus Alignment Summary Validation Error - Validation error for a phase-2 corpus alignment summary that drifted from the current posture.
- Packaged
Artifact Production Profile Summary Validation Error - Validation error for a packaged artifact production-profile skeleton that drifted from the current posture.
- Packaged
Artifact Source FitHoldout Sync Summary Validation Error - Validation error for a packaged-artifact source-fit and hold-out sync summary that drifted from the current posture.
- Packaged
Artifact Speed Policy Summary Validation Error - Validation error for the packaged-data speed-policy summary.
- Packaged
Artifact Storage Summary Validation Error - Validation error for a packaged storage/reconstruction summary that drifted away from the compact posture line.
- Packaged
Artifact Target Threshold Scope Envelopes Summary Validation Error - Validation error for a packaged-artifact target-threshold scope envelopes summary that drifted from the current posture.
- Packaged
Artifact Target Threshold State - Release-state for the packaged-artifact target thresholds.
- Packaged
Artifact Target Threshold State Validation Error - Validation error for a packaged-artifact target-threshold state that is not release-ready.
- Packaged
Artifact Target Threshold Summary Validation Error - Validation error for a packaged-artifact target-threshold summary that drifted from the current posture.
- Packaged
Batch Parity Summary Validation Error - Validation error for a packaged mixed-frame batch-parity summary.
- Packaged
Body Coverage Summary Validation Error - Validation error for a packaged-body coverage summary that drifted from the bundled body set.
- Packaged
Frame Treatment Summary Validation Error - Validation error for a packaged frame-treatment summary that drifted away from the compact posture line.
- Packaged
Lookup Epoch Policy - Structured policy for how packaged-data lookup epochs are handled.
- Packaged
Lookup Epoch Policy Summary Validation Error - Validation error for the packaged-data lookup-epoch policy summary.
- Packaged
Lookup Epoch Policy Validation Error - Validation error for the packaged-data lookup-epoch policy.
- Packaged
Request Policy Summary Validation Error - Validation error for the packaged-data request-policy summary.
- Packaged
Time Scale Batch Parity Summary Validation Error - Validation error for a packaged mixed TT/TDB batch-parity summary.
Constants§
- FITTING_
OVERSAMPLE - Oversample factor: within-span sample count = (degree + 1) * this.
Functions§
- accuracy_
baseline_ against - Computes per-body accuracy errors between a hold-out slice and an artifact.
- apsis_
body_ claims - Release claims for the derived osculating lunar apsides (True Apogee /
Perigee). These are computed from the packaged Moon state at lookup and
validated against the Swiss Ephemeris
SE_OSCU_APOGcorpus by thevalidate-lilithgate, so their evidence isCorpusValidated. - fit_
polynomial_ lsq - Fits a degree-
degreepolynomial to(x, y)samples by least squares. Returns ascending power-basis coefficients, orNoneif there are fewer samples than coefficients or the normal-equations matrix is singular. - fitting_
degree - Per-body polynomial degree for the within-span fit (SP1 default).
- fitting_
segment_ boundaries - Contiguous
[t0, t1]spans tiling[start_jd, end_jd], last clamped toend_jd. - fitting_
segment_ span_ days - Per-body segment span in days (initial SP1 defaults; tuned in SP2).
- fitting_
within_ span_ sample_ count - Number of de440 samples taken within each segment span.
- package_
name - Returns the canonical package name for this crate.
- packaged_
artifact - Returns the bundled packed artifact.
- packaged_
artifact_ access_ summary - Returns the packaged-artifact access summary.
- packaged_
artifact_ access_ summary_ details - Returns the structured packaged-artifact access summary.
- packaged_
artifact_ accuracy_ baseline - Computes per-body accuracy errors for the committed packaged artifact against the production hold-out corpus.
- packaged_
artifact_ body_ cadence_ summary_ details - Returns the current packaged-artifact body cadence summary record.
- packaged_
artifact_ body_ class_ span_ cap_ summary_ details - Returns the current packaged-artifact body-class span caps summary record.
- packaged_
artifact_ bytes - Returns the checked-in packaged artifact bytes.
- packaged_
artifact_ fit_ channel_ outlier_ summary_ details - Returns the current packaged-artifact fit outliers by channel as a structured summary record.
- packaged_
artifact_ fit_ envelope_ summary_ details - Returns the current packaged-artifact fit envelope summary record.
- packaged_
artifact_ fit_ margin_ summary_ details - Returns the current packaged-artifact fit margins relative to the calibrated thresholds.
- packaged_
artifact_ fit_ outlier_ summary_ details - Returns the current packaged-artifact body/channel fit outlier summary record.
- packaged_
artifact_ fit_ threshold_ summary_ details - Returns the calibrated packaged-artifact fit threshold summary record.
- packaged_
artifact_ fit_ threshold_ violation_ summary_ details - Returns the current packaged-artifact fit threshold violations summary record.
- packaged_
artifact_ from_ bytes - Decodes a packaged artifact from raw bytes.
- packaged_
artifact_ from_ path - Loads a packaged artifact from a file path.
- packaged_
artifact_ generation_ manifest - Returns the current deterministic packaged-artifact generation manifest.
- packaged_
artifact_ generation_ manifest_ details - Returns the current deterministic packaged-artifact generation manifest.
- packaged_
artifact_ generation_ policy_ summary - Returns the current packaged-artifact generation policy summary.
- packaged_
artifact_ generation_ policy_ summary_ details - Returns the current packaged-artifact generation policy summary record.
- packaged_
artifact_ generation_ residual_ bodies_ summary_ details - Returns the current packaged-artifact residual-bearing body coverage summary record.
- packaged_
artifact_ generator_ parameters_ details - Returns the current packaged-artifact generator parameters.
- packaged_
artifact_ normalized_ intermediate_ summary_ details - Returns the structured normalized-intermediate provenance.
- packaged_
artifact_ output_ support_ summary_ details - Returns the current packaged-artifact output-support summary record.
- packaged_
artifact_ path_ loading_ enabled - Returns whether this build can load packaged artifacts from an explicit path.
- packaged_
artifact_ phase2_ corpus_ alignment_ summary_ details - Returns the structured phase-2 corpus alignment posture used to keep the packaged-artifact threshold policy aligned with the current corpus.
- packaged_
artifact_ production_ profile_ summary - Returns the current packaged-artifact production-profile draft summary.
- packaged_
artifact_ production_ profile_ summary_ details - Returns the current packaged-artifact production-profile skeleton.
- packaged_
artifact_ profile_ coverage_ summary_ details - Returns the current packaged-artifact profile coverage summary record.
- packaged_
artifact_ profile_ summary - Returns the current packaged-artifact profile summary.
- packaged_
artifact_ profile_ summary_ details - Returns the current packaged-artifact profile summary record.
- packaged_
artifact_ profile_ summary_ with_ body_ coverage - Returns the current packaged-artifact profile summary with bundled body coverage.
- packaged_
artifact_ profile_ summary_ with_ output_ support - Returns the current packaged-artifact profile summary with the output-support posture.
- packaged_
artifact_ regeneration_ summary_ details - Returns the structured packaged-artifact regeneration provenance.
- packaged_
artifact_ source_ fit_ holdout_ sync_ summary_ details - Returns the current packaged-artifact source-fit and hold-out sync summary record.
- packaged_
artifact_ speed_ policy_ summary_ details - Returns the current packaged-artifact speed-policy summary record.
- packaged_
artifact_ storage_ summary - Returns the packaged-artifact storage/reconstruction summary.
- packaged_
artifact_ storage_ summary_ details - Returns the structured packaged-artifact storage/reconstruction summary.
- packaged_
artifact_ target_ threshold_ scope_ envelopes_ summary_ details - Returns the current packaged-artifact body-class target-threshold scope envelopes after validating the structured posture.
- packaged_
artifact_ target_ threshold_ summary_ details - Returns the current packaged-artifact target-threshold summary record.
- packaged_
backend - Returns a packaged-data backend instance.
- packaged_
backend_ from_ artifact - Returns a packaged-data backend built from an explicit artifact.
- packaged_
backend_ from_ bytes - Returns a packaged-data backend built from decoded artifact bytes.
- packaged_
backend_ from_ path - Returns a packaged-data backend built from a decoded artifact file.
- packaged_
body_ claims - Returns the per-body release claims for the packaged artifact: every shipped body is release-grade, validated inside the artifact build against the corpus.
- packaged_
body_ coverage_ summary_ details - Returns the structured packaged body coverage summary.
- packaged_
frame_ treatment_ summary - Returns the packaged-artifact frame-treatment summary.
- packaged_
frame_ treatment_ summary_ details - Returns the structured packaged-artifact frame-treatment summary.
- packaged_
lookup - Returns a packaged lookup for a body and instant.
- packaged_
lookup_ epoch_ policy_ summary - Returns the current packaged-data lookup-epoch policy summary.
- packaged_
lookup_ epoch_ policy_ summary_ details - Returns the current packaged-data lookup-epoch policy summary record.
- packaged_
mixed_ frame_ batch_ parity_ request_ corpus - This is a compatibility alias for
packaged_mixed_frame_batch_parity_requests. - packaged_
mixed_ frame_ batch_ parity_ requests - Returns the packaged mixed-frame batch-parity request corpus used by downstream tooling.
- packaged_
mixed_ frame_ batch_ parity_ summary - Returns a compact mixed-frame batch-parity summary for the packaged artifact.
- packaged_
mixed_ tt_ tdb_ batch_ parity_ request_ corpus - This is a compatibility alias for
packaged_mixed_tt_tdb_batch_parity_requests. - packaged_
mixed_ tt_ tdb_ batch_ parity_ requests - Returns the packaged mixed TT/TDB batch-parity request corpus used by downstream tooling.
- packaged_
mixed_ tt_ tdb_ batch_ parity_ summary - Returns a compact mixed TT/TDB batch-parity summary for the packaged artifact.
- packaged_
request_ policy_ summary - Returns the current packaged-data request policy summary.
- packaged_
request_ policy_ summary_ details - Returns the current packaged-data request-policy summary record.
- regenerate_
packaged_ artifact - Returns the packaged artifact for kernel-free callers.
- regenerate_
packaged_ artifact_ bytes - Returns the encoded bytes for the packaged artifact for kernel-free callers.
- regenerate_
packaged_ artifact_ from_ kernel - Regenerates the packaged artifact from a de440 SPK kernel over the shipped default window (1900–2100).
- regenerate_
packaged_ artifact_ from_ kernel_ over - Regenerates the packaged artifact from a de440 SPK kernel over an explicit
coverage window. Major bodies are fit densely from the kernel across
window; the constrained asteroid (Eros) is always sourced from its fixed 1900–2100 corpus data and is unaffected bywindow. - regenerate_
packaged_ artifact_ from_ snapshot - Rebuilds the packaged artifact from validated JPL reference-snapshot inputs.
- true_
node_ body_ claims - Release claim for the derived osculating lunar ascending node
(
TrueNode). Computed from the packaged Moon state at lookup (formed in the mean ecliptic of date, emitted in J2000) and validated against the Swiss EphemerisSE_TRUE_NODEcorpus by thevalidate-true-nodegate, so its evidence isCorpusValidated. Supersedes, in the routed chart chain, thepleiades-elpMeeus periodic-term approximation (issue #58). - try_
regenerate_ packaged_ artifact_ from_ snapshot - Rebuilds the packaged artifact from validated JPL reference-snapshot inputs.