Skip to content

v1.1.0

Choose a tag to compare

@tino-cmd tino-cmd released this 21 Jul 11:37
· 6 commits to main since this release
dae44d5

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).