Skip to content

id: implement the #5905 provider security model — admission verification and ceiling-composition audit #7944

Open

Description

@dezren39

Follow-on implementation from the #5905 decision record (doc/2026-11-09_decision_id5905_provider_security_model.md, filed under issue #5905).

Scope (per the record's invariants):

  • Registry admission verifies the provider manifest signature against the provider identity before the manifest is routable; a name collision with a different key is a refusal with a stable code, never a rebind.
  • New providers of every class enter with default_ceiling: excluded until an admin names them in a ceiling (parent F13.7 rule, generalised by the record).
  • Manifest version changes re-run admission for changed capabilities/classes; grants bound to a superseded manifest version refuse at use with a stable code.
  • A ceiling-composition audit enumeration: from registry + grant ledger + journal alone, list per world the effective provider authority (provider identity/instance, capability, class, standing grants, S3 presence) and flag the record's audit findings (standing actuation, S3 in a ceiling, grants on superseded manifest versions).

Out of scope: key-recovery UX for lost provider keys and hardware attestation (open questions in the record).

Filed by queue worker lane code-u under task 14150 so the #5905 design does not sit without a tracked implementation next action.

Activity

  1. developing-today commented on Nov 9, 2026

    @developing-today
    Contributor
  2. added this to the ID platform program milestone on Nov 12, 2026
  3. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged — implementation never started; follow-on queued with a verify-first scope

    • Agent: queue worker (repo-worker-code), lane any-g
    • Session / ID: task 18556
    • Found via: queue claim
    • Task: Fresh revalidation of issue id: implement the #5905 provider security model — admission verification and ceiling-composition audit #7944 (implement the id: design: provider security model (from #5686) #5905 provider security model). Verdict: TRIAGED — the decision record is on main, but this implementation follow-on has never been worked and has no queue coverage. Implementation follow-on enqueued from this triage.
    • Evidence (fresh, 2026-11-17):
      • The decision record exists on main: doc/2026-11-09_decision_id5905_provider_security_model.md.
      • The issue's only comment is the intake Kaneo link (2026-11-09); no agent has ever picked it up. Full queue scan: no live task for id: implement the #5905 provider security model — admission verification and ceiling-composition audit #7944 besides this triage.
      • Surrounding machinery exists (ceiling-name handling in pkgs/id/crates/id-caps/src/world_manifest.rs; admission mentions across id-caps/id-cli/id-worlds), but none of the record's four invariants is verifiably landed as a set — in particular there is no ceiling-composition audit enumeration anywhere under pkgs/id (term scan returns nothing). A term scan cannot prove the other three invariants either way, so the follow-on is scoped verify-first.
    • Follow-on: fix task enqueued — first re-verify each of the record's four invariants against current main (admission signature verification with stable refusal codes and no-rebind on key collision; default_ceiling: excluded for new providers of every class; re-admission on manifest version change + superseded-version grants refusing at use; the ceiling-composition audit enumeration from registry + grant ledger + journal), implement only what is missing, and record per-invariant evidence on this issue. Out of scope per the issue: key-recovery UX, hardware attestation.
  4. added
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    on Nov 17, 2026
  5. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Agent note — state: parked (verify-first pass complete; implementation is epic-scale) · task 20048, lane any-g

    Verify-first pass over the four #5905 invariants against current main (pkgs/id), per invariant:

    1. Admission signature verification + name-collision refusal — MISSING. The provider registry (id-caps world_caps.rs, ProviderRegistry / PROVIDER_REGISTRY) is a compile-time static catalog built by the define_provider_registry macro. ProviderManifest carries name, version, kind, argument_schema, bounds, required_scope, default_ceiling, side — no provider identity key and no signature, and there is no runtime admission action at all: nothing verifies anything before a manifest is routable, because routing is compiled in. (Signed objects DO exist nearby — id-caps declaration.rs verify_signature for capability declarations — but they are not provider-manifest admission.) A name collision is a compile error in the macro table, not a stable-code refusal, and there is no key to collide against.
    2. default_ceiling: excluded for every class — PARTIAL (client class only). ProviderManifest::side_contract_violation enforces the F13.7 contract: client-side providers must live in the client. namespace and must be DefaultCeiling::Excluded, conformance-fixture pinned. Host providers face no such rule: a host manifest may declare DefaultCeiling::Included and joins default ceilings by manifest default (default_ceiling_from / default_ceiling_names). In the static model the catalog edit is arguably the admin act D2 names, but nothing enforces excluded-at-entry for the host class, and there is no admin ceiling-naming step separate from editing the catalog.
    3. Re-admission on manifest version change + superseded-version grant refusal — MISSING. ProviderManifest has a version field, but with no admission there is nothing to re-run on a version change; and no grant objects or grant ledger exist in pkgs/id (term scan for GrantLedger / ProviderGrant across all id crates is empty — the id: design: capability grants for providers (from #5686) #5900 grant model is decided, not yet implemented), so there is no use-time superseded-version refusal with a stable code.
    4. Ceiling-composition audit enumeration — MISSING. Confirmed by scan: no enumeration anywhere in pkgs/id builds per-world effective provider authority from registry + grant ledger + journal, and two of its three inputs (grant ledger, provider journal) do not exist yet as data sources. The portal audit shapes in id-caps are message audit, not ceiling composition.

    Sizing verdict: the packet is labeled small_fix with a 45-minute timebox, but the missing pieces are the #5905/#5900 implementation program itself — signed provider manifests with identity keys, a dynamic admission path, grant objects + ledger bound to (identity, instance, manifest version), and the audit enumeration over them. That is a multi-packet build, not a verify-first mop-up: the verification this packet asks for is complete (this note), and the implementation needs decomposition into sequenced packets (suggested order: (a) provider identity + signed manifest + admission with stable refusal codes against the static catalog as the admitted set; (b) host-class excluded-at-entry enforcement; (c) #5900 grant objects/ledger with manifest-version binding and use-time refusal; (d) the D7 audit enumeration over a+b+c). Task 20048 parks with this record; issue #7944 stays open as the tracker for that decomposition.

  6. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed on Nov 17, 2026
  7. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · blocked (packet defect)

  8. removed their assignment
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    epic/id-programReprioritization program epic (2026-11-12)queue/parkedQueue task is parked (waiting on CI, time, or an event)status/parkedDeliberately paused with a recorded resume conditiontask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions