API-level policy engine for AI agents.
Use Conventional Commits format:
type(scope): description
Types: feat, fix, refactor, test, docs, chore, ci, build, perf
Scope is optional but encouraged. Use the package or component name (e.g., engine, relay, gateway, cli, cel).
Examples:
feat(engine): add CEL expression compilationfix(relay): handle upstream disconnect during tool calldocs: update PRD with Go API surfacetest(engine): add fixtures for redact evaluation
make build # Build all packages make test-unit # Unit tests with race detector make lint # golangci-lint make fix # Auto-fix lint/format issues
Run a single test:
make test-unit ARGS='-run TestName' make test-unit ARGS='-run TestName ./internal/engine'
- Follow standard Go conventions and
go fmt - Error messages should be actionable -- tell users exactly what to do
- Documentation must match actual behavior
See CONTRIBUTING.md for architecture, testing, and development details.
Update CHANGELOG.md before tagging and pushing. Order: CHANGELOG commit → tag → push both together. This avoids the tag pointing to a commit that doesn't include its own changelog entry.
- Save specs and plans to
docs/plans/(notdocs/superpowers/)