Repository navigation
Conversation
FMSG-005: a reaction's subject is the message its pid names, which may be an add-to batch, and its to is that subject's participants. An add-to batch is a message of its own, the original's contents with a wider audience. So: - POST /fmsg/:id/react takes a batch's sha256 as :id, and reacts to that batch: psha256 is the batch hash, to is the batch's participants (the message's, its adder and those it added). Named by id or the message's hash, the reaction is to the message and goes to its participants only, no longer to everyone added in any batch. A caller only added has just their batch, so for them the id still means it. - Effective reactions are per subject: message items carry the message's own in reactions and each batch's in add_to[].reactions. Idempotency is per subject too. - The per-message transaction lock resolves a batch hash to its message. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes
POST /fmsg/:id/reactfollow FMSG-005 as written. A reaction's subject is the message its pid names, which may be an add-to batch, and its to is that subject's participants. An add-to batch is a message of its own: the original's contents with a wider audience.Behaviour:
:idmay be an add-to batch's sha256: the reaction is to that batch.psha256is the batch's hash.reactions, and each batch's inadd_to[].reactions(omitted when there are none).psha256.atomic) resolves a batch hash to its message. Before, it answered 404 before the handler ran.Tests:
TestReactionsPerMessagecovers:reactionsandadd_to[].reactionsinGET.README: documents the batch
:id, the recipients andadd_to[].reactions.🤖 Generated with Claude Code