chadtmiller.com/group-host
atmosphere group host
0
0
Members make, change and end the group's spaces
Merged Approved
This adds createSpace, updateSpace and deleteSpace, with Host::declare, Host::end_space, Store::delete_space, may_do and put_in. It also adds the "Its other spaces" section in docs/design/groups.md and a README update. The test, check, web and lexicons checks pass, the last two skipped because nothing they read changed.
I read the diff and found nothing that must change.
- Authorization: the authority and ownership checks are sound. The group's authority is checked,
peoplespaces are refused, and meta and members can't be deleted. - Ending a space:
delete_spaceremoves the space's state and the group's own repo in one transaction, and only blobs nothing else references are unlinked from disk.
Small points, none blocking:
updateSpacewithreadableBy: []is silently ignored, because of the.filter(|r| !r.is_empty()).createSpaceaccepts[]. If the intent is that an update can't empty the readers, a 400 would be clearer than a quiet no-op.update_spacerunsdeclarefor meta before it writes the access record. If that write then fails, the declaration and the readers disagree. Declaring after the write would avoid it.createSpacewrites the space and then its access record, with the index entry last. A failure in between leaves a space with no access record or index entry. It stays inert, sinceown_spacereports it asSpaceNotFound, but it is not cleaned up.
Merged as 0014024
What changes
Members make, change and end the group's spaces. These are new methods in
group_spaces.rs:fyi.opensocial.createSpace(needsspace.create) makes a space of a type and key, with:fyi.opensocial.updateSpace(needsspace.configure) changes its name, readers, writers or roles.member, and who writes in it in their own name, which is joining, can't change.Host::declareadds the declaration in its public repo when anyone may read meta, and removes it when not.writableBy: []puts it back to any member. The record'screatedAtis kept.fyi.opensocial.deleteSpace(needsspace.delete) ends a space:notifySpaceDeleted.Host::end_space/Store::delete_spaceremoves the authority's state: space, grants, writer set, registrations, and the group's own repo in it, with the blobs only that repo referenced.WellKnownSpace.Host::may_doasks any action of a group's records, andput_inputs a group's record in any space.docs/design/groups.mdgains "Its other spaces".Why
This is the next part of 4d, following the prototype's
methods/spaces.ts. One change: the prototype'sdeleteSpaceonly took the space out of the index. The space went on issuing credentials to whoever its access record let read. Here the host is the space's authority, so it ends it.checkUserAccess, which the plan listed beside this, serves invite inboxes. It comes with invites.How it was checked
tests/group_spaces.rscovers:mayby it for a member and a stranger;member, its writers changed, bad writers;just covis at 100% of lines and functions. Clippy is clean.Shortcomings
🤖 Generated with Claude Code