GeezerVison is showing github.com — id: design: provider security model (from #5686) · Issue #5905 · developing-today/code
id: design: provider security model (from #5686) #5905DescriptionSummary
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
Impersonation, rogue providers, capability confusion, and the ceiling-composition audit for the provider model.
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). Activitydeveloping-today commented on Nov 5, 2026 dezren39 commented on Nov 5, 2026 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 §6 — security-model inputs: MCP's OAuth-centric authorization vs ID's owner-controlled grants, CapTP facet attenuation, SPIFFE identity plumbing, per-layer fit/fight analysis. It is an inventory, not a decision — the section ends with the open questions this design needs to answer. dezren39 commented on Nov 5, 2026 🤖 Agent note · handed off
- Agent: queue worker (repo-worker-code), lane code-u
- Session / ID: task 10307
- Found via: queue claim
- Task: Work issue id: design: provider security model (from #5686) #5905 per task 10307 — handed off to the opencode execution lane; the laptop claimant launches the bound opencode session for task 10307. Verified fresh: issue id: design: provider security model (from #5686) #5905 is OPEN with no hard-stop labels (no held, user/owned, do-not-merge, do-not-auto-edit).
- Expectation: triage/work at current main with evidence by the bound opencode session.
- Links: task 10307 (repo-health-code-pilot), assigned_lane=opencode
dezren39 commented on Nov 5, 2026 🤖 Agent note · handed off
- Agent: queue worker (repo-worker-code), lane code-o
- Session / ID: task 10307
- Found via: queue claim
- Task: Triage issue id: design: provider security model (from #5686) #5905 (id: design: provider security model, from issue design(id): client-side capability providers — one provider model for ESP32/MQTT, terminal, Bevy, smartphone, and web #5686) — assigned to the opencode execution lane again on re-claim (attempt 2; previously handed off at 2026-11-05T12:51Z, claimant had not launched before the park/lease cycled); handed off to the laptop claimant, not worked by this lane. Issue verified OPEN this shift, no hard-stop labels.
- Expectation: claimant launches the bound opencode session for task 10307.
- Links: issue design(id): client-side capability providers — one provider model for ESP32/MQTT, terminal, Bevy, smartphone, and web #5686 (parent), issue epic: ID platform expansion — apps, comms, currency, hosting, boards (2026-10-28 directive, LIST 6–15) #2056 (epic)
dezren39 commented on Nov 8, 2026 Triage verdict: real-and-current
Issue #5905 remains an open, unmet security-design deliverable. Its parent #5686 is open; the completed field survey #5931 explicitly inventories options without making a decision. I found no linked PR/branch or cross-provider security decision record for #5905. Existing design records are inputs, not substitutes: the embedded-provider decision for #5903 leaves the general security model to #5905 and asks it to verify instance-bound grants as a capability-confusion defense; #5904 covers offline semantics only and records no implementation.
Current-code re-verification:
- ProviderManifest in pkgs/id/crates/id-core/src/world_caps.rs:200-217 carries name, version, kind, schema, bounds, scope, and default-ceiling metadata, but no provider identity or signature fields.
- CapLedger at lines 1243-1248 tracks granted/allowed capabilities by name; the existing check at lines 1317-1345 correctly applies the ceiling before grant-on-use. The security design should build on that guard, not replace it.
Remaining scope: decide provider identity/authenticity and admission/trust (including impersonation, rogue providers, and bridge compromise); bind authority to provider, capability, and relevant version/action/instance context to prevent capability confusion; and audit ceiling composition across provider classes. Record the chosen shape, rejected alternatives and reasons, and implementation invariants. Treat #5931 and the #5903/#5904 decisions as inputs; do not redo their research or broaden into sibling issues. This is a decision-record task, not provider implementation. Follow pkgs/id/AGENTS.md documentation protocol for the record.
No code changed; no tests run (triage only). Triage does not close #5905.
dezren39 commented on Nov 9, 2026 🤖 Agent note · done — decision recorded
- Agent: queue worker (repo-worker-code, lane code-u)
- Session / ID: task 14150
- Found via: queue claim (direct execution lane, row 5421)
- Task: Provider security model decision record landed:
doc/2026-11-09_decision_id5905_provider_security_model.md, merged via PR docs(id): provider security model decision record (#5905) #7946 (squash 0a5ec84); the record and every doc path it cites were verified present on origin/main after the merge.
- Decisions in brief: provider identity is its keypair, bound as (identity, instance, manifest version) per id: design: capability grants for providers (from #5686) #5900 D1; manifests signed and verified at admission and on change, admission is an explicit admin act and every class enters at
default_ceiling: excluded; impersonation closed by key-bound addressing (name collisions refuse, never rebind); rogue-provider blast radius is the ceiling ∩ grant intersection with a ceiling → registry → revocation removal ladder and honest treatment of observation dishonesty as the residual risk; bridges/brokers are transport, never principals (compromise = drop/delay/replay, replay never re-executes); capability identity is the (provider, capability, manifest version) tuple; ceiling composition must be enumerable from registry + ledger + journal with named audit flags. No parent decision changed — design(id): client-side capability providers — one provider model for ESP32/MQTT, terminal, Bevy, smartphone, and web #5686, id: design: capability grants for providers (from #5686) #5900 (whose §6 left this threat model here), id: design: embedded providers: engine & smartphone instantiation (from #5686) #5903, id: design: offline & degraded operation for providers (from #5686) #5904 taken as given, ceiling-before-grant preserved verbatim; open questions (key-recovery UX, ESP32 attestation, cross-world reputation) recorded in the record.
- Expectation: closing id: design: provider security model (from #5686) #5905 on this evidence — the issue's own close condition is a recorded decision in a doc/ record linked from it. Implementation is filed as id: implement the #5905 provider security model — admission verification and ceiling-composition audit #7944 (admission verification + ceiling-composition audit enumeration) so the design has a tracked next action.
- Links: PR docs(id): provider security model decision record (#5905) #7946 · record
doc/2026-11-09_decision_id5905_provider_security_model.md · follow-on id: implement the #5905 provider security model — admission verification and ceiling-composition audit #7944
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|