Files
FFF_vtt_frozen/docs/adr/0003-uniform-nack.md
T
SirStone 8aaf03be04 docs: add ADRs for the durable design decisions
22 ADRs: server-authoritative sight and single egress, per-recipient views/diffs, uniform
nack, opaque ids, 32 px tile unit, wall switches/presets, see-over, thick walls, open-door
gap, typed wall columns, proto 2, build order, zoom clamp, accepted status leak, player
marker, chunked explored, slow-client policy, session/key split, closing message, character
records, global lock, synchronous choice. Each links its tickets and its spec section.
2026-11-17 23:12:04 +01:00

1.3 KiB

A refused move carries only the old position

A refused player move — locked, over the step cap, wall collision — returns ack {ok:false, pos:<old position>} with no code and no reason, and a GM move out of bounds uses the same shape. Every other refusal carries a static code and no position. We chose one opaque shape because a wall-probing client can otherwise binary-search walls and doors beyond its line of sight from the differences between refusals.

Status

accepted

Alternatives

  • Per-cause codes (blocked, out-of-range, locked): rejected, each distinction is an oracle.
  • Echoing the collision point or the blocking wall: rejected, leaks geometry.
  • Explicitly refusing the whole intent class with a reason for the GM: the GM already sees all walls, but one shape keeps the code path single.

Consequences

The client cannot explain a refusal; it snaps back (or waits for release while dragging). The step cap (the token's effective vision radius, or the scene default) bounds what one probe can learn, and the rate limit bounds the number of probes. Tests assert the shape and that two scenes differing only beyond the cap produce identical replies.

Tickets

#11, #15, Q18; T8/T9 in current §3.4.

Spec

Current §5.5 (player move, GM move), §6 (uniform move refusal), §6.5 (ack codes).