Skip to content

Make policy action values a PolicyAction enum#25

Merged
anormang1992 merged 1 commit intomainfrom
fix/policy-decision-enum
Mar 17, 2026
Merged

Make policy action values a PolicyAction enum#25
anormang1992 merged 1 commit intomainfrom
fix/policy-decision-enum

Conversation

@anormang1992
Copy link
Owner

Summary

  • Adds PolicyAction(str, Enum) with PASS, PENDING, BLOCK members
  • Changes PolicyResult.action type from str to PolicyAction
  • Replaces all hardcoded string literals and comparisons across source and tests
  • Exports PolicyAction from vre.core.policy and vre top-level

Closes #20

Test plan

  • All 76 existing tests pass with no assertion changes needed (str, Enum remains ==-comparable to strings)
  • Verify CI passes (linting + pytest)

🤖 Generated with Claude Code

…on enum

Closes #20

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@anormang1992 anormang1992 merged commit c6b4d47 into main Mar 17, 2026
1 check passed
@anormang1992 anormang1992 deleted the fix/policy-decision-enum branch March 17, 2026 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make Policy Action Values an Enum

1 participant