GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — id: design: constrained-device providers (ESP32 + MQTT instantiation) (from #5686) · Issue #5901 · developing-today/code

id: design: constrained-device providers (ESP32 + MQTT instantiation) (from #5686) #5901

New issue
Copy link
New issue
Copy link
Closed
Closed
id: design: constrained-device providers (ESP32 + MQTT instantiation) (from #5686)#5901
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)status:donetask/triageQueue packet kind: verify, reproduce, and route this item

Description

@dezren39
dezren39
opened on Nov 5, 2026
Issue body actions

Summary

Follow-on design ticket from #5686 — its decomposition sketch names this as a separate design, and the parent's acceptance requires these tickets to be filed and linked. Filed in the 2026-11-04 gap pass (WS-F) so the design work exists and can be prioritised on its own merits; implementation timing is a separate decision, possibly months out.

What this design must settle

The provider model instantiated for constrained devices: ESP32 + MQTT bridge topic mapping, bridge trust, and device identity/ceiling provisioning. (The ESP32 hardware platform itself is designed in #5783; the bridge protocol in #2343 — this ticket is the provider-model instantiation.)

Context from the parent

The parent design fixes the single capability-provider model — declaration, discovery, negotiation, least-privilege grants — instantiated by ESP32/MQTT, terminal, Bevy, smartphone, and web providers. The parent issue carries the surrounding decisions this ticket must not re-decide; where this ticket's answer would change a parent decision, record that explicitly rather than silently forking it.

Decision record expected

Close this design with a recorded decision (on this issue or in a doc/ record linked from it): the chosen shape, the alternatives rejected and why, and the invariants implementation must hold. If the design splits further, file the splits and link them here rather than growing this issue.

Relations

Parent: #5686. Programme: epic #2056. Filed by WS-F (2026-11-04 ID design gap & expansion pass).

Activity

Next
  1. dezren39
    added
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    on Nov 5, 2026
  2. developing-today commented on Nov 5, 2026

    @developing-today
    developing-todayBot
    on Nov 5, 2026 – with developing.today
    Contributor
    More actions

    CODE-1584

  3. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    Field survey filed: #5931 (capability-provider research widening, per Drew's 2026-11-04 ruling) covers the current option space relevant to this issue in §5 — constrained-device option space: firmware stacks, MQTT/MQTT-SN/CoAP/Matter variants, broker table, 64 KiB-frame-relevant transport notes. It is an inventory, not a decision — the section ends with the open questions this design needs to answer.

  4. dezren39
    added
    queue/queuedHas a queued queue task
    task/triageQueue packet kind: verify, reproduce, and route this item
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    queue/queuedHas a queued queue task
    on Nov 5, 2026
  5. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done (triage)

    • Agent: queue worker (repo-worker-code), lane code-k
    • Session / ID: task 10303
    • Found via: queue claim
    • Task: Triage issue id: design: constrained-device providers (ESP32 + MQTT instantiation) (from #5686) #5901 (constrained-device providers — ESP32 + MQTT instantiation, from issue design(id): client-side capability providers — one provider model for ESP32/MQTT, terminal, Bevy, smartphone, and web #5686)
    • Expectation: design ticket; triage done = scope, inputs, ordering and blockers recorded below
    • Links: parent issue design(id): client-side capability providers — one provider model for ESP32/MQTT, terminal, Bevy, smartphone, and web #5686 (OPEN)

    Triage findings (verified fresh 2026-11-05 via gh):

    • Issue id: design: constrained-device providers (ESP32 + MQTT instantiation) (from #5686) #5901 is OPEN. Labels: task/triage, queue/queued, app/id. No hard-stop labels (held, user/owned, do-not-merge, do-not-auto-edit) and no user/review / user/escalated.
    • Follow-on design ticket from issue design(id): client-side capability providers — one provider model for ESP32/MQTT, terminal, Bevy, smartphone, and web #5686 (OPEN: single capability-provider model), filed in the 2026-11-04 WS-F gap pass; programme epic issue epic: ID platform expansion — apps, comms, currency, hosting, boards (2026-10-28 directive, LIST 6–15) #2056 per the body. Not already handled or superseded.
    • Scope to settle (from the body): the provider model instantiated for constrained devices — ESP32 + MQTT bridge topic mapping, bridge trust, and device identity/ceiling provisioning. Explicitly NOT this ticket: the ESP32 hardware platform (issue id: design: ESP32 hardware platform line — boards, provisioning, firmware lifecycle, OTA, power #5783, OPEN) and the bridge protocol itself (issue id: MQTT device bridge id.device.v1 — spec + labelled PoC (ESP32 path recommendation) (#2027) #2343, OPEN).
    • Fixed inputs, do not re-decide: the parent (issue design(id): client-side capability providers — one provider model for ESP32/MQTT, terminal, Bevy, smartphone, and web #5686) fixes the single capability-provider model — declaration, discovery, negotiation, least-privilege grants — that this ticket instantiates alongside the terminal, Bevy, smartphone, and web providers. Changes to a parent decision must be recorded explicitly, not silently forked.
    • Research input already filed: issue id: research: capability-provider field survey — current options & variants per provider class + cross-cutting frameworks (from #5686) #5931 (OPEN, capability-provider field survey) §5 covers the constrained-device option space for this ticket — firmware stacks, MQTT/MQTT-SN/CoAP/Matter variants, broker table, 64 KiB-frame transport notes (per the survey note posted on this issue). The design should consume that survey rather than redo it.
    • Deliverable / close condition: a recorded decision (on this issue or in a doc/ record linked from it): chosen instantiation shape, alternatives rejected and why, and the invariants implementation must hold. Further splits get filed and linked, not grown into this issue.
    • Ordering / blockers: three open inputs gate a final decision — the parent provider model (issue design(id): client-side capability providers — one provider model for ESP32/MQTT, terminal, Bevy, smartphone, and web #5686), the bridge protocol (issue id: MQTT device bridge id.device.v1 — spec + labelled PoC (ESP32 path recommendation) (#2027) #2343, topic mapping and trust build on it), and the hardware platform line (issue id: design: ESP32 hardware platform line — boards, provisioning, firmware lifecycle, OTA, power #5783, identity/ceiling provisioning builds on it). Exploration and topic-mapping drafts can proceed against the survey (issue id: research: capability-provider field survey — current options & variants per provider class + cross-cutting frameworks (from #5686) #5931); the decision record should land after, or state assumptions against, those three. No Drew decision and no access blocker; implementation timing is explicitly a separate decision.

    Triage complete for task 10303; issue #5901 stays open for the design decision.

  6. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 5, 2026
  7. github-actions
    assigned
    dezren39
    on Nov 5, 2026
  8. dezren39
    added
    queue/claimedQueue worker lifecycle state
    on Nov 8, 2026
  9. 3 remaining items

  10. dezren39
    added
    queue/queuedHas a queued queue task
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    queue/queuedHas a queued queue task
    on Nov 8, 2026
  11. developing-today commented on Nov 8, 2026

    @developing-today
    developing-todayBot
    on Nov 8, 2026 – with developing.today
    Contributor
    More actions

    🤖 Agent note · done — DECISION RECORD (task 12985, lane code-n, direct)

    This record is the deliverable issue #5901 asks for: the constrained-device instantiation of the #5686 provider model, decided against the #5931 field survey (§5) now, with assumptions against the three open inputs stated explicitly rather than silently forked. Where an assumption fails when its input lands, the affected decision reopens — the rest stand.

    Assumptions (explicit, per the task 12385 routing)

    • A1 — design(id): client-side capability providers — one provider model for ESP32/MQTT, terminal, Bevy, smartphone, and web #5686 (OPEN) lands substantially as sketched: one provider model — declaration, discovery, negotiation, least-privilege grants — composing with the ceiling model. If design(id): client-side capability providers — one provider model for ESP32/MQTT, terminal, Bevy, smartphone, and web #5686 changes provider-identity binding, D4 reopens only.
    • A2 — id: MQTT device bridge id.device.v1 — spec + labelled PoC (ESP32 path recommendation) (#2027) #2343 (OPEN) keeps its essentials: the id.device.v1 topic schema and WebSocket-identical wire bounds (64 KiB frames, 8 KiB args).
    • A3 — id: design: ESP32 hardware platform line — boards, provisioning, firmware lifecycle, OTA, power #5783 (OPEN) provides a device key at enrolment. If it settles on delegated user identity instead, D4's enrolment step changes; ceiling composition (D4) does not.

    Decisions

    • D1 — Wire: capability semantics ride native MQTT per id: MQTT device bridge id.device.v1 — spec + labelled PoC (ESP32 path recommendation) (#2027) #2343 (id.device.v1). Matter is a FOREIGN-provider interop target, not a second native instantiation: its device-type model is rigid (custom capabilities need custom clusters), it brings a second identity/attestation authority (DAC/CSA) that would compete with ID device-owned identity, and esp-matter OTA is not fully wired. MQTT-SN, CoAP/LwM2M, ESPHome and Tasmota are likewise interop peers, not native wires.
    • D2 — Topic mapping: per-world prefix, one connection per device; topics <prefix>/manifest (retained, on connect), <prefix>/wants, <prefix>/cap/result, <prefix>/surface, <prefix>/events — exactly id: MQTT device bridge id.device.v1 — spec + labelled PoC (ESP32 path recommendation) (#2027) #2343's schema. Retained messages: manifest ONLY; wants are never retained (a retained wants replays a stale request).
    • D3 — Bridge trust: the bridge is a translator, never an authority. It holds no grants, cannot mint or widen a capability, and cannot originate wants. It enforces frame/args bounds (oversize = drop + refusal in the standard vocabulary), authenticates each device connection (TLS + per-device credentials), and passes refusals through unchanged — one refusal vocabulary at the last hop is the reason id: MQTT device bridge id.device.v1 — spec + labelled PoC (ESP32 path recommendation) (#2027) #2343 chose this path.
    • D4 — Identity and ceiling: the provider identity is a DEVICE-owned identity (A3). A constrained-device provider's ceiling is the minimum of (device ceiling from enrolment, the firmware's declared closed subset). Grants compose exactly as in design(id): client-side capability providers — one provider model for ESP32/MQTT, terminal, Bevy, smartphone, and web #5686 — the bridge and the device class add no bypass.
    • D5 — Declaration: STATIC and signed. Fixed-firmware capabilities are declared in a manifest bound to the firmware version and published retained on connect; there is no runtime discovery for this class. Declaration honesty for constrained devices = signed manifest plus bridge-side plausibility (bounds + subset check); attestation hardware (where the board has it) is a id: design: ESP32 hardware platform line — boards, provisioning, firmware lifecycle, OTA, power #5783 concern and strengthens, but does not gate, this model.
    • D6 — Capability subset: only id: MQTT device bridge id.device.v1 — spec + labelled PoC (ESP32 path recommendation) (#2027) #2343's closed subset — device.info, small screen/text surfaces, a closed form.* subset, loc.position when GNSS is present, key/encoder events (rotary = Key with signed delta). Anything outside the subset is not a constrained-device capability and routes to another provider class.
    • D7 — Broker: an EXTERNAL broker the bridge speaks to, not a component ID operates, for the first instantiation. Reference: Mosquitto (single-node default). rumqttd is deferred (clustering maturity unverified in the survey); clustered EMQX is excluded on the survey's license flag (BSL 1.1 from v5.9.0). Revisit only when a deployment actually needs clustering.
    • D8 — Firmware stack: deliberately NOT decided here — it is id: design: ESP32 hardware platform line — boards, provisioning, firmware lifecycle, OTA, power #5783's question (ESP-IDF vs esp-hal/Embassy), and the provider model above is stack-agnostic by construction: it constrains the wire, the manifest, and the subset, not the on-device language.

    Invariants implementation must hold

    • I1: No special case — the same declaration/discovery/grant shapes as every other provider class (design(id): client-side capability providers — one provider model for ESP32/MQTT, terminal, Bevy, smartphone, and web #5686's test).
    • I2: Ceiling composition is monotone-down: bridge, broker, and firmware can only narrow what a device offers, never widen it.
    • I3: A stale or replayed wants is never executed (no retained wants; wants carry the negotiation freshness id: MQTT device bridge id.device.v1 — spec + labelled PoC (ESP32 path recommendation) (#2027) #2343 specifies).
    • I4: Oversize frames/args are refused, never truncated into validity.
    • I5: The bridge can fail closed (broker absence, auth failure) without the device offering anything to anyone.
    • I6: A device's declared subset never exceeds its signed manifest for the running firmware version.

    Alternatives rejected: Matter as a native second model (D1 — rigid types, competing attestation authority, immature OTA); a broker operated by ID from day one (D7 — operations burden before any deployment needs it); runtime/dynamic declaration for constrained devices (D5 — fixed firmware makes it cost without benefit); deciding the firmware stack inside the provider model (D8 — wrong layer, and #5783 owns it).

    Next actions (existing issues, no new issue needed): implementation of the wire/bridge is #2343 (spec + labelled PoC); provisioning, boards, OTA and power are #5783; the parent model is #5686. If A1–A3 break as those land, reopen this issue naming the assumption that failed.

    Closing issue #5901 on this record per its own close condition (a recorded decision on the issue: chosen shape, alternatives rejected and why, invariants).

  12. dezren39
    closed this as completedon Nov 8, 2026
  13. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 8, 2026
  14. developing-today
    added
    status:done
    on Nov 8, 2026
  15. dezren39
    added a commit that references this issue on Nov 14, 2026

    feat(id): id.device.v1 MQTT device bridge spec + labelled PoC (#2343) (…

    1fd1a80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)status:donetask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.