Skip to content

id: implement provider declaration model (from #5898 decision record) #8362

Closed

Description

@dezren39

Summary

Follow-on implementation issue from the provider declaration model decision record for issue #5898, merged in PR #8359 (doc/2026-11-11T00-18-00Z_decision_id5898_provider_declaration_model.md, merge 99d8b9a). The record's section 7 names this work as follow-on; this issue is its tracked home. Design questions are settled by the record — this issue is implementation only, and must hold the record's invariants I1-I10.

Scope

  1. Choose and standardise the canonical encoding for the declaration object inside the ID object model (record D3 assumes the model's usual canonical form; the concrete choice is this issue's).
  2. Define the signed provider manifest object with the record's D2 field set (provider block + per-capability entries + prohibited contents enforced).
  3. Project the compile-time ProviderManifest entries in pkgs/id/crates/id-core/src/world_caps.rs into the D2 shape at registry load (host-attested provenance, ttl_class: static), preserving the "one manifest entry" property the id: F12.4 provider registry — capabilities as manifest + provider components #1061 registry test provider proves.
  4. Add the registry dynamic-filing path: signature verification at admission and on every manifest change (record D3), admission as a separate registry record citing the manifest digest, forward-only version/epoch enforcement (D4), and the D6 lifecycle states.
  5. Wire the declaration view so discovery (issue id: design: provider discovery & negotiation protocols (from #5686) #5899) reads filed declarations only (invariant I5).

Out of scope

Acceptance

  • A runtime-filed, signature-verified manifest is admitted, discovered, and grant-bindable by its (provider identity, capability id, manifest version) tuple, with tests naming those oracles.
  • The static catalog behaves identically downstream of admission (record D1 degenerate case).
  • Rollback of manifest_version or epoch is refused with a stable code, covered by a test.

Activity

  1. added
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    kind/designA design proposal (design-architect): multi-step, phased, decision-bearing
    on Nov 11, 2026
  2. developing-today commented on Nov 11, 2026

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

    @dezren39
    MemberAuthor

    agent-note:v1
    state: triaged
    task: 18643 · lane: any-a · worker: repo-worker-code
    issue: #8362

    Verdict: CONFIRMED, real and unstarted. Work kind: small-fix (implementation of a settled decision record). Priority: high — the ID program's design tracks are Drew's priority line 2 (priorities brief, ratified 2026-11-07); no expedite/next-up label added (that set is Drew's alone). Effort: l.

    Evidence checked this shift (2026-11-17):

    Routing: scoped implementation packet enqueued as task 20124 (dedupe repo-health:v1:fix:developing-today/code:issue:8362, priority 20; packet hidden_files/packet-8362-fix.json), carrying the corrected world_caps.rs path and the acceptance oracles from the issue: filed + signature-verified manifest admitted, discovered, and grant-bindable by (provider identity, capability id, manifest version); static catalog identical downstream of admission; manifest_version/epoch rollback refused with a stable code, test-covered. First concrete step: standardise the canonical encoding for the declaration object (scope item 1), since D3 signing depends on it.

  5. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: correction
    task: 18643 · lane: any-a · worker: repo-worker-code
    issue: #8362

    Correction to the triage note above (comment 6937809247): the follow-on implementation packet was enqueued as task 20129, not task 20124 as that note states. Dedupe key repo-health:v1:fix:developing-today/code:issue:8362; packet hidden_files/packet-8362-fix.json. Everything else in the triage note stands.

  6. added
    kind/featureNew feature or capability request
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/highImportant and time-sensitive
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    status/triagedTriaged and routed (see agent note)
    and removed
    kind/designA design proposal (design-architect): multi-step, phased, decision-bearing
    on Nov 17, 2026
  7. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · in progress

    Verification so far (2026-11-17)

    • cargo test -p id-caps --lib (from pkgs/id, laptop): 138 passed, 0 failed — including 12 new oracle-named declaration tests covering the issue's three acceptance criteria (filed manifest admitted/discovered/grant-bindable by tuple; static catalog parity downstream of admission; manifest_version/epoch rollback refused with stable codes).
    • A full-target test run in the shared laptop target dir hit pre-existing E0514 stale-artifact errors in unrelated iroh-dependent targets; the lib suite (this change's scope) is clean, and CI's flake checks on main are the full gate.
  8. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    state: parked (conflict-avoidance)
    lane: any-b, worker: repo-worker-code, task 20129

    The broker served task 20129 to lane any-b at 2026-11-17T04:44Z, but the work is already actively owned: lane any-k claimed this task, implemented all five scope items, and opened PR #10958 (note comment 6938137681, minutes before this claim), with cargo test -p id-caps --lib at 138 passed / 0 failed and bot review in progress on the PR. Per the queue rule against parallel work, any-b is NOT touching the PR or building anything alongside it — parking task 20129 for 30 minutes naming PR #10958 as the conflicting artifact. Resume: whoever claims next shepherds PR #10958 (disposition review findings, merge, close #8362 via the PR) or confirms any-k's session finished it.

  9. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

    What landed

    New declaration module in pkgs/id/crates/id-caps (+ ed25519-dalek/sha2 deps, matching the workspace's versions):

    • Canonical encoding: deterministic, domain-separated, field-ordered, length-prefixed over the D2 field set; SHA-256 digest as the content address (D3).
    • The signed D2 manifest object (provider block + per-capability entries), prohibited contents enforced structurally and at filing.
    • Static projection of the compile-time catalog at registry load (host-attested, ttl_class: static) — the D1 degenerate case, proven identical downstream by test.
    • Dynamic filing: signature verification at filing and the separate admission record (enters at excluded, never a countersignature), forward-only manifest_version/epoch with stable rollback codes, the D6 lifecycle, and signed withdrawals.
    • The filed-declaration view (live only, I5) and tuple resolution to digests for grants (I4: superseded versions stay fetchable/resolvable).

    Verification

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)effort/lLarge: multi-day or open-ended; expect staged check-insepic/id-programReprioritization program epic (2026-11-12)kind/featureNew feature or capability requestpriority/highImportant and time-sensitivestatus/triagedTriaged and routed (see agent note)status:donetask/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