In this section: Build
Start
Reference code
- obsp (C)
- Conformance runner (reference service)
- obsp (Go)
- Plugfests (non-normative groundwork)
- Python reference pipelines (draft profiles, synthetic data)
- obsp-eo
- obsp-model-run (draft OIP-0012, MODEL-OBSERVER)
- obsp-sensing (draft OIP-0011, NETWORK-SENSING, provisional)
- obsp-space
- Rust reference workspace
- Performance bench (WP-RI-11)
- The 0.2 candidate (DRAFT)
- obsp-core (Rust reference library)
- obsp-federation
- obsp-node-embedded
- Node agent (obsp-node)
- Evidence verifier (obsp-verify)
- obsp-sdk (TypeScript / ES modules)
Tools
API reference
- All APIs
- Observatory Protocol service administration (production services)
- Observatory Protocol CloudEvents (draft OIP-0024 binding)
- Observatory Protocol correction subscriptions
- Observatory Protocol credential status (reference service)
- Observatory Protocol discovery (reference service)
- Observatory Protocol exchange API (reference)
- Observatory Protocol federation sync (draft OIP-0004)
- Observatory Protocol Field Topic Contract (MQTT 5 and Sparkplug B)
- Observatory Protocol participant gateway
- gRPC services
- Observatory Protocol implementations and conformance registry (reference service)
- Observatory Protocol transparency log (reference service)
- Observatory Protocol WIS 2.0 notifications (draft OIP-0009 binding)
Public services
Bindings and crosswalks
obsp-space
On this page
| Field | Value |
|---|---|
| Status | Reference code written against draft proposals (DRAFT); accepts no proposal; no conformance claim |
| Package | obsp-space |
| Version | 0.1.0 |
| Source | Python reference tools |
Constellation tooling for draft OIP-0010 (CONSTELLATION profile). It reads CCSDS orbit and conjunction messages into OBSP documents, runs a tasking order through its lifecycle with signed, hash-chained transitions, builds downlink records and replaces the placeholder signatures in the OIP-0010 example tasking orders.
Status. Everything here follows a DRAFT: OIP-0010 and the signature envelope of OIP-0008 are not accepted, and the schemas the output is checked against are the draft’s. Nothing in this package is a conformance claim, and no implementation level is declared for it (levels: DECLARED, SELF_TESTED, LAB_TESTED, QUALIFIED).
Standard library only, except that signing and checking signatures needs the cryptography package (Ed25519). The
tests also need jsonschema, which the repository already pins.
make space # tests, then the worked example (writes to dist/space-example)
python3 -m unittest discover -s reference/python/obsp-space/tests
python3 reference/python/obsp-space/examples/worked_example.py OUTDIR
PYTHONPATH=reference/python/obsp-space python3 -m obsp_space --help
The tests take the draft schemas and fixtures from oips/drafts/OIP-0010/patches/schemas-fixtures.patch; once the
proposal is accepted and the patch folder is gone they read the live tree. make space is not part of make check,
because cryptography is not in requirements.txt.
What is in it
| Module | Does |
|---|---|
odm |
OEM and OMM readers and writers (KVN), mandatory-keyword and structure checks, and orbit_record(): the orbit-record document, the message referenced by the digest of its bytes (never copied) |
cdm |
CDM reader (KVN), obligatory-keyword checks, and conjunction_record(): the conjunction-record document; versions after the first name the version they supersede by digest |
tasking |
the lifecycle engine: transition() appends one signed transition; check_lifecycle, check_chain, verify_signatures, check_fulfilment and check_order find every violation in an existing order; resign() is the generator for example documents |
downlink |
build_downlink_record() and check_downlink(): acquire ≤ onboard store ≤ downlink start ≤ end, relay hops in order, CFDP transaction id, product digests and processing levels |
cose, keys, canon |
the OIP-0008 envelope (COSE_Sign1, detached payload, JCS, Ed25519 as code point -19), the example-only keys, RFC 8785 canonical form and digests |
Rules, and where they are enforced
| Rule (OIP-0010) | Refused when building | Reported when checking |
|---|---|---|
CST-3 allowed transitions, seq 1..n, nothing after a terminal state, times non-decreasing, reason on FAILED and CANCELLED |
tasking.transition (LifecycleError) |
tasking.check_lifecycle |
CST-4 signature over the entry without its signature, chained by previousDigest |
by construction | check_chain (digests), verify_signatures (bytes, key resolvable, key controller is the actor, key valid at at) |
| CST-5 fulfilment references downlinks and products by UNI and digest; downlink names the order and acquired inside the window | transition(to="FULFILLED", downlinks=…) |
check_fulfilment |
| CST-6 times ordered, relay hops in order, CFDP transaction id | build_downlink_record (DownlinkError) |
check_downlink |
CST-7 processing level on every product, onboard product never L0 and names its model run |
product_ref, build_downlink_record |
check_downlink |
| CST-2 first version supersedes nothing, later versions name the version they supersede | conjunction_record (MappingError) |
the draft’s conjunction-update-supersedes invariant |
The role-to-transition table is not enforced: whether the requester or the provider may make a given transition is OIP-0010 open question 5. The engine records the actor and checks that the signing key belongs to it.
Worked example
examples/worked_example.py (synthetic messages in examples/data/, invented values, no real object or operator):
example-sat-07.oem(one segment, three states, one covariance matrix) andexample-sat-07.ommbecome two orbit records.referenceFrame,timeSystem,epoch,validTime,covariancePresentand the digest come from the message.- Two CDMs of one conjunction become conjunction-record versions 1 and 2; version 2 carries
supersedes {uni, version, digest}of version 1. Recording the supersession as a correction notice (section 5.9) is left to the caller. - A downlink record: acquired 08:14:05, stored 08:14:20, one relay hop 08:30:00 to 08:30:02, downlink 08:52:10 to 08:58:45, CFDP transaction 7:40412, two products with digests (an L1C scene and an L2 mask processed onboard).
- The order, one signed transition at a time:
from obsp_space import keys, tasking
order = tasking.new_order(base) # base: everything except state, history, fulfilment
order = tasking.transition(order, to="FEASIBILITY", at="2026-11-02T10:00:00Z", actor=consumer,
kid="uni:key:requester-eo-desk-01",
private_key=keys.private_key("uni:key:requester-eo-desk-01"))
# ... ORDERED, ACCEPTED, EXECUTING ...
order = tasking.transition(order, to="FULFILLED", at="2026-11-03T09:05:00Z", actor=operator,
kid="uni:key:provider-eo-ops-01", private_key=keys.private_key("uni:key:provider-eo-ops-01"),
downlinks=[downlink_record]) # builds and checks the fulfilment
assert tasking.check_order(order, keys.KeyTable.examples(), [downlink_record]) == []
Each entry is {seq, from, to, at, actor, [reason], [evidenceRefs], previousDigest, signature}. The signature
envelope signs the JCS form of the entry without signature; previousDigest is the digest of the whole previous
entry, signature included, so changing any earlier entry breaks every later link.
Example-only keys
keys.py derives each private key from a public label (SHA-256("OBSP constellation example keys v1, <kid>, ed25519, EXAMPLE ONLY")). Anyone can recompute them. A signature made with them proves nothing about who made it, and their
key records carry testOnly: true (examples/example-key-records.json, public parts only). Do not use them outside
tests and worked examples.
Replacing the placeholder signatures
The draft’s example tasking orders carried placeholder signatures (AAAA…), checked structurally only. The generator
re-signs every COSE_Sign1 entry in order, keeps each entry’s content and kid, rebuilds previousDigest, and leaves
entries without a COSE_Sign1 signature alone (the negative fixtures that break exactly that rule keep breaking it):
PYTHONPATH=reference/python/obsp-space python3 -m obsp_space resign-tasking <tasking-order JSON files…>
PYTHONPATH=reference/python/obsp-space python3 -m obsp_space check-tasking <tasking-order JSON files…>
Fixtures wrapped as {"_schemaTitle", "document"} are handled. The result is delivered as the updated
oips/drafts/OIP-0010/patches/schemas-fixtures.patch (13 fixtures and the example set; the
patch still applies to the current tree on its own).
CCSDS sources, and what was checked
| Source | Used for | Checked |
|---|---|---|
| CCSDS 502.0-B-3, Orbit Data Messages, April 2023 (public Blue Book) | OEM tables 5-2 to 5-4, OMM tables 4-1 to 4-3, REF_FRAME (3.2.3.3) and TIME_SYSTEM (3.2.3.2) value sets |
keyword tables, the OEM data and covariance line rules and the two value sets were read from the public document; the formatting rules of section 7, units, and every clause not named here are not checked |
| CCSDS 508.0-B-1, Conjunction Data Message, June 2013 including Technical Corrigendum 2 (October 2021) | tables 3-1 to 3-4 (header, relative metadata, object metadata, state and covariance) | the tables were read from the public document; formatting rules, annexes and value sets are not checked |
| CCSDS 727.0-B-5, CFDP | transaction id as source entity id plus sequence number | not checked |
Findings against the draft (for OIP-0010 open questions 1 and 2):
- 502.0-B-3 (April 2023) does define an Orbit Comprehensive Message (OCM, section 6);
odm.formattakes OEM, OPM and OMM only, and this package reads OEM and OMM only. REF_FRAMEvalues in 3.2.3.3 are EME2000, GCRF, GRC, ICRF, ITRF2000, ITRF-93, ITRF-97, MCI, TDR, TEME, TOD. The draft enumeration hasITRFandMOD, which are not in that list.orbit_record()maps the three ITRF values toITRF(the realisation stays in the message, which the record references by digest) and the others the draft lacks toOTHERwithreferenceFrameOther.TIME_SYSTEMvalues GMST, MET, MRT, SCLK, TCB and TCG have no place in the draft enumeration;orbit_record()refuses them (MappingError) instead of guessing.- In an OEM,
COMMENTis allowed only immediately after the version keyword; a message that starts with one is refused.
Not handled: OPM and OCM, XML encodings, multiple-object NDM files, CDM optional blocks beyond the obligatory ones
(they are tolerated, not read), CDMs without COLLISION_PROBABILITY (the record requires it).
Neutrality
The package, the samples and the tests name no company, product or mission. UNIs and keyword values are invented
(EXAMPLE-SAT-07, EXAMPLE-FDS, EXAMPLE-SSA).