Reorder comment on groupAccept

This commit is contained in:
Pere Lev 2024-06-15 16:09:58 +03:00
parent 83590ba6ff
commit a84ea09dd9
No known key found for this signature in database
GPG key ID: 5252C5C863E5E57D

View file

@ -853,89 +853,85 @@ groupAdd now groupID (Verse authorIdMsig body) add = do
-- Meaning: An actor accepted something -- Meaning: An actor accepted something
-- Behavior: -- Behavior:
-- * Check if I know the activity that's being Accepted: -- * Is it an Invite to be a collaborator in me?
-- * Is it an Invite to be a collaborator in me? -- * Verify the Accept is by the Invite target
-- * Verify the Accept is by the Invite target -- * Verify the Collab isn't enabled yet
-- * Is it a Join to be a collaborator in me? -- * Insert the Accept to my inbox
-- * Verify the Accept is authorized -- * Record the Accept and enable the Collab in DB
-- * Is it an Invite to be a component of me? -- * Forward the Accept to my followers
-- * Nothing to check at this point -- * Send a regular collaborator-Grant
-- * To: Accepter (i.e. Invite target)
-- * CC: Invite sender, Accepter's followers, my followers
-- --
-- * Give me a new child active SourceOriginUs -- * Is it a Join to be a collaborator in me?
-- * Verify we haven't yet seen child's Accept -- * Verify the Accept is authorized
-- * Give me a new child passive SourceOriginThem -- * Verify the Collab isn't enabled yet
-- * Option 1: We haven't seen child's Accept yet -- * Insert the Accept to my inbox
-- * Verify sender is the child -- * Record the Accept and enable the Collab in DB
-- * Option 2: We saw it, but not my collaborator's Accept -- * Forward the Accept to my followers
-- * Verify the Accept is authorized -- * Send a regular collaborator-Grant
-- * Otherwise respond with error, no Accept is needed -- * To: Join sender
-- * Give me a new parent active DestOriginUs -- * CC: Accept sender, Join sender's followers, my followers
-- * Respond with error, we aren't supposed to get any Accept
-- * Give me a new parent passive DestOriginThem
-- * Option 1: I haven't yet seen parent's Accept
-- * Verify sender is the parent
-- * Option 2: I saw it, but not my collaborator's Accept
-- * Verify the accept is authorized
-- * Otherwise respond with error, no Accept is needed
-- --
-- * If it's none of these, respond with error -- * Give me a new child active SourceOriginUs
-- -- * Verify we haven't yet seen child's Accept
-- * In collab mode, verify the Collab isn't enabled yet -- * Insert the Accept to my inbox
-- -- * If sender is the child, record the Accept into the Source record
-- * Insert the Accept to my inbox -- * Prepare to send degelator-Grant
--
-- * In collab mode, record the Accept and enable the Collab in DB
--
-- * In child-active mode,
-- * If sender is the child, record the Accept into the Source record
-- * Prepare to send degelator-Grant
-- * Otherwise nothing to do -- * Otherwise nothing to do
-- * In child-passive mode, -- * Forward the Accept to my followers
-- * Option 1: Record child's Accept in Source record -- * Possibly send a Grant:
-- * Option 2: Record my collaborator's Accept -- * Child-active
-- * Prepare to send delegator-Grant
-- * In parent-passive mode,
-- * Option 1: Record parent's Accept in the Dest record
-- * Option 2: Record my collaborator's Accept in the Dest record
-- * Prepare to send my own Accept
--
-- * Forward the Accept to my followers
--
-- * Possibly send a Grant/Accept:
-- * For Invite-collab mode:
-- * Regular collaborator-Grant
-- * To: Accepter (i.e. Invite target)
-- * CC: Invite sender, Accepter's followers, my followers
-- * For Join-as-collab mode:
-- * Regular collaborator-Grant
-- * To: Join sender
-- * CC: Accept sender, Join sender's followers, my followers
--
-- * Child-active
-- * If sender is the child -- * If sender is the child
-- * delegator-Grant -- * delegator-Grant
-- * To: Child -- * To: Child
-- * CC: -- * CC:
-- - Child's followers -- - Child's followers
-- - My followers -- - My followers
-- * Child-passive --
-- * In option 2 -- * Give me a new child passive SourceOriginThem
-- * delegator-Grant -- * Option 1: We haven't seen child's Accept yet
-- * To: Child -- * Verify sender is the child
-- * CC: -- * Option 2: We saw it, but not my collaborator's Accept
-- - Child's followers -- * Verify the Accept is authorized
-- - My followers -- * Otherwise respond with error, no Accept is needed
-- - The Accept sender (my collaborator) -- * Insert the Accept to my inbox
-- * Parent-passive -- * Option 1: Record child's Accept in Source record
-- * In option 2 -- * Option 2: Record my collaborator's Accept
-- * Accept -- * Prepare to send delegator-Grant
-- * Object: The Add -- * Forward the Accept to my followers
-- * Fulfills: My collaborator's Accept -- * Possibly send a Grant:
-- * To: Parent -- * In option 2
-- * CC: -- * delegator-Grant
-- - Parent's followers -- * To: Child
-- - My followers -- * CC:
-- - The Accept sender (my collaborator) -- - Child's followers
-- - My followers
-- - The Accept sender (my collaborator)
--
-- * Give me a new parent active DestOriginUs
-- * Respond with error, we aren't supposed to get any Accept
--
-- * Give me a new parent passive DestOriginThem
-- * Option 1: I haven't yet seen parent's Accept
-- * Verify sender is the parent
-- * Option 2: I saw it, but not my collaborator's Accept
-- * Verify the accept is authorized
-- * Otherwise respond with error, no Accept is needed
-- * Insert the Accept to my inbox
-- * Option 1: Record parent's Accept in the Dest record
-- * Option 2: Record my collaborator's Accept in the Dest record
-- * Prepare to send my own Accept
-- * Forward the Accept to my followers
-- * Possibly send an Accept:
-- * In option 2
-- * Object: The Add
-- * Fulfills: My collaborator's Accept
-- * To: Parent
-- * CC:
-- - Parent's followers
-- - My followers
-- - The Accept sender (my collaborator)
-- --
-- * Remove-Parent-Passive mode: -- * Remove-Parent-Passive mode:
-- * Verify the Source is enabled -- * Verify the Source is enabled