Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.