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-MODEL-OBSERVER (MODEL-OBSERVER)

Source docs/guides/model-observer.md

On this page
  1. Who it is for
  2. Functions and objects
  3. Try the draft (step by step)
  4. What the live tree supports, and what only a draft proposes
  5. Self-test and what the result means
  6. Common errors
  7. Open questions the proposal records

Proposed in OIP-0012 (DRAFT). This profile is not part of specification 0.1. Nothing below is in the live tree: the schemas, fixtures, cases, example set and requirement ids exist only in the patches of OIP-0012, which the editors have not accepted. They can change before acceptance. It requires OIP-0006 (universal observation: origin, observer.class MODEL, modelRef), also a draft; accepted order is OIP-0006 first.

Who it is for

Anyone whose software produces values that are not direct measurements: weather and ocean forecasts, flood and hazard models, reanalyses and downscaling, machine-learned retrievals on imagery, scenario runs, and inference at the edge or on a spacecraft. The profile lets a consumer tell which weights and configuration produced a value, which inputs drove it (at which version and digest), how good the model is for this kind of run, and whether the value is a simulation. It is also the protocol’s machine-readable marking of model-generated values, including content produced by an artificial intelligence system. The protocol records the marking; it does not decide whether a participant meets a legal duty such as Regulation (EU) 2024/1689, Article 50 (cited by identifier only, not opened for the draft).

Functions and objects

Function Specification What the participant does Objects
describe 5.3 names the model manifest, the weights loaded and the configuration; may reference a model card and an ML bill of materials model-run (new), model-manifest (live)
observe 5.5 lists every model-derived or simulated record as an output of a run; keeps origin and run reference when forwarding model-run, observation-record
qualify 5.6 states skill against reference data, and the uncertainty method model-run
prove 5.11 pins every input by UNI, version and digest; may reference a compute attestation model-run, attestation-result (live)

Requirements MOD-1 to MOD-8 (new section 7.3 in the draft’s spec.patch) and cases CT-MODEL-001 to CT-MODEL-006: run names its model manifest and weights (001), every derived value is an output of a run of its model (002), inputs are pinned and no output is an input (003), skill names its metric, reference data and period (004), onboard runs name the platform and processing level (005, schema), origin and run reference survive forwarding (006, manual). The new schema is model-run (runKind, modelRef, weightsDigest, inputs, configurationDigest, runStart, runEnd, onboard, uncertaintyMethod, skill, outputOrigin, outputs).

Try the draft (step by step)

The live tree is never edited by a proposal. Apply the draft’s patches to a throwaway copy of the tree, in the order of the table in the draft’s README.md, from the repository root of your checkout (set up as in start here):

OIPS=$PWD/oips/drafts/OIP-0012/patches
git worktree add --detach ../obsp-oip-0012 HEAD && cd ../obsp-oip-0012
for p in spec registers schemas-fixtures cases-invariants; do git apply "$OIPS/$p.patch"; done
export PYTHONPATH=sdk/python/src
python3 -m obsp validate fixtures/positive/model-run.flood-scenario.valid.json
python3 -m obsp validate fixtures/negative/model-run.ensemble-without-members.json      # exit status 1
python3 -m obsp conformance run --profile OBSP-MODEL-OBSERVER --evidence conformance/examples/OBSP-MODEL-OBSERVER --out /dev/null

The last command lists CT-MODEL-001 to CT-MODEL-006 and ends OBSP-MODEL-OBSERVER: PASS (4/4 requirements) on the draft’s example set. Then build your own evidence:

  1. Start from the example set conformance/examples/OBSP-MODEL-OBSERVER/ (patched copy): a model manifest, an attestation result, an ML weather forecast run, an onboard cloud-mask run and attestations.yaml for the manual case. Copy it and replace the documents with yours; name files <schema-name>.<label>.json.
  2. Register the model first. A model-manifest is live: name, artifact digest, format, runtime candidates, rights. The run’s modelRef is its UNI plus the digest of the manifest document (obsp digest), and weightsDigest must equal the manifest’s artifact digest (or rollback digest).
  3. Write one model-run per run. List every input with uni, version, digest, role (INITIAL_CONDITION, BOUNDARY_CONDITION, FORCING, OBSERVATION, IMAGERY, STATIC, PARAMETER) and origin. An output is never an input of the same run; runEnd is not before runStart; a compute attestation, if cited, is an attestation-result.
  4. State uncertainty honestly. uncertaintyMethod is ENSEMBLE (with at least two members), BAYESIAN, CONFORMAL, ANALYTIC or NONE. An output with an uncertainty cannot come from a NONE run, and an ensemble uncertainty needs an ensemble run with the same member count.
  5. Label the origin. Outputs carry MODEL_DERIVED or SIMULATED and are never stronger than the weakest input origin, unless a method record explains why. A SCENARIO run produces SIMULATED outputs only. Observation records of these outputs carry the matching OIP-0006 origin and modelRef; each record is listed among the run’s outputs by UNI and digest.
  6. Say whether the run was onboard. onboard: true needs hostUni (the node, edge device or spacecraft) and a processingLevel (L0 to L4, optional sub-level letter).
  7. Report skill. skill entries name the metric (for example RMSE, CRPS, IOU, or OTHER with a metricUri), the value, the reference data by UNI and digest, the period and the method. Skill is never computed against the run’s own outputs.
  8. Add the attestation for the manual case (CT-MODEL-006) to attestations.yaml: when you forward, export or republish a value, origin and run reference stay with it.
  9. Run the suite on your evidence (next section). Optionally pin the ML bill of materials by reference (mlBomRef, CycloneDX 1.5 or later, by URI and digest).

