Show what a bud costs (ADR-0129 amendment)
Foundation / checks (ecs) (push) Successful in 2m20s
Foundation / checks (deploy) (push) Successful in 4m4s
Foundation / checks (tsan) (push) Successful in 9m59s
Foundation / checks (client) (push) Successful in 19m19s
Foundation / checks (network) (push) Successful in 19m24s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (postgres) (push) Canceled after 32m13s
Foundation / checks (checks) (push) Canceled after 32m19s

The v10 cellular perception carries the bud cost after the diagnostics block: the
energy (construction plus the bud's provision) and matter per channel one bud takes
from a fully grown cell's reserve. biology::bud_cost reads it from fund_bud itself,
so the shown cost is exactly the charge; the server caches it per genome. The
client shows it and names the channels the reserve is short on. v10 clients must
be rebuilt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-15 19:11:28 -04:00
co-authored by Claude Opus 5.5
parent a97f0c3fea
commit d98d71e7c0
13 changed files with 225 additions and 13 deletions
+15
View File
@@ -7675,3 +7675,18 @@ Tests: `client-auth` covers profile validation, the credential names, the refusa
of an invalid profile, and `prompt=login` in the authorization URL. Executed
locally: WSL clang-19 `client-probe` with clang-tidy 14/14 plus the Xvfb X11
lifecycle check; MSVC `client-package` 18/18; clang-format 19.
## 2026-10-15 — bud cost in v10 diagnostics (CI pending)
ADR-0129 amendment: the v10 cellular perception carries what one bud takes from a
fully grown cell's reserve (energy and matter per channel), from
`biology::bud_cost`, which reads `fund_bud`'s own charge. The client shows it and
names the channels the reserve is short on.
Tests: `budding_tests` checks that a reserve equal to the shown cost buds and one
unit short on any channel refuses, and that a non-reproducing genome has no cost.
`cellular_intent_protocol_tests` checks the 40-byte v10 extension: offsets, round
trip with and without tick effects, v9 refusal, and refusal of a cleared view with
a cost. Executed locally: those unit tests, the WSL PostgreSQL suite, clang-tidy-19
on the changed sources, WSL client 14/14 with clang-tidy plus the Xvfb check, MSVC
`client-package` 18/18, and clang-format 19.