Skip to content

Validate consecutive annual population accounting histories - #441

Draft
MaxGhenis wants to merge 1 commit into
dynamics-stock-flow-20260909from
dynamics-accounting-history-20260909
Draft

MaxGhenis wants to merge 1 commit into
dynamics-stock-flow-20260909from
dynamics-accounting-history-20260909

Conversation

@MaxGhenis

Copy link
Copy Markdown
Contributor

Adds an opt-in wrapper that checks consecutive annual population accounts as one supplied history. Adjacent closing/opening frames must contain the same person IDs and exact accountant-domain weights, independent of row order. Annual revaluation remains separate from a mismatch at a shared boundary.

Callers must explicitly select single_presence_episode. Under that chosen constraint, a declared departure retires its person ID for the supplied history, including people who enter and exit between snapshots. Same-person return remains unsupported here; a general migration model must retain the real ID under a separately defined return linkage. The wrapper preserves annual accounts, returns immutable summaries, and exposes period-indexed failures with their original typed causes.

This draft stacks on #439. The annual accountant and historical engine remain unchanged. The source-identity exclusion is exact, and stacked PRs now receive tests/build/lint while deployment remains restricted to master pushes. There is no projection, native population consumption, household/location transport, event-completeness claim, or scientific acceptance result.

Validation: 157 focused synthetic and historical-identity tests pass, with four existing platform-conditional skips; all 50 new history tests pass. Independent source review is clean. Black79, Ruff, exact historical source checks, an executed synthetic documentation example, and final standalone Quarto rendering pass.

@vercel

vercel Bot commented Sep 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
social-security-model Ready Ready Preview Sep 9, 2026 11:18pm UTC

Request Review

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