Places and space-time follow-up
People live in territorial units; the engine follows each one through place and time, and survey rounds are slices of that history.
Each person can be placed in a territorial unit, and the journal records that unit with every event about them. A life is then a path through place and time: it stays vertical while the person stays, leans when they move, and leaves the map when they emigrate.
The territory
The territory is one tree of units, from a root at level 0 down to the finest level, each level with its name. It is loaded from a territory.unit table of the data manifest, with optional correspondence tables that map codes of other systems (a census, a survey) to units.
Every person carries a territory_unit. A newborn takes its mother's unit; an emigrant keeps its own. The journal column territory_unit holds the person's unit when the row was written, and is empty for a person with no known unit.
Leaving the domain
Emigration is an event, official/Migration.Emigration, that marks the person as outside the simulated domain. The person is kept: their past rows stay in the journal and their id is never reused.
Survey rounds as slices
A survey such as the DHS sees the people present on its date, where they live. The model follows everyone, including those who left before the round. Observation operators, which turn the simulated population into what a survey would observe so that calibration compares like with like, are planned for release 1.1.
Coordinates and privacy
Survey cluster coordinates are displaced on purpose and describe a unit, never a person. They are keyed by unit, no interface returns a coordinate for a person, and no coordinate ever reaches the journal, the provenance, a diagnostic or a log.
In this version
Binding the territory and population tables from a scenario, residence history and moves within the territory (Core.ChangeResidence), boundary tables and maps come in later versions (1.1 for residence history and maps). In 0.1 the placeholder population has no territorial unit.