M11.1: development version 2 and the primitive founder (first bud in 5-15 min)
Foundation / checks (deploy) (push) Successful in 3m28s
Foundation / checks (ecs) (push) Successful in 1m53s
Foundation / checks (client) (push) Successful in 12m36s
Foundation / checks (network) (push) Failing after 10m52s
Foundation / checks (tsan) (push) Successful in 7m50s
Foundation / checks (checks) (push) Successful in 33m6s
Foundation / checks (postgres) (push) Successful in 46m9s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped

Development version 2 is defined per second; phenotype/budget rates carry their period
(rate_microseconds: 50 ms for v1, 1 s for v2) and the M2 fixture adapters accept only
v1. Tunable v2 constants (maintenance 10, membrane upkeep 15, movement 50 pJ/s per
1000 fg) and the primitive founder (schema 2: 1 um membrane, 8e6 fg, 200 um/s,
574,000 fg/s ingestion, 500 per-thousand bud) give a first bud in 300/600/901 s when
feeding 100/50/33 % of the time at full-speed movement (bud_funding_seconds; never at
10 %), the maintainer's 5-15 minute target. Tests pin the range; v1 is unchanged.
11.1 complete. Refresh the dev session window.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-09 15:36:02 -04:00
co-authored by Claude Opus 5.5
parent 4319da2750
commit 51cf23dbc9
14 changed files with 249 additions and 28 deletions
+17 -7
View File
@@ -55,10 +55,16 @@ std::uint64_t matter_total(const accounting::Inventory& inventory) noexcept {
} // namespace
std::expected<DevelopmentRules, DevelopmentError> rules_for(std::uint32_t development_version) {
if (development_version != 1) {
return std::unexpected{DevelopmentError::unsupported_rules};
if (development_version == 1) {
return DevelopmentRules{1000, 1200, 2, 3, 40, 60'000, 293'150, 50};
}
return DevelopmentRules{1000, 1200, 2, 3, 40, 60'000, 293'150, 50};
// Version 2 (ADR-0099; tunable, ADR-0098 decision 7): rates per second. Maintenance
// and membrane upkeep are a quarter of version 1's per-second equivalent (40, 60), so
// a primitive cell can fund its first bud within a session of feeding.
if (development_version == 2) {
return DevelopmentRules{1000, 1200, 10, 15, 40, 60'000, 293'150, 50};
}
return std::unexpected{DevelopmentError::unsupported_rules};
}
std::expected<Phenotype, DevelopmentError>
@@ -98,10 +104,14 @@ derive_phenotype(const Genome& genome, GrowthState growth, EnvironmentState envi
phenotype.conversion_per_thousand =
static_cast<std::uint32_t>(*genome.parameter(Capability::energy_conversion));
// A capability the genome does not carry yields nothing, whatever the size.
// Development version 1 is defined in 50 ms ticks: genome rates (per second) enter it
// at that quantum, rounded down as capacities (ADR-0099; exact for schema 1 records).
const auto rate_per_tick = [](std::uint64_t per_second) {
return accounting::per_tick(per_second, development_v1_tick_microseconds,
// Version 1 is defined in 50 ms ticks: genome rates (per second) enter it at that
// quantum, rounded down as capacities (ADR-0099; exact for schema 1 records).
// Version 2 is defined per second and reads them as they are.
const bool v1 = genome.development_version() == 1;
phenotype.rate_microseconds =
v1 ? development_v1_tick_microseconds : development_v2_rate_microseconds;
const auto rate_per_tick = [&](std::uint64_t per_second) {
return accounting::per_tick(per_second, phenotype.rate_microseconds,
accounting::Rounding::down);
};
if (genome.carries(Capability::movement)) {