Skip to content

docs(reconcile): the country code is the caller's, not necessarily country_id - #304

Merged
Polichinel merged 2 commits into
developmentfrom
docs/country-code-is-callers
Nov 16, 2026
Merged

Polichinel merged 2 commits into
developmentfrom
docs/country-code-is-callers

Conversation

@Polichinel

@Polichinel Polichinel commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

The reconciliation docs called the injected country value country_id. The code groups by whatever integers the caller passes. views-models passes GAUL gaul0_code for datafactory ensembles such as chrome_box, and VIEWS country_id for viewser ones. The old wording made a sibling session believe chrome_box reconciles by VIEWS country_id.

This changes wording only, in the docstrings of grouping.py, module.py and frames.py, in docs/CICs/Reconcile.md and in the README. Behaviour doesn't change, and no release is needed.

The CIC now also says that if the grid-cell table and the country forecast share no codes, reconciliation raises an error. Codes that are shared but mean different countries can't be detected here.

Not changed: ADR-023 (an accepted record), and the SpatialLevel.CM column label country_id, which is part of the frozen API.

Also fixes CI (second commit): the format and imports jobs were the only ones without a Python version, so uv picked the runner's newest, 3.14, and the locked pyarrow 19.0.1 has no 3.14 wheel. Every PR failed them. Both are now pinned to 3.12, like the other jobs pin theirs.

Checks: ruff, mypy (default and py3.11), lint-imports, pytest (495 passed, 100% coverage) and validate_docs all pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q77JMFJbxEabjGdAh8jHWA

Polichinel and others added 2 commits November 16, 2026 07:43
…untry_id

The reconcile docstrings, the Reconcile CIC and the README called the injected
country value `country_id`. The code groups by whatever integers it is given, and
views-models injects GAUL gaul0_code for datafactory ensembles such as chrome_box.
The old wording led a sibling session to believe chrome_box reconciles by VIEWS
country_id. Wording only; no behaviour change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q77JMFJbxEabjGdAh8jHWA
They were the only jobs without a Python version, so uv took the runner's newest,
now 3.14, and the locked pyarrow 19.0.1 has no 3.14 wheel and fails to build. Every
PR failed these two jobs regardless of content.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q77JMFJbxEabjGdAh8jHWA
@Polichinel
Polichinel merged commit 1ede47d into development Nov 16, 2026
11 checks passed
@Polichinel
Polichinel deleted the docs/country-code-is-callers branch November 16, 2026 06:56
Polichinel added a commit that referenced this pull request Nov 16, 2026
No package behaviour change; no release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q77JMFJbxEabjGdAh8jHWA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant