GeezerVison is showing github.com — id: MQTT device bridge id.device.v1 — spec + labelled PoC (ESP32 path recommendation) (#2027) · Issue #2343 · developing-today/code
id: MQTT device bridge id.device.v1 — spec + labelled PoC (ESP32 path recommendation) (#2027) #2343DescriptionFollow-up from the capability taxonomy v0 investigation (#2027, record: doc/2026-10-29T14-05-00Z_investigation_capability_taxonomy/, PR #2337).
Goal
Specify and prototype the MQTT device bridge (id.device.v1) — the recommended ESP32 path: ID speaks MQTT directly, so devices get the same wants/result/refusal semantics as web instead of terminating at Home Assistant.
Why this path
Taxonomy §5 compares (a) firmware → MQTT → Home Assistant, (b) ID speaks MQTT directly, (c) direct web, and recommends (b) as the device path with (a) as interop and (c) unchanged: only (b) keeps one capability model and one refusal vocabulary at the last hop.
Scope
- Topic schema:
<prefix>/manifest (retained, on connect), <prefix>/wants, <prefix>/cap/result, <prefix>/surface, <prefix>/events; one connection per device, per-world prefix.
- Wire bounds identical to WebSocket: 64 KiB frames, 8 KiB args; a 128×64 1-bit screen is ~1 KiB of cells, which is why pixel screens are the existing
Screen variant at smaller dimensions rather than a new kind.
- Rotary encoders as
Key events with a signed delta in args.
- Minimum
time.tick interval for the device path to avoid wake storms.
- Decisions: retained
wants (recommend: manifest only, wants never retained — a retained wants replays a stale request); TLS/auth; reconnect/backoff; journaling on the device side.
- Firmware implements only
device.info, small screen/text, a closed form.* subset, loc.position when GNSS is present, and key/encoder events.
Acceptance
- A written schema doc with example documents for each topic.
- A PoC clearly labelled as a PoC (the issue's rule: never build the permanent feature on an unreviewed PoC) — a host-side bridge plus a fake device that connects, publishes a manifest, receives a wants document and gets a
cap: result, in an integration test.
- Home Assistant interop recorded as out-of-scope-but-supported.
Out of scope
Firmware for a specific board, OTA, ESPHome components, power profiling.
Acceptance criteria
- A written id.device.v1 schema doc exists with example documents for each topic (manifest retained on connect; wants; cap/result; surface; events) and the wire bounds identical to WebSocket (64 KiB frames, 8 KiB args)
- The open decisions are recorded with recommendations: retained wants (recommend manifest only — a retained wants replays a stale request), TLS/auth, reconnect/backoff, device-side journaling, minimum time.tick interval
- A PoC — clearly labelled as a PoC, never the permanent feature — host-side bridge plus a fake device connects, publishes its manifest, and answers a want with result/refusal semantics matching web
- Firmware scope stays the closed subset: device.info, small screen/text, closed form.* subset, loc.position when GNSS present, key/encoder events (rotary encoder as Key with signed delta)
Triage verdict — 2026-11-08 (queue task 12058)
Verdict: REAL AND CURRENT. This is the full verdict; the comment POST is blocked by GitHub's secondary content-creation rate limit, so it is carried in the issue body until that clears.
Fresh evidence (00ca4186, 2026-11-08T18:10Z)
- id: MQTT device bridge id.device.v1 — spec + labelled PoC (ESP32 path recommendation) (#2027) #2343 is OPEN; no hard-stop labels.
- PR search for
id.device.v1 returns only merged PR docs(id): capability taxonomy v0 for interface specialization (#2027) #2337 — the capability-taxonomy investigation, not an implementation. No schema examples, wire code or PoC.
git grep -i mqtt -- pkgs/id/src returns no matches.
- id: design: constrained-device providers (ESP32 + MQTT instantiation) (from #5686) #5901 is CLOSED with the constrained-device decision: retained manifest only, TLS plus per-device credentials, the closed device subset, and bridge-as-translator. It names id: MQTT device bridge id.device.v1 — spec + labelled PoC (ESP32 path recommendation) (#2027) #2343 as the bridge implementation follow-up, so those are inputs here, not open questions.
- id: design: ID core build v1 — app model + capability system, enough to start app examples #2028 keeps production hardware rollout deferred; id: design: ESP32 hardware platform line — boards, provisioning, firmware lifecycle, OTA, power #5783 owns boards, firmware, OTA and power and is out of scope.
Live remainder, scoped into the follow-up packet
id.device.v1 schema with example documents for manifest, wants, cap/result, surface and events; per-world prefix, one connection per device, 64 KiB frame / 8 KiB args bounds.
- Recommendations for reconnect/backoff, device-side journaling and minimum
time.tick, reusing id: design: constrained-device providers (ESP32 + MQTT instantiation) (from #5686) #5901's decisions without reopening them.
- A clearly labelled non-production host bridge plus fake-device integration PoC proving manifest publication, wants/result/refusal semantics, stale retained-wants rejection, bounds enforcement and fail-closed authentication.
Routing
Activitydeveloping-today commented on Oct 29, 2026 dezren39 commented on Oct 29, 2026 Intake review
Related: parent investigation #2027 (record: PR #2337); siblings #2338-#2345 are the other taxonomy follow-ups
Notes: Filed 2026-10-29T14:04Z from #2027 (taxonomy §5 recommends ID-speaks-MQTT as the ESP32 path over terminating at Home Assistant). Still live: no open or merged PR implements it.
Risks: Retained-wants replay is the named footgun; the spec must close it explicitly. A PoC that quietly becomes the permanent bridge repeats the pattern the issue's own rule forbids.
Suggested approach: Schema doc + decision record first, then the labelled PoC with the fake device.
🤖 Agent note · filed
- Agent: fleet monitor (repo-fleet-monitor)
- Session / ID: repo-fleet-monitor run 2026-10-29T14:30Z (09:30 CDT)
- Found via: monitor reconciliation
- Task: Duty 2 intake enrichment — acceptance criteria appended (original body preserved verbatim above it), labels normalized,
meta/enriched applied. Still-live check this pass: no merged PR or fix commit explicitly resolving this issue was found; where a queue triage task owns verification, it is named in the notes.
- Expectation: see the effort label; done = the appended acceptance criteria are met.
- Links: this issue
developing-today commented on Nov 3, 2026 agent-note:v1
state: triaged (coverage pass)
Coverage pass 2026-11-03: reviewed in the fleet-wide per-issue pass (drift / overlap / already-handled / stale / blockers / ordering). Verdict: still live; queued in repo-health-code-pilot as triage at priority 40 (priority/normal). If this is already handled at current main, the triage closes it with evidence; if it needs splitting, the triage files the split.
Found via: coverage pass 2026-11-03 dezren39 commented on Nov 9, 2026
Claimed as queue task 13917 (attempt 3). Revalidated fresh: issue OPEN, no hard-stop labels, no competing implementation PR, #5901 CLOSED (decisions reused as inputs), #2028 still defers production rollout. Worktree: laptop ~/git/fleet/13917, branch queue/13917-2343-mqtt-device-bridge. Plan: id.device.v1 schema doc + labelled host-bridge/fake-device PoC with integration tests, then PR. dezren39 commented on Nov 9, 2026
PR opened: #7976 — #7976
Queue task 13917 completed pr_opened. Branch queue/13917-2343-mqtt-device-bridge, last pushed SHA c94978b449f9871518ae2b5c72486bebf4f71db3.
Delivered exactly the triage remainder, nothing more:
doc/2026-11-09T05-00-00Z_feature_mqtt_device_bridge_id_device_v1/ — topic table, per-world prefix, one connection per device, example documents for all five topics, wire bounds, and the recommendations (retained manifest only, TLS + per-device credentials, reconnect/backoff, device-side journaling, 1 Hz time.tick floor, closed firmware subset).
pkgs/id/src/device_bridge.rs — labelled PoC: fail-closed auth, bridge wants evaluation with the web refusal vocabulary, fake broker enforcing the retained-wants ban and wire bounds, fake device with journal/tick floor/backoff/encoder-as-Key.
- One
pub mod line in lib.rs; no production paths touched.
Tests: cargo test --lib device_bridge — 11 passed. CI pending; this lane is ending its run, so CI follow-through belongs to the next scheduled lane or the merging worker (the task is terminal with ci: pending, PR recorded).
Reused #5901 decisions without reopening them. One finding recorded in the doc: the host rejects oversize args at parse_wants time, so the PoC asserts that boundary rather than inventing a per-request args_too_large code the host never emits.
Issue stays OPEN until #7976 merges; nothing in this run closed it.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|