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

Invites arrive in an invites space, and say nothing of who sent them

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/group-host:host/invites-space

What changes

The invites space. The space under each person's DID that groups write their invites into is fyi.opensocial.invites (self), as the opensocial proposal names it, in place of fyi.opensocial.inbox. Its lexicon is renamed, the host writes invites there and answers checkUserAccess for it, and docs/design/membership.md and spaces.md say so.

No by. An invite record no longer names the member who sent it, and getActorInvites no longer answers it: the group invites, as the proposal's invite has it. The host still keeps who sent it in its own list. The field's removal is listed, with that reason, in the lexicon check's retracted set, since the check's "nothing refers to it" rule reads a field's name quoted anywhere in the code as a use.

createInvite stays as it is.

How it was checked

The invites tests now check the record and getActorInvites carry no by; the invites, joining, interop and lexicons tests pass, with just lex, just docs and clippy.

Shortcomings

An invite already written in an fyi.opensocial.inbox space stays there; nothing is published yet, so there are none outside tests.

🤖 Generated with Claude Code

Approved

This renames the invites space to fyi.opensocial.invites and drops by from the invite record and from getActorInvites. I found nothing that must change.

  • Rename: the lexicon file, the FILES list, inbox_of, the checkUserAccess kind check, the interop test and both design docs all use the new name. A search of the head branch finds no fyi.opensocial.inbox left.
  • by removal: no remaining code reads by from an invite, and the host still keeps the sender in its own list. The tests now assert it is absent from both the record and the getActorInvites reply. The retracted entries in harness/lexicons.mjs fit the lexicon check's rule as the body describes it.
  • Not run: I did not read the checks, so I have not confirmed just lex or the test gate pass.
  • Nit: the docs and the inbox_of name still say "inbox" for the space. That is consistent with the code, so I would leave it.
Merged as 8e081fd