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

spec: Collection of open points #95

Closed
10 tasks done
josef-widder opened this issue Nov 30, 2023 · 5 comments
Closed
10 tasks done

spec: Collection of open points #95

josef-widder opened this issue Nov 30, 2023 · 5 comments
Assignees
Labels
spec Related to specifications
Milestone

Comments

@josef-widder
Copy link
Member

josef-widder commented Nov 30, 2023

This is perhaps a bit unstructured. But while reviewing recent changes and PRs things come to my mind.

  • spec: clean up #151

  • spec: Test and logic for line 32 (two cases (i) invalid (ii) locked round) #155

  • spec: Sync between driver/consensus and code #81: Check what precisely is happening. I guess we can capture the logic by using the set value to propose. But it seems that the decision should be on the environment. Start timeoutpropose also for the proposer.

  • spec: Align names between the Quint and English specs and implementation #161 E.g., consensus steps (e.g., NewRound) which are not defined in the arXiv paper are not aligned. Discuss alignment between step change in spec and code w.r.t. PrecommitAny check in the beginning in the spec

  • Test and logic for line 26

  • Update: This is handled by adding the "step change" logic. Handling of proposals for future rounds. Currently, when we receive a proposal for a future round we store it, but we don't call the consensus statemachine and we don't store a pending event. However, if we go to a round where we have already received the proposal, we need to execute line 22. I guess we need to

    • store a pending event (with the future round number).
    • we need to update the pending check in nextAction to look for the current height/round only
    • write a test
  • Update: added spec: Validation of specifications #143 for Phase 2* we should write invariants for agreement and validity and see whether quint run and quint verify can find something (also for cases with more than 1/3 faults)

@josef-widder josef-widder self-assigned this Nov 30, 2023
@romac romac changed the title Spec: Collection of open points cpec: Collection of open points Nov 30, 2023
@romac romac changed the title cpec: Collection of open points Spec: Collection of open points Nov 30, 2023
@romac romac changed the title Spec: Collection of open points spec: Collection of open points Nov 30, 2023
@romac romac added this to the v0.1 milestone Nov 30, 2023
@josef-widder
Copy link
Member Author

josef-widder commented Dec 4, 2023

  • Write a test for the scenario for a proposal for a past round is needed

  • One process receives a precommit nil from a faulty validator -> timeoutPrecommit -> go to round 2

  • all other processes decide (don't go to round 2)

  • The one processes receives all the old messages (proposal and precommits to decide)

Update: cannot be completed at the moment. When trying to address it in #101, we found that there is an issue in the votekeeper. We need to fix the votekeeper first which is tracked in #103.

@josef-widder
Copy link
Member Author

josef-widder commented Dec 5, 2023

  • remove timeouts for round 0 upon going to round 1 ("the started timeouts should be stopped").

Update: is not necessary at the moment as nextAction uses existsTimeout which filters for the current height and round.

@josef-widder
Copy link
Member Author

josef-widder commented Dec 12, 2023

Update: I think the concern is best handled by the local transition invariants in #143

@josef-widder
Copy link
Member Author

josef-widder commented Dec 20, 2023

  • step action in statemachineAsync to capture deliverSomeProposal and deliverSomeVote (todo)

Update: action deliver already there

@ancazamfir ancazamfir added the spec Related to specifications label Jun 12, 2024
@cason cason closed this as completed Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec Related to specifications
Projects
None yet
Development

No branches or pull requests

4 participants