Skip to content

Rename Populace to Microcosm in prose and code - #15

Merged
MaxGhenis merged 1 commit into
mainfrom
microcosm-name-sweep-20261116
Nov 17, 2026
Merged

MaxGhenis merged 1 commit into
mainfrom
microcosm-name-sweep-20261116

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Renames Populace to Microcosm in the prose lines that the open IJM pull-request stack doesn't touch, and holds the rest for that stack. Run outputs, registry keys, profile names and the pinned populace-* dependencies stay as they are.

Counts

Files Mentions
Before 42 2385
After 41 2377

Base is main at 10af9b27d. 2251 of the mentions are in committed run outputs under runs/.

What changed

  • Prose (P, 4): the package docstring (Microcosm's weight-aware imputation approach), the imp CLI description, the data/cps.py docstring on pooled ASEC years, and the PLAN.md status line, which now reads microcosm-fit DataFrame front door.
  • Repo shorthand and links (P, 3, in PLAN.md): populace#297 becomes microcosm#297, and [populace#290](https://github.com/PolicyEngine/populace/pull/290) becomes [microcosm#290](https://github.com/PolicyEngine/microcosm/pull/290).
  • Test name (P, 1): test_populace_fit_weighting_actually_differs becomes test_microcosm_fit_weighting_actually_differs.

Why most of the repo is held

Seven open PRs prepare the manuscript for IJM: #6 (opened 2026-10-10) and drafts #9 to #14 (opened 2026-11-13 to 2026-11-16). Six of them (#6 and #10 to #14) edit pyproject.toml and methods.py, and four (#11 to #14) also edit tests/test_adapters.py. Between them they rewrite every paper section, README.md, PLAN.md, pyproject.toml, methods.py and the tests, and they handle the naming themselves: they keep the legacy registry keys, add new populace_fit_* arms, and add new call sites of _populace_fit_constructor. Renaming those files here would conflict with the whole stack, and renaming the helper would break #14 at run time. This PR touches only lines the stack leaves alone.

Left as is

  • H, 2252: committed run outputs under runs/ (manifests and metrics CSVs, 2251), and the microcosm2026 bibliography entry, whose title reads "Microcosm (formerly Populace)" (paper/bibliography/references.bib:332).
  • R, 79:
    • 28: method registry keys populace_fit, populace_fit_unweighted and populace_fit_unchained in PLAN.md, methods.py, cli/tables.py and the tests. The committed run manifests and CSVs record them.
    • 17: the harness profile value populace-scale, which runs/scf-to-cps-harness-scale/manifest.json records.
    • 21: the pinned populace-fit and populace-frame distributions at pre-rename commit 71b5a83 (pyproject.toml:36-37, uv.lock).
    • 3: the populace.fit import (methods.py:168, tests/test_adapters.py:22) and the pyproject.toml:30 comment about it. The brief says to leave imports while the spec pins populace-*.
    • 6: comments and docstrings that name the exact pinned distributions (pyproject.toml:79, README.md:29, methods.py:9, tests/test_smoke.py:3).
    • 1: the cli/tables.py:20 comment that documents the frozen key spelling.
    • 3: the manuscript's statements about the legacy ids. The introduction footnote names the legacy populace id prefix (introduction.tex:34), and the data availability statement names the repo and distribution at the pinned commit (disclosures.tex:23-24).
  • Mapping line, 2: README.md:10-11 already serves as the repo's one mapping line: "(Microcosm was first released under the name Populace; the reported sweeps pin a pre-rename commit, so the experiment code and its pinned dependencies keep the legacy populace spellings.)" I left it as is.
  • Held P, 12: the pyproject.toml:28 comment that narrates the rename and pyproject.toml:34 populace#290; prose in methods.py:92, 95, 135, 142, 144, 399, 412, 424; the tests/test_adapters.py:86 comment; and the introduction footnote's "first released under the name Populace" (introduction.tex:33). The stack rewrites the hunks around all of them.
  • Held C, 32: the LaTeX macro names \populace and \populacefit (paper/macros.tex:4, 8, 9 and 24 uses across the sections). They already render "Microcosm" and "microcosm-fit", so the rendered paper is unaffected. Also held: the private helper _populace_fit_constructor (methods.py:139, 403, 416, 428).

Compat aliases

None.

Tests

  • uv run pytest (base install, HF_HUB_OFFLINE=1): 27 passed, 1 skipped (tests/test_adapters.py, which needs the methods extra), in 2 min 42 s.
  • uv run ruff check .: all checks passed. uv run ruff format --check .: 24 files already formatted.

Unsure

  • Held P and C hits above: once the IJM stack lands, a follow-up should rename the macros (\populace to \microcosm, \populacefit to \microcosmfit), _populace_fit_constructor, and the prose in methods.py, pyproject.toml:28, 34 and tests/test_adapters.py:86.
  • paper/sections/introduction.tex:32-35: the footnote narrates the rename so that readers can match the legacy ids. The rulebook would cut or rewrite narration, but this manuscript is under IJM submission, so the authors should decide.
  • paper/bibliography/references.bib:332: the title "{Microcosm} (formerly {Populace})" is the authors' citation of the software. The brief leaves bibliography entries alone, but the rulebook's redundant-pair rule would make it "Microcosm".
  • paper/sections/disclosures.tex:22-24: "(then named populace, whose distribution the pinned commit ships as populace-fit)" states the ids at the pinned commit. I kept it as R.

Sweep record and rulebook: ~/reviews/populace-rename-2026-11-06/ (RULEBOOK.md). Published populace-* ids stay frozen pending d2569.

🤖 Generated with Claude Code

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

Copy link
Copy Markdown
Contributor Author

The held prose and code-name mentions are tracked in #16, to rename after the IJM-prep stack lands. Independent review: round 1 (Subfleet job 20261116-192041-pop-u03-papers-a-r1) and round 2 (20261116-200536-pop-u03-papers-a-r2). Round 2 approved, accepted the deferral, and found no P0 or P1.

🤖 Generated with Claude Code

@MaxGhenis
MaxGhenis marked this pull request as ready for review November 17, 2026 01:20
@MaxGhenis
MaxGhenis merged commit a6f7bfb into main Nov 17, 2026
1 check passed
@MaxGhenis
MaxGhenis deleted the microcosm-name-sweep-20261116 branch November 17, 2026 01:21
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