When you are done, leave the throwaway copy: cd - && git worktree remove --force ../obsp-oip-0012.

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

Topic Live in 0.1 Only in a draft
model-manifest (artifact digest, format, runtimes, rights) and the PROVIDER describe case yes
attestation-result, provenance, observation-record yes
origin, observer.class MODEL, modelRef on observations no OIP-0006
model-run, MOD-1 to MOD-8, the profile, six cases, six invariants (model-output-has-run, model-run-links-manifest, model-run-inputs-pinned, model-run-skill-referenced, model-run-uncertainty-method, model-run-origin-inherited) no OIP-0012
External relation to the CycloneDX ML-BOM (ECMA-424) no OIP-0012 (EXT-CYCLONEDX)
Signed run records no OIP-0008

Self-test and what the result means

python3 -m obsp conformance run --profile OBSP-MODEL-OBSERVER --evidence ./evidence --out report.json
python3 -m obsp conformance run --profile OBSP-MODEL-OBSERVER --sovereignty --evidence ./evidence   # also needs the overlay's documents, see the SOV guide
python3 -m unittest tests.test_validate -k draft_patches      # in the live tree: the draft's patches still apply
make check                                                    # in the patched copy

Four requirements are covered by CT-MODEL-001 to CT-MODEL-006 (describe, observe, prove, qualify). The suite checks documents and the invariants above; it does not run or evaluate your model, and it cannot tell whether your skill numbers are good.

What a SELF_TESTED result means. For a live profile it means the open suite ran on evidence you publish and anyone can reproduce the report (CNF-3); it is never a certification, accreditation or endorsement. For this draft profile it means less: the profile id is not in the conformance-claim enumerations of 0.1, so no claim can name it, and no report, listing or product text may say you conform to it. A run against the patched copy is a rehearsal of the proposed suite on your evidence. If the editors accept the proposal, the same evidence can then support a DECLARED or SELF_TESTED claim under the rules of the conformance guide, with the level bounded by that evidence. A model run record never says the model is accurate, safe or fit for a purpose; it records what was run and on what.

Common errors

What you see Cause Fix
CT-MODEL-002 fails (invariant model-output-has-run) an observation with origin MODEL_DERIVED or SIMULATED is not listed as an output of a run of its model list it in outputs by UNI and digest, or correct its modelRef
CT-MODEL-001 fails (model-run-links-manifest) the manifest digest or weightsDigest does not match the manifest recompute with obsp digest; the weights digest is the manifest’s artifact or rollback digest
CT-MODEL-003 fails (model-run-inputs-pinned) an input listed twice, an output used as input, runEnd before runStart, or an attestation reference that does not resolve fix the lists and the digests
CT-MODEL-004 fails (model-run-skill-referenced) a skill period that ends before it starts, or a reference to the run’s own output score against independent reference data
CT-MODEL-005 fails (model-run-uncertainty-method) an uncertainty from a NONE run, or an ensemble count that differs state the method the run really used
CT-MODEL-006 is MANUAL no attestation add the entry to attestations.yaml
model-run/processingLevel: 'Level-2' does not match '^L[0-4][A-D]?$' a free-text processing level use L2 (or L2A)
origin stronger than the inputs (model-run-origin-inherited) an output labelled with an origin stronger than its weakest input label with the weakest input origin, or cite an origin method record
schema errors input-without-digest, input-without-version, input-without-origin, missing-weights-digest fixtures in fixtures/negative/model-run.*.json of the patched copy show each pin every input and the weights

Open questions the proposal records

  • Whether an observation should carry a direct modelRunRef next to modelRef (today the link is the run’s outputs list).
  • The origin inheritance order puts DECLARED with MODEL_DERIVED; the editors confirm, or rank it with SIMULATED.
  • Processing levels L0 to L4 follow common Earth-observation practice, and no source was opened; should the protocol name one scheme?
  • The CycloneDX ML-BOM elements and the ECMA-424 edition are cited from memory and were not opened; should SPDX 3.0 AI and dataset profiles be accepted as an alternative format?
  • The skill metric list is a convenience list; should it follow a verification vocabulary?
  • MOD-8 is tested by a manual case; it could become an invariant once the exchange APIs of OIP-0001 are accepted.
  • Regulation (EU) 2024/1689, Article 50 is cited by identifier and was not opened; the protocol makes no statement about it.