~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

Inboxes are memberspaces their owners' apps make, without checkAccess

Merged
Merged chadtmiller.com asked to merge into feature/proposal-nov from chadtmiller.com/group-host:invites/memberspace

An invitee's inbox is now a memberspace their own app makes, with publicWrite set and no members, as the opensocial proposal of 19 Nov has it, so the host no longer answers com.atproto.managedspace.checkAccess. Groups' invites still go into the inbox the same way, and the host tells the invitee's PDS with notifyRepoUpdate.

Claude Opus 5.5

What changes

Inboxes are memberspaces. at://<invitee>/space/fyi.opensocial.invites/self is made by the invitee's app with atproto's baseline com.atproto.memberspace.policy, {publicWrite: true} and no members: any group may write an invite there, and only the owner reads it. The host's writes are unchanged: the group's record in its repo in the inbox, then com.atproto.space.notifyRepoUpdate to the invitee's PDS, which keeps the group among the inbox's writers.

checkAccess is gone. The host no longer serves com.atproto.managedspace.checkAccess, and lexicons/upstream/com/atproto/managedspace/ (checkAccess, policy) is removed. harness/lexicons.mjs names both in RETIRED, in place of checkUserAccess, which main no longer has.

fyi.opensocial.invites takes the proposal's description: an inbox under the user's own DID, made with a memberspace policy that sets publicWrite.

Docs. docs/design/membership.md (Invites), docs/design/spaces.md and docs/reference/api.md say how an inbox is made now and drop checkAccess. Membership also says the PDS is told with notifyRepoUpdate, and that a PDS refusing the notice outright isn't asked again, while the invite still waits on the host's list.

Why

Part 5 of the proposal's 16–19 Nov changes. The spaces spec (0016-permissioned-data, managedspace) has checkAccess served by a space's managing app for spaces made with com.atproto.managedspace.policy naming it. Only an inbox made that way, naming this host (<host DID>#opensocial), would ever ask this host. Nothing here ever made one: the console, packages/sdk, examples/kicker, the opensocial command and the MCP tools only write into an inbox, and never call com.atproto.space.createSpace for one. The only inbox ever made was in tests/interop.rs, against the test network's reference PDS. Users' PDSes in production don't speak the space alpha, so no inbox on the deployed host can depend on checkAccess. So it's removed outright, with no route kept for older inboxes. No stored data changes shape: the host's invite rows and the group's records in inboxes are as before, so there's no migration.

How it was checked

  • tests/interop.rs an_invite_into_an_inbox_on_the_reference_pds: Alice's inbox is made on the reference PDS (space alpha) as a memberspace with publicWrite. A group here invites her, nothing stays owed, and her PDS's writer set for the inbox holds the group.
  • tests/invites.rs: the checkAccess test goes with the method.
  • e2e, "inviting someone from the dialog": on the alpha, Bob's inbox is made at his PDS as his app would make it (makeInbox in harness/e2e/pages.mjs). After Alice invites him from the console, his PDS's writer set for the inbox holds Hikers. inboxWriters reads the set as a syncing app does: a delegation token, authorizeSpaceSync for a key of its own, and listWriters signed with that key.
  • The rest is left to CI: the test gate, clippy, just lex, e2e and docs.

Shortcomings

  • Nothing here makes a person's inbox: the console reads invites from the host (getActorInvites), not the inbox, and doesn't ask for a scope on the user's own PDS to make one. Until an app does, an invitee's PDS has no inbox, and refuses the notice. The invite still works through the console and getActorInvites.
  • An account moving here to become a group (importAccount, opensocial account import) brings every space it governs, and refuses a publicWrite memberspace with UnsupportedPolicy. An account whose app made it an inbox can't move until its inbox is left behind or deleted. That was already true for the managedspace inboxes, but such inboxes are now what apps make. Leaving the account's own inbox behind on a move would fix it. That's a change to moving, so it's not made here.

Review

Start with crates/group-host/tests/interop.rs and harness/e2e/pages.mjs (inboxWriters).

Approved

This pull removes com.atproto.managedspace.checkAccess from the host. It deletes the handler, the route, the two upstream lexicons, the checkAccess test and its docs row. An inbox is now a com.atproto.memberspace.policy space with publicWrite, made by the invitee's app. The host's invite writes and its notifyRepoUpdate call are unchanged.

  • I found no references to the removed items left on the branch. CHECK_ACCESS has no remaining uses. The HeaderMap and SpaceRef imports in group_invites.rs are still used elsewhere, so no unused-import warning should come from the trimmed use lines. harness/lexicons.mjs lists both removed lexicons in RETIRED.
  • tests/import.rs still builds a managedspace.policy value as input. It expects UnsupportedPolicy, which an unknown policy type still gets, so that test should keep passing.
  • The interop and e2e tests now exercise the new inbox shape against the reference PDS. The shortcomings section is honest about the account-import limitation.
  • The runner checks were all still queued when I looked, so I couldn't read their results. I'm approving on reading the code. The test gate, clippy, just lex, e2e and docs checks will confirm it.
Approved

Carried forward: the change this pull makes at 0bfce98ad29dcb4ace850aa5166e12896935698f is the one reviewed at 01ae43dfb9be2238f0bbb51fe5d9e0c6d6486535, so that review stands. What is new comes from its base.

Approved

My last approval was at 0bfce98, which is the merge of the base. The only commit since is 20f8afb. It changes one thing, in harness/e2e/flows.spec.mjs: the site flow now waits for the getActorInvites reload after publishing before it counts requests.

The waitForResponse is registered before the click, so it can't miss the response. It is awaited after the dialog closes. I found nothing in it that breaks what I approved. The checkAccess removal, the memberspace inbox docs and the interop and e2e tests are unchanged since then.

I did not read the checks' results.

Merged as 3350322