Skip to content

fix(v0.1): scope policies by action and honor empty conditions#2

Open
t3chn wants to merge 2 commits into
mainfrom
feat/policy-action-scope
Open

fix(v0.1): scope policies by action and honor empty conditions#2
t3chn wants to merge 2 commits into
mainfrom
feat/policy-action-scope

Conversation

@t3chn

@t3chn t3chn commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add optional action scoping to PolicySpec and the policy JSON schema.
  • Treat an empty when list as unconditional (all([]) == true) instead of never-fired.
  • Add verifier regression tests for scoped policies, cross-action non-firing, warn policies, and unconditional action-scoped blocks.

Issue

  • Related: lab exp-004 / q-001 authoring-cost boundary 2 findings.

Test plan

  • ruff check src tests
  • mypy src
  • pytest
  • python3 scripts/check_docs.py
  • PYTHONPATH=src python3 examples/v0_1/demo.py

Notes

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.

1 participant