Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make meaning of AcquirableSessionTokens clearer #6

Merged
merged 2 commits into from
Dec 14, 2023

Conversation

fhackett
Copy link

Based on some discussion with @lemmy, this commit makes the meaning of AcquirableSessionTokens clearer, since it was previously not well integrated with the rest of the spec.

As a result two new properties check that the definition works as intended, and some changes and comments document a surprising behavior that came up.

\* The "not a session token" session token.
\* The "not a session token" session token. It precedes all session tokens,
\* and should be used when no session token is known / available.
\* It is not a valid session token itself, but is usually compatible with them.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"usually"? Perhaps add, under what condition it is incompatible?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe always, but I was being vague as a reflex because there may be some edge case (which would be a bug) where that isn't true. I'll just delete the word.

\* updating a session token using this operator and the ones defined near it.
\* Assuming session-consistent reads and writes,
\* this operator describes the set of all session tokens that could be
\* acquired during the current action.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AcquirableSessionTokens is a state-level formula? Should "during the current action" be replaced with "in the current state"? Nitpicking: AcquirableSessionTokens also describes the set of all session independently of session-consistent reads and writes.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense I think - I edited that a little bit to account for both things as I understand them.

@lemmy lemmy merged commit df6080e into tlaplus:master Dec 14, 2023
1 check passed
@lemmy
Copy link
Member

lemmy commented Dec 14, 2023

@fhackett Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants