#pragma once #include "evo/biology/metabolism.hpp" #include "evo/processes/ecosystem.hpp" #include "evo/processes/feeding.hpp" namespace evo::processes { // The first place a genome reaches the M2 fixtures. Opening inventory stays the // caller's: a genome describes what an organism can do, never the resources it // happens to hold, and inventing an opening balance would create matter. [[nodiscard]] std::expected consumer_for(const biology::Genome& genome, biology::GrowthState growth, biology::EnvironmentState environment, accounting::Inventory opening); // The same budget as an episode strategy. A parent reproduces once it holds what // it would invest, so no separate margin is invented. Lifespan stays the // harness's own scheduling constant rather than a trait read from the genome. [[nodiscard]] std::expected strategy_for(const biology::Genome& genome, biology::GrowthState growth, biology::EnvironmentState environment, accounting::Inventory opening, std::uint32_t lifespan); } // namespace evo::processes