-
Notifications
You must be signed in to change notification settings - Fork 0
Go Enforcement Contracts
Huzefaaa2 edited this page May 18, 2026
·
19 revisions
CAVRA now generates Go enforcement contract types from proto/cavra/enforcement/v1/enforcement.proto.
- Generated Go package under
go/cavra-runtime/enforcement/v1. -
EvaluateRequestandDecisionResponsestructs matching the protobuf field names. - Conversion helpers between contract objects and runtime requests/decisions.
- Tests that keep generated contracts aligned with the proto field list.
- Runtime support for proto-shaped
requested_operation.
python3 scripts/generate_go_enforcement_contracts.py
cd go/cavra-runtime
go test ./...- As a platform engineer, I can build daemon transport against a stable contract.
- As a CI owner, I can validate enforcement payloads before runner integration.
- As an auditor, I can trace Go runtime payloads back to the protobuf contract.
Generated contracts reduce integration drift between management-plane policy decisions, Go enforcement, and future daemon or runner deployments.
Add client helpers, daemon lifecycle management, evidence hooks, and expanded parity tests across approvals, registry-backed MCP decisions, and evidence references.
CAVRA Field Compass
Before the agent acts, CAVRA asks: who is acting, what will change, what policy applies, and what evidence will prove it?
Before the agent acts, CAVRA asks: who is acting, what will change, what policy applies, and what evidence will prove it?
| Start | Build | Operate | Assure |
|---|---|---|---|
| Quick Start | CLI | Enterprise Guide | AISPM |
| Reader Paths | Policy Syntax | Deployments | Evidence |
| Community | GUI | Troubleshooting | Conclusion |
Textbook home: Before the Agent Acts |
Development archive: development and testing artifacts |
Source repository: github.com/Huzefaaa2/cavra
- Foreword And Reader Paths
- Why CAVRA Exists
- Runtime Authority Model
- Architecture
- Editions
- Install And Deploy
- Community Guide
- Enterprise Guide
- CLI Reference
- GUI And Sandbox
- AISPM Guide
- Policy And Evidence
- Operations And Integrations
- Labs And Use Cases
- Appendices And FAQ
- Policy Language Reference
- Troubleshooting Playbook
- Conclusion