Decision

MQTT for hardware, WebSocket for operators

Sensors and point feedback talk to the orchestrator over MQTT under a binding contract. Operator devices, including the handheld throttle, use the orchestrator's WebSocket control plane.

Status
accepted
Decided
Affects
Layout Orchestration, Layout Feedback, ESP Layout Controller

Context

Four repositories have to agree on how they talk. The MQTT contract once described the handheld throttle publishing loco commands over MQTT, but nothing in the orchestrator ever published or subscribed to that topic. In practice the orchestrator drives DCC itself, over serial to PicoDCC.

Decision

Consequences

Source: esp-layout-controller CLAUDE.md and docs/mqtt-contract.md.