Skip to content

id: invite capability_pin term — pin the capability baseline as issued (#5751 delta from #5959 design) #12922

Open

Description

@dezren39

Refs #5959.

Scope

Add the optional capability_pin term to the invite model of #5751 (doc/2026-11-14T18-50-00Z_design_id_invite_delegation/), as decided in §7 of the #5959 design record (doc/2026-11-23T05-02-30Z_design_id_capability_change_notices/, PR #12920).

  • Invite terms gain capability_pin: { release_identity, table_version } — the world's release identity as issued plus the class-table version. It deliberately does not carry the message set: the pinned release's registry record (id: design: capability model — requested vs discovered-used sets, registry listing, custom-compiled platforms #5958 §4) is immutable and content-addressed, so the redeeming client recomputes the pinned message set from the identity. The pin is two hashes and a version, sized to fit the invite body's 512-byte hard budget.
  • Minting: the inviter's client computes and attaches the pin at issuance (optional; recommended for per-recipient links to sensitive worlds, normally absent on public bearer links).
  • Redemption: if the current message set is covered by the pinned set, the pin seeds the joiner's baseline (narrowed to current); if not covered, the id: design: capability-change notices on reconnect — expansion and sideways changes #5959 change notice fires before the first connect completes; if the pinned release record cannot be fetched, the pin is ignored and the join is an ordinary first connect.
  • The pin never widens anything: it grants nothing by itself and does not interact with the invite's own expiry / use-cap / redeemer-pin terms.

Test oracles

Pin covered ⇒ baseline seeded, no blocking prompt; pin uncovered ⇒ notice before first connect; pin unfetchable ⇒ ordinary first connect; pin present with a since-shrunk world ⇒ baseline seeds at the narrower current set.

Design of record: #5959 §7. Invite model: #5751. Parent program: #5955.

Activity

  1. added
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    epic/id-programReprioritization program epic (2026-11-12)
    on Nov 23, 2026
  2. developing-today commented on Nov 23, 2026

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

    @dezren39
    MemberAuthor

    🤖 Agent note · claimed — Lane HH (archer, Muse sandbox seat), 2026-11-23.

    Claiming the implementation slice for #12922: the optional capability_pin invite term per #5959 §7 — minting-side attach + redemption decision logic with the issue's four test oracles. Premise re-verified fresh this pass: #12922 OPEN, no live claim (only a Kaneo cross-link), design of record #5959 closed via PR #12920. Working in a laptop worktree off main; PR + verification record to follow here.

  4. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · premise-checked, dependency verdict — Lane HH (archer), 2026-11-23. Claim released: the pin term has no landable slice today, because the object it attaches to does not exist in code yet. No code was manufactured.

    Premise verdict: #12922 OPEN, no competing claim, design of record (#5959 §7) settled. But all three things the pin touches are absent from current main (verified by grep over pkgs/id this pass):

    1. The Design: generic invite delegation — iroh tickets and links for worlds and groups #5751 terms object. InviteBody (pkgs/id/crates/id-directory/src/invites/event.rs) is still the fixed-layout v1 format — inviter / ticket_digest / group / role / expires_ms only. The §2–§4 terms (target, uses_cap, depth_remaining, parent_digest, redeemer) that the pin joins as "one optional field in the invite terms" were never implemented, and had no tracking issue. Filed: id: implement #5751 invite terms extension — InviteBody target/uses/depth/redeemer/parent, postcard versioning, 512-byte budget #12983 — the Design: generic invite delegation — iroh tickets and links for worlds and groups #5751 §5 step-1 terms extension (postcard versioned body, 512-byte budget). The pin lands as one more optional field in that change, not as a unilateral edit to the fixed-layout wire format here.
    2. The baseline the pin seeds is id: implement capability-change notices — client baseline store, connect-stage comparison, notice surface (#5959 design) #12921's client baseline store (open, unimplemented); the pin's "covered ⇒ seed baseline narrowed to current" outcome has nowhere to write until it lands.
    3. The pinned message-set recompute needs the id: design: capability model — requested vs discovered-used sets, registry listing, custom-compiled platforms #5958 §4 release record (release identity → message set); the release-record resolution path is part of id: implement capability-change notices — client baseline store, connect-stage comparison, notice surface (#5959 design) #12921's connect-stage scope. The pin's table_version likewise refers to the class table tracked by id: add class field to ProviderManifest + shipped/reserved class table (#5999 §2.4/§10 follow-up) #12982 (open).

    What is NOT blocked: the redemption decision itself (covered ⇒ seed, no prompt / uncovered ⇒ notice before first connect / unfetchable ⇒ ordinary first connect / shrunk ⇒ seed at the narrower set) is a pure function of (pinned set, current set, fetch outcome) — it can be written and oracle-tested the moment #12983 gives it a terms type to live on, ahead of #12921's store, against a lookup trait. That is the first slice when #12983 lands.

    Next concrete slice, in order: #12983 (terms extension) → this issue's pin field + redemption decision with the four oracles in the body → #12921 wires the seeded baseline and the notice surface. #12922 stays open on #12983.

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

    app/idPackage/app: id (pkgs/ or apps/ in this repo)epic/id-programReprioritization program epic (2026-11-12)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions