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
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:
@@ -22,13 +22,16 @@ struct EnvironmentState {
|
||||
// Development version 1 is defined in ticks of this quantum: its per-tick constants and
|
||||
// outputs, and the genome rates it reads (converted from per second, ADR-0099).
|
||||
inline constexpr std::uint64_t development_v1_tick_microseconds = 50'000;
|
||||
// Development version 2 (ADR-0099, M11.1) is defined per second: its rate constants and
|
||||
// its rate outputs (maintenance, movement, ingestion) are per second.
|
||||
inline constexpr std::uint64_t development_v2_rate_microseconds = 1'000'000;
|
||||
// Chosen constants, reviewable as a unit and selected by the genome's
|
||||
// development version. Declared model parameters, not balance.
|
||||
struct DevelopmentRules {
|
||||
std::uint64_t structure_density; // femtograms per cubic micrometre
|
||||
std::uint64_t membrane_density; // femtograms per cubic micrometre
|
||||
std::uint64_t maintenance_per_kilogram; // picojoules per tick per 1000 fg
|
||||
std::uint64_t membrane_upkeep_per_kilo; // picojoules per tick per 1000 fg
|
||||
std::uint64_t maintenance_per_kilogram; // picojoules per rate period per 1000 fg
|
||||
std::uint64_t membrane_upkeep_per_kilo; // picojoules per rate period per 1000 fg
|
||||
std::uint64_t construction_per_kilogram; // picojoules per 1000 fg built
|
||||
std::uint64_t reference_surface; // square micrometres
|
||||
std::uint32_t reference_temperature; // millikelvin
|
||||
@@ -42,12 +45,15 @@ struct Phenotype {
|
||||
std::uint64_t total_mass{}; // femtograms
|
||||
std::uint32_t extent{}; // micrometres, the cube-model side length
|
||||
std::uint64_t surface{}; // square micrometres
|
||||
std::uint64_t maintenance{}; // picojoules per tick
|
||||
std::uint32_t movement_speed{}; // micrometres per tick; zero without the capability
|
||||
std::uint64_t ingestion_rate{}; // femtograms per tick; zero without the capability
|
||||
std::uint64_t maintenance{}; // picojoules per rate period
|
||||
std::uint32_t movement_speed{}; // micrometres per rate period; zero without the capability
|
||||
std::uint64_t ingestion_rate{}; // femtograms per rate period; zero without the capability
|
||||
std::uint32_t conversion_per_thousand{};
|
||||
// Millikelvin beyond the genome's tolerance. A reported quantity, not a rule.
|
||||
std::uint32_t thermal_shortfall{};
|
||||
// The period the rates above are per: the development version's (50 ms for version
|
||||
// 1, one second for version 2). A process converts with accounting::per_tick.
|
||||
std::uint64_t rate_microseconds{};
|
||||
auto operator<=>(const Phenotype&) const = default;
|
||||
};
|
||||
// A proposal. It reserves nothing, pays for nothing and commits nothing; the
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
#pragma once
|
||||
|
||||
#include "evo/biology/genome.hpp"
|
||||
|
||||
#include <cstdint>
|
||||
#include <expected>
|
||||
|
||||
// The primitive founder (ADR-0098): every new life starts from this same genome, so no
|
||||
// account carries a biological advantage into a new life. Genome schema 2 and development
|
||||
// version 2 (rates per second, ADR-0099). Its parameters are tunable playtest values, not
|
||||
// locked rules: with development version 2 a full-grown founder funds its first bud in
|
||||
// about 5 minutes feeding all of the time, 10 minutes feeding half of it and 15 minutes
|
||||
// feeding a third of it, while moving at full speed throughout (ADR-0098 decision 7).
|
||||
namespace evo::biology {
|
||||
// Per-second rates and sizes of the founder, reviewable as a unit.
|
||||
struct FounderParameters {
|
||||
std::uint32_t energy_conversion; // per thousand
|
||||
std::uint32_t membrane; // micrometres
|
||||
std::uint32_t target_size; // femtograms
|
||||
std::uint32_t movement; // micrometres per second
|
||||
std::uint32_t ingestion; // femtograms per second at the reference surface
|
||||
std::uint32_t reproduction; // per thousand of the body invested in a bud
|
||||
};
|
||||
inline constexpr FounderParameters primitive_founder_parameters{400, 1, 8'000'000,
|
||||
200, 574'000, 500};
|
||||
inline constexpr std::uint32_t primitive_founder_development_version = 2;
|
||||
// The founder genome under a world-scoped identity and its origin event. Fails only on
|
||||
// an invalid identity (zero).
|
||||
[[nodiscard]] std::expected<Genome, GenomeError> primitive_founder(std::uint64_t id,
|
||||
std::uint64_t origin_event);
|
||||
} // namespace evo::biology
|
||||
@@ -3,6 +3,8 @@
|
||||
#include "evo/accounting/ledger.hpp"
|
||||
#include "evo/biology/development.hpp"
|
||||
|
||||
#include <optional>
|
||||
|
||||
namespace evo::biology {
|
||||
// Shares in thousandths over the ledger's C/N/P/other channels, summing to 1000.
|
||||
// The last channel absorbs the rounding remainder, so a split conserves mass.
|
||||
@@ -12,7 +14,7 @@ using Composition = std::array<std::uint16_t, 4>;
|
||||
struct MetabolicRules {
|
||||
Composition structure;
|
||||
Composition membrane;
|
||||
// Picojoules per tick per 1000 femtograms at 1000 micrometres per tick.
|
||||
// Picojoules per rate period per 1000 femtograms at 1000 micrometres per rate period.
|
||||
std::uint64_t movement_per_kilogram;
|
||||
// Picojoules of intake capacity per 1000 femtograms of it.
|
||||
std::uint64_t intake_energy_per_kilogram;
|
||||
@@ -33,12 +35,13 @@ struct ConstructionTransition {
|
||||
// multiplier applied to a total.
|
||||
struct MetabolicBudget {
|
||||
Phenotype phenotype;
|
||||
accounting::Inventory body; // matter only; a body is not energy
|
||||
accounting::Picojoules maintenance; // per tick
|
||||
accounting::Picojoules movement; // per tick at full speed, a capacity
|
||||
accounting::Inventory body; // matter only; a body is not energy
|
||||
// Rates are per phenotype.rate_microseconds (the development version's period).
|
||||
accounting::Picojoules maintenance; // per rate period
|
||||
accounting::Picojoules movement; // per rate period at full speed, a capacity
|
||||
accounting::Picojoules demand; // maintenance plus movement
|
||||
ConstructionTransition construction; // what the next growth step would move
|
||||
accounting::Inventory intake_limit; // per tick
|
||||
accounting::Inventory intake_limit; // per rate period
|
||||
// Zero without the reproduction capability, rather than a default.
|
||||
accounting::Inventory reproduction_investment;
|
||||
std::uint16_t assimilation_per_thousand{};
|
||||
@@ -50,4 +53,11 @@ metabolic_rules_for(std::uint32_t development_version);
|
||||
// quantities. The genome record itself stays free of accounting types.
|
||||
[[nodiscard]] std::expected<MetabolicBudget, DevelopmentError>
|
||||
metabolic_budget(const Genome& genome, GrowthState growth, EnvironmentState environment);
|
||||
// An analysis, not a rule (ADR-0098 decision 7): whole seconds until feeding funds the
|
||||
// budget's reproduction investment, channel by channel and in energy, when the organism
|
||||
// takes in its full intake limit for `feeding_per_thousand` of the time and pays its
|
||||
// whole demand (maintenance and full-speed movement) all of the time. Nothing when it
|
||||
// never would: no investment, a channel it never takes in, or no energy surplus.
|
||||
[[nodiscard]] std::optional<std::uint64_t>
|
||||
bud_funding_seconds(const MetabolicBudget& budget, std::uint32_t feeding_per_thousand) noexcept;
|
||||
} // namespace evo::biology
|
||||
|
||||
Reference in New Issue
Block a user