feat(lifecycle): add opt-in funded cellular maturation
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m25s
Foundation / checks (network) (push) Successful in 21m0s
Foundation / checks (client) (push) Successful in 22m13s
Foundation / checks (tsan) (push) Successful in 26m35s
Foundation / checks (postgres) (push) Successful in 1h1m27s
Foundation / checks (checks) (push) Successful in 1h14m29s
Foundation / postgres-tools (push) Successful in 1m19s
Foundation / server-image (push) Successful in 3m46s
Foundation / image (push) Successful in 4m57s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m25s
Foundation / checks (network) (push) Successful in 21m0s
Foundation / checks (client) (push) Successful in 22m13s
Foundation / checks (tsan) (push) Successful in 26m35s
Foundation / checks (postgres) (push) Successful in 1h1m27s
Foundation / checks (checks) (push) Successful in 1h14m29s
Foundation / postgres-tools (push) Successful in 1m19s
Foundation / server-image (push) Successful in 3m46s
Foundation / image (push) Successful in 4m57s
This commit is contained in:
@@ -55,8 +55,11 @@ struct MetabolicBudget {
|
||||
metabolic_rules_for(std::uint32_t development_version);
|
||||
// The single place the genome's description of capability becomes ledger
|
||||
// quantities. The genome record itself stays free of accounting types.
|
||||
// max_growth_per_thousand caps this proposal, not a time rate; the caller owns
|
||||
// its versioned cadence. The default preserves earlier budget results exactly.
|
||||
[[nodiscard]] std::expected<MetabolicBudget, DevelopmentError>
|
||||
metabolic_budget(const Genome& genome, GrowthState growth, EnvironmentState environment);
|
||||
metabolic_budget(const Genome& genome, GrowthState growth, EnvironmentState environment,
|
||||
std::uint32_t max_growth_per_thousand = 1000);
|
||||
// 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
|
||||
|
||||
@@ -88,4 +88,11 @@ select_mutation(const Genome& genome, const MutationContext& context, const Muta
|
||||
fund_mutation(const Genome& genome, const MutationContext& context, const MutationOffer& offered,
|
||||
std::uint16_t chosen, std::uint64_t successor_id, std::uint64_t origin_event,
|
||||
const accounting::Inventory& reserve);
|
||||
// ADR-0157: preserve and validate the original draw, but fund its selected genome
|
||||
// at the organism's current growth. No redraw or reset to the offer's old body.
|
||||
[[nodiscard]] std::expected<MutationTransition, MutationError>
|
||||
fund_mutation_at_growth(const Genome& genome, const MutationContext& context,
|
||||
const MutationOffer& offered, std::uint16_t chosen,
|
||||
std::uint64_t successor_id, std::uint64_t origin_event,
|
||||
const accounting::Inventory& reserve, GrowthState current_growth);
|
||||
} // namespace evo::biology
|
||||
|
||||
Reference in New Issue
Block a user