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

P7: AI flood forecast trigger to a CAP alert

Source docs/pilots/p7-ai-flood-trigger-to-cap/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 a machine-learning flood forecast from model run to a trigger evaluation to an alert notice carried as a CAP message, with the model, its inputs, its skill and its origin recorded at every step so nobody can read a model output as an observation.

Roles

Model operator, grid operator that evaluates triggers, issuing authority role (an exercise only in the pilot), consumer that relays, hydrology reviewer, reviewer.

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

Id Criterion Measure Evidence
F1 A model run names its manifest, configuration digest, every input by UNI, version and digest, and its uncertainty method one run validates; the one with an input without a digest is refused validation log
F2 Model outputs carry origin MODEL_DERIVED or SIMULATED, never MEASURED conformance cases of the model-observer profile pass run log
F3 A forecast trigger names a model basis and states which origins it accepts one definition validates; the one that accepts only measured origins on a forecast basis is refused validation log
F4 A trigger evaluation reproduces, and an excluded origin or quality is not counted reference evaluator tests pass; the origin-excluded vector behaves as written test output
F5 An alert notice cites the trigger and its evidence and carries its status (EXERCISE for the pilot) one notice validates; the pilot’s notices are all EXERCISE validation log
F6 The CAP message maps from the notice without inventing contact detail or scope CAP binding tests pass test output
F7 Forwarding keeps origin, skill and status manual model-observer case attested attestation

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-0012 OBSP-MODEL-OBSERVER (model runs, derived and simulated values); OIP-0018 trigger definitions and evaluations; OIP-0005 alert notices and the CAP binding; OIP-0006 origin vocabulary
Bindings (drafts) cap (0.2 series copy)
Domain pack profiles/domains/hydrology (informative)

Working copies needed: try 0012 (OIP-0012), 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

Hydrology properties.

python3 -m unittest tests.test_domain_packs

Expect. OK.

Step 3. Model run (OIP-0012 copy)

The record of what ran and on what.

try 0012
inside 0012 python3 -m obsp validate fixtures/positive/model-manifest.valid.json fixtures/positive/model-run.flood-model.valid.json fixtures/positive/model-run.flood-scenario.valid.json
! inside 0012 python3 -m obsp validate fixtures/negative/model-run.input-without-digest.json
! inside 0012 python3 -m obsp validate fixtures/negative/model-run.ensemble-without-members.json
inside 0012 python3 -m obsp conformance run --profile OBSP-MODEL-OBSERVER --evidence conformance/examples/OBSP-MODEL-OBSERVER --out /dev/null
inside 0012 python3 -m unittest discover -s sdk/python/tests -p test_model_run.py

Expect. Positives valid; negatives exit 1; the run ends OBSP-MODEL-OBSERVER: PASS (4/4 requirements); tests OK. Write your own model’s skill honestly: a skill entry names its metric, reference and period.

Step 4. Forecast trigger (OIP-0018 copy)

State when the forecast is enough to act on, and what it may not count.

try 0018
inside 0018 python3 -m obsp validate fixtures/positive/trigger-definition.compound-forecast.valid.json fixtures/positive/trigger-evaluation.insufficient.valid.json
! inside 0018 python3 -m obsp validate fixtures/negative/trigger-definition.forecast-without-model-origin.json
inside 0018 python3 -m unittest discover -s sdk/python/tests -p test_triggers.py

Expect. Positives valid; negative exits 1; 17 tests OK. Read conformance/vectors/triggers/forecast-basis.json and origin-excluded.json.

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

An exercise notice and its CAP message.

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

Expect. Positives valid; negative exits 1; OK. Set the status of every pilot notice to EXERCISE. Never publish a pilot notice through a channel that reaches the public.

Step 6. The chain table

Model run, evaluation, notice, CAP message: one identifier and one digest each, recomputed by a second person.

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

Expect. A digest per link, as in the methane pilot.

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 the model is skilful enough to act on, that a threshold is right, or that any authority should warn. Every notice in the pilot is an exercise. Warning is a public authority matter outside the protocol’s 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