-
Notifications
You must be signed in to change notification settings - Fork 0
Activity Persistence
Huzefaaa2 edited this page May 21, 2026
·
31 revisions
Phase 6 starts durable operational visibility for CAVRA sessions and decisions.
- JSON and SQLite stores for runtime sessions and decisions.
-
POST /decisionsnow persists evaluated decisions and updates the session summary. -
GET /decisionssupports filters for session, agent, repository, policy pack, decision outcome, severity, action type, limit, and offset. -
GET /sessionssupports filters for agent, repository, policy pack, state, limit, and offset. - Console Activity Explorer shows persisted sessions and decisions with enterprise-friendly filters.
- SQLite migration
004_activity_sessions_decisions.sqlcreates indexed activity tables.
Use JSON persistence for local pilots:
export CAVRA_ACTIVITY_STORE=.cavra/api/activity.jsonUse SQLite persistence for self-hosted API deployments:
export CAVRA_ACTIVITY_DB=.cavra/activity.db
cavra evidence migrate --sqlite .cavra/activity.dbThe shared migration command applies evidence, approval, registry, and activity migrations.
- As a CISO, I can review blocked and approved AI-agent actions across repositories.
- As a platform engineer, I can filter decisions by policy pack, repository, severity, and agent.
- As an auditor, I can reconstruct a session from durable decision records.
Activity persistence turns local pre-action decisions into searchable operational records. Security, audit, and platform teams can inspect what agents attempted, which controls fired, and which sessions generated risk.
- Promote Go to an optional backend only after audited parity and deployment tests pass.
- Validate the hosted sandbox URL after deployment from
main.
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