Proposal for Atmosphere Groups standard on atproto spaces

Groups can't own contributions from arbitrary apps #42

Open boltless.me
Open opened by boltless.me

Imagine an atproto ticket tracker application "Rinear". A Rinear project is a group, and project's ticket tracker can be either private (for internal task management) or public (for bug reports etc).

Regardless of whether the tracker is private or public, all tickets must be owned by the group (=Rinear project). In Tangled, we call these "contributive data". Creating, editing, and closing a ticket are all contributions. It's like someone pushing a git commit in shared non-trunk branch. Contribution is made on creation, not on completion. And once it's made, contributor can't delete it. They can detach their identity, but they don't really own it, group does.

So from atproto's perspective, what Rinear needs is "anyone can act as a group and write to group's repo". This obviously sounds super scary so all those operations must be properly authorized and validated before being made. But where should that happen?

Solution 1: Do it on data host #

This is Fedi & Tangled's current solution. Data host is where the write will happen, so it's easier to check from there. We don't have to ensure applications have synced latest user roles. But then the application logic is embedded into data host. The data host is not generic anymore and it must know all the semantics. Permission check will happen in applications again anyway because they should know who can see the "close ticket" button and who cannot. So this solution has two problems:

  1. Data hosts and applications must be kept compatible with each other.
  2. We need some kind of DSL to express fine-grained permission rules because permission check happens on both sides. The rule must be synced.

Fedi just gave up on both by letting every instances to host their own application interface.

Currently, Tangled Knot is trying to solve problem 1 and avoiding 2 by only supporting dumb role-based permission checks. But we want to go further and support things like "anyone in N-level of vouch network can create issues but not PRs".

Solution 2: Do it on trusted application #

This is current Atmosphere Group spec and knotless' solution afaiu. Group just giveaway a superset permission to trusted applications needed to make various operations. Either admin or group members can add more trusted applications. These granted permissions are scoped by member roles, but they are far less granular than actual rules because space policies can only express space + collection + action.

By running check only on application side and keeping data host generic, the permission check and general record schema can be super flexible. But these applications must be trusted before being used. Strangers should ask for trust if they want to bring their own custom applications.


I don't think we have a correct answer here yet so I'm looking for thoughts. Solution 1 is unrealistic and gives up with "generic data host" concept. Solution 2 gives up on the freedom to choose a client. "A writing to B's repository" is pretty rare concept in atproto but I do think some applications have to operate on this ownership model.

Sign up or Sign in to add to the discussion.