test(validator): add validator sync-lag duty gate test vectors#1165
Open
zemse wants to merge 1 commit into
Open
test(validator): add validator sync-lag duty gate test vectors#1165zemse wants to merge 1 commit into
zemse wants to merge 1 commit into
Conversation
Introduce a validator_duty_gate consensus fixture with two step-sequence vectors that drive ValidatorService._is_synced_for_duties and record its allow or skip verdict per step. One covers the lag threshold, the hysteresis band, and clock-skew saturation; the other covers the network-stall escape, its strict boundary, and both the open and closed gate. Clients replay the steps and compare verdicts.
4f02bb8 to
4a08fae
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🗒️ Description
Introduces a new consensus fixture format for the validator sync-lag duty gate and lands the first vectors.
validator_duty_gateformatValidatorService._is_synced_for_dutiesand records the allow or skip verdict per step. The gate stays the source of truth, the fixture only records what it decides.Initial vectors (2)
Under
tests/consensus/lstar/validator/, two step sequences cover the decision surface:The missing-head fallback and run-loop wiring are left out as client-internal behavior, covered by each client's own unit tests.
🔗 Related Issues or PRs
Mirrors the validator sync-lag duty gate introduced in #708.
✅ Checklist
just check