feat(biology): genome schema 6 movement arrangement and derived handling
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (client) (push) Successful in 4s
Foundation / checks (ecs) (push) Successful in 4s
Foundation / checks (network) (push) Successful in 4s
Foundation / checks (postgres) (push) Successful in 4s
Foundation / checks (tsan) (push) Successful in 5s
Foundation / checks (deploy) (push) Successful in 4m26s
Foundation / postgres-tools (push) Successful in 19s
Foundation / image (push) Successful in 3m57s
Foundation / server-image (push) Successful in 4m2s
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (client) (push) Successful in 4s
Foundation / checks (ecs) (push) Successful in 4s
Foundation / checks (network) (push) Successful in 4s
Foundation / checks (postgres) (push) Successful in 4s
Foundation / checks (tsan) (push) Successful in 5s
Foundation / checks (deploy) (push) Successful in 4m26s
Foundation / postgres-tools (push) Successful in 19s
Foundation / image (push) Successful in 3m57s
Foundation / server-image (push) Successful in 4m2s
Schema 6 genomes carry the body's movement arrangement for mutations 001-010 as reference-point indices (100 = founder): output, efficiency, burst, steering, streamlining, braking, anchor, coasting and colony drive. It is encoded after the capability records and covered by the digest; older schemas refuse it, so their capability tables and mutation catalogs are unchanged. Development version 6 and founder 5 serve rules 12. derive_cellular_handling scales the tuned founder handling by the arrangement: output scales thrust, braking reverse thrust, steering turning; streamlining lowers forward drag and coasting both drags. Full-output costs follow the metabolic budget's movement cost times output over efficiency. Shed output or a missing movement capability leaves only passive drift. Refreshes the DEV session window. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "evo/biology/cellular_kinematics.hpp"
|
||||
#include "evo/biology/metabolism.hpp"
|
||||
|
||||
#include <compare>
|
||||
#include <cstddef>
|
||||
@@ -78,4 +79,15 @@ parse_cellular_tuning(std::string_view text);
|
||||
[[nodiscard]] CellularHandling founder_cellular_handling(const CellularTuning& tuning,
|
||||
accounting::Picojoules thrust_cost,
|
||||
accounting::Picojoules reverse_cost);
|
||||
|
||||
enum class CellularHandlingError : std::uint8_t { unsupported_genome, unsupported_rate, overflow };
|
||||
// Development 6: an organism's handling from its movement arrangement, scaled from the
|
||||
// founder's tuned handling (index 100 = founder). Output scales thrust, braking scales
|
||||
// reverse thrust, steering scales turning; streamlining lowers forward drag only and
|
||||
// coasting lowers both, so a coasting body also tops out faster. Full-output costs per tick
|
||||
// are the budget's full-speed movement cost times output (or braking) over efficiency.
|
||||
// Without the movement capability or with shed output, the body cannot thrust or turn.
|
||||
[[nodiscard]] std::expected<CellularHandling, CellularHandlingError>
|
||||
derive_cellular_handling(const Genome& genome, const MetabolicBudget& budget,
|
||||
const CellularTuning& tuning);
|
||||
} // namespace evo::biology
|
||||
|
||||
Reference in New Issue
Block a user