Keep every lineage, and never call absence extinction

M3.5 retains the genomes M3.4 produces and the organisms that carried
them. The named risk is deleting extinct genomes, so the answer is
structural: LineageArchive has no removal operation at all, not a guarded
one and not a private one. Retention is a property of the interface
rather than a rule someone has to remember, which is the only form of
"keep extinct genomes indefinitely" that a later change cannot quietly
undo. Four concepts assert that, with a positive control so the check is
known to be live rather than vacuous.

Admission requires the parent to be present, so ancestry never dangles
and the parent graph is acyclic by construction: a cycle would need one
of its members admitted before itself. A duplicate identity is refused
rather than overwritten, because overwriting is deletion renamed.

Organism identity and genome identity stay separate. A death is terminal
for the organism and touches nothing about the genome it carried;
ancestry, descendants and divergence all resolve afterwards.

The quieter risk is calling something extinct that is merely unobserved.
The archive reports living or absent and has no third answer: terminal
extinction is a policy judgement over a reconciled watermark covering
suspended members, eggs, spores and in-flight transfers, none of which
this type can see, so the word does not appear in the API. Absence is
also reversible, and a test shows a lineage regaining a carrier.

Capacity is bounded and admission fails loudly at the limit, since
refusing to record is not deleting but a silent drop would be.

The roadmap lists an NPC-mutation decision as a dependency, and
OPEN_QUESTIONS leaves it open until M12. It stays open: the archive
records an origin event and never an actor, so whether an NPC may
diverge changes nothing here.

Two clang-tidy findings were fixed rather than suppressed. std::map
members made the archive's move potentially throwing, because MSVC's map
move constructor allocates; sorted vectors replaced them. A wrapper
struct holding a Genome by value had the same problem, since ADR-0030
made Genome copy-only, so genomes are stored directly under their own
id(). The redundant carrier tally went with it: carriers are counted from
the organism records, so no second tally can drift.

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

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-09-23 16:55:36 -04:00
co-authored by Claude Opus 5
parent badd28fe9b
commit 8020347f9b
11 changed files with 696 additions and 7 deletions
+32 -1
View File
@@ -230,4 +230,35 @@ Uniform offering is not a claim about real mutation rates, and the catalog is no
a claim about which mutations are possible in biology. Candidate count, context
window, mutation cost as a game rule, inherited versus acquired expression, NPC
mutation and recombination all remain open, exactly as stated above. No organism
mutates, no fixture calls any of this, and heredity history is M3.5.
mutates, and no fixture calls any of this.
## Implemented M3.5 lineage retention
[ADR-0034](../adr/0034-lineage-archive.md) keeps what M3.4 produces. `LineageArchive`
has no removal operation: not a guarded one, not a private one. Retention is a
property of the interface rather than a rule anyone has to remember, which is the
only form of "keep extinct genomes indefinitely" that a later change cannot quietly
undo.
A genome is admitted only if its parent is already present, so ancestry never
dangles and the parent graph is acyclic by construction: a cycle would need one of
its members admitted before itself. Duplicate identities are refused rather than
overwritten, because overwriting is deletion wearing another name.
Organism identity and genome identity stay separate. Many organisms may carry one
genome; a birth names both, a death names only the organism, and death is terminal
for that organism and touches nothing about the genome. Ancestry, descendants and
divergence all resolve after every carrier has died.
The archive reports a lineage as living or absent, and has no third answer.
Absence means no organism now carries it, which the archive can establish about
itself. Terminal extinction is a policy judgement over a reconciled watermark
covering suspended members, eggs, spores and in-flight transfers, none of which
exist yet and none of which this type can see, so the word does not appear in the
API. Absence is also reversible: a lineage with no carrier can gain one again.
Capacity is bounded and admission fails loudly at the limit. Refusing to record is
not deleting; a silent drop would be. Durable storage, retention tiers and
cross-version migration are M7 and M8 work, and nothing here is serialized. NPC
mutation stays undecided, because the archive records an origin event and never an
actor.