Define cellular intention session protocol v6
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m54s
Foundation / checks (client) (push) Failing after 4m23s
Foundation / checks (network) (push) Failing after 3m5s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (tsan) (push) Canceled after 11s
Foundation / checks (postgres) (push) Canceled after 57s
Foundation / checks (checks) (push) Canceled after 5m23s

This commit is contained in:
dingo
2026-10-10 21:29:59 -04:00
parent 1ccc0ce476
commit ae0a3cdae5
10 changed files with 245 additions and 11 deletions
@@ -0,0 +1,30 @@
# Session protocol v6 cellular intention datagram
ADR-0105 defines this message. It is not admitted by the currently integrated
region session server until its v6 cellular-life handler is enabled.
Each frame starts with the existing 8-byte `EVSN` header. The version is 6, the
type is 22 (`cellular_intention`), and header flags are zero. Payload length is
exactly 48 bytes; all integers are little-endian.
| Payload offset | Size | Field |
|---:|---:|---|
| 0 | 8 | authenticated session id (nonzero; admission checks connection match) |
| 8 | 8 | control epoch (nonzero; admission checks current authority) |
| 16 | 8 | per-session intention sequence (nonzero and increasing) |
| 24 | 8 | intended simulation tick (admission checks the future window) |
| 32 | 2 | signed movement X component; server validates the norm and bounds |
| 34 | 2 | signed movement Y component; server validates the norm and bounds |
| 36 | 1 | intake target present: 0 or 1 |
| 37 | 3 | reserved, all zero |
| 40 | 4 | target patch lower-left X in μm |
| 44 | 4 | target patch lower-left Y in μm |
When the target flag is zero, both coordinates must be zero. When set, the
coordinates identify a requested patch, not a position, speed or stock claim.
The authoritative host validates patch alignment, perception at the applicable
tick and footprint contact before intake. No target means no requested intake.
Movement remains an intention only; the server derives position, costs and
resource balances. Truncated frames, trailing bytes, nonzero reserved bytes,
invalid flags, noncanonical absent-target coordinates and versions below 6 are
refused by the codec.