Choose what this site may use

This site uses strictly necessary cookies to work and to remember your privacy choices. With your permission it would also load content hosted by other services, such as videos, maps and fonts, which then receive your network address and device data. We do not sell or share your personal information and we run no advertising. Choose Accept all, Reject all or Customise. You can change your mind at any time through Privacy choices at the foot of every page.

  • Always on

    Needed for the site to work and to remember your privacy choices. Always on.

  • Remembers settings you choose, such as the light or dark display, in your browser.

  • Loads videos, maps and other content hosted by other services. Those services receive your address and device data.

Menu Close
In this section: Learn
Start
Guides
Domain packs
Participants
Security and privacy
Pilot kits
Operations
Ecosystem

Guide: OBSP-CONSUMER

Source docs/guides/consumer.md

On this page
  1. Who it is for
  2. Functions and objects
  3. Walkthrough
  4. What the live tree supports, and what only a draft proposes
  5. Self-test
  6. Common errors

Status: live profile of specification 0.1 (section 7.1). OBSP-CONSUMER extends no other profile.

Who it is for

Authors of applications that read governed products: dashboards, maps, models, alerting tools, research notebooks and reports. A consumer holds no site, node or grid. It does two things well: it reads a product with its context (licence, quality, correction state), and it honours corrections, so a value that was superseded is never shown as current.

Functions and objects

Function Specification What the application does Objects
exchange 5.10 reads products through the exchange bindings and keeps each product’s licence, quality and correction state with its values product-manifest
correct 5.9 subscribes to the correction notices of the products it shows and honours them correction-notice

Cases: CT-CONSUMER-001 (the product manifest is valid), CT-CONSUMER-002 (corrections supersede, by invariant) and CT-CONSUMER-003 (the application honours corrections, a manual case) in conformance/cases/OBSP-CONSUMER/. Principles to design for: every value carries provenance, time, uncertainty, quality, epistemic state and correction state (P5); corrections never erase history (P9); the exchange plane is read-only toward sites and creates no path back into them (P7).

Walkthrough

Set up once as in start here.

  1. Start from the example set, conformance/examples/OBSP-CONSUMER/: a product manifest, a correction notice and attestations.yaml for the manual case.
cp -R conformance/examples/OBSP-CONSUMER evidence
obsp conformance run --profile OBSP-CONSUMER --evidence ./evidence --out /dev/null
  1. Read the manifest before the data. A product-manifest lists outputs, licence, the most restrictive upstream term, quality, and the correction policy. Show the licence and the quality next to the value, never only in a help page. A missing value is a typed state: render MISSING, not 0.
  2. Read through a binding. The live tree defines the manifest and the OpenAPI participant gateway (schemas/openapi/obsp-gateway.openapi.yaml); its getRegister operation reads a register with an ETag equal to the canonical digest of the body. Product read APIs and the OGC, STAC and WIS 2.0 bindings are drafts, listed with their status in bindings. Pick the one your data source offers; the map from its terms to protocol objects is in that binding’s PROFILE.md.
  3. Subscribe to corrections. For every product you show, receive its correction-notice events. A notice names the corrected record and version, the reason, the issuer and the dependants it invalidates. States: CURRENT, DISPUTED, SUPERSEDED, WITHDRAWN, RECALLED; a DISPUTED value may return to CURRENT, the other three are terminal for that version. Never show a SUPERSEDED, WITHDRAWN or RECALLED value as current; show the replacement and keep the superseded value reachable from it.
  4. Keep history. A correction adds a version. Keep the earlier version addressable by its digest (obsp digest computes it) so a citation made yesterday still resolves.
  5. Attest the manual case. CT-CONSUMER-003 asks you to publish a correction for a record the application shows and record, within your declared freshness bound, that the superseded value stops being current, the replacement appears and the notice is visible from the value. Keep the screenshots or API responses and their digests, then add an entry to attestations.yaml next to your evidence:
CT-CONSUMER-003:
  result: PASS
  statement: superseded value replaced within the declared bound and the notice linked

Without an entry the case reports MANUAL, never PASS; an entry with result: FAIL reports FAIL. The statement is yours; the claim lists the evidence files and their digests.

Reference code: the Python SDK, the TypeScript SDK (it runs in the browser, so a web application can validate and digest what it receives) and the verifier page, which you can embed or copy as a model of a client that never trusts a document it cannot check. Domain packs in profiles/ give example scenarios for your domain.

What the live tree supports, and what only a draft proposes

Topic Live in 0.1 Only in a draft
product-manifest, correction-notice, the three CONSUMER cases yes
Read APIs for products and observations on OGC endpoints no OIP-0001
WIS 2.0, STAC and OGC API Features, EDR and Records bindings no OIP-0009
Alert notices and the CAP binding no OIP-0005
Usage policies, privacy classes, consent, retention, sensitivity and CARE no OIP-0014
Typed units, origin (measured, derived, simulated) and subject class on observations no OIP-0006
Triggers over products no OIP-0018

Self-test

obsp conformance run --profile OBSP-CONSUMER --evidence ./evidence --out report.json

Two requirements are covered (exchange, correct). The result is PASS only with your attestation for the manual case. Run obsp validate on every manifest and notice your application consumes in a test, and check them in the verifier page when they travel in a set.

What a SELF_TESTED claim means. The open suite ran on evidence you publish, including your own attestation for the manual case, and anyone can rerun it (CNF-3). It says your application handled the sample documents; it is not a certification or an endorsement, and says nothing about the correctness of the products you show.

Common errors

What you see Cause Fix
CT-CONSUMER-003 MANUAL no attestation entry perform the procedure and add the entry to attestations.yaml
CT-CONSUMER-002 ... supersededBy has the same digest as the corrected record a replacement that is the corrected record the replacement is a new document with a new digest
schema errors missing-dependants, missing-reason, superseded-without-successor, consumer-withdraws a notice outside the rules (fixtures in fixtures/negative/correction-notice.*.json) follow the state table of section 5.9; a consumer may only raise a dispute, never supersede or withdraw
product-manifest rejected as empty-outputs or missing-correction-policy the producer’s manifest is incomplete reject it and show the error to the operator
ETag differs from your digest on getRegister you digested the bytes, not the canonical form digest the RFC 8785 canonical form (obsp digest)
OBS-REGISTER-0001 (404) unknown register name obsp registers list