define period boundaries: start inclusive, end exclusive

This commit is contained in:
Sergei Tikhomirov 2024-10-03 10:38:59 +02:00
parent b8ea66625d
commit 80ba2bd93b
No known key found for this signature in database
GPG Key ID: 6A1F8ED9D6538027

View File

@ -88,6 +88,13 @@ Any existing membership MUST always be in exactly one of the following states:
- _ErasedAwaitsWithdrawal_;
- _Erased_.
The duration of each state MUST include the start timestamp.
The duration of each state MUST exclude the end timestamp.
For example, if a membership is registered at time `0`,
and the active state duration `A = 5`,
the membership is considered to be _Active_ at timestamps `0`, `1`, `2`, `3`, and `4`.
At timestamp `5`, the membership is considered to be in _GracePeriod_.
```mermaid
graph TD;
NonExistent --> |"register"| Active;