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) #12982DescriptionRefs #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. Activitydeveloping-today commented on Nov 23, 2026 dezren39 commented on Nov 23, 2026
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. dezren39 commented on Nov 23, 2026
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.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|