# OIP-0005 draft folder

The proposal and, under `patches/`, the exact edits acceptance would make. Nothing here changes the protocol until
the editors accept the proposal and its patches are applied in the same change. The patches are made against the
current tree; OIP-0001 also edits §5.10, so whichever proposal is accepted second is rebased on the first.

| File | What it changes on acceptance |
|---|---|
| [`OIP-0005.md`](OIP-0005.md) | the proposal |
| `patches/spec.patch` | §4.2 row `alert-notice`, §5.10 sub-list "Alert notices" (ALRT-1 to ALRT-7), §6 Exchange row |
| `patches/registers.patch` | `exchange` objects gain `alert-notice`; external relation `EXT-CAP`; `implements-edges.json` regenerated (42 edges) |
| `patches/schemas-fixtures.patch` | `alert-notice` schema, two positive and five negative fixtures, example alert notices, quality flag and time-quality link in the OBSP-GRID example set |
| `patches/cases-invariants.patch` | invariants `alert-evidence-qualified`, `alert-update-references`, `alert-expires-after-issue` with unit tests; cases CT-GRID-008, CT-GRID-009, CT-CONSUMER-006 and the attestation for the manual case |
| `patches/binding-cap.patch` | `bindings/cap/` (profile, manifest, mapping, two positive and three negative CAP 1.2 examples), `tests/test_cap_binding.py`, and one assertion of `tests/test_validate.py` made independent of the number of bindings |

Apply the patches in the order of the table. Acceptance removes `patches/`. OIP-0001 edits the same lines of §5.10, the §6
Exchange row and the `exchange` objects in `registers/functions.yaml`, so its `spec.patch` and `registers-functions.patch` do
not apply on top of these; whichever proposal is accepted second is rebased on the first.

Check that every patch still applies to the current tree: `python3 -m unittest tests.test_validate -k draft_patches`.

## Verification

Checked against the public texts on 2026-11-21 so that rows say `checked: opened` only where the term and clause were read. Rows not listed stay `checked: not checked`.

- Sources read: OASIS CAP 1.2 (docs.oasis-open.org/emergency/cap/v1.2/CAP-v1.2-os.html): data dictionary 3.2.1 to 3.2.4, date-time rule.
- `bindings/cap/mapping.yaml`: 22 of 25 rows `opened` (every clause number and element confirmed). Not opened: the two date-time rows (`/issuedAt`, `/expires`), and the X.1303 bis equivalence (CAP 1.2 does not mention it).
- Finding for the editors: CAP 1.2 section 3.3.2 requires UTC to be written `-00:00` and forbids alphabetic designators; the mapping, the examples and the test write `+00:00`. Not changed here because it alters examples and test code.
- The alert-notice schema's vocabulary descriptions (category, urgency, severity, certainty) are still `checked: not checked`.
