Skip to content

Record Belgium's method card rulings and pin NGI as the language-region source - #1856

Open
MaxGhenis wants to merge 5 commits into
mainfrom
be-mc-rulings-20261128
Open

MaxGhenis wants to merge 5 commits into
mainfrom
be-mc-rulings-20261128

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Records Max's 2026-11-28 rulings on Belgium's method card in Belgium's inactive data, before Belgium's graph PR. Nothing here activates: Belgium still declares no transport graph, and activation still refuses.

Commits

  1. Point the input closure at METHOD-CARD-BE row BE-MC13 (d2865). The closure's status names the row and the ruling: the seven default_direction_rules behind the 238 defaults, with the Walloon no_government_obstacle_applies default true. Every new_default flag stays true, and the undetermined_judgments refuse policy stays outside the row. The three benefit-year reasons now say BE-MC0 sets the year at 2026.
  2. Record BE-MC0 and BE-MC11 as adopted (d1902).
    • mass_references.json: the mass row's method_card_status becomes adopted_d1902, and its description names the 0.025 mass-change limit, which Belgium's gates declare with the graph.
    • spec/bundle.yaml and release_contract.json: the 2026 policy year is BE-MC0, adopted.
  3. Pin NGI's 2025 commune file as BE-MC12's language-region source (d1902).
    • tools/build_be_geography.py gains a fifth pinned input: the ODWB export of NGI-IGN's communes-gemeente-vintage-millesime-belgium for 2025.
    • A new Rule 8 reads each commune's mun_off_language as a whole value. NL-FR is Brussels; NL-fr is a Flemish commune with facilities for French speakers.
    • Rule 8 refuses the file unless it agrees with the BE336 and Statbel-region reading for all 565 communes. No community_code value changes.
    • The file is committed unmodified, with its BOM and CRLF line ends, as tests/fixtures/be_ngi_communes_2025.csv. It is CC BY 4.0, not MIT. A provenance file beside it gives the licence evidence and NGI's credit.
    • A CI test compares all 565 communes with the test's own oracle and with the committed support.

What moves

  • Every household's draw key. The community_code source string reaches the draw key twice: in the assignment definition and in the support metadata. Most households draw a different commune; some draw the same one.
    • _SUPPORT_SHA256 and the fixed first five draws are re-recorded, on CPython 3.14.7 under macOS.
    • The same method first reproduced the old literal and the old five draws on the unmodified tree.
    • Nothing consumes the draw yet. Belgium's graph PR must start from this PR's merge.
  • Golden hashes. tests/golden/be_country_spec.json changes only in the edited files' hashes and the fingerprint.
  • The two generated geography files. Each changes only in the community_code source line.

Left for later, on purpose

  • Text the generator writes, which waits for the graph PR's generator run (card BE-MC12, "Card tag"): the 565 precal rows' proposed_pending_d1902, and the BE-MC0 and BE-MC11 text in reference_aging.json (inside hashed receipts), reference_inventory.json and money_normalization.json.
  • The nuts1 "proposed with d1902" basis in reference_inventory.json. It is B3 choice 16, which is still open, so it stays.
  • unit_declarations.json (BE-MC7). Its status was worded to stay true after the ruling, and a test pins it. Only the test docstring changes.
  • The 0.025 limit's gates.json row. It comes with Belgium's graph.
  • Rows that stay open: BE-MC3 to BE-MC6, BE-MC9, BE-MC10 and the 26 money and reference choices.

Status

  • Targeted tests pass. The eleven Belgian, spec and golden files give 672 passed and 53 skipped (env-gated on BE_CHRONICLE_ARTIFACT).
  • The env-gated builder test passes on the five pinned files. ruff check and format --check are clean.
  • The engine-free whole list ran locally on macOS (CPython 3.14.7, -n 4, no --maxfail): 39,138 passed, 334 skipped, 3 xfailed, 5 failed, 1 error. None of the six touch this PR's files: every changed file is Belgian data, a Belgian test, the BE golden, or tools/build_be_geography.py, which no package imports.
    • Three tests compare local:// artifact references: test_us_multispine_pool_tool.py::test_local_artifact_reference_never_embeds_host_absolute_paths, and two in test_uk_rowwise_build_driver.py. They failed because the local basetemp sat under the home folder, which the code shortens to ~.
    • Two test_worker_pool.py::test_busy_workers_exit_when_their_parent_is_killed cases failed with "the parent process exited early" when run under a launchd job.
    • test_us_multispine_pool_tool.py::test_identity_routed_bank_sibling_scan_is_bounded_and_ignores_junk errored at setup: '_Entry' object has no attribute 'stat'.
  • Independent review, round 1 (Subfleet job 20261202-141645-be-1856-r1, gpt-6.2-sol, on 3c81ecc): VERDICT: REQUEST_CHANGES, with one P1 (changelog overstated the re-draw), four P2s and a P3. Commit 3fa67e4 answers all six. After that commit, the targeted Belgian, golden and spec tests give 447 passed and 3 skipped.
  • Round 2 (Subfleet job 20261202-225210-be-1856-r2, gpt-6.2-sol, a full review on 3fa67e4): VERDICT: REQUEST_CHANGES, with two P1s and two P2s. Commit 2d74959 answers all four:
    • BE-MC8 was in no Belgian file. spec/bundle.yaml's status now records it: when Belgium's graph first selects a donor profile, its CREATE node takes populace-us-cps-asec version 1 with rented_public_authority, read_false (this donor only) and tenure_wins. No Belgian file sets a profile yet.
    • release_contract.json's notes credited the build manifest with a EUROMOD engine and reform_validation.json with held-out comparisons. The shared assembler records the Axiom rules engine and writes no reforms; the notes now say so, and name a EUROMOD comparison and held-out scoring as later qualification work.
    • ngi_languages now refuses a quote inside any parsed field, since strict CSV mode lets a bare quote in an unquoted field through. NGI's export has none.
    • The bundle status no longer calls the unit declarations, engine bindings and commune geography later work; they are declared and wait for the graph.
    • After that commit the targeted Belgian, golden and spec tests give 481 passed and 20 skipped (env-gated); ruff check and format --check are clean.
  • Round 3 (Subfleet job 20261202-235301-be-1856-r3, gpt-6.2-sol, on 2d74959), scoped to round 2's two P1s and whether 2d74959 broke anything: VERDICT: APPROVE. Both P1s are closed, and it raised no new findings. That finishes the independent review.

🤖 Generated with Claude Code

MaxGhenis and others added 3 commits December 2, 2026 10:40
Max adopted row BE-MC13 on 2026-11-28 (d2865): the seven
default_direction_rules behind the closure's 238 defaults, with the
Walloon no_government_obstacle_applies default true. The closure's
status now names the row and the ruling, keeps every new_default flag
true, and says the undetermined_judgments refuse policy is outside the
row. The three benefit-year reasons now say BE-MC0 sets the year at
2026 (adopted under d1902) rather than proposing it.

The closure test asserts that the status names BE-MC13 and d2865. The
BE golden spec moves only in the closure's hash and the fingerprint.
No value, flag, rule or draw changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Max adopted rows BE-MC0, BE-MC7 and BE-MC11 under d1902 on 2026-11-28.
The hand-maintained Belgian declarations that still called them
pending now say so:

- mass_references.json: BE-MC11 adopts FPB's 2025 annual-average
  population as the 2026 mass, with a 0.025 limit on the weights
  audit's mass change that Belgium's gates declare with its graph.
  The row's method_card_status becomes adopted_d1902. The file stays
  ASCII, so its byte test still matches json.dumps.
- spec/bundle.yaml and release_contract.json: the 2026 target and
  policy year is BE-MC0, adopted under d1902.
- test_be_create_inputs.py: the MASS_DOCUMENT literal and the module
  docstring follow, and the fixture is two of the pinned artifact's
  FPB T07 facts.
- test_be_unit_declarations.py: the docstring says Max adopted the
  values (BE-MC7). unit_declarations.json stays as written; its status
  was worded to stay true after the ruling, and a test pins it.

Generator-written text (the 565 precal rows, reference_aging.json,
reference_inventory.json, money_normalization.json) waits for the
graph PR's generator run. The BE golden spec moves only in the three
files' hashes and the fingerprint. Nothing reads method_card_status,
and no CREATE node exists yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Max adopted METHOD-CARD-BE row BE-MC12 on 2026-11-28 (d1902), with the
National Geographic Institute's 2025 mun_off_language file as the
language-region source.

tools/build_be_geography.py pins the ODWB export as a fifth input,
ngi-communes-2025 (25,354 bytes; its URL keeps order_by=mun_code so
the bytes repeat). ngi_languages parses it and refuses another header,
row width or year. A new Rule 8 maps each value as a whole through
NGI_LANGUAGE (NL-FR Brussels, NL-fr Flemish with facilities) and
refuses a repeated or missing commune, a value outside the table, or
a region that differs from the BE336 and Statbel-region reading, which
stays as the check. No community_code value changes.

The community_code source string now cites the NGI pin, the dataset,
NGI's CC BY 4.0 credit and the mapping. The regenerated support and
assignment change only in that line, but the string reaches the draw
key twice (the assignment definition and the support metadata), so
every household draws again. _SUPPORT_SHA256 and the fixed first five
draws are re-recorded on CPython 3.14 under macOS.

