Skip to content

docs: Add policy callbacks section to README#28

Merged
anormang1992 merged 1 commit intomainfrom
chore/policy-callbacks-readme
Mar 19, 2026
Merged

docs: Add policy callbacks section to README#28
anormang1992 merged 1 commit intomainfrom
chore/policy-callbacks-readme

Conversation

@anormang1992
Copy link
Owner

Summary

  • Adds a new "Policy Callbacks" subsection under "Checking Policy" in the README
  • Demonstrates how to write a PolicyCallback, attach it to a Policy via dotted import path, and how it participates in the layered evaluation flow
  • References the demo's protected_file_delete callback as a concrete example

Test plan

  • Verify the new section renders correctly on GitHub
  • Confirm code examples are accurate against the current API

🤖 Generated with Claude Code

Demonstrates how to write and attach PolicyCallback implementations
that make domain-specific pass/fail decisions during policy evaluation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@anormang1992 anormang1992 merged commit b84a7f1 into main Mar 19, 2026
2 checks passed
@anormang1992 anormang1992 deleted the chore/policy-callbacks-readme branch March 19, 2026 02:44
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