Decide affordability where composition is known

A construction transition could require more of an element than was
available, because the check compared net mass. A step growing a body
from 13 to 14 femtograms nets one femtogram but acquires a carbon and a
nitrogen while freeing one of other, and released other pays for neither.
Matching totals let one element silently fund another.

Net mass was never the right question, and the layer asking it could not
ask a better one: plan_development has no composition. A single scalar
pool could not carry the answer either, since it cannot say that carbon
is plentiful while nitrogen is not. The environment now states what is
available per ledger channel.

plan_development keeps a total-mass bound, which is sound because net
never exceeds gross, but it is a proposal rather than an authority.
metabolic_budget narrows it to the largest step whose own intake fits
channel by channel, and reports the growth that step actually funds. That
revises ADR-0031 on this point, recorded in both ADRs.

The tests place a single femtogram in each channel in turn and require
that no step needing a different element is funded, that nothing is
acquired beyond what is present, and that the mass-only plan would have
admitted the step; a carbon and a nitrogen together then fund it exactly.
Across six target sizes by seven growth fractions by four stock levels,
every reported intake fits the availability channel by channel and never
exceeds the proposed step. Confirmed to fail with the check removed.

The releasing case moved to a target of 20 femtograms, where the step
occurs at the full rule step rather than depending on a scarce supply
that the corrected plan no longer bounds the same way.

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

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-09-23 13:02:44 -04:00
co-authored by Claude Opus 5
parent e0fd4680f6
commit 36ee71cfe9
9 changed files with 226 additions and 55 deletions
+4 -1
View File
@@ -2,7 +2,10 @@
## Status
Adopted for M3.2. The transfer half of ApplyDevelopment, energetic budgets and
Adopted for M3.2, and revised by [ADR-0032](0032-metabolic-budgets-from-genome.md)
on one point: affordability cannot be settled without composition, so the plan's
material check is a total-mass proposal rather than an authority, and the
environment states what is available per ledger channel instead of as one pool. The transfer half of ApplyDevelopment, energetic budgets and
any coupling to the M2 process fixtures are M3.3. Mutation is M3.4. No gameplay
balance, mortality rule or fitness score is selected.
@@ -53,6 +53,17 @@ release rather than a single requirement. The release is a rounding artifact
bounded by a few femtograms, not excretion, and the invariant is exact: the body
held, plus intake, minus release, is the body reached, on every channel.
Affordability therefore has to be decided here too, which revises ADR-0031.
Net mass is the wrong question: a step whose net growth is one femtogram can
still need a carbon and a nitrogen while freeing one of other, and released other
is neither. Matching totals would let one element silently pay for another. The
environment accordingly carries what is available per ledger channel rather than
as a single pool, since a pool cannot say that carbon is plentiful while nitrogen
is not. `plan_development` keeps a total-mass bound, which is sound because net
never exceeds gross, but it is a proposal and not an authority;
`metabolic_budget` narrows it to the largest step whose own intake fits channel by
channel, and reports the growth that step actually funds.
Reproduction investment is the body scaled by the genome's reproduction fraction,
with its energy priced at the same construction rate as the organism's own tissue:
building offspring tissue costs what building your own does. A genome without the
+20
View File
@@ -533,6 +533,26 @@ release rather than a single requirement: a body growing from 13 to 14 femtogram
acquires one carbon and one nitrogen while freeing one from other. The release is
a rounding artifact bounded by a few femtograms, not excretion.
A follow-up review found the affordability half of the same problem: a transition
could require more of an element than was available, because the check compared
net mass. A step growing a body from 13 to 14 femtograms nets one femtogram but
acquires a carbon and a nitrogen while freeing one of other, and released other
pays for neither. The environment now states availability per ledger channel
rather than as one pool, since a pool cannot say that carbon is plentiful while
nitrogen is not. `plan_development` keeps a total-mass bound, sound because net
never exceeds gross but not an authority, and `metabolic_budget` narrows it to the
largest step whose own intake fits channel by channel and reports the growth that
step funds. That revises ADR-0031 and is recorded there.
The affordability tests place a single femtogram in each channel in turn and
require that no step needing a different element is funded, that nothing is
acquired beyond what is present, and that the mass-only plan would have admitted
the step; a carbon and a nitrogen together then fund it exactly. Across six target
sizes by seven growth fractions by four stock levels, every reported intake is
checked to fit the availability channel by channel and never to exceed the step
the plan proposed. These tests were confirmed to fail with the per-channel check
removed.
The invariant `held + intake - release == reached` is now asserted per channel for
the reviewer's exact case, for the releasing case, across six target sizes by
seven growth fractions by four material budgets, and across a forty-step walk from