feat: durable liquid regions (bundle 14, schema 58), cellular-v9 and session v13
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (client) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 4s
Foundation / checks (network) (push) Successful in 4s
Foundation / checks (postgres) (push) Successful in 4s
Foundation / checks (tsan) (push) Successful in 5s
Foundation / checks (deploy) (push) Successful in 4m25s
Foundation / postgres-tools (push) Successful in 1m12s
Foundation / server-image (push) Successful in 4m20s
Foundation / image (push) Successful in 4m54s

ADR-0178. Bundle 14 (rules 12 on owner format 10) is admitted by schema 58
through parser-local normalization to bundle 13, with an exact fenced 13 -> 14
upgrade whose only input, the liquid rules, recovery reads from the target.
Schema 58 also widens the canonical action input: byte 13 bit 0 is brake.

evo-world-clone gains the cellular-v9 opening: cellular-v8 followed by the liquid
upgrade from --tuning FILE (region size must match) and an optional
--current-seed; resumable and idempotent at bundle 14.

Session v13 adds the owner's velocity, heading and the region's current
configuration to its perception, each deposit's world velocity, and a brake on
cellular actions; older sessions keep their layouts. A rules-12 server lists every
pool and the nearest 256 moving bubbles. The client speaks v13, brakes on Space
(rebindable; older controls files take the default), draws currents as drifting
streaks and carries bubbles along their velocities between perceptions.

Tests: protocol v13 round trips and refusals, action-input brake, controls files,
and a PostgreSQL cellular-v9 provisioning test whose player is born, swims and
brakes through the live host. Full local PostgreSQL qualification, the Linux debug
suite and the Windows client suite pass. Refreshes the DEV session window.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-21 18:08:59 -04:00
co-authored by Claude Opus 5.5
parent 3f82795c18
commit d2f603b582
39 changed files with 1106 additions and 103 deletions
+3 -2
View File
@@ -22,9 +22,10 @@ enum class Action : std::uint8_t {
pan_right,
pan_up,
pan_down,
toggle_capture
toggle_capture,
brake // Rules 12: appended so earlier controls files keep their meaning.
};
inline constexpr std::size_t action_count = 9;
inline constexpr std::size_t action_count = 10;
using KeyCode = std::uint16_t; // HID usage; 0 means unbound.
inline constexpr KeyCode no_key = 0;
inline constexpr KeyCode escape_key = 41; // Reserved: cancels binding capture.
+14 -2
View File
@@ -6,7 +6,18 @@
#include <optional>
namespace evo::client {
enum class Key : std::uint8_t { left, right, up, down, pan_left, pan_right, pan_up, pan_down };
// `brake` (rules 12) opposes the cell's velocity relative to the liquid while held.
enum class Key : std::uint8_t {
left,
right,
up,
down,
pan_left,
pan_right,
pan_up,
pan_down,
brake
};
enum class InputError : std::uint8_t {
invalid_key,
invalid_pointer,
@@ -17,6 +28,7 @@ enum class InputError : std::uint8_t {
struct Intention {
std::uint64_t sequence{}, tick{};
std::int16_t move_x{}, move_y{}; // Signed unit vector *1000, local XY (+Y up).
bool brake{}; // Rules 12: held brake.
};
struct Navigation {
int x{}, y{};
@@ -49,7 +61,7 @@ class InputState {
private:
void clear() noexcept;
std::array<bool, 8> keys_{};
std::array<bool, 9> keys_{};
bool admitted_{false}, captured_{false};
ScreenPoint pointer_{};
double wheel_{};
+1 -1
View File
@@ -65,7 +65,7 @@ class RegionSessionClient {
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 = {},
bool engulf = false, bool bud = false);
bool engulf = false, bool bud = false, bool brake = false);
// Protocol v10 (ADR-0121): choose one candidate of the life's outstanding offer. The
// receipt names the tick it publishes with; the outcome follows that commit. `tick` is
// the client's latest simulated tick (after the offer); the server schedules the next.