Keep the phenotype wire-stable: rate period on the budget, not the phenotype
Foundation / checks (deploy) (push) Successful in 3m28s
Foundation / checks (ecs) (push) Successful in 1m55s
Foundation / checks (client) (push) Successful in 12m43s
Foundation / checks (network) (push) Successful in 13m32s
Foundation / checks (tsan) (push) Successful in 7m48s
Foundation / checks (checks) (push) Successful in 32m55s
Foundation / checks (postgres) (push) Successful in 46m26s
Foundation / postgres-tools (push) Successful in 1m41s
Foundation / server-image (push) Successful in 4m13s
Foundation / image (push) Successful in 2m35s

CI run 136 failed network: Phenotype::rate_microseconds (added with development version
2) is not carried by either session protocol, so the organism view no longer re-encoded
canonically. The phenotype keeps its replicated shape; the period follows from the
development version (development_rate_microseconds) and MetabolicBudget carries it.
No protocol change; first-bud times unchanged. Refresh the dev session window.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-09 16:47:23 -04:00
co-authored by Claude Opus 5.5
parent 51cf23dbc9
commit 93e1ab08ae
9 changed files with 48 additions and 21 deletions
+2 -1
View File
@@ -130,6 +130,7 @@ metabolic_budget(const Genome& genome, GrowthState growth, EnvironmentState envi
}
MetabolicBudget budget;
budget.phenotype = *phenotype;
budget.rate_microseconds = development_rate_microseconds(genome.development_version());
budget.assimilation_per_thousand =
static_cast<std::uint16_t>(phenotype->conversion_per_thousand);
budget.body = compose(phenotype->structural_mass, rules->structure);
@@ -212,7 +213,7 @@ metabolic_budget(const Genome& genome, GrowthState growth, EnvironmentState envi
std::optional<std::uint64_t> bud_funding_seconds(const MetabolicBudget& budget,
std::uint32_t feeding_per_thousand) noexcept {
const auto period = budget.phenotype.rate_microseconds;
const auto period = budget.rate_microseconds;
if (period == 0 || accounting::microseconds_per_second % period != 0 ||
feeding_per_thousand == 0 || feeding_per_thousand > thousand ||
matter_total(budget.reproduction_investment) == 0)