Replicate cellular snapshots to v7 clients
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (checks) (push) Failing after 38s
Foundation / checks (ecs) (push) Successful in 1m56s
Foundation / checks (postgres) (push) Failing after 52s
Foundation / checks (tsan) (push) Failing after 31s
Foundation / checks (network) (push) Failing after 3m1s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (client) (push) Canceled after 4m19s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (checks) (push) Failing after 38s
Foundation / checks (ecs) (push) Successful in 1m56s
Foundation / checks (postgres) (push) Failing after 52s
Foundation / checks (tsan) (push) Failing after 31s
Foundation / checks (network) (push) Failing after 3m1s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (client) (push) Canceled after 4m19s
This commit is contained in:
@@ -337,7 +337,15 @@ scoped change before starting the next segment.
|
||||
callbacks and v7 cellular action ledger together. Admission remains per
|
||||
negotiated connection; unsupported v5/v6/v7 modes still fail closed. QUIC
|
||||
coverage opens v5 and v7 clients against one configured region session host.
|
||||
The callbacks are not yet wired to `CellularRegionHost` or the scheduler.
|
||||
- 11.3d-7l: `CellularRegionHost` now serves v5 create/query callbacks using the
|
||||
durable allocator and preserves exact reservations in a deduplicated queue
|
||||
until their birth record is confirmed in a cellular commit. Its PostgreSQL
|
||||
test now exercises request, exact retry, queue, publication and final query
|
||||
through the host API. PostgreSQL CI remains pending.
|
||||
- 11.3d-7m: v7 sessions can now receive replicated snapshots and change their
|
||||
interest, in addition to committing cellular actions. QUIC coverage confirms
|
||||
a v7 client can receive a cell entity and move its focus. The process-level
|
||||
cellular tick loop and resource patch view are still required before 11.3e.
|
||||
|
||||
## Exit boundary
|
||||
|
||||
|
||||
@@ -6476,3 +6476,14 @@ publication, and born outcome through the host API.
|
||||
GCC 13.2 strict-warning syntax checks pass for the host and PostgreSQL integration test, and
|
||||
`git diff --check` passes. PostgreSQL runtime, full presets, and CI remain pending; local `psql`
|
||||
and the POSIX-only migration test environment are unavailable.
|
||||
|
||||
## 2026-10-11 — M11.3d-7m v7 cellular snapshots
|
||||
|
||||
Reliable v7 cellular-action sessions now use the existing interest and snapshot
|
||||
channel; v6 remains excluded until its separate perception contract is ready.
|
||||
The QUIC regression test confirms a v7 client receives a cell snapshot and can
|
||||
change interest. GCC 13.2 strict-warning syntax checks pass for the server
|
||||
session, client session and QUIC test, and `git diff --check` passes. QUIC
|
||||
runtime tests and CI remain pending. The configured Windows CMake QUIC target
|
||||
produced no output for 25 seconds and was interrupted; it is not counted as a
|
||||
build or test result.
|
||||
|
||||
@@ -316,7 +316,8 @@ std::uint64_t RegionSessionClient::server_tick() const noexcept {
|
||||
|
||||
bool RegionSessionClient::set_interest(const network::SessionInterest& interest) {
|
||||
auto& m = *impl_;
|
||||
return m.protocol_version == network::session_protocol_version &&
|
||||
return (m.protocol_version == network::session_protocol_version ||
|
||||
m.protocol_version == network::session_protocol_v7) &&
|
||||
m.state == RegionSessionState::established && m.send(interest);
|
||||
}
|
||||
|
||||
|
||||
@@ -323,8 +323,7 @@ struct RegionSessions::Impl {
|
||||
intents.close(c.session);
|
||||
return close(c, SessionCloseReason::capacity, now);
|
||||
}
|
||||
if (default_interest && c.protocol_version != network::session_protocol_v6 &&
|
||||
c.protocol_version != network::session_protocol_v7)
|
||||
if (default_interest && c.protocol_version != network::session_protocol_v6)
|
||||
(void)replication.set_interest(c.session, *default_interest).has_value();
|
||||
if (markers.area() && c.protocol_version != network::session_protocol_v6 &&
|
||||
c.protocol_version != network::session_protocol_v7)
|
||||
@@ -603,8 +602,7 @@ struct RegionSessions::Impl {
|
||||
}
|
||||
if (const auto* m = std::get_if<network::SessionInterest>(&*decoded)) {
|
||||
if (c.protocol_version == network::session_protocol_v5 ||
|
||||
c.protocol_version == network::session_protocol_v6 ||
|
||||
c.protocol_version == network::session_protocol_v7)
|
||||
c.protocol_version == network::session_protocol_v6)
|
||||
return close(c, SessionCloseReason::protocol, now);
|
||||
(void)replication.set_interest(c.session, *m).has_value(); // Clamped by the server.
|
||||
return;
|
||||
@@ -809,7 +807,6 @@ void RegionSessions::set_default_interest(network::SessionInterest interest) {
|
||||
for (const auto& c : m.connections)
|
||||
if (c.state == Impl::State::established &&
|
||||
c.protocol_version != network::session_protocol_v6 &&
|
||||
c.protocol_version != network::session_protocol_v7 &&
|
||||
!m.replication.interest(c.session))
|
||||
(void)m.replication.set_interest(c.session, interest).has_value();
|
||||
}
|
||||
@@ -833,8 +830,7 @@ void RegionSessions::replicate(
|
||||
for (const auto& [session, chunks] : m.replication.tick(tick, with_markers, perceives, payload))
|
||||
if (const auto* c = m.by_session(session);
|
||||
c && c->state == Impl::State::established &&
|
||||
c->protocol_version != network::session_protocol_v6 &&
|
||||
c->protocol_version != network::session_protocol_v7)
|
||||
c->protocol_version != network::session_protocol_v6)
|
||||
for (const auto& chunk : chunks)
|
||||
m.send_datagram(*c, chunk); // A refused chunk leaves the snapshot unacknowledged.
|
||||
}
|
||||
|
||||
@@ -604,6 +604,25 @@ void cellular_v5_spawn_and_v7_action_share_region_sessions(const Files& f) {
|
||||
const auto carried = h.server->carry(101);
|
||||
CHECK(carried.size() == 1 && carried.front().account == account(0xB7) &&
|
||||
carried.front().kind == ActionKind::cellular);
|
||||
|
||||
h.server->set_default_interest({0, 0, 0, 7});
|
||||
h.source = [](const SessionInterest&) {
|
||||
ReplicationSource source;
|
||||
source.identity = world_id;
|
||||
source.organism_revision = 101;
|
||||
client::OrganismCell cell;
|
||||
cell.id = 901;
|
||||
cell.phenotype.structural_mass = 1;
|
||||
cell.phenotype.total_mass = 1;
|
||||
cell.phenotype.extent = 1;
|
||||
source.organisms.push_back(cell);
|
||||
return source;
|
||||
};
|
||||
h.tick = 101;
|
||||
CHECK(h.until([&] { return action_client->view() != nullptr; }));
|
||||
CHECK(action_client->view()->organisms.size() == 1 &&
|
||||
action_client->view()->organisms.front().id == 901);
|
||||
CHECK(action_client->set_interest({1, 0, 0, 2}));
|
||||
}
|
||||
|
||||
// M10.4: intentions, actions and their distinct answers against a simulated host.
|
||||
|
||||
Reference in New Issue
Block a user