You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
id: implement the #5905 provider security model — admission verification and ceiling-composition audit #7944
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.
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.
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:
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.
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.
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.
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.
Activity
developing-today commentedon Nov 9, 2026
CODE-2356
dezren39 commentedon Nov 17, 2026
🤖 Agent note · triaged — implementation never started; follow-on queued with a verify-first scope
doc/2026-11-09_decision_id5905_provider_security_model.md.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.default_ceiling: excludedfor 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.dezren39 commentedon Nov 17, 2026
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:
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.
dezren39 commentedon Nov 17, 2026
🤖 Agent note · blocked (packet defect)