Task: Bring country under codegen and verify zero-diff regeneration

Table of Contents

This page documents a task in the Commission: country story. It captures the goal, current status, acceptance, and any notes or results.

Goal

Bring country under codegen: create ores.refdata.country.org following the currency model shape (the party_country junction model already exists), regenerate, and reconcile until regeneration is zero-diff against HEAD — or record explicitly why any part stays hand-written, as currency did for its C++ layer.

Status

Field Value
State DONE
Parent story Commission: country
Now Nothing.
Waiting on Nothing. (The codegen org-mode migration it blocked on has since landed.)
Next Nothing.
Last touched 2026-06-30

Acceptance

  • ores.refdata.country.org exists and drives SQL generation.
  • Regenerating country SQL is zero-diff against HEAD.
  • Any layer deliberately left hand-written is recorded with rationale in the Result, mirroring currency's decision record.
  • Depends on component regeneration working over org models (task on the org-migration story).

Plan

(Transient implementation strategy. Written when work starts; distilled into the parent story's * Decisions and cleared when the task closes. Plans do not outlive their task.)

Notes

PRs

PR Title
   

Review

Comment summary File Decision Notes
       

Result

The goal — country under codegen with zero-diff regeneration — was met, but through the unified-model migration rather than this task's original approach. This task was BLOCKED on the codegen org-mode migration (D85E2B30); once that landed, country was brought under codegen via migrate-country-unified-model (PR #1363) and the layer-sync tasks (sync_cpp_core #1316, sync_cpp_messaging #1326, sync_qt #1345), then reconciled to a clean compiling, zero-diff-on-regen state by recheck-country-codegen-post-refactor (PR #1364). Country now regenerates from ores.refdata.country.org across all layers.

Bookkeeping note: state corrected to DONE on 2026-06-30 — the task was left BLOCKED under the already-closed Commission: country story; its dependency had long since landed and the goal was delivered by the migration tasks. No code change.

Emacs 29.3 (Org mode 9.6.15)