Proposal for Atmosphere Groups standard on atproto spaces

inbox space in place of invites #18

Open chadtmiller.com
Open opened by chadtmiller.com

The spec gives each person an invites space where groups write invites into it, and only its owner reads them. Invites aren't the only thing that needs that shape, though:

  • Pointers: someone adds you to a private conversation or a space, and you need a way to find it.
  • Private state: how far you've read a group's chat, or whether you muted a thread. This is yours and only you read it, but apps on every device need to see it.

Each of these would otherwise need its own personal space, with the same rules each time.

Proposal #

Rename group.opensocial.invites to group.opensocial.inbox (still keyed self, still hosted by the person) and make it a general space:

  • Others can deliver into it and can't read it. A group writes an invite, someone else writes a pointer, and neither can see what else is there. That's the same rule invites follow today.
  • The owner reads everything and can write private records of their own.
  • The group spec defines invite. Other specs can define their own records for the inbox (pointers to conversations, read state) without a new space for each.

Smaller things for invites #

  • Declining. Add declineInvite, which the invitee calls on the group: the invite comes off the group's list and out of the invitee's inbox. The group can invite them again later.
  • No inbox yet. If the invitee hasn't made an inbox, the write fails. The group should keep the invite and deliver it when the inbox exists, and let the invitee ask the group for invites still waiting for them.
  • Who sent it. Add a by field to invite with the member who sent it, so the invitation can say "Alice invited you."

Questions #

  • Should the spec limit who can deliver into an inbox (groups only, people the owner follows), or leave that to the owner's host?
  • Is one inbox per person right, or should private state go in a separate space from things others deliver?

Some interesting ideas here, haven't had a chance to think them all through.

I think re-framing "invites" as "inbox" probably makes sense.

I do not think personal data that gets synchronized between devices and to app services (eg prefs, mutes) should get mixed in there though. I think this should be app-modality-specific and not directly related to opensocial.group.

Decline invite probably makes sense, so that the group knows the status.

I'm not sure about retaining invites if the inbox doesn't exist, feels a bit complex. Which repo would they get written to? who/when would do retries? Feels simpler to just have it fail, and apps can write some other record in their own space if they want to keep track.

Attribution of who sent an invite: I kind of like this, but it can't be trusted in the simple case. Eg, anybody could create a group and send an invite claiming it was from Barack Obama. Also every tiny bit of data that can be sent is a surface that could be abused for harassment, scams, spam, etc.

Probably worth letting invites time out though ("valid for one week").

Sign up or Sign in to add to the discussion.