@clawdreyhepburn/ovid-me
v0.1.2
Published
Cedar policy evaluation for OVID agent mandates — enforcement, audit, and dashboard
Maintainers
Readme
🪪 OVID-ME
Cedar policy evaluation for OVID agent mandates.
OVID-ME reads mandates from verified OVID tokens and evaluates tool calls against Cedar policies. Three modes: enforce (deny means deny), dry-run (evaluate + log, always allow), and shadow (enforce current + evaluate candidate in parallel for policy migration).
Includes an append-only audit log, SQLite audit database, and a full forensics dashboard.
Install
npm install @clawdreyhepburn/ovid-me @clawdreyhepburn/ovidQuick Example
import { generateKeypair, createOvid } from '@clawdreyhepburn/ovid';
import { createAuditLogger, resolveConfig } from '@clawdreyhepburn/ovid-me';
// Create an OVID with a mandate
const keys = await generateKeypair();
const agent = await createOvid({
issuerKeys: keys,
issuer: 'orchestrator',
mandate: {
rarFormat: 'cedar',
policySet: 'permit(principal, action == Ovid::Action::"read_file", resource);',
},
});
// Set up audit logging
const logger = createAuditLogger('./audit.jsonl');
// Log a mandate evaluation decision
logger.logDecision(agent.claims.jti, 'read_file', '/src/main.ts', 'allow', ['policy-read']);
logger.logDecision(agent.claims.jti, 'exec', 'rm -rf /', 'deny', ['policy-safety']);Configuration
See docs/CONFIG.md for full configuration reference, including deployment profiles for development, startup, and enterprise environments.
import { resolveConfig } from '@clawdreyhepburn/ovid-me';
const config = resolveConfig({
mandateMode: 'enforce',
auditLog: '~/.ovid/audit.jsonl',
auditDb: '~/.ovid/audit.db',
dashboardPort: 19831,
});Dashboard
import { startDashboard } from '@clawdreyhepburn/ovid-me';
const server = await startDashboard({
port: 19831,
dbPath: '~/.ovid/audit.db',
});
// → OVID Dashboard: http://localhost:19831Related Projects
@clawdreyhepburn/ovid— cryptographic identity (token creation, verification, keypairs)@clawdreyhepburn/carapace— deployment-level policy ceiling (binary allow/deny, implements PolicySource so OVID-ME can query it)
License
Apache-2.0
