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: Proposals
Proposals
Drafts
Proposed registers

Integration series: the 0.2 candidate

DRAFT Source oips/integration/0.2/README.md

This series accepts nothing: every proposal in it stays at DRAFT, and the specification and registers keep their current text.

FieldValue
StatusDRAFT
ProposalsOIP-0008, OIP-0006, OIP-0007, OIP-0001, OIP-0009, OIP-0002, OIP-0003, OIP-0005
Patches8

Series

The patches are in the protocol repository at the pinned commit and are not served on this site.

FileProposalSize (bytes)
01-OIP-0008.patchOIP-0008351397
02-OIP-0006.patchOIP-0006462902
03-OIP-0007.patchOIP-0007267838
04-OIP-0001.patchOIP-000140735
05-OIP-0009.patchOIP-0009221417
06-OIP-0002.patchOIP-0002303557
07-OIP-0003.patchOIP-0003847125
08-OIP-0005.patchOIP-0005107253

About the series

This folder shows that the draft proposals work together. It accepts nothing: every proposal stays at DRAFT, the specification and registers keep their current text, and the drafts in ../../drafts/ are not changed. Each draft’s patches apply to the live tree on its own; this series applies all of them, one after the other, with the conflicts between them resolved as an editor would at acceptance.

Patch Proposal Made against
01-OIP-0008.patch Signature envelope, algorithm register and crypto agility the live tree
02-OIP-0006.patch Universal observation (ISO 19156 profile) the live tree with 01 applied
03-OIP-0007.patch Universal connector contract and the Sparkplug binding 01 to 02 applied
04-OIP-0001.patch Read APIs on OGC endpoints 01 to 03 applied
05-OIP-0009.patch Exchange bindings: WIS 2.0, STAC, OGC API 01 to 04 applied
06-OIP-0002.patch Proofs with challenge, signature, verifier and transparency receipts 01 to 05 applied
07-OIP-0003.patch Signed plans: TUF roles, expiry, version and rollback protection 01 to 06 applied
08-OIP-0005.patch Alert notices and the CAP binding 01 to 07 applied

