-
Notifications
You must be signed in to change notification settings - Fork 0
Go Daemon Transport
Huzefaaa2 edited this page May 18, 2026
·
16 revisions
CAVRA now includes the first local daemon transport for the Go enforcement plane.
-
go/cavra-runtime/daemonpackage. -
--servemode forgo/cavra-runtime. - Unix-socket listener.
- One JSON
EvaluateRequestper connection. - One JSON
DecisionResponseper connection. - Reusable Go
daemon.Clienthelper. - CLI
--daemonclient mode for one-shot socket calls. - Support for compiled policy JSON loaded with
--policy. - Go tests for contract handling, client calls, and compiled-policy-backed evaluation.
cd go/cavra-runtime
go run ./cmd/cavra-runtime --serve --socket .cavra/cavra-runtime.sock --policy testdata/compiled_policy.json
printf '{"action_type":"read_file","target":"config/prod.secret"}\n' | nc -U .cavra/cavra-runtime.sock
printf '{"action_type":"execute_command","target":"terraform plan","requested_operation":"terraform plan"}\n' \
| go run ./cmd/cavra-runtime --daemon --socket .cavra/cavra-runtime.sockDaemon transport gives CAVRA a path to low-latency local and CI enforcement without requiring a Python API call for every guarded action.
Add lifecycle management, evidence hooks, and expanded parity for approvals and registry-backed MCP decisions.
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
- Technology Stack
- Conclusion