Show what a mutation costs and why an engulf failed
Foundation / checks (ecs) (push) Successful in 2m24s
Foundation / checks (deploy) (push) Successful in 4m7s
Foundation / checks (tsan) (push) Successful in 9m49s
Foundation / checks (client) (push) Successful in 17m12s
Foundation / checks (network) (push) Successful in 19m34s
Foundation / checks (checks) (push) Successful in 43m5s
Foundation / checks (postgres) (push) Successful in 44m57s
Foundation / server-image (push) Successful in 31s
Foundation / postgres-tools (push) Successful in 1m13s
Foundation / image (push) Successful in 3m24s
Foundation / checks (ecs) (push) Successful in 2m24s
Foundation / checks (deploy) (push) Successful in 4m7s
Foundation / checks (tsan) (push) Successful in 9m49s
Foundation / checks (client) (push) Successful in 17m12s
Foundation / checks (network) (push) Successful in 19m34s
Foundation / checks (checks) (push) Successful in 43m5s
Foundation / checks (postgres) (push) Successful in 44m57s
Foundation / server-image (push) Successful in 31s
Foundation / postgres-tools (push) Successful in 1m13s
Foundation / image (push) Successful in 3m24s
After the first M11.9 playtest (ADR-0129 amendment): each offered candidate now carries its funded cost to the cell, construction energy and matter per channel, so the client can grey out what the reserve cannot pay; a candidate is affordable by that cost exactly when the owner would fund it. A failed engulf now reports no contact, prey too large, or membrane too thick. The v10 candidate record grows to 64 bytes, so v10 clients must be rebuilt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -40,8 +40,12 @@ struct CellularLifeStepInput {
|
||||
enum class CellularEngulfStatus : std::uint8_t {
|
||||
not_requested,
|
||||
engulfed, // Took the reported prey.
|
||||
no_eligible_prey, // Nothing in contact was small enough.
|
||||
unsupported // Rules 2 region: the intent had no effect.
|
||||
no_eligible_prey, // Nothing in contact was small enough (no longer reported).
|
||||
unsupported, // Rules 2 region: the intent had no effect.
|
||||
// Why nothing was taken (reporting only; who is engulfed is unchanged):
|
||||
no_contact, // No other cell touched it.
|
||||
prey_too_large, // Touching cells were too large even with the thinnest membrane.
|
||||
membrane_too_thick // A touching cell was small enough, but its membrane defended it.
|
||||
};
|
||||
struct CellularLifeStepResult {
|
||||
std::uint64_t life_id{};
|
||||
|
||||
@@ -209,6 +209,10 @@ struct CellularOfferedCandidate {
|
||||
std::uint8_t capability{}, effect{}; // biology::Capability, biology::MutationEffect.
|
||||
std::uint32_t parameter{}; // The successor's value; zero when shed.
|
||||
std::uint64_t maintenance{}, total_mass{};
|
||||
// What choosing it costs this cell from its reserve (ADR-0129): construction energy and
|
||||
// the matter each channel must add. Compare with the reserve in the diagnostics.
|
||||
std::uint64_t cost_energy_pj{};
|
||||
std::array<std::uint64_t, 4> cost_matter_fg{};
|
||||
friend bool operator==(const CellularOfferedCandidate&,
|
||||
const CellularOfferedCandidate&) = default;
|
||||
};
|
||||
@@ -253,8 +257,11 @@ enum class CellularEngulfResult : std::uint8_t {
|
||||
not_reported,
|
||||
not_requested,
|
||||
engulfed,
|
||||
no_eligible_prey,
|
||||
unsupported
|
||||
no_eligible_prey, // No longer sent: one of the three reasons below is.
|
||||
unsupported,
|
||||
no_contact, // No other cell touched it.
|
||||
prey_too_large, // Touching cells were too large even with the thinnest membrane.
|
||||
membrane_too_thick // A touching cell was small enough, but its membrane defended it.
|
||||
};
|
||||
enum class CellularBudOutcome : std::uint8_t {
|
||||
not_reported,
|
||||
|
||||
@@ -69,9 +69,10 @@ struct CellularMutationReply {
|
||||
[[nodiscard]] network::AdmitStatus admit_status(CellularMutationAdmission admission) noexcept;
|
||||
[[nodiscard]] network::ActionOutcome action_outcome(const FinalCellularMutation& mutation) noexcept;
|
||||
// The owner's view of a life's outstanding offer at `tick` (11.4d): candidates in their
|
||||
// stable operator order; no offer gives an empty view that clears the client's.
|
||||
[[nodiscard]] network::CellularMutationOffer offer_view(const CellularOwnedLife& life,
|
||||
std::uint64_t tick);
|
||||
// stable operator order, each with its cost to this cell from its reserve (ADR-0129); no offer
|
||||
// gives an empty view that clears the client's.
|
||||
[[nodiscard]] network::CellularMutationOffer
|
||||
offer_view(const CellularLives& state, const CellularOwnedLife& life, std::uint64_t tick);
|
||||
|
||||
// Single-writer profile-4 authority. The caller supplies a complete bounded trace;
|
||||
// the host replays it from its recovered state and advances only on a confirmed head.
|
||||
|
||||
Reference in New Issue
Block a user