Repository navigation
Closed
Closed
Copy link
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)Package/app: id (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-insLarge: multi-day or open-ended; expect staged check-insepic/id-programReprioritization program epic (2026-11-12)Reprioritization program epic (2026-11-12)kind/designA design proposal (design-architect): multi-step, phased, decision-bearingA design proposal (design-architect): multi-step, phased, decision-bearingpriority/normalOrdinary priority (the default)Ordinary priority (the default)status/donestatus:done
Description
Design: generic invite delegation — iroh tickets and links for worlds and groups
Extends #2146 (program sessions / routing). Cross-links: #5684 (identity / login / delegation), #835 (scope bits + session-frame wiring), #5675 (discovery — invites are the private counterpart of discovery).
The ruling this implements (Drew, 2026-11-04)
- Anonymous public program sessions are the norm: a participant with an iroh ID (IRID) who was not specifically invited can join public sessions. Anonymous does not mean no token — an iroh ID is the minimum identity, always.
- Both modes get built: public-by-default AND invite-gating, because we need a way to invite-gate. Gating is a property a world/group can choose, not the platform's default posture.
The model: an invite is a delegation object
An invite is a signed, self-contained delegation from an inviter to whoever redeems it:
- Target: a world, or a group — joining the group grants access to everything the group fronts (a group can front a set of worlds; one redemption, many worlds).
- Inviter: an IRID, plus the authority source that makes this invite valid (see below).
- Terms: uses (one-time / N uses / bearer-link until revoked), expiry, and optional constraints (role granted on join — tying into id(world): F14.6 builder and moderator authority through session frames (F12.3 remainder) #835's scope bits; the invite grants at most what its terms say).
- Carriers — one object, three envelopes: an iroh ticket containing the details (iroh-native is the primary form), a plain URL, and an ID protocol URL. The carrier differs; the delegation object inside is identical.
Redemption = exercising a delegation
- Accepting an invite is recorded as an action delegated from the inviter: the join is journaled with its full provenance (who invited, under which authority source, which ticket/link, when).
- One-time tickets self-invalidate on redemption. Link invites are bearer capabilities — anyone holding the link can join, like a Discord invite link but more capable: scoped to a target and role, expiring, use-counted, and revocable (revoking a link kills future redemptions; already-redeemed memberships are separate state, removed by group/world operations, not by invite revocation).
- Redemption must verify offline-capable: the ticket is signed, so a world/group node can validate it against the inviter's key and the authority chain without a home server round-trip.
Where invite power comes from
- Open delegation: a world created with open delegation lets participants invite others (the public-norm case still uses invites for its gated rooms/groups).
- Moderator grant: moderators hold invite power and can extend it (bounded — an inviter can never grant more than their own authority; chain rules per design(id): identity, login & delegation — simplicity-first key custody, security-code recovery, and pseudo-login identities #5684's delegation model).
- Invite power is itself a scope (see id(world): F14.6 builder and moderator authority through session frames (F12.3 remainder) #835): grantable, revocable, auditable — not an ambient property of being present.
Open questions for the design pass
- Ticket encoding: postcard per id: design: Wire format & transport adapters — postcard schema, non-UDP carriers, relays/proxies #5674's wire format work; what's the size budget for a ticket that must survive being pasted into chat?
- Delegation depth: can a redeemer re-invite (chain length caps)? Under open delegation presumably yes within scope; under moderator grant?
- Link leakage: a bearer link posted publicly is indistinguishable from intended distribution — rotation UX and per-link join auditing are the mitigations; anything stronger?
- Group-fronted worlds added after a redemption: does an existing group member automatically gain the new world (group = live set) or is access snapshotted at join? (Recommendation to evaluate: live set — that's the point of fronting — with per-world sensitivity filters from id: design: Querying local and remote ID servers v1 #5675 still applying.)
Non-goals
- No zero-identity access paths, ever — every join, public or gated, is an IRID acting.
- No central invite registry service; tickets are self-verifying objects.
Metadata
Metadata
Assignees
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)Package/app: id (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-insLarge: multi-day or open-ended; expect staged check-insepic/id-programReprioritization program epic (2026-11-12)Reprioritization program epic (2026-11-12)kind/designA design proposal (design-architect): multi-step, phased, decision-bearingA design proposal (design-architect): multi-step, phased, decision-bearingpriority/normalOrdinary priority (the default)Ordinary priority (the default)status/donestatus:done
Activity
developing-today commentedon Nov 5, 2026
CODE-1440
dezren39 commentedon Nov 5, 2026
🤖 Agent note · done (triage)
Triage findings for issue #5751 (task 10162)
Verified current (2026-11-05, fresh
ghreads): issue #5751 is OPEN, filed 2026-11-05T01:17:11Z, carrying onlytask/triage+queue/queuedat claim time — no hard-stop labels (held,user/owned,do-not-merge,do-not-auto-edit), no competing PR or branch owns this work, and no implementation issue referencing issue #5751 exists yet (search of5751 in:bodyreturns only sibling design issues #5959, #5989, #5969 cross-linking it). The design in the body is current and implements Drew's 2026-11-04 ruling (public-by-default program sessions plus optional invite-gating; an invite is a signed delegation object with three carriers: iroh ticket, plain URL, ID protocol URL).Routing: this is a design pass first, implementation second. The issue's own open questions are the work, and they cannot be answered independently of its dependencies:
priority/high,kind/design, queued) — identity, login & delegation. The invite chain rules (delegation depth, re-invite caps, "never grant more than your own authority") are defined there; issue Design: generic invite delegation — iroh tickets and links for worlds and groups #5751's moderator-grant and open-delegation sources inherit them. Design pass for issue Design: generic invite delegation — iroh tickets and links for worlds and groups #5751 runs after, or jointly with, the delegation model in issue design(id): identity, login & delegation — simplicity-first key custody, security-code recovery, and pseudo-login identities #5684.Scoped next action (named, per the no-silent-design rule): a design pass on issue #5751 that records decisions on its four open questions (ticket encoding + size budget; delegation depth / re-invite caps; bearer-link leakage mitigations; group-fronted worlds as a live set vs. join-time snapshot, evaluating the body's live-set recommendation), gated on the issue #5684 delegation model and the issue #5674 wire format. Only after those decisions land does an implementation issue get filed — filing one now would scope against undecided chain rules and an undecided ticket encoding. No code change is made in this triage, and the issue stays open as the design track.
Labels: routed as triaged + waiting-dependency to mirror this ordering.
dezren39 commentedon Nov 8, 2026
🤖 Agent note · handed off
25 remaining items
dezren39 commentedon Nov 14, 2026
🤖 Agent note · triaged
triaged.State found (revalidated fresh, 2026-11-14): the model is ruled, the design record does not exist, and the remaining work is a design pass — now enqueued in the correct shape.
doc/on main has no record for Design: generic invite delegation — iroh tickets and links for worlds and groups #5751 (only unrelated October invite docs), and the four open questions in the body (ticket encoding + chat-paste size budget; delegation depth/chain caps; link-leakage mitigations beyond rotation + auditing; group live-set vs snapshot-at-join) are unanswered anywhere on the issue.Enqueued: task 16810 — "Design pass #5751: generic invite delegation — settle the four open questions in a design record", kind small_fix, priority 40: produce the record (doc/ file linked here, or the full record as an agent-note comment per the task-10487 pattern) answering all four questions with chosen shapes, rejected alternatives, and implementation invariants, plus the field-level invite-object shape, the redemption journal record, and the invite-power mapping onto #835's scope bits — consuming #5684's delegation chain rules, never forking them silently. Implementation is explicitly out of that task. (The enqueue revived the dedupe key from cancelled predecessor task 13689.) Full packet text is in the task payload and at
~/hatch/scratch-p5751.mdon the laptop.Labels applied: app/id, priority/normal, effort/l (kind/design and epic/id-program already present). The issue stays open as the design ticket of record until task 16810 lands.
Task 15255 completes as
triagedwith follow_up_task_ids [16810].Merge pull request #10340 from developing-today/queue/16810-5751-invi…
dezren39 commentedon Nov 14, 2026
Design pass complete — task 16810 (lane code-d, 2026-11-14)
doc/2026-11-14T18-50-00Z_design_id_invite_delegation/@codex reviewrequested; Codex silent (account usage limit exhausted account-wide this shift, zero findings verified via API); CodeRabbit summary posted with no actionable findings; gate disposition recorded on the PR before merging.The four settlements (each argued in the record against the shipped
id-directory::invitesbaseline, which already implements the paste layer and the signed invite event):Follow-on: the record's §5 names the five implementation deltas against
InviteBody(target/uses/depth/parent/redeemer fields + budgets, redemption journaling + per-link listing, revocation + rotation, fronting-set events + live-set access evaluation, minting defaults) for the implementation issue triage spawns from this design, mirroring how #5956's design spawned #10027.chatgpt-codex-connector commentedon Nov 14, 2026
You have reached your Codex usage limits. You can see your limits in the Codex usage dashboard.