Route cellular perception to its owner
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (checks) (push) Failing after 39s
Foundation / checks (ecs) (push) Successful in 1m55s
Foundation / checks (postgres) (push) Failing after 53s
Foundation / checks (tsan) (push) Failing after 34s
Foundation / checks (network) (push) Failing after 3m0s
Foundation / checks (client) (push) Failing after 4m27s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (checks) (push) Failing after 39s
Foundation / checks (ecs) (push) Successful in 1m55s
Foundation / checks (postgres) (push) Failing after 53s
Foundation / checks (tsan) (push) Failing after 34s
Foundation / checks (network) (push) Failing after 3m0s
Foundation / checks (client) (push) Failing after 4m27s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
This commit is contained in:
@@ -59,7 +59,7 @@ class RegionSessionClient {
|
||||
// retries and reconnects). False unless established and sent.
|
||||
[[nodiscard]] bool send_action(std::uint64_t action_id, network::ActionKind kind,
|
||||
std::uint64_t tick);
|
||||
// Protocol v7 only. Reuse the exact same fields and action id after reconnect.
|
||||
// Protocol v7/v8. Reuse the exact same fields and action id after reconnect.
|
||||
[[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 = {});
|
||||
@@ -82,6 +82,9 @@ class RegionSessionClient {
|
||||
[[nodiscard]] bool set_interest(const network::SessionInterest& interest);
|
||||
// The newest complete snapshot, or null before the first.
|
||||
[[nodiscard]] const network::ReplicatedView* view() const noexcept;
|
||||
// Newest owner-filtered cellular sensor view (v8), cleared when no owned life exists.
|
||||
[[nodiscard]] const std::optional<network::CellularPerception>&
|
||||
cellular_perception() const noexcept;
|
||||
[[nodiscard]] std::expected<client::EnvironmentPresentation, client::ViewError>
|
||||
environment() const;
|
||||
[[nodiscard]] std::expected<client::OrganismPresentation, client::ViewError> organisms() const;
|
||||
|
||||
@@ -92,7 +92,7 @@ struct RegionSessionsConfig {
|
||||
// M10.8d recovery: this often, open outgoing transfers prepared more than ticket_lifetime
|
||||
// + 10 s ago (by the store's clock, e.g. by a process that died) are aborted.
|
||||
std::chrono::milliseconds overdue_poll{5000};
|
||||
// v5 is accepted only when both primitive-life handlers are supplied. Callbacks
|
||||
// v5/v8 are accepted only when both primitive-life handlers are supplied. Callbacks
|
||||
// receive the authenticated account and durable control generation for this session.
|
||||
// A cellular host may enable v5 together with the v7 cellular action path; each
|
||||
// connection remains fixed to its negotiated protocol.
|
||||
@@ -104,8 +104,8 @@ struct RegionSessionsConfig {
|
||||
query_primitive_life;
|
||||
// M11.3 v6 cellular intentions. Opt-in until a cellular state owner consumes them.
|
||||
bool accept_cellular_intentions{};
|
||||
// M11.3 v7 durable cellular actions. Requires durable control and action ledgers;
|
||||
// the caller must forward carried inputs to the profile-4 region host.
|
||||
// M11.3 v7 durable cellular actions and v8 owner-filtered perception. Requires durable
|
||||
// control and action ledgers; the caller forwards carried inputs to profile 4.
|
||||
bool accept_cellular_actions{};
|
||||
};
|
||||
// The region host's authority, read once per poll.
|
||||
@@ -155,6 +155,11 @@ class RegionSessions {
|
||||
std::uint64_t tick,
|
||||
const std::function<network::ReplicationSource(const network::SessionInterest&)>& source,
|
||||
const network::Perceives& perceives = {});
|
||||
// V8 reliable cellular perception is unicast to the current established session
|
||||
// for the supplied authenticated account. Empty views clear that owner's stale view.
|
||||
[[nodiscard]] bool send_cellular_perception(
|
||||
const network::AccountId& account, const network::CellularPerception& perception);
|
||||
void clear_cellular_perceptions(std::uint64_t tick);
|
||||
[[nodiscard]] network::ReplicationStats replication_stats() const;
|
||||
// M10.9a (ADR-0097): the host's load governor output. While `refuse_logins`, a Hello
|
||||
// carrying a grant is closed with `capacity` before signature work (handoff tickets are
|
||||
|
||||
Reference in New Issue
Block a user