M3.6 joins the M3 pieces: strategy_for derives a StrategyConfig from the metabolic budget, founders are pre-diverged variants admitted to the lineage archive, and evo-sim --ensemble runs them over a resource and temperature grid with every cell's seeds split in half and never merged. ADR-0029's driver is untouched, so the M2.6 fingerprint still holds. Nothing mutates during an episode, so NPC mutation stays open. Three things measurement found, kept rather than smoothed over. The report aggregates were default-initialized, leaving their scalar counters indeterminate. The resource level never reaches strategy derivation at all, so the header now says where each axis acts instead of claiming both shape a strategy. And the resource axis is not monotonic: a sweep peaks near 8000 femtograms and falls away on both sides, because only one consumer may bite a target per tick, so scarcity concentrates mass into individuals that reach the threshold while abundance spreads the same income too thin. The test asserts that an axis moves the outcome and never a direction; an earlier draft asserted a direction that held at two cells and the sweep disproves. Earning a birth at all required pinning the investment fraction to the schema floor, since intake scales with surface and investment with mass. That is a finding about the ADR-0031/0032 cost model, now the second priority in STATUS. Release 33/33, analysis, ASan 33/33 and clang-format all ran and passed here; no Clang or GCC compile happens on this host, so Linux CI is still the first result for this increment. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
136 lines
7.7 KiB
Markdown
136 lines
7.7 KiB
Markdown
# ADR-0035: Genome-derived strategies over an environment gradient
|
|
|
|
## Status
|
|
|
|
Adopted for M3.6, which closes M3. Nothing mutates during an episode: autonomous
|
|
divergence would settle NPC mutation, which OPEN_QUESTIONS leaves open until M12.
|
|
No simulation contract changes, and ADR-0029's episode driver is untouched.
|
|
|
|
## Context
|
|
|
|
Every piece of M3 exists and none of them meet. Genomes validate, phenotypes
|
|
derive, budgets are charged, candidates are drawn and lineages are retained, but
|
|
the M2 fixtures still run on hand-written constants. M3.6 is where a genome
|
|
finally decides how something behaves in an ecosystem, measured across a gradient
|
|
rather than at one point.
|
|
|
|
The named risk is tuning one seed until it looks good. A single run of a seeded
|
|
ecosystem says almost nothing: the question is whether a difference between
|
|
strategies survives being measured again on seeds nobody chose.
|
|
|
|
## Decision
|
|
|
|
Derive a `StrategyConfig` from a genome rather than writing one. Intake,
|
|
assimilation and reproduction investment all come from ADR-0032's budget, so a
|
|
strategy is what the genome already implies and not a second description of the
|
|
same organism. A parent reproduces once it holds what it would invest, which
|
|
avoids inventing a separate margin.
|
|
|
|
Run those strategies over a grid of resource levels and temperatures, many seeds
|
|
per cell, on ADR-0029's existing episode driver. The driver does not change, so
|
|
the M2.6 fingerprint still holds and the ecology under test is the one already
|
|
validated.
|
|
|
|
The two axes reach a run by different routes, and implementation showed the
|
|
routes are not symmetric. Founders are derived fully grown, so their construction
|
|
transition is empty and ADR-0031's per-channel `available` cannot move intake,
|
|
assimilation or reproduction investment. The resource level therefore does not
|
|
enter strategy derivation at all; it reaches a run only as the nutrient pool an
|
|
episode starts with, which bounds producer growth. Temperature is the opposite: it
|
|
enters only the derivation, through thermal shortfall, and reaches the ecology
|
|
through the scheduling rule below. Saying the resource level shapes a strategy
|
|
would have been false, so this ADR says instead exactly where each axis acts.
|
|
|
|
Temperature has to be made consequential or the axis is decoration: ADR-0031
|
|
derives thermal shortfall but deliberately lets it change no budget. The harness
|
|
therefore shortens a strategy's scheduled lifespan in proportion to its shortfall.
|
|
That is an extension of the lifespan rule ADR-0029 already owns, which is a
|
|
fixture scheduling device and explicitly not biology. It is not a mortality model,
|
|
it lives in the harness rather than in any contract, and a genome carrying thermal
|
|
tolerance simply keeps more of its scheduled life at the extremes.
|
|
|
|
Founders are pre-diverged variants of one ancestor, produced by ADR-0033's
|
|
candidate draw before any episode starts and admitted to ADR-0034's archive with
|
|
their parent links. Every organism's birth and death is recorded as it happens, so
|
|
the diversity a run reports comes from retained records rather than from counters
|
|
the harness kept for itself. Nothing mutates mid-episode, because an organism
|
|
diverging on its own is exactly the NPC-mutation question that remains open.
|
|
|
|
The report is distributional. Per strategy and per cell it carries episodes,
|
|
births, survivals, lifetime and mean thermal shortfall, so a reader sees a spread
|
|
rather than an outcome. To make overfitting visible rather than merely warned
|
|
against, the seeds of every cell are split in half and the two halves reported
|
|
separately: a difference that appears in one half and not the other is an artifact
|
|
of the seeds, and the tests assert the halves agree.
|
|
|
|
## Alternatives Considered
|
|
|
|
Mutating during an episode would exercise more of M3 and would settle NPC mutation
|
|
by implication, which ADR-0034 was careful not to do. Teaching the episode driver
|
|
about genomes would change a tested fixture and break a pinned fingerprint for no
|
|
gain, since a derived `StrategyConfig` is the same shape the driver already takes.
|
|
Letting thermal shortfall reduce a budget would put a mortality rule inside a
|
|
contract that says it is not one. Reporting one number per cell would hide exactly
|
|
the variance the named risk is about. Deriving lifespan from body size would be an
|
|
allometric claim this project has no basis for; it stays a harness constant
|
|
applied to every strategy alike.
|
|
|
|
## Benefits
|
|
|
|
A genome now determines behaviour end to end, through code that was already tested
|
|
at every step. Both axes are consequential, so strategies can be compared rather
|
|
than merely listed. Split halves make an overfitted conclusion fail a test instead
|
|
of surviving in a report, and the archive gives the diversity figures a provenance.
|
|
|
|
## Costs
|
|
|
|
The grid is small and the seed count modest, so the report describes this fixture
|
|
and nothing wider. The thermal penalty, the lifespan base and the grid bounds are
|
|
chosen constants. Recording every birth and death costs a scan of the slots each
|
|
tick. Founders diverge once, before the run, so the ensemble compares a fixed set
|
|
of strategies rather than an evolving population.
|
|
|
|
## Risks
|
|
|
|
Do not read a cell's numbers as fitness, adaptation or balance: a strategy that
|
|
produces more offspring here is doing so under constants this ADR chose. The
|
|
thermal penalty is a scheduling rule and is not a claim that heat kills.
|
|
|
|
The resource axis is emphatically not monotonic, and no test asserts that it is.
|
|
Sweeping the fixture, organisms rise to a peak near 8000 femtograms and fall away
|
|
on both sides. The mechanism is a property of ADR-0026's feeding rules, not of
|
|
ecology: a target may be bitten by only one consumer per tick, so the community's
|
|
income is capped at one producer bite however much is in the pool. Scarcity
|
|
empties the producer, consumers then bite each other, and that concentrates mass
|
|
into individuals that reach the reproduction threshold; abundance spreads the same
|
|
income across more feeders, and none of them accumulates enough to fund a birth.
|
|
Reading "more resource supports more life" out of a cell would be reading past the
|
|
rules that produced it.
|
|
|
|
The fixture's reproduction investment sits at the genome schema's floor of one
|
|
per thousand. That is forced, not chosen for taste: intake scales with surface and
|
|
investment with body mass, so the ticks needed to fund a birth grow as the cube
|
|
root of mass and exceed any plausible lifespan at every larger fraction. At the
|
|
previous constants no organism could earn a birth at all, every birth came from
|
|
the opening endowment, and both axes measured nothing. A cost model in which
|
|
reproduction is affordable only at the schema floor is a finding about ADR-0031
|
|
and ADR-0032 worth revisiting, not a fixture detail. Agreement
|
|
between seed halves shows a measurement is reproducible, not that it is
|
|
ecologically meaningful, and conservation holding across the grid remains
|
|
arithmetic rather than plausibility. No organism mutates, no population is
|
|
modelled, and nothing here is persistent.
|
|
|
|
## Consequences
|
|
|
|
Test that a derived strategy matches the genome's own budget, that conservation
|
|
holds at every tick of every cell, that the archive ends holding exactly the
|
|
founders and every organism that lived, that lineage status reflects the carriers,
|
|
that the two seed halves agree within a stated band for every strategy and cell,
|
|
that each axis alone changes outcomes rather than leaving cells identical, that a
|
|
thermally tolerant strategy keeps more of its life at the extremes than an
|
|
intolerant one, and that a repeated run reproduces the report exactly. The gradient
|
|
test asserts only that an axis moves the outcome, never a direction, because the
|
|
direction is not a property of this model. `evo-sim --ensemble` reports every cell
|
|
with its two halves separate and never merges them. No genome schema, mutation
|
|
catalog, archive, ledger, episode driver, renderer or deployment changes.
|