Repository navigation
feat(circuit-breaker): guardian-quorum pause with delayed admin unpause - #391
Merged
Mkalbani merged 1 commit intoNov 20, 2026
Conversation
|
@Favouratambi Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Favouratambi
force-pushed
the
feat/369-circuit-breaker-guardian-quorum
branch
from
November 20, 2026 14:08
0b208e2 to
f663517
Compare
6 tasks
Mkalbani
pushed a commit
that referenced
this pull request
Nov 20, 2026
Mkalbani
added a commit
that referenced
this pull request
Nov 20, 2026
fix(circuit-breaker): restore green CI after #391
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.
Summary
Implements issue #369: a reusable guardian-quorum circuit breaker module at
contracts/circuit_breaker.quorum <= Nand2 * quorum > N).approve_pause; the breaker trips as soon as quorum is reached. Proposals expire after a configurable TTL and can be canceled by the proposer.is_paused,get_pause_state,get_statusandassert_callable(function). Other contracts can depend on the crate and call the exportedenforce_not_paused(&env, &breaker, &function)guard at state-changing entry points.unpause_delayseconds from the pause timestamp (default 2 hours). The delay is re-checked at execution so it cannot be bypassed.Testing
.github/workflows/circuit-breaker.ymlrunningcargo fmt --check,cargo test --locked,cargo clippy --all-targets -- -D warningsand awasm32v1-nonerelease build on PRs touching this module.ed25519-dalekto 2.2.0, the same SDK 21 compatibility workaround already used bycontracts/streak_counter.Closes #369