Carry bud actions and the v5 bundle through protocol and persistence
Foundation / checks (ecs) (push) Successful in 2m30s
Foundation / checks (deploy) (push) Successful in 4m0s
Foundation / checks (tsan) (push) Successful in 10m37s
Foundation / checks (client) (push) Failing after 13m56s
Foundation / checks (network) (push) Successful in 19m9s
Foundation / checks (checks) (push) Successful in 42m54s
Foundation / checks (postgres) (push) Successful in 44m9s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
Foundation / checks (ecs) (push) Successful in 2m30s
Foundation / checks (deploy) (push) Successful in 4m0s
Foundation / checks (tsan) (push) Successful in 10m37s
Foundation / checks (client) (push) Failing after 13m56s
Foundation / checks (network) (push) Successful in 19m9s
Foundation / checks (checks) (push) Successful in 42m54s
Foundation / checks (postgres) (push) Successful in 44m9s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
M11.5c (ADR-0125): v10 cellular actions, the canonical input and the trace carry target kind 3 (bud), matched to durable actions; below rules 4 the owner ignores it. The v5 version bundle is admitted in C++ and by schema v36, which also admits kind 3 in SQL action inputs; the provisioner offers cellular-v3. A PostgreSQL test publishes a bud from a fed founder and recovers it after a host restart. The publication tests now use commit ids no other suite produces. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -60,12 +60,12 @@ class RegionSessionClient {
|
||||
[[nodiscard]] bool send_action(std::uint64_t action_id, network::ActionKind kind,
|
||||
std::uint64_t tick);
|
||||
// Protocol v7-v10. Reuse the exact same fields and action id after reconnect. `engulf`
|
||||
// (ADR-0124) needs a v10 session and no intake target.
|
||||
// and `bud` (ADR-0124/0125) are exclusive and need a v10 session and no intake target.
|
||||
[[nodiscard]] bool
|
||||
send_cellular_action(std::uint64_t action_id, std::uint64_t tick, std::int16_t move_x,
|
||||
std::int16_t move_y,
|
||||
std::optional<std::pair<std::uint32_t, std::uint32_t>> intake_target = {},
|
||||
bool engulf = false);
|
||||
bool engulf = false, bool bud = false);
|
||||
// Protocol v10 (ADR-0121): choose one candidate of the life's outstanding offer. The
|
||||
// receipt names the tick it publishes with; the outcome follows that commit. `tick` is
|
||||
// the client's latest simulated tick (after the offer); the server schedules the next.
|
||||
|
||||
@@ -174,6 +174,7 @@ struct CellularActionInput {
|
||||
bool has_intake_target{};
|
||||
std::uint32_t intake_x_um{}, intake_y_um{};
|
||||
bool engulf{};
|
||||
bool bud{}; // Kind 3 (ADR-0125): fund one wildlife bud, zero coordinates, v10 only.
|
||||
friend bool operator==(const CellularActionInput&, const CellularActionInput&) = default;
|
||||
};
|
||||
inline constexpr std::size_t cellular_action_input_bytes = 24;
|
||||
@@ -186,6 +187,8 @@ struct CellularAction {
|
||||
std::uint32_t intake_x_um{}, intake_y_um{};
|
||||
// v10 (ADR-0124): engulf a smaller contacted cell; exclusive with an intake target.
|
||||
bool engulf{};
|
||||
// v10 (ADR-0125): fund one wildlife bud; exclusive with intake and engulfment.
|
||||
bool bud{};
|
||||
friend bool operator==(const CellularAction&, const CellularAction&) = default;
|
||||
};
|
||||
// v10 reliable choice. The server binds these values to the authenticated account and
|
||||
|
||||
@@ -55,9 +55,11 @@ inline constexpr CellularVersionBundle cellular_v2_versions{2, 2, 1, 1, 1, 2, 1,
|
||||
inline constexpr CellularVersionBundle cellular_v3_versions{2, 3, 1, 1, 1, 2, 1, 2, 1};
|
||||
// ADR-0124: rules 3 (engulfment, detritus) and owner envelope 4 (corpse causes).
|
||||
inline constexpr CellularVersionBundle cellular_v4_versions{3, 4, 1, 1, 1, 2, 1, 2, 1};
|
||||
// ADR-0125: rules 4 (budding wildlife) and owner envelope 5 (bud sequence, parents).
|
||||
inline constexpr CellularVersionBundle cellular_v5_versions{4, 5, 1, 1, 1, 2, 1, 2, 1};
|
||||
// Bundles with genome revisions: the revision history profile and format-3 traces.
|
||||
[[nodiscard]] constexpr bool cellular_revision_bundle(const CellularVersionBundle& b) noexcept {
|
||||
return b == cellular_v3_versions || b == cellular_v4_versions;
|
||||
return b == cellular_v3_versions || b == cellular_v4_versions || b == cellular_v5_versions;
|
||||
}
|
||||
|
||||
// Batch evidence bound by manifest v2 (ADR-0063); all zero at genesis.
|
||||
|
||||
@@ -26,8 +26,8 @@ inline constexpr std::uint32_t cellular_lives_engulf_rules = 3;
|
||||
// life; rules 4 add funded budding of unowned wildlife on top of rules 3.
|
||||
inline constexpr std::uint32_t cellular_lives_bud_format = 5;
|
||||
inline constexpr std::uint32_t cellular_lives_bud_rules = 4;
|
||||
// A bud's life, organism and event identity: 2^63 + region * 2^32 + sequence. The world
|
||||
// allocator stays at or below 2^63 (schema v36), so the namespaces never meet.
|
||||
// A bud's life, organism and event identity: 2^63 + region * 2^32 + sequence. A rules-4
|
||||
// owner refuses an allocated identity at or above 2^63, so the namespaces never meet.
|
||||
inline constexpr std::uint64_t cellular_bud_namespace = std::uint64_t{1} << 63U;
|
||||
inline constexpr std::uint64_t cellular_bud_max_region = (std::uint64_t{1} << 31U) - 1;
|
||||
[[nodiscard]] constexpr std::uint64_t cellular_bud_identity(std::uint64_t region,
|
||||
|
||||
Reference in New Issue
Block a user