feat(biology): evolve photosynthetic producers that capture light
Foundation / checks (ecs) (push) Successful in 2m25s
Foundation / checks (deploy) (push) Successful in 5m15s
Foundation / checks (network) (push) Successful in 21m56s
Foundation / checks (client) (push) Successful in 22m54s
Foundation / checks (tsan) (push) Successful in 47m4s
Foundation / checks (postgres) (push) Successful in 1h15m49s
Foundation / checks (checks) (push) Failing after 1h30m4s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
Foundation / checks (ecs) (push) Successful in 2m25s
Foundation / checks (deploy) (push) Successful in 5m15s
Foundation / checks (network) (push) Successful in 21m56s
Foundation / checks (client) (push) Successful in 22m54s
Foundation / checks (tsan) (push) Successful in 47m4s
Foundation / checks (postgres) (push) Successful in 1h15m49s
Foundation / checks (checks) (push) Failing after 1h30m4s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
ADR-0175 implements ADR-0136 step C with trial costs to be balanced after playtesting. Genome schema 5 adds a photosynthesis efficiency (empty in schemas 1-4, so earlier offers and draws are unchanged; mutation operators 29-32 are appended). Development version 5 builds the organelles as internal membrane (p/4 of structure, upkept twice) and slows movement by p/2 per thousand. Founder 4 and cellular rules 11 let lineages earn the capability as an offspring plan that children express. Owner format 9 declares the region's light. Inside each tick's detached candidate, active unfrozen producers capture cross-section x irradiance x efficiency (a quarter while moving), credited to the reserve and boundary inflow together and replayed from recorded intentions. Well-lit wildlife producers hold still. The joint owner keeps infall, water and radiation and nests a rules-11 owner unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -17,9 +17,10 @@ enum class Capability : std::uint8_t {
|
||||
ingestion,
|
||||
reproduction,
|
||||
target_size,
|
||||
thermal_tolerance
|
||||
thermal_tolerance,
|
||||
photosynthesis // Schema 5 (ADR-0175); unrepresentable in earlier schemas.
|
||||
};
|
||||
inline constexpr std::size_t capability_count = 7;
|
||||
inline constexpr std::size_t capability_count = 8;
|
||||
// The unit is a schema fact per kind and is never encoded, so no record can
|
||||
// contradict its own units.
|
||||
enum class Unit : std::uint8_t {
|
||||
@@ -55,7 +56,9 @@ inline constexpr std::array<CapabilitySpec, capability_count> capability_schema_
|
||||
CapabilitySpec{Unit::per_thousand, 1, 1000, false,
|
||||
capability_bit(Capability::energy_conversion)},
|
||||
CapabilitySpec{Unit::femtograms, 1, 1'000'000'000, true, 0},
|
||||
CapabilitySpec{Unit::millikelvin, 1, 100'000, false, 0}};
|
||||
CapabilitySpec{Unit::millikelvin, 1, 100'000, false, 0},
|
||||
// An empty range: no schema-1 record can carry photosynthesis.
|
||||
CapabilitySpec{Unit::per_thousand, 1, 0, false, 0}};
|
||||
// Schema 2 (ADR-0099): the same capabilities with rates per second. Each rate range is
|
||||
// schema 1's times 20, so every schema 1 value has an exact schema 2 equivalent.
|
||||
inline constexpr std::array<CapabilitySpec, capability_count> capability_schema_v2{
|
||||
@@ -68,7 +71,22 @@ inline constexpr std::array<CapabilitySpec, capability_count> capability_schema_
|
||||
CapabilitySpec{Unit::per_thousand, 1, 1000, false,
|
||||
capability_bit(Capability::energy_conversion)},
|
||||
CapabilitySpec{Unit::femtograms, 1, 1'000'000'000, true, 0},
|
||||
CapabilitySpec{Unit::millikelvin, 1, 100'000, false, 0}};
|
||||
CapabilitySpec{Unit::millikelvin, 1, 100'000, false, 0},
|
||||
CapabilitySpec{Unit::per_thousand, 1, 0, false, 0}}; // Not in schemas 2-4.
|
||||
// Schema 5 (ADR-0175): schema 2 plus photosynthesis, an efficiency per thousand that
|
||||
// needs a membrane to hold its organelles.
|
||||
inline constexpr std::array<CapabilitySpec, capability_count> capability_schema_v5{
|
||||
CapabilitySpec{Unit::per_thousand, 1, 1000, true, 0},
|
||||
CapabilitySpec{Unit::micrometres, 1, 10'000, true, 0},
|
||||
CapabilitySpec{Unit::micrometres_per_second, 0, 2'000'000, false,
|
||||
capability_bit(Capability::membrane)},
|
||||
CapabilitySpec{Unit::femtograms_per_second, 0, 20'000'000, false,
|
||||
capability_bit(Capability::membrane)},
|
||||
CapabilitySpec{Unit::per_thousand, 1, 1000, false,
|
||||
capability_bit(Capability::energy_conversion)},
|
||||
CapabilitySpec{Unit::femtograms, 1, 1'000'000'000, true, 0},
|
||||
CapabilitySpec{Unit::millikelvin, 1, 100'000, false, 0},
|
||||
CapabilitySpec{Unit::per_thousand, 1, 1000, false, capability_bit(Capability::membrane)}};
|
||||
// The current schema's table.
|
||||
inline constexpr const auto& capability_schema = capability_schema_v2;
|
||||
// Schema 1 rates are per tick of this quantum.
|
||||
@@ -114,15 +132,18 @@ inline constexpr std::uint32_t genome_schema_v3 = 3;
|
||||
// Schema 4 (rules 7, ADR-0137): schema 2's table and units; a mutation step is a tenth of
|
||||
// the current value (at least 1), and an acquired capability starts at the founder's value.
|
||||
inline constexpr std::uint32_t genome_schema_v4 = 4;
|
||||
// Schema 5 (rules 11, ADR-0175): schema 4's steps with the photosynthesis capability.
|
||||
inline constexpr std::uint32_t genome_schema_v5 = 5;
|
||||
// The newest schema. Older records stay valid and are never rewritten (ADR-0099).
|
||||
inline constexpr std::uint32_t genome_schema_version = genome_schema_v4;
|
||||
// The capability table of a supported schema (1 to 4); nullptr otherwise.
|
||||
inline constexpr std::uint32_t genome_schema_version = genome_schema_v5;
|
||||
// The capability table of a supported schema (1 to 5); nullptr otherwise.
|
||||
[[nodiscard]] constexpr const std::array<CapabilitySpec, capability_count>*
|
||||
capability_schema_for(std::uint32_t schema) noexcept {
|
||||
return schema == genome_schema_v1 ? &capability_schema_v1
|
||||
: schema == genome_schema_v2 || schema == genome_schema_v3 || schema == genome_schema_v4
|
||||
? &capability_schema_v2
|
||||
: nullptr;
|
||||
: schema == genome_schema_v5 ? &capability_schema_v5
|
||||
: nullptr;
|
||||
}
|
||||
inline constexpr std::size_t max_parents = 2;
|
||||
inline constexpr std::size_t max_genome_bytes = 256;
|
||||
|
||||
Reference in New Issue
Block a user