mirror of
https://github.com/hanzoai/bot-formal-models.git
synced 2026-10-30 18:46:45 +00:00
33 lines
899 B
Plaintext
33 lines
899 B
Plaintext
---------------- MODULE ReactionSessionBindingHarness_BadReactionOwnSession ----------------
|
|
EXTENDS Naturals
|
|
|
|
(******************************************************************************
|
|
* Negative model:
|
|
* BUG: reaction events bind to their own id instead of the message id,
|
|
* producing new sessions.
|
|
******************************************************************************)
|
|
|
|
CONSTANTS
|
|
ChannelId,
|
|
MessageId,
|
|
ReactionId
|
|
|
|
ASSUME
|
|
/\ ChannelId \in {"c"}
|
|
/\ MessageId \in {"m"}
|
|
/\ ReactionId \in {"r"}
|
|
|
|
SessionKeyForMessage == <<ChannelId, MessageId>>
|
|
|
|
\* BUG: anchors to ReactionId
|
|
SessionKeyForReaction == <<ChannelId, ReactionId>>
|
|
|
|
Inv_ReactionBindsToMessage == SessionKeyForReaction = SessionKeyForMessage
|
|
|
|
VARIABLE dummy
|
|
Init == dummy = 0
|
|
Next == dummy' = dummy
|
|
Spec == Init /\ [][Next]_<<dummy>>
|
|
|
|
=============================================================================
|