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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user