feat(lifecycle): rules 12 liquid owner on format 10 with brake traces
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (client) (push) Successful in 5s
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 4m23s
Foundation / postgres-tools (push) Successful in 29s
Foundation / server-image (push) Successful in 4m10s
Foundation / image (push) Successful in 4m31s
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (client) (push) Successful in 5s
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 4m23s
Foundation / postgres-tools (push) Successful in 29s
Foundation / server-image (push) Successful in 4m10s
Foundation / image (push) Successful in 4m31s
The cellular owner gains rules 12 on owner format 10: an explicit no-tick format-9/rules-11 upgrade declares the region's liquid rules (current configuration, founder handling and deposit motion, from the tuning file and a seed when the region opens), converts the habitat to format 3 and starts lives at rest. Founders born afterwards are founder 5 (genome schema 6). Each tick derives every life's handling from its genome and the declared founder handling, samples the current at its footprint and steps the shared liquid motion; afterwards bubbles move with the current and the drift moving cells induce, and touching bubbles merge. Format 10 persists the rules and each life's motion state; restore regenerates the identical current field. Brake is a new step intent, valid only under rules 12, carried in trace 4 as flag bit 1 (SQL never parses that byte; player action records keep it zero). Tests cover the upgrade, exact restore, swimming and braking, moving food with fixed pools, restore continuing a live run, and brake traces replaying exactly. Genomes from before schema 6 handle as founders. Refreshes the DEV session window. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -80,14 +80,19 @@ parse_cellular_tuning(std::string_view text);
|
||||
accounting::Picojoules thrust_cost,
|
||||
accounting::Picojoules reverse_cost);
|
||||
|
||||
enum class CellularHandlingError : std::uint8_t { unsupported_genome, unsupported_rate, overflow };
|
||||
enum class CellularHandlingError : std::uint8_t { 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.
|
||||
// A genome from before schema 6 has no arrangement and handles as the founder does.
|
||||
[[nodiscard]] std::expected<CellularHandling, CellularHandlingError>
|
||||
derive_cellular_handling(const Genome& genome, const MetabolicBudget& budget,
|
||||
const CellularTuning& tuning);
|
||||
// The same from the founder's per-tick handling directly; its costs are ignored.
|
||||
[[nodiscard]] std::expected<CellularHandling, CellularHandlingError>
|
||||
derive_cellular_handling(const Genome& genome, const MetabolicBudget& budget,
|
||||
const CellularHandling& founder);
|
||||
} // namespace evo::biology
|
||||
|
||||
Reference in New Issue
Block a user