Propose mutations without proposing a best build

M3.4 adds the candidate-generation experiment GENOME_MODEL describes: a
static catalog of four effects over the seven capabilities, drawn from a
recorded context with an explicit stream.

The named risk is a hidden best build or offerings biased toward what
would help, so the defence is structural rather than asserted. Nothing is
ranked: candidates are drawn without replacement by rejection sampling,
making every eligible operator exactly as likely as any other, and the
result is returned sorted by operator ID. No score exists in the record,
position carries no meaning, and nothing about an organism's situation
makes a helpful mutation more likely to be offered.

Eligibility is not a second rulebook. An operator is eligible when the
genome it would produce passes the M3.1 validation unchanged, so
prerequisites, required capabilities, ranges and the acyclic development
graph are enforced once, where they were defined. Shedding a capability
another declares as a prerequisite fails that check with no rule written
here to catch it. Range boundaries are refused rather than clamped, since
a clamp would make two operators agree and offer a no-op as a choice.

The draw reads the parent digest and the context and nothing else, so the
same context always returns the same candidates and a retry cannot
reroll; a new event index is what earns a new draw. select_mutation
regenerates the offer and refuses unless it still matches, so a changed
context is rejected rather than answered with a different mutation.

Cost is not invented: a candidate reports the successor's own maintenance
and mass under ADR-0032, and reserves nothing.

The eligible set is pinned by hand from the schema rather than observed,
and the uniformity check is confirmed to fail against a draw that takes
the first eligible operators. The rejection sampling that removes modulo
bias is correct by construction, not test-verified: at this scale the
bias is one part in 10^18. That is recorded rather than claimed.

No organism mutates and no fixture calls any of this. Candidate count,
mutation cost as a game rule, inherited versus acquired expression, NPC
mutation and recombination all remain open, as GENOME_MODEL requires.

Native Release, clang-tidy analysis, ASan and format checks pass 20/20.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-09-23 15:27:21 -04:00
co-authored by Claude Opus 5
parent fd6faeb7f8
commit 5497f4d74c
11 changed files with 788 additions and 6 deletions
+43
View File
@@ -583,3 +583,46 @@ chosen for legible magnitudes, not balance. Golden `d61ad5bf0c928c76`, ecosystem
fingerprint `2cd4a15f9fbe9949` and the frozen genome fixture are unchanged. No
deployment manifest or image pin changed. Linux validation is pending its first
pushed run; no Gitea result is claimed for any increment since `b01a824`.
## M3.4 seeded mutation candidates (2026-09-23)
Native Release, analysis and MSVC ASan each passed 20/20 CTests; formatting
passed. Commands: `tools/windows-check.ps1 -Preset <release|analysis|asan>
-Action check` and debug `-Action format`. `mutation-contracts` is the one new
CTest case, in the existing `evo::biology` library. No existing suite changed.
The eligible set for the founder fixture is pinned by hand rather than observed:
nine operators, derived from the schema by the rules that make them eligible.
Energy conversion and membrane can adjust either way, movement, ingestion,
reproduction and thermal tolerance can be acquired, target size can adjust up but
not down because its 9,999,999 step would fall below the minimum from 8,000,000,
and no required capability can be shed. Over 2,000 seeds the offers are exactly
that set and nothing else.
Uniformity is checked to within a fifth of each operator's exact share, about six
standard deviations for 8,000 offers across nine operators. That test was
confirmed to fail when the draw was replaced by taking the first eligible
operators, which is the shape a biased offering would take. The rejection
sampling that removes modulo bias is correct by construction rather than
test-verified: over nine bins with 64-bit draws the bias it removes is about one
part in 10^18 and no test at this scale could observe it. That is recorded rather
than claimed as covered.
Stability is checked both ways: the same context always returns the same
candidates, while a new event index, seed, stream or growth state returns a
different draw. Selection is checked to refuse an operator that was never offered,
a moved event index, a changed growth state, a tampered offer and a different
parent genome, each with its own error. Boundary operators are checked to be
absent rather than clamped at both ends of a range, and a capability another one
declares as a prerequisite is checked to be unsheddable while the dependent
capability itself remains sheddable. Every offered candidate is selected in turn
and its successor checked to validate, to record parent 7, and to survive a
decode; the reported maintenance and mass are checked to equal what
`metabolic_budget` charges that successor.
No organism mutates and no fixture calls any of this. Candidate count, context
window, mutation cost as a game rule, inherited versus acquired expression, NPC
mutation and recombination remain open and are not settled here. Golden
`d61ad5bf0c928c76`, ecosystem fingerprint `2cd4a15f9fbe9949` and the frozen genome
fixture are unchanged. No deployment manifest or image pin changed. Linux
validation is pending; no Gitea result is claimed since `b01a824`.