mirror of
https://github.com/hanzoai/bot-formal-models.git
synced 2026-10-30 18:46:45 +00:00
37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
--------- MODULE ThreadParentReactionBindingHarness_BadThreadOrReactionWrong ---------
|
|
EXTENDS Naturals
|
|
|
|
(******************************************************************************
|
|
* Negative model:
|
|
* BUG: reaction binds to thread channel and/or reaction id.
|
|
******************************************************************************)
|
|
|
|
CONSTANTS
|
|
ParentChannelId,
|
|
ThreadChannelId,
|
|
MessageId,
|
|
ReactionId
|
|
|
|
ASSUME
|
|
/\ ParentChannelId \in {"p"}
|
|
/\ ThreadChannelId \in {"t"}
|
|
/\ MessageId \in {"m"}
|
|
/\ ReactionId \in {"r"}
|
|
|
|
\* BUG: thread binding ignored
|
|
BindChannel(isThread) == ThreadChannelId
|
|
|
|
SessionKeyForThreadMessage == <<BindChannel(TRUE), MessageId>>
|
|
|
|
\* BUG: reaction anchors to ReactionId
|
|
SessionKeyForThreadReaction == <<BindChannel(TRUE), ReactionId>>
|
|
|
|
Inv_ReactionUsesParentAndMessage == SessionKeyForThreadReaction = SessionKeyForThreadMessage
|
|
|
|
VARIABLE dummy
|
|
Init == dummy = 0
|
|
Next == dummy' = dummy
|
|
Spec == Init /\ [][Next]_<<dummy>>
|
|
|
|
=============================================================================
|