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

Start here: from a clone to a checked evidence set in 30 minutes

Source docs/guides/start-here.md

On this page
  1. 1. Install and check the tree (5 minutes)
  2. 2. Validate and digest one document (5 minutes)
  3. 3. Check evidence sets in the verifier page (10 minutes)
  4. 4. The same check on the command line (5 minutes, optional)
  5. 5. Run the open suite and read the report (5 minutes)
  6. Where next

This path needs Python 3.11 or later and, for the verifier page, any static web server (Python’s own is enough). Node.js 20 or later is only needed to run the TypeScript tests. A Rust toolchain is optional. Nothing here contacts a remote service, and nothing here makes a conformance claim: a verdict describes the documents you gave it.

Minutes Step
0 to 5 Install the tooling and check the tree
5 to 10 Validate and digest one document
10 to 20 Check evidence sets in the verifier page
20 to 25 Check the same files on the command line with obsp-verify (optional)
25 to 30 Run the open suite and read the report

1. Install and check the tree (5 minutes)

From the repository root:

python3 -m pip install -r requirements.txt
python3 -m pip install -e sdk/python      # the obsp package and the obsp command
make check                                # about a minute and a half; exit status 0 means the tree is sound

make check validates the schemas, registers, fixtures and links, runs every test, runs the open suite on the example sets and starts the live harness against its own reference responder on 127.0.0.1. Without the install you can still run every obsp command as PYTHONPATH=sdk/python/src python3 -m obsp ..., which is what the Makefile does.

2. Validate and digest one document (5 minutes)

obsp validate fixtures/positive/time-quality.valid.json
obsp validate fixtures/negative/observation-record.quality-flag-without-test.json   # exit status 1, one line per broken rule
obsp digest fixtures/positive/plan.valid.json                                       # sha256:... over the RFC 8785 canonical form

Fixtures in fixtures/positive/ wrap a document as {"_schemaTitle": ..., "document": {...}}; the tools unwrap it. A document of your own is a bare JSON object, and --schema <name> says which schema applies (obsp validate my.json --schema observation-record). The digest is computed over the canonical bytes, so two files that differ only in white space or member order have the same digest. Every cross-reference in the protocol ({uni, version, digest}) is built from this digest.

3. Check evidence sets in the verifier page (10 minutes)

The page runs entirely in your browser and makes no network request. Serve the reference/ folder, because the page imports the TypeScript SDK by relative path:

cd reference && python3 -m http.server 8000 --bind 127.0.0.1

Open http://127.0.0.1:8000/web/verifier/. Browsers refuse ES modules from file://, so do not open the file directly.

  1. In Load documents choose the example evidence-set and select Load example. Five documents (an observation record, its provenance, time quality, quality flag and sensor passport) give the verdict PASS: every schema matches, every identifier is well formed, every digest is well formed and every reference between the loaded documents resolves with a matching digest. The evidence graph shows the references.
  2. Load the example tampered. It has one edited record and one re-digested signature, and gives FAIL for two different reasons: the reference check names the record whose digest no longer matches, and the signature check reports OBS-SIG-0005 (the signature does not verify). Read both lines to see what each check proves.
  3. Load signed-notices. The two signature checks pass because the key records travel in the same set; remove the key records and the result becomes INCONCLUSIVE, never PASS. Signatures are the envelope of the draft OIP-0008; the page labels results that rest on it as draft.
  4. Check files of your own. Make a folder from five repository fixtures and drop it on the page (or choose the folder):
mkdir evidence
for n in observation-record provenance time-quality quality-flag sensor-passport; do cp fixtures/positive/$n.valid.json evidence/; done

The verdict is PASS. Some reference checks say INCONCLUSIVE: those references name documents that are not in the folder, and the page never treats a document it cannot see as passing. Now add fixtures/negative/observation-record.quality-flag-without-test.json to the folder and load it again. The verdict becomes FAIL and the schema check names the missing testCode and testVersion.

How to read a verdict:

Verdict Meaning
PASS no check failed and every check on the loaded documents could be completed
FAIL at least one check failed; the failing check names the document and the member
INCONCLUSIVE a check could not be completed (a key that is not loaded, an algorithm the browser cannot compute, a document that does not match any schema)

The same checks run without a browser in make ts (reference/web/verifier/tests/verify.test.mjs).

4. The same check on the command line (5 minutes, optional)

obsp-verify is the Rust reference of the page’s checks (reference/rust/obsp-verify). It reads a directory or files and exits 0 for PASS, 1 for FAIL or INCONCLUSIVE, 2 for a usage error:

cd reference/rust
cargo run -p obsp-verify -- ../../evidence                       # a human summary
cargo run -p obsp-verify -- --json report.json --web-compatible ../../evidence

--web-compatible turns off the one check the page does not make (a signed document whose schema has a planned signature member), so the two give the same result on the same files. A report from either tool is a description of documents, not a conformance claim. make rust runs the Rust tests when a toolchain is present and skips them when it is not.

5. Run the open suite and read the report (5 minutes)

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

Each line is a case of conformance/cases/OBSP-NODE/, with PASS, FAIL or MANUAL and the requirement it covers (OBSP-NODE:join, OBSP-NODE:observe, and so on). The last line is the profile result with the requirements covered. report.json is a conformance-report. Two points to take from the run:

  • The suite checks documents against schemas and a small set of cross-document rules. It does not run your product. The example set passes the suite and still gives FAIL in the verifier, because it names its cross-references with placeholder digests. The suite and the verifier answer different questions; use both on your own evidence.
  • A run on conformance/examples/negative/OBSP-NODE fails (exit status 1): that set omits a time-quality document and names a sensor passport it does not hold. It shows what a FAIL line looks like.

Where next

You build Guide
Firmware or an agent on a device NODE
A site controller SITE
A grid or cluster control plane GRID
A supplied product or service PROVIDER
An application CONSUMER
A deployment the operator runs without the publisher SOV
How to carry the objects over an existing standard Bindings
Testing and claiming Conformance guide

Profiles proposed in draft proposals have their own guides, each labelled as a draft: MODEL-OBSERVER, MOBILE, CONSTELLATION, NETWORK-SENSING and COMMUNITY.