refactor: rename backoff to cooldown and make guardrail thresholds configurable#112
Merged
refactor: rename backoff to cooldown and make guardrail thresholds configurable#112
Conversation
Collaborator
tosh2230
commented
May 1, 2026
- Rename backoff to cooldown in guardrail module
- Make guardrail thresholds configurable via nagi.yaml: maxConsecutiveSyncFailures, cooldownInitialSecs, cooldownMaxSecs
- Add validation rejecting zero values
- Restructure Guardrails docs with state/transition tables for Cooldown, Suspend, Halt
- Fix notification event names to match code
…nfigurable Rename backoff terminology to cooldown throughout the guardrail module to align with the design principle that the reconciliation loop is a convergence mechanism, not a retry mechanism. Make the three previously hardcoded guardrail thresholds configurable via nagi.yaml: - maxConsecutiveSyncFailures (default: 3) - cooldownInitialSecs (default: 30) - cooldownMaxSecs (default: 1800) Add validation to reject zero values for these fields.
Restructure the Guardrails section in concepts with state/transition tables from the cooldown design proposal. Add Cooldown to the glossary as an Asset state, move Halt and Resume to the Operations section. Fix notification event names to match code: EvalFailed -> EvaluateFailed, remove Halted (no corresponding NotifyEvent in code).
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.