Four of five runs conserve perfectly; three are ecologically worthless

M4.5 closes M4 by measuring what aggregation costs, and adds no library code
except one defect fix the measurement found.

One rule is written once and applied at both resolutions. The control is what
makes the rest mean anything: with one member per class a class average is that
member, so the two runs must agree exactly, and they do, tick by tick, in every
channel. A deliberate one-unit drift in the aggregate rule is caught by it, so the
instrument is verified rather than assumed. Without it a measured gap would be
indistinguishable from a transcription mistake in one of the two runs.

The result is reported, not smoothed into a tolerance. At class widths ten and
fifty the aggregate population survives ten thousand ticks within 375 parts per
thousand on population and 43 on energy. At twenty-five, one hundred and two
hundred it dies out entirely while the individual run sustains seventy-five
members: a false extinction caused by resolution alone, because a whole class
starves the moment its average cannot pay upkeep, where individuals starve a few
at a time and the survivors keep the shared per-capita share up.

The collapse is not monotone in class width. Twenty-five destroys the population
and fifty sustains it. An earlier version of the test asserted that coarser is
never better; the measurement refuted it, so the assertion went rather than the
widths being chosen to make it hold. The non-monotonicity is asserted now, because
it is surprising and because the warning written around it could otherwise become
wrong without failing. A tier policy cannot assume degradation worsens smoothly as
classes widen, and M4.6 inherits that.

Conservation was exact at every tick on both sides of all five runs, including the
three that died out. That is the clearest available demonstration of the thing
ECOLOGY_MODEL keeps saying: conservation is not ecological evidence.

Two flaws in my own experiment were found before any number was believed. The
aggregate model had been producing overlapping classes, so the model measured was
not one a cohort could represent; newborns now extend the youngest class while it
is narrower than the width, and every step is checked to construct a valid Cohort.
The first figures were discarded.

The comparison also found a real M4.3 defect, which is what a validation milestone
is for. plan_advance checked affordability with arrivals added before losses were
taken, but emitted the ledger legs outflows-first, so an interval affordable as a
whole underflowed leg by leg and was refused at commit. A fifty-tick interval
shedding 10,480 against 6,950 held while drawing 13,080 in reproduced it. Arrivals
are the first leg now, matching the order the arithmetic was checked in, with a
regression and a corrected escrow expectation in an existing test.

Release 38/38, analysis, ASan 38/38 and clang-format all ran and passed here.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-09-24 21:57:00 -04:00
co-authored by Claude Opus 5
parent 14e0c1af5e
commit b4c3da56e9
11 changed files with 1155 additions and 11 deletions
+41
View File
@@ -274,3 +274,44 @@ A materialized member carries the cohort's genome, its habitat and a fresh
identity, and nothing else. It has no parentage, no history and no condition,
because a cohort never carried them, and none of that may later be invented from a
statistical membership.
## Implemented M4.5 resolution comparison
[ADR-0040](../adr/0040-resolution-equivalence.md) carries out the comparison this
document asks for: a hundred funded individuals collapsed, advanced over ten
thousand ticks and materialized, against the same hundred simulated explicitly. The
numbers are in
[resolution-equivalence-msvc1944.jsonl](../engineering/results/resolution-equivalence-msvc1944.jsonl).
One rule is written once and applied at both resolutions, and a control with one
member per class establishes that the two runs are the same rule before any gap is
blamed on resolution. Every state the aggregate run passes through is checked to be
a representable cohort, so the envelope describes this library rather than a model
it could not hold.
The claim this document warns against is not made. Nothing asserts the trajectories
agree; the tests assert that they differ, so equivalence cannot be read as identity,
and the word is not used for what was measured.
What was measured is two regimes rather than a gradient. At some class widths the
aggregate tracks the individuals within a few hundred parts per thousand. At others
it dies out entirely while the individuals persist, which is a false extinction
caused by resolution alone: a whole class starves the moment its average cannot pay
upkeep, where individuals starve a few at a time and the survivors keep the shared
per-capita share up. This is the "population averages hide viable outliers" risk
arriving as a measurable quantity.
The collapse is not monotone in class width: a narrower class is not reliably safer.
A tier policy therefore cannot be derived by assuming degradation worsens smoothly
as resolution coarsens, and the boundary between the regimes is not characterised
here.
Conservation held exactly at every tick of every run, including the ones whose
populations died out. That is this document's point about conservation being
insufficient ecological evidence, demonstrated rather than restated.
Not covered: one genome only, so the mixed-genome diversity case remains open; one
model, one scarce axis and one initial distribution, so the numbers describe this
fixture; interval-length error is unmeasured, because the aggregate run sub-steps at
one tick to keep the averaging error attributable; and nothing here is distributed
or persistent.