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

P3: Methane detection to response

Source docs/pilots/p3-methane-detection-to-response/README.md

On this page
  1. Goal
  2. Roles
  3. Success criteria (proposed; agree and fix them in the pilot plan before starting)
  4. What the pilot uses
  5. Runbook
  6. What this pilot does not show
  7. Files in this folder

Pilot kit, exported and partner-neutral. The kit names roles, not organisations. It uses live tree features and draft proposals (status DRAFT, can change before acceptance). Nothing here is a conformance claim, a result or a statement that any party conforms to anything; a run describes the documents it was given. See the pilot index for the common setup and the rules every pilot follows.

Goal

Follow one methane plume from a satellite or aerial detection through an evaluated trigger to an alert notice and a tracked response, with every step a record that cites the evidence of the step before.

Roles

Detection provider, grid operator that evaluates triggers, issuing authority role (decides to warn; the protocol decides nothing), consumer that relays, reviewer.

Success criteria (proposed; agree and fix them in the pilot plan before starting)

Id Criterion Measure Evidence
M1 A detection states a hazard code, location with CRS, time, magnitude with uncertainty and its evidence one detection validates; the negative without magnitude uncertainty is refused validation log
M2 A trigger definition is signed and states condition, origins allowed and a window one definition validates; the one without a spatial scope is refused validation log
M3 A trigger evaluation reproduces from its definition and inputs the reference evaluator gives the same result as the recorded evaluation test output
M4 An alert notice cites the trigger and the qualified evidence one notice validates; the one without evidence is refused validation log
M5 The response history is append-only and in time order history entries dated after the detection and in order review of the detection record
M6 Every link of the chain is addressed by a digest a reader can recompute a chain table with one digest per link, each recomputed by a second person chain table

A criterion not met is a finding, not a failure to hide. The report template has a row for each.

What the pilot uses

Kind What
Profiles (live) OBSP-GRID, OBSP-CONSUMER
Drafts OIP-0020 detections and response tracking; OIP-0018 trigger definitions and evaluations; OIP-0005 alert notices and the CAP binding; OIP-0006 observation record
Bindings (drafts) cap (0.2 series copy)
Domain pack profiles/domains/ghg-methane (informative)

Working copies needed: try 0020 (OIP-0020), try 0018 (OIP-0018), series (0.2 integration series).

Runbook

Every command below was run on the tree this kit ships in, and gave the result stated. Work from the repository root of a clean checkout, after the setup block of the index (the try, series, inside and clean helpers). A line that begins with ! is expected to fail (exit status 1 is the right answer). When your own evidence replaces the examples, the counts change; the shape of the result does not.

Step 1. Baseline on the live tree (nothing drafted)

Proves your checkout, tooling and evidence layout work before any draft is involved. Run from the repository root.

python3 -m obsp validate fixtures/positive/observation-record.valid.json
python3 -m obsp digest fixtures/positive/observation-record.valid.json
python3 -m obsp conformance run --profile OBSP-NODE --evidence conformance/examples/OBSP-NODE --out /dev/null

Expect. The first line says valid observation-record; the digest is sha256: and 64 hex digits; the last line of the run is OBSP-NODE: PASS (7/7 requirements).

Step 2. Domain pack

Which properties the pack names for methane.

python3 -m unittest tests.test_domain_packs

Expect. OK. Core properties include the methane emission rate and plume enhancement.

Step 3. Detection (OIP-0020 copy)

The record of the event and the response history.

try 0020
inside 0020 python3 -m obsp validate fixtures/positive/detection.methane-plume.valid.json
inside 0020 python3 -m obsp validate conformance/examples/OBSP-GRID/detection.methane-r1.example.json conformance/examples/OBSP-GRID/detection.methane-r2.example.json
! inside 0020 python3 -m obsp validate fixtures/negative/detection.magnitude-without-uncertainty.json
inside 0020 python3 -m obsp conformance run --profile OBSP-GRID --evidence conformance/examples/OBSP-GRID --out /dev/null

Expect. Positives valid; the negative exits 1. r1 and r2 are two revisions of one detection with notifications and responses appended; the run ends OBSP-GRID: PASS.

Step 4. Trigger (OIP-0018 copy)

Define and evaluate the condition.

try 0018
inside 0018 python3 -m obsp validate fixtures/positive/trigger-definition.threshold.valid.json fixtures/positive/trigger-evaluation.met.valid.json
! inside 0018 python3 -m obsp validate fixtures/negative/trigger-definition.no-spatial-scope.json
inside 0018 python3 -m unittest discover -s sdk/python/tests -p test_triggers.py

Expect. Positives valid; negative exits 1; 17 tests OK. The vectors in conformance/vectors/triggers/ show a met, not met, insufficient-evidence and origin-excluded outcome.

Step 5. Alert notice and CAP message (0.2 series copy)

Publish the fact; the protocol does not decide to warn.

series
inside 0.2 python3 -m obsp validate fixtures/positive/alert-notice.valid.json
! inside 0.2 python3 -m obsp validate fixtures/negative/alert-notice.missing-evidence.json
inside 0.2 python3 -m unittest tests.test_cap_binding

Expect. Positive valid; negative exits 1 (evidence required); OK. The draft’s alert-notice names its trigger by URI and digest; the link to an OIP-0018 evaluation is by hand until the drafts are merged (open question of OIP-0005).

Step 6. The chain table

Build the table of the report by hand from the three copies.

python3 -m obsp digest fixtures/positive/observation-record.valid.json

Expect. For each link (detection, evaluation, notice, response) write its identifier and its sha256: digest; a second person recomputes each with obsp digest.

Step 7. Your own evidence set and report

Replace the example documents with your own, one folder per run, and keep the report and its digest.

mkdir -p "$ROOT/../pilot-evidence" && cp conformance/examples/OBSP-NODE/* "$ROOT/../pilot-evidence/"
python3 -m obsp conformance run --profile OBSP-NODE --evidence "$ROOT/../pilot-evidence" --out "$ROOT/../pilot-evidence/report.json"
python3 -m obsp validate "$ROOT/../pilot-evidence/report.json" --schema conformance-report
python3 -m obsp digest "$ROOT/../pilot-evidence/report.json"
rm -rf "$ROOT/../pilot-evidence"

Expect. The example set is shown here only to prove the commands; in the pilot, copy your own documents into the folder instead. The report validates as a conformance-report and has a digest. Keep the folder, the report and the digest with the pilot’s evidence. A report describes documents and is not a conformance claim; no pilot ends in a claim above SELF_TESTED.

When you are finished, run clean to remove the throwaway copies.

What this pilot does not show

It does not show that a detection is correct, that a threshold is appropriate, that anyone should be warned, or that any recipient acted. Warning is a public authority matter; the protocol records the facts and the evidence, and the charter excludes warnings from its scope.

Files in this folder

File Use
EVIDENCE_CHECKLIST.md what to collect, where to keep it, how it is made
REPORT_TEMPLATE.md the report the pilot lead fills at the end