You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
RetryPlan and RetryDirective dataclasses in openbox_core.contracts.results.
Optional retry_plan parsing on EvaluationResult and ApprovalResult. A _MISSING sentinel keeps a present new_input: null distinct from an absent field; falsy values (null, "", 0, [], {}) are preserved; a boolean new_input is rejected; every number (recursively) must be finite and, if integral, a JS-safe integer (|n| <= 2^53 - 1).
handle_retryable_block(result) — opt-in, pure inspector returning a RetryDirective only for a BLOCK verdict with a valid plan; returns None for a plain BLOCK, every non-BLOCK verdict (incl. HALT), a pending verdict, and an expired ApprovalResult.
Notes
Default enforcement is unchanged: a BLOCK verdict still raises GovernanceBlockedError. The helper is opt-in and never auto-retries; malformed/ineligible plans are treated as absent (never fail open).