Give capability a cost without giving it a multiplier

M3.3 turns a phenotype into the budgets a ledger can hold: body
composition, maintenance, movement, the next construction step, the
per-tick intake limit and the reproduction investment. metabolism is the
single place the genome's description of capability becomes accounting
quantities, so the record itself stays free of those types and M3.1's
boundary is crossed once, explicitly.

The named risk is reintroducing RPG modifiers, where a capability
parameter becomes a flat percentage over every budget. Each budget is
therefore derived from a different phenotype quantity: maintenance from
mass plus membrane upkeep, movement from mass and speed, intake from
surface, construction from the mass a growth step adds, investment from
the body a parent already has. One parameter moves some budgets and not
others, by different amounts. Doubling membrane thickness costs more
matter to build, more energy to hold and more to haul, while leaving
uptake, speed, assimilation and structural mass identical, and the mass
and maintenance ratios differ, so no single multiplier could produce it.
The test asserts that non-uniformity rather than describing it.

Composition is declared per compartment, and membrane is the carbon-rich
one, so a thicker membrane changes what a body is made of and not only
how much. A split assigns the first three channels by share and gives the
remainder to the last, so parts always sum back to the whole and a
derived body can be spent through the ledger without a rounding leak.
That is checked at four awkward masses where every share floors.

processes::consumer_for is the first path from a genome into the M2
fixtures. Opening inventory stays the caller's: a genome says what an
organism can do, never what it holds, and a derived config that invented
an opening balance would create matter. A derived consumer is shown
driving a real feeding tick with the ledger conserving exactly, and a
bite one femtogram past the derived cap refused by the M2.3 contract.

Every budget is asserted as a hand-calculated literal. The constants are
chosen so budgets are of comparable magnitude, which is legibility for
tests and not tuning. No existing fixture reads genomes, and no organism
spends any budget: there is still no starvation, death or repair rule.

Native Release, clang-tidy analysis, ASan and format checks pass 19/19;
every existing golden and fingerprint is unchanged. Linux CI has not run.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-09-23 11:31:01 -04:00
co-authored by Claude Opus 5
parent 3f86dada0e
commit be71d4f441
13 changed files with 729 additions and 10 deletions
+34
View File
@@ -154,3 +154,37 @@ must not become tuning by having been written down. Thermal shortfall is reporte
as a quantity; it is not a mortality, penalty or damage rule. A derived phenotype
is not a viability claim. Repair is not modelled: a plan advances growth and never
reduces damage. Nothing is spent or reserved, and no organism yet develops.
## Implemented M3.3 metabolic budgets
[ADR-0032](../adr/0032-metabolic-budgets-from-genome.md) turns a phenotype into
the budgets a ledger can hold: body composition, maintenance, movement, the next
construction step, the per-tick intake limit and the reproduction investment.
`metabolism` is the single place the genome's description of capability becomes
accounting quantities; the record itself stays free of those types.
Each budget is derived from a different phenotype quantity on purpose. Maintenance
follows total mass plus a membrane upkeep term, movement follows mass and speed,
intake follows surface, construction follows the mass a growth step adds, and
investment divides the body a parent already has. One genome parameter therefore
moves some budgets and not others, by different amounts: a thicker membrane costs
more matter to build, more energy to hold and more energy to haul, while changing
neither uptake nor speed. Nothing here is a multiplier applied to a total, which
is the capability-as-percentage-modifier failure this increment was scoped against.
Composition is declared per compartment, and membrane is the more carbon-rich one,
so a thicker membrane changes what a body is made of and not only how much. A
split assigns the first three channels by share and gives the remainder to the
last, so parts always sum back to the whole and a derived body can be spent
through the ledger without a rounding leak.
`processes::consumer_for` is the first path from a genome into the M2 fixtures.
Opening inventory stays the caller's: a genome describes what an organism can do,
never the resources it holds, and a derived config that invented an opening
balance would create matter. No existing fixture reads genomes; that is M3.6.
The rule constants are chosen so budgets are of comparable magnitude, because
budgets differing by orders of magnitude make every tradeoff invisible. That is a
legibility choice for tests, not tuning, and must be re-derived before balancing.
A budget is a derived quantity, not a rule: nothing here decides starvation,
death or repair, and no organism spends any of it yet.