Skip to content

1.5.0 made 'region' a mandatory launch-config key and said so nowhere #369

Backlog

Description

@Polichinel

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:97 and postprocessors/un_crafd/configs/config_meta.py:59 both set "region": declared_coverage(CONSUMER).
  • Each file then asserts its own emitted value against the same source.
  • deliveries/status.py:119 is 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:

  1. Add region to the 1.5.0 entry in CHANGELOG.md — a previously-tolerated omission is now a refusal, and the recognised values are a closed set of two.
  2. 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.
  3. 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

  1. added
    documentation
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions