Add owner-filtered cellular perception protocol
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (checks) (push) Failing after 39s
Foundation / checks (postgres) (push) Canceled after 0s
Foundation / checks (tsan) (push) Canceled after 0s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (ecs) (push) Canceled after 1m48s
Foundation / checks (network) (push) Canceled after 1m18s
Foundation / checks (client) (push) Canceled after 1m58s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (checks) (push) Failing after 39s
Foundation / checks (postgres) (push) Canceled after 0s
Foundation / checks (tsan) (push) Canceled after 0s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (ecs) (push) Canceled after 1m48s
Foundation / checks (network) (push) Canceled after 1m18s
Foundation / checks (client) (push) Canceled after 1m58s
This commit is contained in:
@@ -27,6 +27,9 @@ inline constexpr std::uint16_t session_protocol_v5 = 5;
|
||||
inline constexpr std::uint16_t session_protocol_v6 = 6;
|
||||
// v7 adds stable-id reliable cellular actions; v1-v6 wire layouts stay frozen.
|
||||
inline constexpr std::uint16_t session_protocol_v7 = 7;
|
||||
// v8 adds the authenticated owner's exact, bounded cellular perception view.
|
||||
inline constexpr std::uint16_t session_protocol_v8 = 8;
|
||||
inline constexpr std::size_t max_cellular_perceived_patches = 256;
|
||||
inline constexpr std::size_t session_address_bytes = 64; // Endpoint or server name field.
|
||||
inline constexpr std::size_t session_datagram_bytes = 1200; // Whole message, ADR-0089.
|
||||
inline constexpr std::size_t session_header_bytes = 8;
|
||||
@@ -55,7 +58,8 @@ enum class SessionMessageType : std::uint8_t {
|
||||
primitive_life_outcome,
|
||||
primitive_life_query,
|
||||
cellular_intention = 22,
|
||||
cellular_action = 23
|
||||
cellular_action = 23,
|
||||
cellular_perception = 24
|
||||
};
|
||||
// Admission answers for intentions and actions (wire 0..10).
|
||||
enum class AdmitStatus : std::uint8_t {
|
||||
@@ -171,6 +175,20 @@ struct CellularAction {
|
||||
std::uint32_t intake_x_um{}, intake_y_um{};
|
||||
friend bool operator==(const CellularAction&, const CellularAction&) = default;
|
||||
};
|
||||
// v8 server-to-owner view. Addresses and current inventory are already filtered by
|
||||
// authoritative cell position/range; provenance and account identity are omitted.
|
||||
struct CellularPerceivedPatch {
|
||||
std::uint32_t x_um{}, y_um{};
|
||||
std::uint64_t energy_pj{};
|
||||
std::array<std::uint64_t, 4> matter_fg{};
|
||||
friend bool operator==(const CellularPerceivedPatch&, const CellularPerceivedPatch&) =
|
||||
default;
|
||||
};
|
||||
struct CellularPerception {
|
||||
std::uint64_t tick{}, life_identity{}; // zero life plus no patches clears the view.
|
||||
std::vector<CellularPerceivedPatch> patches; // strictly ordered by (x_um, y_um).
|
||||
friend bool operator==(const CellularPerception&, const CellularPerception&) = default;
|
||||
};
|
||||
struct IntentionReceipt {
|
||||
std::uint64_t sequence{};
|
||||
AdmitStatus status{};
|
||||
@@ -286,7 +304,8 @@ using SessionMessage =
|
||||
SessionIntention, CellularIntention, CellularAction, IntentionReceipt, SimulatedThrough,
|
||||
SessionAction, ActionReceipt, ActionOutcome, ActionQuery, SessionInterest,
|
||||
SnapshotChunk, SnapshotAck, HandoffOffer, SessionRedirect, PrimitiveLifeRequest,
|
||||
PrimitiveLifeReceipt, PrimitiveLifeOutcome, PrimitiveLifeQuery>;
|
||||
PrimitiveLifeReceipt, PrimitiveLifeOutcome, PrimitiveLifeQuery,
|
||||
CellularPerception>;
|
||||
|
||||
[[nodiscard]] std::vector<std::uint8_t> encode_session(const SessionMessage& message);
|
||||
[[nodiscard]] std::vector<std::uint8_t> encode_session(const SessionMessage& message,
|
||||
|
||||
Reference in New Issue
Block a user