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:
@@ -238,8 +238,8 @@ validate_state(std::uint64_t world, std::uint64_t region, std::uint64_t frame,
|
||||
identity - first < next_bud_sequence - 1;
|
||||
};
|
||||
const auto lineage_valid = [&](std::uint64_t life_id, std::uint64_t parent) noexcept {
|
||||
if (parent == 0)
|
||||
return life_id < cellular_bud_namespace;
|
||||
if (parent == 0) // Rules 4 keep allocated identities below the bud namespace.
|
||||
return !bud_rules || life_id < cellular_bud_namespace;
|
||||
return bud_identity(life_id) && parent != life_id;
|
||||
};
|
||||
const auto& map = habitat.config();
|
||||
@@ -1142,7 +1142,8 @@ CellularLives::advance_tick_with_mutations(std::span<const CellularLifeIntent> i
|
||||
const bool bud_rules = state_->rules_version == cellular_lives_bud_rules;
|
||||
for (const auto& ordered_intent : ordered) {
|
||||
const auto& intent = ordered_intent.intent;
|
||||
if (intent.bud && (!bud_rules || intent.intake_target || intent.engulf))
|
||||
// Below rules 4 a bud is ignored, as engulfment is below rules 3 (ADR-0124/0125).
|
||||
if (intent.bud && (intent.intake_target || intent.engulf))
|
||||
return std::unexpected{CellularLivesError::invalid_intents};
|
||||
}
|
||||
for (std::size_t i = 0; i < selections.size(); ++i) {
|
||||
@@ -1328,7 +1329,7 @@ CellularLives::advance_tick_with_mutations(std::span<const CellularLifeIntent> i
|
||||
std::vector<CellularBudExecution> bud_results;
|
||||
auto next_bud_sequence = state_->next_bud_sequence;
|
||||
for (const auto& request : ordered) {
|
||||
if (!request.intent.bud)
|
||||
if (!bud_rules || !request.intent.bud)
|
||||
continue;
|
||||
const auto parent = std::ranges::lower_bound(
|
||||
next_lives, request.life_id, {},
|
||||
|
||||
Reference in New Issue
Block a user