Skip to content

id: design: capability-change diff semantics — user-meaningful capability classes and re-approval triggers #5999

Closed

Description

@dezren39

Part of the worlds design program: #5955. Wave-2 follow-up from the prior-art research (Lane B item 10); parent topic issue: #5959. Research source: workspace/scratch/worlds-capabilities-brief-2026-11-04/prior-art-research.md.

Scope

#5959 owns the change-notice design; this follow-up pins the comparison semantics it compares with — the Chrome extension model, which is Drew's "expands or goes sideways → warn before reconnect" rule already battle-tested:

Work

  • Define id's user-meaningful capability classes (the "warning messages" of our registry vocabulary: e.g. arbitrary-network-out is a class; one more sandboxed file-read path may not be).
  • State which diffs trigger re-approval (new class, class expansion), which are silent (moves within a granted class, decreases), and how the discovered-used set changing under an unchanged requested set is presented (the sideways case id: design: capability-change notices on reconnect — expansion and sideways changes #5959 names).
  • Sideways moves that don't change the class set don't prompt — that's what keeps the notice from becoming fatigue.

Done looks like

A class table + diff-trigger rules that #5959's notice UX can implement directly.

Activity

  1. developing-today commented on Nov 5, 2026

    @developing-today
    Contributor
  2. added
    priority/normalOrdinary priority (the default)
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    kind/designA design proposal (design-architect): multi-step, phased, decision-bearing
    task/triageQueue packet kind: verify, reproduce, and route this item
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 5, 2026
  3. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged

    Verdict: scope confirmed, still valid, NOT handled/superseded — keep open. This is a design deliverable (a capability class table + diff-trigger rules), not a code fix; no implementation packet is enqueued from this triage.

    Evidence at current main:

    • The registry vocabulary the class table must be built over exists: pkgs/id/crates/id-core/src/world_caps.rs (the append-only capability CATALOG referenced by cli.rs, commands/world.rs, world/core.rs).
    • No diff/re-approval semantics exist yet: fresh grep of pkgs/id on origin/main finds no re-approval trigger logic and no user-meaningful capability classes (hits are an unrelated capability-only diff read in commands/world.rs and unrelated CLI size warnings). Nothing in main implements the Chrome-model comparison over warning classes.
    • The issue's own scope statement is complete and implementable as written: classes over the registry vocabulary, trigger rules (new class / class expansion prompt; within-class moves and decreases silent), and the sideways case (discovered-used set changing under an unchanged requested set) named for parent issue id: design: capability-change notices on reconnect — expansion and sideways changes #5959.

    Ordering / blockers: no hard blocker. Parent issue #5959 (capability-change notices on reconnect) is OPEN and still untriaged (status/needs-triage, queue/queued at this check); issue #5999's class table + trigger rules are the comparison semantics #5959's notice UX implements directly, so the natural order is: this design first (or in parallel as pure design), then #5959's notice design/implementation consumes it. The design work itself needs no code prerequisite — it can start from the current world_caps.rs CATALOG.

  4. 10 remaining items

  5. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 agent=repo-worker-code state=picked-up task=12873 lane=opencode-scheduled at=2026-11-08T10:04:00Z

    🤖 Agent note · picked up

    Revalidation at claim: #5999 OPEN with task/triage,kind/design,app/id; parents #5955 and #5959 both OPEN; PR search for 5999 still returns only unrelated #4017. No held/user-owned flags. Work starts now.

  6. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 agent=repo-worker-code state=done task=12873 lane=opencode-scheduled at=2026-11-08T10:16:00Z

    🤖 Agent note · done — design record landed as PR

    Delivered — doc/2026-11-08T10-12-00Z_design_id_capability_diff_semantics/, design record only, no code:

    1. What is compared: the declared set requested ∪ platform_bound, mapped to capability classes. Not the used set, not granted/effective/ceiling (a host lowering a ceiling is a decrease; raising one grants nothing alone).
    2. The class table over all 19 names registered at world_caps.rs:346-491, plus reserved classes for the id: design: capability model — requested vs discovered-used sets, registry listing, custom-compiled platforms #5958 S12 vocabulary (sandboxed fs, arbitrary file read, arbitrary network out). Class assignment is a manifest field, never inferred from prefixes or RequiredScope; message text is client-side so a server cannot word its own warning; unknown name or class fails closed into a disclosing unknown class.
    3. Collapse rules: membership inside one class is invisible; a broader accepted class covers a narrower new one; messageless capabilities never enter the comparison; acceptance is by class, not by name.
    4. Trigger rules (9 rows): re-approval iff a class in the new set is not covered by the accepted baseline. Removals, within-class moves, messageless additions, optional additions, host ceiling changes and used-set-only changes are all silent. Grant-on-use is recorded as an explicit seam the notice does not cover.
    5. The sideways case id: design: capability-change notices on reconnect — expansion and sideways changes #5959 asks about: answered — a used-set change under an unchanged declared set is not a permission moment; it is the "asks for all these, uses this subset" trust surface. A used set that outgrows the declaration is an author declaration defect, and the cure is a declaration change that then reaches the user as a real class.
    6. The consumption contract (Bump build/buck/preludes/buck2-prelude from 3a02ea3 to 4371899 #6) gives id: design: capability-change notices on reconnect — expansion and sideways changes #5959 the exact functions and inputs, and 10 invariants (Bump build/buck/preludes/buck2-prelude from 3a02ea3 to c77fc97 #7) make the comparison property-testable over (B, N, ≼).

    Not done here: the class field on ProviderManifest and the registration-time "class id must exist" check are implementation, filed under Follow-ups (§10) for #5959 / the capability-model work. Invite pinning (#5751) and multi-user/per-server baselines are left as open questions with the safe default stated.

    CI on the PR is docs-only; no build applies.

  7. added this to the ID platform program milestone on Nov 12, 2026
  8. added a commit that references this issue on Nov 16, 2026
  9. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    Design record merged: doc/2026-11-08T10-12-00Z_design_id_capability_diff_semantics/ via PR #7630, merge commit 71bd7dd7d8.

    What #5959 consumes: the capability class table (19 registered names plus reserved classes for sandboxed fs / arbitrary file read / arbitrary network out, §2.2–2.3), the subsumption order and collapse rules (§3), the re-approval trigger as "a new class not covered by the accepted baseline" with removals, within-class moves, messageless and optional additions silent (§4), and the sideways discovered-used-set case presented as a trust surface rather than a permission moment (§5). Ten invariants are stated so the comparison is property-testable (§7).

    Indexes updated in the same commit: doc/README.md and planning/architecture/README.md (the merge onto main conflicted only in those two lists; both sides kept).

  10. added a commit that references this issue on Nov 23, 2026
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)epic/id-programReprioritization program epic (2026-11-12)kind/designA design proposal (design-architect): multi-step, phased, decision-bearingpriority/normalOrdinary priority (the default)status:donetask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions