Tell the owner what its engulf and bud did, and why its cell died
M11.8 server half (ADR-0129): v10 diagnostics report the tick's engulf and bud results in two reserved bytes, and v10 type 27 tells the owner its life ended with the cause (starved or engulfed). The bridge fills both from the owner's tick feedback and corpses; v9 views are unchanged. Client presentation stays with the maintainer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -940,6 +940,10 @@ bool RegionSessions::send_cellular_perception(const network::AccountId& account,
|
||||
auto delivered = perception;
|
||||
if (c.protocol_version == network::session_protocol_v8)
|
||||
delivered.diagnostics.reset();
|
||||
if (c.protocol_version == network::session_protocol_v9 && delivered.diagnostics) {
|
||||
delivered.diagnostics->engulf = network::CellularEngulfResult::not_reported;
|
||||
delivered.diagnostics->bud = network::CellularBudOutcome::not_reported;
|
||||
}
|
||||
return m.endpoint
|
||||
->send_message(c.id, network::encode_session(delivered, c.protocol_version))
|
||||
.has_value();
|
||||
@@ -952,6 +956,11 @@ bool RegionSessions::send_mutation_outcome(const network::AccountId& account,
|
||||
return impl_->send_to_v10_owner(account, outcome);
|
||||
}
|
||||
|
||||
bool RegionSessions::send_life_ended(const network::AccountId& account,
|
||||
const network::CellularLifeEnded& ended) {
|
||||
return impl_->send_to_v10_owner(account, ended);
|
||||
}
|
||||
|
||||
bool RegionSessions::send_mutation_offer(const network::AccountId& account,
|
||||
const network::CellularMutationOffer& offer) {
|
||||
return impl_->send_to_v10_owner(account, offer);
|
||||
|
||||
Reference in New Issue
Block a user