#pragma once #include "evo/biology/cellular_tuning.hpp" #include #include #include #include #include #include // Git-managed trial values for the cellular revamp (rules 13, ADR-0179), in their own file // beside the rules-12 tuning file so older images never meet keys they do not know. Same // format and rules: plain `key = value` integer lines, every key required exactly once and // range-checked. Later build phases add feeding, mutation and reproduction keys. namespace evo::biology { inline constexpr std::int64_t cellular_revamp_tuning_version = 1; inline constexpr std::size_t max_cellular_revamp_tuning_bytes = std::size_t{256} * 1'024; struct CellularRevampTuning { std::int64_t version{}; // Body: the share of upkeep no upkeep-efficiency trait reduces. std::int64_t body_essential_upkeep_per_mille{}; // Body: share of reserve matter carried as load on handling and thrust costs. std::int64_t body_reserve_load_per_mille{}; // Energy: picojoules 1,000 fg of each matter channel stand in for (burn efficiency 100). std::int64_t energy_burn_carbon_pj_per_kfg{}, energy_burn_nitrogen_pj_per_kfg{}, energy_burn_phosphorus_pj_per_kfg{}, energy_burn_other_pj_per_kfg{}; // Feeding: per mille of collection lost per membrane point above the founder's 100. std::int64_t feeding_membrane_collection_per_mille_per_point{}; // Predation. std::int64_t predation_engulf_ratio_milli{}, predation_engulf_reserve_percent{}, predation_kill_bubble_per_mille{}; // The spent pool's drip back into the region. std::int64_t spent_drip_interval_ticks{}, spent_drip_bubble_pj{}, spent_drip_bubble_fg{}; auto operator<=>(const CellularRevampTuning&) const = default; }; [[nodiscard]] std::expected parse_cellular_revamp_tuning(std::string_view text); // Canonical text: every key once, in schema order. [[nodiscard]] std::string encode_cellular_revamp_tuning(const CellularRevampTuning& tuning); } // namespace evo::biology