The file is committed unmodified, with its BOM and CRLF, as
tests/fixtures/be_ngi_communes_2025.csv, with a provenance file giving
its licence (CC BY 4.0, not the repository's MIT licence), licence
evidence and credit. A new test checks its pin and provenance, parses
it with and without the builder, and compares all 565 communes with
the test's own oracle and the committed support. The release
contract's licence notes name the NGI input. A changelog fragment
covers the PR's three commits. Belgium still has no transport graph.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MaxGhenis
MaxGhenis marked this pull request as ready for review December 2, 2026 19:17
MaxGhenis and others added 2 commits December 2, 2026 16:07
The round 1 review of PR 1856 (gpt-6.2-sol) raised one P1, four P2s
and a P3:

- The changelog said every household draws a new commune. The new
  source string gives every household a new draw key; most draw a
  different commune, and some draw the same one.
- ngi_languages now reads with csv strict mode and refuses malformed
  CSV, such as an unclosed quote at the end, naming the line. A
  parser test covers it.
- read_sources now verifies and parses NGI's file first, so a test can
  show that a tampered copy of the fifth input (same length) is refused
  through read_sources. A second test shows that the hierarchy's
  community_code is Rule 8's returned mapping.
- A root .gitattributes marks the NGI fixture -text, so autocrlf can't
  rewrite its CRLF bytes on a later refresh.
- The release contract no longer calls the release assembler later
  work: Belgian release files come from the shared spec release
  assembler, which refuses a build it cannot publish. The BE golden
  moves in that file's hash and the fingerprint.
- A refusal-case comment now describes its second case correctly.

No value, draw or support byte changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The round 2 review of PR 1856 (gpt-6.2-sol, on 3fa67e4) raised two
P1s and two P2s:

- P1: no Belgian file recorded BE-MC8. The bundle status now says that
  when Belgium's graph first selects a donor profile, its CREATE node
  takes populace-us-cps-asec version 1 with rented_public_authority,
  read_false (this donor only) and tenure_wins, adopted under d1902,
  and that no Belgian file sets a profile yet.
- P1: the release contract's notes credited the build manifest with a
  EUROMOD engine and reform_validation.json with held-out comparisons.
  The shared assembler records only the Axiom rules engine and writes
  no reforms, so the notes now say that, and name a EUROMOD comparison
  and held-out scoring as later qualification work.
- P2: csv's strict mode let a bare quote inside an unquoted field
  through. ngi_languages now refuses any quote left in a parsed field,
  naming the line; NGI's export holds none. The parser test covers a
  bare and an escaped quote.
- P2: the bundle status called unit construction, engine bindings and
  geography support later work. It now says they are declared and wait
  for the graph.

The BE golden moves in bundle.yaml's and the release contract's
hashes and the fingerprint. No value, draw or support byte changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MaxGhenis

Copy link
Copy Markdown
Contributor Author

Handing this PR to the Microcosm hub. Its independent review has finished, and only CI remains.

  • Head: 2d74959.
  • Independent review (gpt-6.2-sol on Subfleet lanes; the author is Claude):
    • Round 1, full, on 3c81ecc: REQUEST_CHANGES, with one P1, four P2s and one P3. Commit 3fa67e4 answers all six.
    • Round 2, full, on 3fa67e4: REQUEST_CHANGES, with two P1s and two P2s. Commit 2d74959 answers all four.
    • Round 3, scoped to round 2's two P1s, on 2d74959: VERDICT: APPROVE. Both P1s are closed, and there are no new findings.
    • Reports and briefs: ~/reviews/belgium-2026-10-12/transport-port/runs/mc-rulings-20261128/review/ (report-r1.md, report-r2.md, report-r3.md, and a brief-r*.md for each).
  • Passed:
    • The targeted Belgian, golden and spec tests: 481 passed, 20 skipped (the skips need BE_CHRONICLE_ARTIFACT).
    • ruff check and format --check (ruff 0.15.16).
    • CI: select-countries, lint, wheels, installed-emitter and integration-uk.
    • The local engine-free list's six failures are environment-only and miss this PR's files. The body's Status section lists them.
  • Pending: CI engine-free, engine-us and engine-uk, on 3.13 and 3.14. engine-uk-after-merge was skipped.
  • Depends on: none. Holds: none.
  • Decisions: this PR records Max's 2026-11-28 rulings d1902 (in part) and d2865. Nothing waits on Max.
  • Merge order: Belgium's graph PR (D2) must start from this PR's merge. The community_code source string changes every household's draw key.
  • Follow-ups the Belgium session owes after merge:
    • Mark d1902 as acted.
    • Update METHOD-CARD-BE: BE-MC12's language-region and codes bullets, BE-MC13's follow-up bullet, and the draw-keys bullet.
    • Close Belgium's FOLLOWUPS item 11.
    • Remove the worktree.

This branch has not been deployed

No deployments
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