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 BLOCKED
Parent story Commission: country
Now Not yet started.
Waiting on Codegen org-mode migration — component regeneration over org models.
Next Begin implementation.
Last touched 2026-06-06

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

Emacs 29.1 (Org mode 9.6.6)