Skip to content

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

Closed

Description

@dezren39

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

  1. 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
    Contributor
  3. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    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. added
    task/triageQueue packet kind: verify, reproduce, and route this item
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 5, 2026
  5. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done (triage)

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

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

  6. 3 remaining items

  7. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 8, 2026
  8. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    🤖 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)

    Decisions

    Invariants implementation must hold

    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).

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

Metadata

Metadata

Assignees

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