series lists the patches in order. Each patch is the whole acceptance change of its proposal: the draft’s patches, the editor’s resolutions and the regenerated files. A patch never touches oips/: acceptance removes the proposal’s patches/ folder, and the check removes every draft’s patches/ folder before it runs.

  • python3 -m unittest tests.test_integration_series checks that the series still applies, in order, to a copy of the current tree (part of make check).
  • make integration applies the series to a temporary copy, removes oips/drafts/*/patches and runs make check in the copy (not part of make check).
  • python3 tools/integration.py --keep <dir> leaves the integrated tree in <dir> for reading.

When the live tree or a draft changes, the series is rebuilt from the drafts in the same order; a series that no longer applies fails tests/test_integration_series.py.

Order

The order follows the dependencies the proposals state: OIP-0008 first (OIP-0002 and OIP-0003 require it and rebase on it); OIP-0006 before OIP-0007 (connector outputs produce observation records); OIP-0001 before OIP-0009 (OIP-0009 requires it); OIP-0002 and OIP-0003 after OIP-0008; OIP-0005 last (additive, and its alert evidence re-points to the migrated observation records, as OIP-0006 Compatibility asks). No proposal states an order that differs from this.

The integrated tree

With all eight steps applied, make check exits 0 (make integration; each step was checked the same way before the next was made). Every example set passes its profile and the signature vectors give their expected results.

Live tree 0.2 candidate
Schemas (schemas/json) 36 46
Conformance cases 31 84
Positive and negative fixtures 48 and 124 80 and 255
Bindings none cap, ogc-api, sparkplug, stac, wis2
Requirements in the index 70 151
Implements edges 41 51
Repository tests, SDK tests, harness tests run by make check 69, 21, 10 224 (16 skipped), 128, 10 (on the current tree, after the step 5 change)
Open gaps G-FED-1, G-ORCH-1, G-EXCH-1, G-PROVE-1 G-FED-1

Conflicts resolved, by step

Generated files are regenerated, never merged by hand, at every step: registers/implements-edges.json (python3 tools/build_edges.py) and registers/requirements.yaml (python3 tools/requirements.py). Signatures are made with the test keys by python3 tools/gen_signature_vectors.py --examples, which this series extends; the signature test vectors and keys.json are unchanged.

  1. OIP-0008. Applies cleanly. The requirements index is regenerated (the draft predates the index).
  2. OIP-0006.
    • tools/validate.py: OIP-0008 adds the group algorithms, OIP-0006 the group properties at the same place; both are kept (docstring and GROUPS merged).
    • Case id collision: both drafts add CT-NODE-010. OIP-0008, accepted first, keeps it; OIP-0006’s case (OBS-1, OBS-2, OBS-6, invariant observation-numeric-has-unit) is renumbered CT-NODE-017. No other file names it.
  3. OIP-0007.
    • §5.5: the sub-lists “Observation records” (OIP-0006) and “Connectors” (OIP-0007) are both kept, in that order; sdk/python/tests/test_obsp.py keeps both new test classes.
    • Signature envelope: OIP-0008’s validator refuses the legacy signature member (algorithm, signatureDigest, keyRef) of connector-mapping and connector-output. Both schemas now carry the verbatim $defs.SignatureEnvelope (with format COSE_Sign1 and signerRole required, as attestation-result does), and registers/algorithms.yaml lists them in class observation as present.
    • Every connector document is re-signed: the generator signs mappings first, moves each output’s mappingRef digest, then signs the outputs (unsigned negative fixtures stay unsigned). Two example-only test keys sign them, key 5 (role NODE, the connector) and key 6 (role SITE_CELL, the mapping); their key records are in the OBSP-NODE example set and they are not test vectors.
    • Observation model: OIP-0007’s three connector observation records were 3.1.0. They are migrated to 4.0.0 by OIP-0006’s migration table (observer from systemUni, class INSTRUMENT; the quantity takes its unit), and every digest that pinned them moves with them (output observationRef, the Sparkplug provenance, output provenanceRef), in the OBSP-NODE set, its negative set and the fixtures. The invariant connector-unmapped-not-in-result reads result.unit and observer.observerUni.
    • Found while integrating: OIP-0008’s generator re-signed two negative fixtures whose one broken rule is the signature (attestation-result.legacy-signature-summary, correction-notice.dsse-envelope); it now skips them.
  4. OIP-0001. conformance/examples/OBSP-GRID/attestations.yaml, created by both OIP-0008 and OIP-0001: entries merged.
  5. OIP-0009.
    • OBSP-GRID/attestations.yaml: entries appended. tests/test_validate.py: OIP-0009’s isolation of the demo binding repeats what OIP-0007 already does inside binding(); the repeat is removed.
    • The binding examples were derived from the 3.1.0 observation fixtures, which OIP-0006 migrates. The WIS 2.0 derivation reads the {start, end} interval (mapping and profile wording follow); the OpenAPI feature property phenomenonTime references the record’s own definition; positive examples are re-derived from the current fixtures; each negative example carries its one break over onto the new derivation.
    • fixtures/positive/observation-record.missing-typed.valid.json gets back the provenanceRef it had at 3.1.0 (both bindings require a provenance link).
    • tools/build_edges.py: the three OGC API edges proposed by OIP-0001 are dropped, since OIP-0009’s EXT-OGCAPI row states them in the register.
    • CT-GRID-040 (WIS 2.0) and CT-GRID-041 (STAC) take the automated form the draft now has (kind invariant, binding-wis2-notification and binding-stac-description, conformance/BINDING-EVIDENCE.md): sdk/python/src/obsp/inv_oip0009.py, hooked in conformance.py after the connector invariants, and sdk/python/tests/test_inv_oip0009.py. Its time rule reads the 4.0.0 interval {start, end}, as the WIS 2.0 derivation does. The six evidence documents of OBSP-GRID are the binding’s positive examples with the fixtures they are derived from; the two cases leave OBSP-GRID/attestations.yaml. Every later step carries this unchanged: at each step of both series the evidence documents still equal that derivation.
  6. OIP-0002.
    • §9: OIP-0001 and OIP-0002 remove adjacent gap rows; both are removed. Attestations merged in OBSP-GRID and OBSP-SITE.
    • The proposal’s own rebase steps: the placeholder $defs.SignatureEnvelope of proof-challenge, proof-receipt and verification-report is replaced by the verbatim copy; algorithms.yaml class receipt lists the three as present; the example exchanges and positive fixtures are re-signed (the generator repeats until no digest moves, rewriting every reference, transparencyReceipt.statement.payloadDigest included; negative fixtures keep their placeholder signatures); example-only keys 7 uni:key:site001-verifier-test and 8 uni:key:site001-node01-test have key records in OBSP-SITE and OBSP-GRID; PRV-2 reports the OBS-SIG-* code as the detail of OBS-PRV-0009; the placeholder sentence of §5.11 goes.
    • SIG-2 and PRV-10: the eo-custody receipt carries a transparencyReceipt whose statement.payloadDigest equals the signature’s, which cannot hold if the member is inside the signed payload. The series takes the form OIP-0002 proposes: the SIG-2 payload also leaves out the top-level transparencyReceipt, and the reference verifier (signatures.signed_bytes) does the same. This is OIP-0002’s open question 2 and stays open.
  7. OIP-0003. §9: the G-ORCH-1 row also goes (G-FED-1 remains). conformance.py: the registrations of the prove invariants (OIP-0002) and the plan invariants (OIP-0003) are both kept. The relation rows EXT-TUF and EXT-SUIT, which the proposal adds at acceptance, are added.
  8. OIP-0005.
    • §5.10: OIP-0001’s requirements, then OIP-0005’s “Alert notices” sub-list. §6 Exchange row: OIP-0001’s text plus “CAP 1.2 for alert notices”. registers/functions.yaml exchange: both objects, CONTRACTED, no gap. OBSP-CONSUMER attestations merged.
    • tests/test_validate.py: OIP-0005 counts the shipped bindings in test_valid_binding_passes; with OIP-0007’s isolated demo binding the count is 1, so that hunk is dropped.
    • Alert evidence: the notices pinned the 3.1.0 GRID record uni:obs:0001, which OIP-0006 migrates and renames and whose 4.0.0 version carries SUSPECT and NOT_CHECKED flags. The evidence is now its own 4.0.0 record, observation-record.alert-evidence.example.json (uni:obs:0001, GOOD only, trusted time quality); the notices, the quality flag, the alert fixtures and the CAP examples name its digest. OIP-0005’s time-quality link on the main GRID record is not needed and is left out.

Rebuilt for later tooling

Two pieces of non-normative tooling landed after this series was built and failed in the integrated tree; the end state is repaired at the end of 08-OIP-0005.patch: tests/test_threats.py promotes TH-10, TH-11 and TH-14 from gap to live (with its coverage table regenerated), and the conformance-runner service tests upload each example set with its attestations.yaml.

The 0.5 series (../0.5/) continues from the end of this one; it does the OIP-0003 rebase of open question 4, changes the TypeScript and Rust references of open question 3 and integrates OIP-0012 and OIP-0013 (open question 7).

Open questions for the editors

  1. Placeholders introduced by the series: the connector observation records name procedure uni:procedure:site001-wx01-sparkplug-ddata@1, feature of interest uni:feature:site001-air-2m and a sensor passport reference with a placeholder digest. The OIP-0007 author should confirm or replace them.
  2. Object class of connector documents: the series puts connector-mapping and connector-output in class observation (not consequential). A mapping decides which source an observation is attributed to; should it be consequential (its own class, or receipt)?
  3. SIG-2 and transparencyReceipt (OIP-0002 open question 2): the series excludes the member from the payload; the alternative is OIP-0008’s unprotected signature.receipt. The Rust and TypeScript references are not changed (the vectors carry no such member).
  4. OIP-0003 rebase not done: algorithms.yaml plan row to present with the member signatures, the validator group learning array members, the multi-signature form of SIG-2, plans.py calling the OIP-0008 verifier, and the plan test keys as key records of class plan. Each needs an editor decision; make check passes without them because the plan’s copy of the envelope is identical and its member is an array.
  5. The Sparkplug binding’s golden projections (expected.observations) keep the 3.1.0 shape (unit, numeric result); they are projections, not observation records. Should they follow 4.0.0?
  6. schemaVersion: OIP-0001, OIP-0002, OIP-0003 and OIP-0008 keep 3.1.0 for breaking changes while OIP-0006 moves observation-record to 4.0.0. A 0.2 release needs one rule.
  7. OIP-0012 and OIP-0013 are not in the series yet; they join it in acceptance order when they arrive.