Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Policy rule disable/enable and reorder validation

  • Status: Accepted
  • Date: 2026-02-21
  • Context:
    • ERD_INDEXERS.md requires policy rule mutability to flow through explicit enable/disable and ordering semantics rather than ad-hoc field mutation.
    • Existing tests covered policy rule creation and policy-set reorder validation, but did not directly validate rule disable/enable state transitions and empty reorder rejection.
  • Decision:
    • Add data-layer tests in revaer-data policy procedures to validate:
      • policy_rule_disable and policy_rule_enable toggle policy_rule.is_disabled deterministically;
      • policy_rule_reorder rejects empty rule lists with policy_rule_ids_empty.
    • Mark the behavioral checklist item complete.
  • Consequences:
    • Positive outcomes:
      • policy rule control-path semantics now have explicit regression coverage;
      • checklist status aligns with executable behavior.
    • Risks or trade-offs:
      • if policy-rule update surfaces are introduced later, additional tests will be required for new mutation semantics.
  • Follow-up:
    • Implementation tasks:
      • Continue with the next unchecked behavioral-rule item.
    • Review checkpoints:
      • just ci
      • just ui-e2e