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: Build
Start
Reference code
Tools
API reference
Public services
Agents
Bindings and crosswalks

Conformance runner (reference service)

REFERENCE Source services/conformance-runner/README.md

On this page
  1. Network policy
  2. Command line
  3. HTTP API
  4. Tests
FieldValue
StatusReference service; runs locally and in continuous integration only, not hosted; a report grants nothing; no conformance claim

An HTTP service and a command line that run the open conformance suite and the live harness and write one ConformanceReport (schemas/json/conformance-report.schema.json). It is reference code: Python 3 standard library plus the packages in requirements.txt, no credential of its own, no hosting. A report records what was tested; it grants nothing.

Mode What it runs Input
suite the open suite (obsp conformance run, conformance/suite.yaml) for one profile, optionally with the OBSP-SOV overlay an evidence directory, or an uploaded evidence set ([{path, document}], plus attestations for manual cases)
live the live harness (conformance/harness/) against an implementer’s gateway a base URL on the operator’s allow-list
live, pairing the same, with the request bodies taken from a counterpart’s evidence set: one cell of a plugfest matrix (conformance/plugfest/) a base URL, the counterpart’s name and evidence set

Then, for every run:

  1. Ceiling. extensions["obsp.runner"] states the mode, maxLevel: SELF_TESTED, whether the report is signed or unsigned, and whether the endpoint was reached. The runner refuses to issue a report that carries a level or claim member or a level above SELF_TESTED. It never writes a conformance claim (the participant files one, CNF-3). A pairing report carries extensions["obsp.plugfest"] (initiator, responder, which documents came from the initiator); it is one input to a plugfest record and never a peer level on its own.
  2. Signature. With a key configured (--key), the report is signed with the envelope of draft OIP-0008 (SIG-2): COSE_Sign1, alg ed25519, detached JCS payload, protected header {1: -19, 4: kid}. Because the report schema has no signature member yet, the envelope sits in extensions["obsp.signature"] and the payload is the report without it. The draft’s reference verifier is not in the live tree while OIP-0008 is a draft, so envelope.py carries plain-Python Ed25519 (RFC 8032 section 5.1) and deterministic CBOR; it is checked against the RFC 8032 test vector and, when installed, an independent library. Without a key the report says unsigned.
  3. Log. With a log configured (--log), the report’s digest is appended to a local append-only file: JSON lines, each entry hash-chained to the previous one, with a Merkle tree over the entries (RFC 9162 section 2.1.1) and inclusion proofs (audit paths, section 2.1.3) returned as receipts, consistency proofs between sizes (section 2.1.4) and tree heads signed with the runner’s key when one is configured (log tree-head, log consistency, GET /v1/log/tree-head, GET /v1/log/consistency). It is a reference log, not SCITT: no COSE receipts and no statement format (tlog.py). A witness kept elsewhere can cosign its tree heads (services/public-services, a reference-log feature that no draft specifies).

Network policy

The live harness reaches only base URLs the operator lists with --allow (scheme, host, port and an optional path prefix; no wildcard). The default list is empty, so a fresh runner reaches nothing. It follows no redirect and sends no credential. --offline refuses every live run, for sovereign or air-gapped deployments where the runner must make no outbound connection; evidence-set runs, signing and the log work offline. Host names are not pinned to addresses: an operator who allows a name trusts its resolution.

Command line

export PYTHONPATH=sdk/python/src:.:services/conformance-runner
python3 -m conformance_runner suite --profile OBSP-NODE --evidence conformance/examples/OBSP-NODE --out report.json
python3 -m conformance_runner live --profile OBSP-NODE --endpoint http://127.0.0.1:8080/obsp/v0.1 \
    --allow http://127.0.0.1:8080 --implementation impl-b@2.0.0 \
    --counterpart impl-a@1.0.0 --counterpart-evidence path/to/impl-a/evidence --out pair.json
python3 -m conformance_runner suite ... --key runner-key.json --log runner-log.jsonl --receipt receipt.json
python3 -m conformance_runner log verify --log runner-log.jsonl
python3 -m conformance_runner log check-receipt receipt.json
python3 -m conformance_runner verify --report report.json --jwk public.jwk.json
python3 -m conformance_runner serve --port 8090 --allow http://127.0.0.1:8080 [--offline] [--key ...] [--log ...]

A key file is {"alg": "ed25519", "seed": "<32 bytes, unpadded base64url>", "kid": "uni:key:..."} (kid optional; default: the RFC 7638 thumbprint URI). Which key an operator uses, and who holds it, is the operator’s decision. Exit status: 0 no failed check, 1 a failed check, 2 a refusal or an unreachable endpoint.

HTTP API

Method and path Body or query Answer
GET /v1/health offline, allow-list, signing, log, profiles, maxLevel
POST /v1/runs/suite {profile, evidence: [{path, document}], attestations?, sovereignty?, implementation?} {report, reportDigest, logReceipt}
POST /v1/runs/live {profile, baseUrl, implementation?, counterpart?, counterpartEvidence?} {report, reportDigest, logReceipt}
GET /v1/log tree size and root hash
GET /v1/log/proof index, optional treeSize inclusion receipt

Errors are problem documents valid against error-problem. Codes: OBS-CONTRACT-0001 (request rejected), OBS-ROUTE-0001, OBS-NOTFOUND-0001, and three local to this service, not protocol codes: OBS-RUNNER-0001 (base URL not allowed), OBS-RUNNER-0002 (offline), OBS-RUNNER-0003 (internal). The service binds 127.0.0.1 by default and has no authentication; put it behind the operator’s own access control before exposing it.

Tests

services/conformance-runner/tests/test_runner_*.py, run by make test through tests/test_conformance_runner.py: the suite on every example set (PASS) and on the negative set (FAIL), uploads, the live harness against its reference responder (clean, with a defect, unreachable, and as a pairing), the allow-list and offline mode, signing and tampering, the log (inclusion proofs at every tree size, tampering detected) and the HTTP API.