GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — id: add `class` field to ProviderManifest + shipped/reserved class table (#5999 §2.4/§10 follow-up) · Issue #12982 · developing-today/code

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

New issue
Copy link
New issue
Copy link
Closed
#13002
Closed
id: add class field to ProviderManifest + shipped/reserved class table (#5999 §2.4/§10 follow-up)#12982
#13002
Copy link
Labels
status:done

Description

@dezren39
dezren39
opened on Nov 23, 2026
Issue body actions

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

  • The comparison itself, the baseline store, the connect stage, and the notice surface — that is id: implement capability-change notices — client baseline store, connect-stage comparison, notice surface (#5959 design) #12921, which this issue gates (§10 of id: design: capability-change diff semantics — user-meaningful capability classes and re-approval triggers #5999; §10 of id: design: capability-change notices on reconnect — expansion and sideways changes #5959: "the class field on ProviderManifest remains id: design: capability-change diff semantics — user-meaningful capability classes and re-approval triggers #5999's own follow-up and gates it").
  • The registration-time "class id must exist in the shipped table" check (§9.3) — it belongs with whichever change first registers an fs.*/net.* provider.
  • Final notice wording — id: design: permission UX — Play Store-style prompts, client-side vs server-side disclosure, admin grant modes #5960's wording review owns the copy; §2.2's sentences are the semantics.

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
    developing-todayBot
    on Nov 23, 2026 – with developing.today
    Contributor
    More actions

    CODE-4750

  2. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    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.

  3. developing-today
    added
    status:in-review
    on Nov 23, 2026
  4. dezren39
    added a commit that references this issue on Nov 23, 2026

    Merge pull request #13002 from developing-today/lane-hf/12982-provide…

    8b18663
  5. dezren39
    closed this as completedin #13002on Nov 23, 2026
  6. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 23, 2026
  7. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Done — PR #13002 merged (merge 8b186634a5b, head dcf5bc4d810 SHA-guarded; 4 files, +413/−0; contents verified on main):

    • pkgs/id/crates/id-caps/src/cap_class.rs (new) — the shipped class table: §2.2's nine classes with the record's client-side sentences (cap.none messageless), §2.3's reserved classes, the fail-closed unknown class, CAP_CLASS_TABLE_VERSION = 1, and fail-closed resolution (resolve_cap_class, ProviderManifest::cap_class, ProviderRegistry::class_for_name — an unregistered name or an unshipped class id resolves to unknown).
    • world_caps.rs — ProviderManifest gains the class field as registry data; the registry macro gains a class: arm and all 34 production entries carry assignments (§2.2's 19 name-by-name; http.fetch in §2.3's reserved net.out slot; the 14 post-record registrations carry CLASS_UNKNOWN). Client manifests, the test-provider manifest, and the in-crate test helper updated.
    • provider_broker.rs (id-worlds) — the one external manifest fixture gains the field.

    Verification (laptop worktree off origin/main, nix develop in pkgs/id): cargo test -p id-caps 206 passed / 0 failed — including the 6 new cap_class tests (exact table shape + reserved set; §2.2 assignments; reserved fs classes memberless, net.out's only member http.fetch; every registered class id in the shipped table; fail-closed resolution both directions; the unassigned-names tripwire). cargo test -p id-caps --features test-provider 206 / 0. cargo test -p id-worlds --lib provider_broker 16 passed / 0 failed. rustfmt clean on all touched files; no new warnings.

    Named remainder: the 16 names carrying CLASS_UNKNOWN (kv., blob., notify, device.info, form., speech., client.file.read, client.notify) need a design pass for real class assignments — filed as #13004, with the tripwire test pinning the list. This issue's own scope is complete; #12921's gate is cleared.

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

    status:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.