Skip to content

id: add class field to ProviderManifest + shipped/reserved class table (#5999 §2.4/§10 follow-up) #12982

Open

Description

@dezren39

Refs #5999 (§2.2–§2.4, §10 follow-up 1), #12921 (gated on this), #5959 §10.

Scope

Implement the first follow-up named in the #5999 diff-semantics record (§10): the record is a design deliverable and deliberately landed no code, and no implementation issue was ever filed for this follow-up — this issue is that filing, and its first slice.

  • class field on ProviderManifest (pkgs/id/crates/id-caps/src/world_caps.rs): a class id, as registry data — explicitly not prefix parsing (§2.4 rejects coupling to is_sensor_cap). Every registered provider entry carries its class from the §2.2 table.
  • The shipped class table: the nine classes of §2.2 (cap.none, world.presence, chat.read, chat.write, world.records, world.schedule, device.screen, device.keyboard, device.location) with their §2.2 member assignments for all 19 current registry names, plus the reserved classes of §2.3 (fs.sandbox, fs.read.arbitrary, net.out) so the first fs.*/net.* provider lands with a warning slot instead of none, plus the unknown class (§2.4: disclosing, subsumed by nothing).
  • Name → class lookup through the manifest field: an unregistered capability name maps to unknown (§2.4, mirroring the ledger's <unknown> usage bucket); a class id not in the shipped table also resolves to unknown at lookup time (fail-closed).
  • Table version: the class table is versioned with the client build (§2.4); expose the current version as a constant the baseline/diff work (id: implement capability-change notices — client baseline store, connect-stage comparison, notice surface (#5959 design) #12921) records alongside a comparison.

Out of scope

Test oracles

  • Every name in the production registry maps to exactly the class §2.2 assigns it (table-driven test over all entries).
  • The reserved classes of §2.3 exist in the shipped table with their ids, and no current registry name claims one.
  • An unregistered name resolves to unknown; a manifest class id outside the shipped table resolves to unknown.
  • Existing id-caps suites stay green (the field addition must not break the generated CATALOG view or any manifest consumer).

Design of record: #5999 §2.2–§2.4, §10. Consumer: #12921. Parent program: #5955.

Activity

  1. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Claiming the implementation slice (Lane HF, archer): add the class field to ProviderManifest, the shipped class table (§2.2 assignments for all current registry names), the §2.3 reserved classes, the unknown fail-closed mapping, and the table-version constant — per #5999 §2.2–§2.4 and §10 follow-up 1.

    Premise verified fresh (2026-11-23 ~06:10Z): no class field exists on ProviderManifest on current main, no class table exists in id-caps, no open PR touches either, and #12921's dependency note names exactly this as its gate. Worktree off origin/main on the laptop; PR + tests to follow.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions