Repository navigation
Description
Found by /code-review high during epic #359. The alarming half of the finding is false and I checked it before filing; the documentation half is real.
What is true
contract/launch_config.assert_region_declared is new in 1.5.0. Checked by tag:
| tag | assert_region_declared present |
|---|---|
| 1.3.0 | no |
| 1.4.0 | no |
| 1.5.0 | yes |
It refuses two cases: no region key at all, and a region outside delivery.coverage.KNOWN_REGIONS = {land_gaul, africa_me_legacy}. Before 1.5.0, configs.get("region") returning None let the run proceed with both coverage gates silently skipped — which is register C-113, and closing it was right.
So a key that was effectively optional became mandatory, and region appears nowhere in CHANGELOG.md (checked: zero occurrences) nor in docs/CLONING.md. The changelog's own stated purpose is to record "behaviour that can turn a previously-passing run into a failing one", and this is exactly that.
What is NOT true
The review's scenario was that views-models launches without a region and the run dies. It does not. Checked in views-models:
postprocessors/un_fao/configs/config_meta.py:97andpostprocessors/un_crafd/configs/config_meta.py:59both set"region": declared_coverage(CONSUMER).- Each file then asserts its own emitted value against the same source.
deliveries/status.py:119is that single source, and its docstring records that three typed copies of one string is what their ADR-019 §8 rejects — so this was already centralised deliberately on their side.- Real run logs confirm the value arriving:
region='land_gaul'logged by the manager on 2026-08-13 and 2026-08-14.
So no delivery is at risk, and this is not a change where two repositories must move together. views-models got there first.
What to do
Documentation only:
- Add
regionto the 1.5.0 entry inCHANGELOG.md— a previously-tolerated omission is now a refusal, and the recognised values are a closed set of two. - Add it to
docs/CLONING.md. This is the one that actually matters going forward: FAO track of #327: the audience project needs both legs, and the historical leg is not on the contract path #337 clones this delivery for a second FAO leg, and a clone built from that guide would not learn that its launch config must declare a region from a closed set until the run refused. - Say in both that a region which is declared but unpinned (
africa_me_legacy) stays launchable and still logs a skipped gate, because that is the case a reader will otherwise "fix".
No code change. Filed separately from epic #359's PRs, which were pure refactoring.
Activity