{"_id":"@clawdreyhepburn/ovid-me","_rev":"14-f46213aee83aaf6705f40fe9e7f94120","name":"@clawdreyhepburn/ovid-me","dist-tags":{"latest":"0.4.6"},"versions":{"0.1.0":{"name":"@clawdreyhepburn/ovid-me","version":"0.1.0","keywords":["ovid","cedar","mandate","policy-evaluation","agent-authorization","audit","dashboard"],"license":"Apache-2.0","_id":"@clawdreyhepburn/ovid-me@0.1.0","maintainers":[{"name":"clawdreyhepburn","email":"clawdrey.hepburn@engageidentity.com"}],"homepage":"https://github.com/clawdreyhepburn/ovid-me","bugs":{"url":"https://github.com/clawdreyhepburn/ovid-me/issues"},"dist":{"shasum":"2f4cc3fa1db9b028fcf31e1d26cde4166a07bb0c","tarball":"https://registry.npmjs.org/@clawdreyhepburn/ovid-me/-/ovid-me-0.1.0.tgz","fileCount":21,"integrity":"sha512-5EBUMHCZy298Av7fkQs0u5dnVJ6YiP7flXTBuc7oRqD9Jg/VyEkFpDvPk3s5QeB6ZOuWR0Y1/Ggl9uH7oEBrjg==","signatures":[{"sig":"MEUCIEeDS8PvOL/oWZwp69hQ5uPa+mDVRpls9ICmDjywPd0OAiEA5/MWC+L8jA91YcV/hsmOOCrKwL+WPGKh8yqKVZy+mC0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":105057},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"aedf671d8963189f5c4d45e2e88eceb5f4efef5a","scripts":{"test":"vitest run","build":"tsc","test:watch":"vitest"},"_npmUser":{"name":"clawdreyhepburn","email":"clawdrey.hepburn@engageidentity.com"},"repository":{"url":"git+https://github.com/clawdreyhepburn/ovid-me.git","type":"git"},"_npmVersion":"10.9.4","description":"Cedar policy evaluation for OVID agent mandates — enforcement, audit, and dashboard","directories":{},"_nodeVersion":"22.22.0","dependencies":{"jose":"^6.0.0","better-sqlite3":"^12.8.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.7.0","@types/node":"^25.5.0","@clawdreyhepburn/ovid":"file:../ovid","@types/better-sqlite3":"^7.6.13"},"peerDependencies":{"@clawdreyhepburn/ovid":">=0.2.0"},"_npmOperationalInternal":{"tmp":"tmp/ovid-me_0.1.0_1774309316722_0.6364624772430063","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@clawdreyhepburn/ovid-me","version":"0.1.1","keywords":["ovid","cedar","mandate","policy-evaluation","agent-authorization","audit","dashboard"],"license":"Apache-2.0","_id":"@clawdreyhepburn/ovid-me@0.1.1","maintainers":[{"name":"clawdreyhepburn","email":"clawdrey.hepburn@engageidentity.com"}],"homepage":"https://github.com/clawdreyhepburn/ovid-me","bugs":{"url":"https://github.com/clawdreyhepburn/ovid-me/issues"},"dist":{"shasum":"46c4475cf98c9806f35fce736e37891366570372","tarball":"https://registry.npmjs.org/@clawdreyhepburn/ovid-me/-/ovid-me-0.1.1.tgz","fileCount":25,"integrity":"sha512-YB3l8zS2pNG1fjJebSKn82RB0t4vKmR9SzA/669domQZx+baIZ52mdAL583XE3gWGjU7uQ45rZxlKsLq8fYlEA==","signatures":[{"sig":"MEQCIB3AlUbvs5hSMovqqSv9stuTen9ZAz8C2Jg0rOISY8meAiBwSs0V6tyPAaefQ6Pj6P75PGHX2DGt0oUZMXLOacWWHA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":127813},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"8995a137a425d8a3aa1fae224901da7b75741b1b","scripts":{"test":"vitest run","build":"tsc","test:watch":"vitest"},"_npmUser":{"name":"clawdreyhepburn","email":"clawdrey.hepburn@engageidentity.com"},"repository":{"url":"git+https://github.com/clawdreyhepburn/ovid-me.git","type":"git"},"_npmVersion":"10.9.4","description":"Cedar policy evaluation for OVID agent mandates — enforcement, audit, and dashboard","directories":{},"_nodeVersion":"22.22.0","dependencies":{"jose":"^6.0.0","better-sqlite3":"^12.8.0","@clawdreyhepburn/ovid":">=0.2.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.7.0","@types/node":"^25.5.0","@clawdreyhepburn/ovid":"file:../ovid","@types/better-sqlite3":"^7.6.13"},"optionalDependencies":{"@janssenproject/cedarling_wasm":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ovid-me_0.1.1_1774311974862_0.941568926588086","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@clawdreyhepburn/ovid-me","version":"0.1.2","keywords":["ovid","cedar","mandate","policy-evaluation","agent-authorization","audit","dashboard"],"license":"Apache-2.0","_id":"@clawdreyhepburn/ovid-me@0.1.2","maintainers":[{"name":"clawdreyhepburn","email":"clawdrey.hepburn@engageidentity.com"}],"homepage":"https://github.com/clawdreyhepburn/ovid-me","bugs":{"url":"https://github.com/clawdreyhepburn/ovid-me/issues"},"dist":{"shasum":"520a55fd1ab9777d41fee28c7526620e9246b050","tarball":"https://registry.npmjs.org/@clawdreyhepburn/ovid-me/-/ovid-me-0.1.2.tgz","fileCount":25,"integrity":"sha512-NuzwH4o4tqKi4CMnH9IxPtV8xFgSCRu0m7AoN5YeaTrkjX9V23sKvZVUxJt5DITgpsy9aCBRNJF8KL2EmcbNIg==","signatures":[{"sig":"MEUCIFotD0ahxI3t0mQyIUbB+sxC96cW7BNWbD/4EgKB9u9NAiEAxv8wmIWHSXezpBjxfna+d2rEnmUqiebcr1NU1gv37tg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":127781},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"8995a137a425d8a3aa1fae224901da7b75741b1b","scripts":{"test":"vitest run","build":"tsc","test:watch":"vitest"},"_npmUser":{"name":"clawdreyhepburn","email":"clawdrey.hepburn@engageidentity.com"},"repository":{"url":"git+https://github.com/clawdreyhepburn/ovid-me.git","type":"git"},"_npmVersion":"10.9.4","description":"Cedar policy evaluation for OVID agent mandates — enforcement, audit, and dashboard","directories":{},"_nodeVersion":"22.22.0","dependencies":{"jose":"^6.0.0","better-sqlite3":"^12.8.0","@clawdreyhepburn/ovid":">=0.2.0","@janssenproject/cedarling_wasm":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.7.0","@types/node":"^25.5.0","@clawdreyhepburn/ovid":"file:../ovid","@types/better-sqlite3":"^7.6.13"},"_npmOperationalInternal":{"tmp":"tmp/ovid-me_0.1.2_1774314091605_0.45207871178524783","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@clawdreyhepburn/ovid-me","version":"0.2.0","keywords":["ovid","cedar","mandate","policy-evaluation","agent-authorization","audit","dashboard"],"license":"Apache-2.0","_id":"@clawdreyhepburn/ovid-me@0.2.0","maintainers":[{"name":"clawdreyhepburn","email":"clawdrey.hepburn@engageidentity.com"}],"homepage":"https://github.com/clawdreyhepburn/ovid-me","bugs":{"url":"https://github.com/clawdreyhepburn/ovid-me/issues"},"dist":{"shasum":"656df2bb9f7547affb50b512fa9a51d8a386a03a","tarball":"https://registry.npmjs.org/@clawdreyhepburn/ovid-me/-/ovid-me-0.2.0.tgz","fileCount":29,"integrity":"sha512-vAxNRUUuukPv5ezFDkJx52Lmkvb4SoPVsI9Ox9MfMVglG48z91MR0CQRjrb5jYhEaOZZehYqR7pnwOB4Toil+w==","signatures":[{"sig":"MEUCIQD2rMDuZ09xWKhwKDlLCVVjzpAQNcGj70qla/polZMKeQIgY8jAKkIvrSzQI4D7Id5QmgMEejBYU9PLrDeocWlLQFQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":152783},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"d03fa1fdf893ef20edf0c5f7a52a722e1eee33d0","scripts":{"test":"vitest run","build":"tsc","test:watch":"vitest"},"_npmUser":{"name":"clawdreyhepburn","email":"clawdrey.hepburn@engageidentity.com"},"repository":{"url":"git+https://github.com/clawdreyhepburn/ovid-me.git","type":"git"},"_npmVersion":"10.9.4","description":"Cedar policy evaluation for OVID agent mandates — enforcement, audit, and dashboard","directories":{},"_nodeVersion":"22.22.0","dependencies":{"jose":"^6.0.0","better-sqlite3":"^12.8.0","@clawdreyhepburn/ovid":">=0.2.0","@janssenproject/cedarling_wasm":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.7.0","@types/node":"^25.5.0","@clawdreyhepburn/ovid":"file:../ovid","@types/better-sqlite3":"^7.6.13"},"_npmOperationalInternal":{"tmp":"tmp/ovid-me_0.2.0_1776270193980_0.646002932949665","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@clawdreyhepburn/ovid-me","version":"0.3.0","keywords":["ovid","cedar","mandate","policy-evaluation","agent-authorization","audit","dashboard"],"license":"Apache-2.0","_id":"@clawdreyhepburn/ovid-me@0.3.0","maintainers":[{"name":"clawdreyhepburn","email":"clawdrey.hepburn@engageidentity.com"}],"homepage":"https://github.com/clawdreyhepburn/ovid-me","bugs":{"url":"https://github.com/clawdreyhepburn/ovid-me/issues"},"dist":{"shasum":"04ad59d0bebbbddeafe50a261f7a2a5c3fbf11bd","tarball":"https://registry.npmjs.org/@clawdreyhepburn/ovid-me/-/ovid-me-0.3.0.tgz","fileCount":35,"integrity":"sha512-AWiuEVnwHe+OboP89ldyDbmF8P4+DTf7UxDJPTvHTKVhDj5E3ZF2aycBhc1Jo9OZX6n1FcdCyETfycFUnpZ+Iw==","signatures":[{"sig":"MEUCIDbocLy9EE1Wkcb1i3lg9aNp4AozjuqA+U8Bh8ZwuWZCAiEA3Bjzs9DjIDgcLspPFyp+vFEH3rKriZQwwC+J0bhjG1Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":180932},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"f95ba53280512a2a030245bd9f87c8f663a4053b","scripts":{"test":"vitest run","build":"tsc","test:watch":"vitest"},"_npmUser":{"name":"clawdreyhepburn","email":"clawdrey.hepburn@engageidentity.com"},"repository":{"url":"git+https://github.com/clawdreyhepburn/ovid-me.git","type":"git"},"_npmVersion":"10.9.4","description":"Cedar policy evaluation for OVID agent mandates — enforcement, audit, and dashboard","directories":{},"_nodeVersion":"22.22.0","dependencies":{"jose":"^6.0.0","better-sqlite3":"^12.8.0","@clawdreyhepburn/ovid":"^0.4.0","@janssenproject/cedarling_wasm":"^1.15.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.7.0","@types/node":"^25.5.0","@clawdreyhepburn/ovid":"file:../ovid","@types/better-sqlite3":"^7.6.13"},"_npmOperationalInternal":{"tmp":"tmp/ovid-me_0.3.0_1776627388094_0.8662346759937862","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@clawdreyhepburn/ovid-me","version":"0.3.1","keywords":["ovid","cedar","mandate","policy-evaluation","agent-authorization","audit","dashboard"],"license":"Apache-2.0","_id":"@clawdreyhepburn/ovid-me@0.3.1","maintainers":[{"name":"clawdreyhepburn","email":"clawdrey.hepburn@engageidentity.com"}],"homepage":"https://github.com/clawdreyhepburn/ovid-me","bugs":{"url":"https://github.com/clawdreyhepburn/ovid-me/issues"},"dist":{"shasum":"f939e72214948e0cfa440376b2702112550dbcc0","tarball":"https://registry.npmjs.org/@clawdreyhepburn/ovid-me/-/ovid-me-0.3.1.tgz","fileCount":35,"integrity":"sha512-K/G1lnyycfMWsjq+Ke8fWMp66EzuI80oxfDmo9DKk5N3k8w4f2F4cL5s9iSQ7tC0fsSDHaUmzWxO2A+Bax/r3A==","signatures":[{"sig":"MEQCIBpNUdTyH912EhldAnIHl+thzGRZMfSnnT35fs6HuI6dAiAPduaP83YwcHwe3eMdeQwhlhs565bxAaETLy9L9U56lw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":182101},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"a86c0a2a445ccc716bae50fc34b4396b75d28155","scripts":{"test":"vitest run","build":"tsc","test:watch":"vitest"},"_npmUser":{"name":"clawdreyhepburn","email":"clawdrey.hepburn@engageidentity.com"},"repository":{"url":"git+https://github.com/clawdreyhepburn/ovid-me.git","type":"git"},"_npmVersion":"10.9.4","description":"Cedar policy evaluation for OVID agent mandates — enforcement, audit, and dashboard","directories":{},"_nodeVersion":"22.22.0","dependencies":{"jose":"^6.0.0","better-sqlite3":"^12.8.0","@clawdreyhepburn/ovid":"^0.4.0","@janssenproject/cedarling_wasm":"^1.15.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.7.0","@types/node":"^25.5.0","@clawdreyhepburn/ovid":"file:../ovid","@types/better-sqlite3":"^7.6.13"},"_npmOperationalInternal":{"tmp":"tmp/ovid-me_0.3.1_1776628215390_0.8527866625809528","host":"s3://npm-registry-packages-npm-production"}},"0.3.2":{"name":"@clawdreyhepburn/ovid-me","version":"0.3.2","keywords":["ovid","cedar","mandate","policy-evaluation","agent-authorization","audit","dashboard"],"license":"Apache-2.0","_id":"@clawdreyhepburn/ovid-me@0.3.2","maintainers":[{"name":"clawdreyhepburn","email":"clawdrey.hepburn@engageidentity.com"}],"homepage":"https://github.com/clawdreyhepburn/ovid-me","bugs":{"url":"https://github.com/clawdreyhepburn/ovid-me/issues"},"dist":{"shasum":"a4d56653ff74e184cc0a3a7147686e9bc009e19e","tarball":"https://registry.npmjs.org/@clawdreyhepburn/ovid-me/-/ovid-me-0.3.2.tgz","fileCount":35,"integrity":"sha512-jneMwx/jOFijel0Ia05VQuR/mUj2PP0vo7qvZl9sYt4hWAbQZWMcahthWti4y1vzOx2/Y8prXqBIzp4qTZSepg==","signatures":[{"sig":"MEQCIG8BOxJMhU7CrJcKXM72y8k991TUWASlC0uAhZNu+bmOAiBp2xywaGFchBJf+21au8CL1quYSPn+x3fJKE+3hEth7w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":191775},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"79a80e9ba42a01b6c102203c0393ff1d98b9ce3e","scripts":{"test":"vitest run","build":"tsc","test:watch":"vitest"},"_npmUser":{"name":"clawdreyhepburn","email":"clawdrey.hepburn@engageidentity.com"},"repository":{"url":"git+https://github.com/clawdreyhepburn/ovid-me.git","type":"git"},"_npmVersion":"10.9.4","description":"Cedar policy evaluation for OVID agent mandates — enforcement, audit, and dashboard","directories":{},"_nodeVersion":"22.22.0","dependencies":{"jose":"^6.0.0","better-sqlite3":"^12.8.0","@clawdreyhepburn/ovid":"^0.4.0","@janssenproject/cedarling_wasm":"^1.15.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.7.0","@types/node":"^25.5.0","@clawdreyhepburn/ovid":"file:../ovid","@types/better-sqlite3":"^7.6.13"},"_npmOperationalInternal":{"tmp":"tmp/ovid-me_0.3.2_1776628875706_0.39395072145212917","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@clawdreyhepburn/ovid-me","version":"0.4.0","keywords":["ovid","cedar","mandate","policy-evaluation","agent-authorization","audit","dashboard"],"license":"Apache-2.0","_id":"@clawdreyhepburn/ovid-me@0.4.0","maintainers":[{"name":"clawdreyhepburn","email":"clawdrey.hepburn@engageidentity.com"}],"homepage":"https://github.com/clawdreyhepburn/ovid-me","bugs":{"url":"https://github.com/clawdreyhepburn/ovid-me/issues"},"dist":{"shasum":"863b94aec31b16e837a86daa77ea76347302b555","tarball":"https://registry.npmjs.org/@clawdreyhepburn/ovid-me/-/ovid-me-0.4.0.tgz","fileCount":37,"integrity":"sha512-taX7oWzlXPzP0c9Pd8Xag1onzZmvCX9bYzuApv4eangMf2gscd3NZLefZJnNhWBE/cwd9nT1R7b1qkB9P90cRA==","signatures":[{"sig":"MEQCIBBZS79AW6+Qv5lo4VmPR2Pl4nuN6ZeXSkGHF88SXSzlAiBS454VMyPV+vbfGIVFvvqAk7jeETP/LAIAsLlOwCI25g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":213594},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"3c6d93df492c60d6684398d536ff6e2826ab2bd4","scripts":{"test":"vitest run","build":"tsc","test:watch":"vitest"},"_npmUser":{"name":"clawdreyhepburn","email":"clawdrey.hepburn@engageidentity.com"},"repository":{"url":"git+https://github.com/clawdreyhepburn/ovid-me.git","type":"git"},"_npmVersion":"10.9.4","description":"Cedar policy evaluation for OVID agent mandates — enforcement, audit, and dashboard","directories":{},"_nodeVersion":"22.22.0","dependencies":{"jose":"^6.0.0","better-sqlite3":"^12.8.0","@clawdreyhepburn/ovid":"^0.4.0","@janssenproject/cedarling_wasm":"^1.15.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.7.0","@types/node":"^25.5.0","@clawdreyhepburn/ovid":"file:../ovid","@types/better-sqlite3":"^7.6.13"},"_npmOperationalInternal":{"tmp":"tmp/ovid-me_0.4.0_1783359656288_0.7605575044180295","host":"s3://npm-registry-packages-npm-production"}},"0.4.1":{"name":"@clawdreyhepburn/ovid-me","version":"0.4.1","keywords":["ovid","cedar","mandate","policy-evaluation","agent-authorization","audit","dashboard"],"license":"Apache-2.0","_id":"@clawdreyhepburn/ovid-me@0.4.1","maintainers":[{"name":"clawdreyhepburn","email":"clawdrey.hepburn@engageidentity.com"}],"homepage":"https://github.com/clawdreyhepburn/ovid-me","bugs":{"url":"https://github.com/clawdreyhepburn/ovid-me/issues"},"dist":{"shasum":"a23609168d9721250ec12a2a5fa7ab6aa1cd5be8","tarball":"https://registry.npmjs.org/@clawdreyhepburn/ovid-me/-/ovid-me-0.4.1.tgz","fileCount":37,"integrity":"sha512-gkDhYlQ6/H7Mt835HpfzCWKAdD3ogES+OKF8YXDzlTPd626yWc4HtCmq/5T0n6TUWZkHREF4oGMtettXW4j+Hw==","signatures":[{"sig":"MEUCIHm/yXmbEvCfsa/w4pxXo1llMozVe7Ve6KHrmfpwyd1+AiEAsvTrkKn0NN4pgOcZ4NZ0zJJim6Lh0BfvuSYoFsyOqTs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":214352},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"5498ad7251ffc92ba923bb672a7f73d8aedf5e9d","scripts":{"test":"vitest run","build":"tsc","test:watch":"vitest"},"_npmUser":{"name":"clawdreyhepburn","email":"clawdrey.hepburn@engageidentity.com"},"repository":{"url":"git+https://github.com/clawdreyhepburn/ovid-me.git","type":"git"},"_npmVersion":"10.9.4","description":"Cedar policy evaluation for OVID agent mandates — enforcement, audit, and dashboard","directories":{},"_nodeVersion":"22.22.0","dependencies":{"jose":"^6.0.0","better-sqlite3":"^12.8.0","@clawdreyhepburn/ovid":"^0.4.1","@janssenproject/cedarling_wasm":"^1.15.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.7.0","@types/node":"^25.5.0","@clawdreyhepburn/ovid":"file:../ovid","@types/better-sqlite3":"^7.6.13"},"_npmOperationalInternal":{"tmp":"tmp/ovid-me_0.4.1_1783958562773_0.22299118769640303","host":"s3://npm-registry-packages-npm-production"}},"0.4.2":{"name":"@clawdreyhepburn/ovid-me","version":"0.4.2","keywords":["ovid","cedar","mandate","policy-evaluation","agent-authorization","audit","dashboard"],"license":"Apache-2.0","_id":"@clawdreyhepburn/ovid-me@0.4.2","maintainers":[{"name":"clawdreyhepburn","email":"clawdrey.hepburn@engageidentity.com"}],"homepage":"https://github.com/clawdreyhepburn/ovid-me","bugs":{"url":"https://github.com/clawdreyhepburn/ovid-me/issues"},"dist":{"shasum":"9ecd5ace618ac8c5673f65223fe81ecdac000e10","tarball":"https://registry.npmjs.org/@clawdreyhepburn/ovid-me/-/ovid-me-0.4.2.tgz","fileCount":37,"integrity":"sha512-Sk6+M7XxLtlW0i8BNJZvcmr4WnxIV1KMWiaWznCfoEijMa4p56f1Trf439GGpyWb9vHgzPCFTRhAP6U3GTTycQ==","signatures":[{"sig":"MEQCIEH/rrqgjDd9V6OmWfjRyR8t526iMCZBVXhEi6T7RYY8AiAS6V1z1+AiVz7SyMZ6lrGWyCSLFom67uv5IFds9sOOQw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":216392},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"307d6bf1fa5fe37c83987fa7b381dff08cab1d0e","scripts":{"test":"vitest run","build":"tsc","test:watch":"vitest"},"_npmUser":{"name":"clawdreyhepburn","email":"clawdrey.hepburn@engageidentity.com"},"repository":{"url":"git+https://github.com/clawdreyhepburn/ovid-me.git","type":"git"},"_npmVersion":"10.9.4","description":"Cedar policy evaluation for OVID agent mandates — enforcement, audit, and dashboard","directories":{},"_nodeVersion":"22.22.0","dependencies":{"jose":"^6.0.0","better-sqlite3":"^12.8.0","@clawdreyhepburn/ovid":"^0.4.2","@janssenproject/cedarling_wasm":"^1.15.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.7.0","@types/node":"^25.5.0","@clawdreyhepburn/ovid":"file:../ovid","@types/better-sqlite3":"^7.6.13"},"_npmOperationalInternal":{"tmp":"tmp/ovid-me_0.4.2_1783964707436_0.06216322332865731","host":"s3://npm-registry-packages-npm-production"}},"0.4.3":{"name":"@clawdreyhepburn/ovid-me","version":"0.4.3","keywords":["ovid","cedar","mandate","policy-evaluation","agent-authorization","audit","dashboard"],"license":"Apache-2.0","_id":"@clawdreyhepburn/ovid-me@0.4.3","maintainers":[{"name":"clawdreyhepburn","email":"clawdrey.hepburn@engageidentity.com"}],"homepage":"https://github.com/clawdreyhepburn/ovid-me","bugs":{"url":"https://github.com/clawdreyhepburn/ovid-me/issues"},"dist":{"shasum":"df7f965965406f2b8757f6ae6d2637dad7838938","tarball":"https://registry.npmjs.org/@clawdreyhepburn/ovid-me/-/ovid-me-0.4.3.tgz","fileCount":37,"integrity":"sha512-f5hU9+n+hoXFyp6aq/evjuFMFdhtRdXY3LzgQawQtgJvD7cegRUDTu/9RBQGDyP8/bTeoi5Zanx1+Nkuu/Ae1g==","signatures":[{"sig":"MEYCIQDoQPt5SfmP6BLs6zvPqpZ69VRWEUdbKKSEq8YN4UGoFAIhAJ3ASssJXVwcVWKFpFTm6iViRaJpgR4lu+4rFN+1VXvw","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":218811},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"54c9ac15bbdc7605320c6b7555a2a3a206d63d89","scripts":{"test":"vitest run","build":"tsc","test:watch":"vitest"},"_npmUser":{"name":"clawdreyhepburn","email":"clawdrey.hepburn@engageidentity.com"},"repository":{"url":"git+https://github.com/clawdreyhepburn/ovid-me.git","type":"git"},"_npmVersion":"10.9.4","description":"Cedar policy evaluation for OVID agent mandates — enforcement, audit, and dashboard","directories":{},"_nodeVersion":"22.22.0","dependencies":{"jose":"^6.0.0","better-sqlite3":"^12.8.0","@clawdreyhepburn/ovid":"^0.4.2","@janssenproject/cedarling_wasm":"^1.15.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.7.0","@types/node":"^25.5.0","@clawdreyhepburn/ovid":"file:../ovid","@types/better-sqlite3":"^7.6.13"},"_npmOperationalInternal":{"tmp":"tmp/ovid-me_0.4.3_1783968113527_0.8905701069908842","host":"s3://npm-registry-packages-npm-production"}},"0.4.4":{"name":"@clawdreyhepburn/ovid-me","version":"0.4.4","keywords":["ovid","cedar","mandate","policy-evaluation","agent-authorization","audit","dashboard"],"license":"Apache-2.0","_id":"@clawdreyhepburn/ovid-me@0.4.4","maintainers":[{"name":"clawdreyhepburn","email":"clawdrey.hepburn@engageidentity.com"}],"homepage":"https://github.com/clawdreyhepburn/ovid-me","bugs":{"url":"https://github.com/clawdreyhepburn/ovid-me/issues"},"dist":{"shasum":"05c0e1d02bf762ee6b97517932f30801c4d05ddf","tarball":"https://registry.npmjs.org/@clawdreyhepburn/ovid-me/-/ovid-me-0.4.4.tgz","fileCount":37,"integrity":"sha512-JZL1GSAcbfgcAMV92cMwAWuQZTS+fNGxgIqfrauQECJ3lO7vUc8r0DEMlOI+wZvg9onI96NrLg/s/o92e6L9mQ==","signatures":[{"sig":"MEUCIQC45YG+27ukzCQI9Ok8TqbvqrrC0uvysl04JoU/Xt1rHQIgHH6B6JMp99MRLF7IQnfJKPxMtXwISFBC+sViuoj5xik=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":224704},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"bd6968f868564679e8a62a01546bb71b7bc16e4f","scripts":{"test":"vitest run","build":"tsc","test:watch":"vitest"},"_npmUser":{"name":"clawdreyhepburn","email":"clawdrey.hepburn@engageidentity.com"},"repository":{"url":"git+https://github.com/clawdreyhepburn/ovid-me.git","type":"git"},"_npmVersion":"10.9.4","description":"Cedar policy evaluation for OVID agent mandates — enforcement, audit, and dashboard","directories":{},"_nodeVersion":"22.22.0","dependencies":{"jose":"^6.0.0","better-sqlite3":"^12.8.0","@clawdreyhepburn/ovid":"^0.4.2","@cedar-policy/cedar-wasm":"^4.11.2"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.7.0","@types/node":"^25.5.0","@clawdreyhepburn/ovid":"file:../ovid","@types/better-sqlite3":"^7.6.13"},"_npmOperationalInternal":{"tmp":"tmp/ovid-me_0.4.4_1784560508593_0.45644221394998996","host":"s3://npm-registry-packages-npm-production"}},"0.4.5":{"name":"@clawdreyhepburn/ovid-me","version":"0.4.5","keywords":["ovid","cedar","mandate","policy-evaluation","agent-authorization","audit","dashboard"],"license":"Apache-2.0","_id":"@clawdreyhepburn/ovid-me@0.4.5","maintainers":[{"name":"clawdreyhepburn","email":"clawdrey.hepburn@engageidentity.com"}],"homepage":"https://github.com/clawdreyhepburn/ovid-me","bugs":{"url":"https://github.com/clawdreyhepburn/ovid-me/issues"},"dist":{"shasum":"01cef97ba11a7425024afc28c7931ba9d87acf7b","tarball":"https://registry.npmjs.org/@clawdreyhepburn/ovid-me/-/ovid-me-0.4.5.tgz","fileCount":37,"integrity":"sha512-o8sdyIIClLgzugOxcHS0Woqpd5+Bigwv+nGvIJwIYpF2PztapIpvRJdHfWMrQI6XyP755QE4gZSjD9wf56tkBA==","signatures":[{"sig":"MEUCIQCkR3ZRgw5dWUDOO651kzUCMHVQ86MAPjcV+0Po08qhHwIge1a/AZ3P0SwAnYSPwngfDYhrsxi2QBj58K/O+e3r/Mc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":225483},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"57745733a9fc4c149d32f606e6b62f5a68cf0f0f","scripts":{"test":"vitest run","build":"tsc","test:watch":"vitest","rebuild:native":"npm rebuild better-sqlite3"},"_npmUser":{"name":"clawdreyhepburn","email":"clawdrey.hepburn@engageidentity.com"},"repository":{"url":"git+https://github.com/clawdreyhepburn/ovid-me.git","type":"git"},"_npmVersion":"11.17.0","description":"Cedar policy evaluation for OVID agent mandates — enforcement, audit, and dashboard","directories":{},"_nodeVersion":"26.5.0","dependencies":{"jose":"^6.0.0","better-sqlite3":"^12.8.0","@clawdreyhepburn/ovid":"^0.4.2","@cedar-policy/cedar-wasm":"^4.11.2"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.7.0","@types/node":"^25.5.0","@types/better-sqlite3":"^7.6.13"},"_npmOperationalInternal":{"tmp":"tmp/ovid-me_0.4.5_1784728225354_0.02269776550984237","host":"s3://npm-registry-packages-npm-production"}},"0.4.6":{"name":"@clawdreyhepburn/ovid-me","version":"0.4.6","description":"Cedar policy evaluation for OVID agent mandates — enforcement, audit, and dashboard","license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/clawdreyhepburn/ovid-me.git"},"homepage":"https://github.com/clawdreyhepburn/ovid-me","bugs":{"url":"https://github.com/clawdreyhepburn/ovid-me/issues"},"keywords":["ovid","cedar","mandate","policy-evaluation","agent-authorization","audit","dashboard"],"type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"}},"scripts":{"build":"tsc","test":"vitest run","test:watch":"vitest","rebuild:native":"npm rebuild better-sqlite3"},"engines":{"node":">=20"},"dependencies":{"@cedar-policy/cedar-wasm":"^4.11.2","@clawdreyhepburn/ovid":"^0.5.0","better-sqlite3":"^12.8.0","jose":"^6.0.0"},"devDependencies":{"@types/better-sqlite3":"^7.6.13","@types/node":"^25.5.0","typescript":"^5.7.0","vitest":"^3.0.0"},"gitHead":"57745733a9fc4c149d32f606e6b62f5a68cf0f0f","_id":"@clawdreyhepburn/ovid-me@0.4.6","_nodeVersion":"26.5.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-auwHdSd780SrW+X7uwcLPYYD5coYFYIWPrm4qsXDWqxSwYkfsbdvbnfVzp7d1Vbod+c8Ec7/yYGfh9hoOmtIFw==","shasum":"3791ab149361176e5bf138248f58cf8193e21792","tarball":"https://registry.npmjs.org/@clawdreyhepburn/ovid-me/-/ovid-me-0.4.6.tgz","fileCount":37,"unpackedSize":226386,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDZ578FOFiq5FGee0phisEldUk62lJY8DuqjKGMA/fc3AiAkd5jk7MX4yMKEqWINmNw6mhrApXQrisE2L/mOoHFbuQ=="}]},"_npmUser":{"name":"clawdreyhepburn","email":"clawdrey.hepburn@engageidentity.com"},"directories":{},"maintainers":[{"name":"clawdreyhepburn","email":"clawdrey.hepburn@engageidentity.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ovid-me_0.4.6_1784728738852_0.7317697675745625"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-23T23:41:56.560Z","modified":"2026-07-22T13:58:59.160Z","0.1.0":"2026-03-23T23:41:56.920Z","0.1.1":"2026-03-24T00:26:15.045Z","0.1.2":"2026-03-24T01:01:31.751Z","0.2.0":"2026-04-15T16:23:14.121Z","0.3.0":"2026-04-19T19:36:28.266Z","0.3.1":"2026-04-19T19:50:15.531Z","0.3.2":"2026-04-19T20:01:15.920Z","0.4.0":"2026-07-06T17:40:56.420Z","0.4.1":"2026-07-13T16:02:42.923Z","0.4.2":"2026-07-13T17:45:07.572Z","0.4.3":"2026-07-13T18:41:53.739Z","0.4.4":"2026-07-20T15:15:08.732Z","0.4.5":"2026-07-22T13:50:25.488Z","0.4.6":"2026-07-22T13:58:59.003Z"},"bugs":{"url":"https://github.com/clawdreyhepburn/ovid-me/issues"},"license":"Apache-2.0","homepage":"https://github.com/clawdreyhepburn/ovid-me","keywords":["ovid","cedar","mandate","policy-evaluation","agent-authorization","audit","dashboard"],"repository":{"type":"git","url":"git+https://github.com/clawdreyhepburn/ovid-me.git"},"description":"Cedar policy evaluation for OVID agent mandates — enforcement, audit, and dashboard","maintainers":[{"name":"clawdreyhepburn","email":"clawdrey.hepburn@engageidentity.com"}],"readme":"<p align=\"center\">\n  <h1 align=\"center\">🔒 OVID-ME</h1>\n  <p align=\"center\"><strong>Mandate evaluation for delegated agent authority.</strong></p>\n  <p align=\"center\">\n    When Agent A spawns Agent B with narrower permissions, OVID-ME is the thing that actually enforces those permissions at tool-call time.\n  </p>\n  <p align=\"center\">\n    <a href=\"#the-problem\">The Problem</a> •\n    <a href=\"#the-model\">The Model</a> •\n    <a href=\"#how-it-works\">How It Works</a> •\n    <a href=\"#quick-start\">Quick Start</a> •\n    <a href=\"#api\">API</a> •\n    <a href=\"#authzen-pdp\">AuthZEN PDP</a> •\n    <a href=\"#two-layer-enforcement\">Two-Layer Enforcement</a> •\n    <a href=\"#related-work\">Related Work</a>\n  </p>\n</p>\n\n---\n\n## New here? Read this first (no background assumed)\n\n**What is this, in one sentence?** OVID-ME is a software library that checks, before an AI helper does anything, whether the helper's **ID badge** actually permits that action — and can allow, log, or block it accordingly.\n\n**The situation it fixes:** When an AI assistant hands part of a job to a smaller **helper program** (a \"sub-agent\"), that helper usually inherits *all* of the assistant's power — far more than its little task requires. A companion tool, [OVID](https://github.com/clawdreyhepburn/ovid), stamps each helper with a signed **badge** listing exactly what it may do. OVID-ME is the part that **reads that badge and enforces it** on every single action.\n\n**Plain-English glossary for the terms below:**\n\n- **Agent / sub-agent** — an automated AI worker; a sub-agent is a helper spawned by another.\n- **Mandate** — the list of allowed actions written on a helper's badge.\n- **Cedar** — a small, precise permission language (created by Amazon) used to write those rules. You rarely write it by hand when using the OpenClaw plugins.\n- **PDP / policy decision point** — industry term for \"the component that answers *is this action allowed?*\" That's what this library is.\n- **Subset proof** — a mathematical check that a helper isn't being granted more power than the helper that created it. (\"You can't give away more than you have.\")\n- **Audit log** — a permanent record of every allow/deny decision, so you can review after the fact.\n\n**The one thing to remember:** this library answers a single question, over and over — *\"does this helper's badge permit what it's trying to do right now?\"* — and records the answer. If you just want the OpenClaw plugin that wires this in automatically, see **[@clawdreyhepburn/openclaw-ovid-me](https://github.com/clawdreyhepburn/openclaw-ovid-me)**.\n\nThe rest of this README is aimed at developers integrating the library directly, and uses more precise terminology (with links to the relevant standards).\n\n---\n\n## The Problem\n\nAgent delegation is broken.\n\nWhen a primary agent spawns a sub-agent, the sub-agent typically inherits the parent's full credentials — same API keys, same OAuth tokens, same tool access. A helpdesk agent that spawns a \"check Okta attributes\" sub-agent has inadvertently created something with the power to reconfigure Active Directory. The permissions don't narrow. The context does.\n\nAuthority moves across hops, but nothing in the system ensures that scope narrows as work gets delegated. OAuth Token Exchange ([RFC 8693](https://www.rfc-editor.org/rfc/rfc8693)) can express pairwise delegation, but it wasn't built for multi-hop agent chains. It doesn't require stepwise scope narrowing. It doesn't bind tokens to specific transactions. It doesn't give you the auditability you need when the fifth agent in a chain does something the first agent never intended.\n\nOVID-ME is our answer to: **how do you actually enforce attenuated permissions at every hop?**\n\n## The Model\n\nOVID-ME builds on three ideas that already exist in standards — it just combines them for the agent delegation use case:\n\n### 1. SPIFFE-style trust: the spawner is the attestor\n\nIn [SPIFFE](https://spiffe.io/), workload identity is rooted in the platform, not in shared secrets. OVID applies the same model to agents: the thing that created a sub-agent is the thing that vouches for it. Trust is cryptographic (Ed25519 signatures) and verifiable without a central authority.\n\nEach agent gets an [OVID token](https://github.com/clawdreyhepburn/ovid) — a signed JWT that says who it is, who created it, what it's allowed to do, and when it expires. The chain is walkable back to the human. No ambient authority. No credential sharing.\n\n### 2. OAuth Token Exchange + RAR: scope narrows at every hop\n\nWhen an agent delegates to a sub-agent, it performs the equivalent of an [OAuth Token Exchange](https://www.rfc-editor.org/rfc/rfc8693) — but instead of exchanging for flat scopes, it issues an OVID with structured [Rich Authorization Requests](https://www.rfc-editor.org/rfc/rfc9396) (RFC 9396) in the `authorization_details` claim.\n\nThese aren't vague scope strings like `jira:read`. They're Cedar policies — executable, auditable, formally verifiable authorization rules:\n\n```\npermit(\n  principal,\n  action == Okta::Action::\"read_attribute\",\n  resource == Okta::UserAttr::\"title\"\n);\n```\n\n**Lifetime can only shorten.** A child token can't outlive its parent. **Permissions can only narrow.** A child mandate must be a provable subset of the parent's effective policy. OVID-ME enforces both constraints — the first at issuance time, the second at evaluation time.\n\nThis is the \"stepwise scope narrowing\" that's missing from raw RFC 8693, and it's what [Transaction Tokens](https://datatracker.ietf.org/doc/draft-ietf-oauth-transaction-tokens/) are reaching toward for workloads. OVID-ME makes it concrete for agents.\n\n### 3. Cedar: real policy evaluation, not string matching\n\nThe mandate inside each OVID token is a Cedar policy set. [Cedar](https://www.cedarpolicy.com/) is Amazon's authorization language — deterministic, analyzable, built for exactly this kind of structured policy evaluation.\n\nOVID-ME evaluates these mandates against tool calls using native `@cedar-policy/cedar-wasm` (same family as Carapace). Default engine is `wasm` and fail-closed — the string-matcher path is an explicit `engine: \"fallback\"` opt-in only (it cannot evaluate `when`/context). Default-deny semantics. Forbid overrides permit. No ambiguity.\n\n## How It Works\n\n```\nHuman\n  │ \"resolve the support ticket\"\n  ▼\nPrimary Agent (OVID: full mandate)\n  │\n  │ issues narrower OVID via token exchange\n  ▼\nSub-Agent (OVID: can only read Okta attributes)\n  │\n  │ calls tool: read_attribute(\"title\")\n  ▼\nOVID-ME evaluates:\n  ├─ Verify OVID signature chain ✓\n  ├─ Extract Cedar mandate from authorization_details ✓\n  ├─ Evaluate: does mandate permit this action? ✓\n  └─ Decision: ALLOW\n  \n  │ calls tool: update_security_settings()\n  ▼\nOVID-ME evaluates:\n  ├─ Verify OVID signature chain ✓\n  ├─ Extract Cedar mandate from authorization_details ✓\n  ├─ Evaluate: does mandate permit this action? ✗\n  └─ Decision: DENY → escalate to parent\n```\n\n**Three modes:**\n\n| Mode | Behavior | Use case |\n|------|----------|----------|\n| **enforce** | Deny means deny | Production |\n| **dry-run** | Evaluate + log, always allow | Testing, onboarding |\n| **shadow** | Enforce current + evaluate candidate | Policy migration |\n\n**Subset proof at issuance time:** When a parent issues an OVID to a child, OVID-ME can verify (via SMT solver or string analysis) that the child's mandate is a provable subset of the parent's effective policy. Mint fails if the child would get more authority than the parent has. This catches policy errors at delegation time, not at enforcement time.\n\n## Quick Start\n\n### Install\n\n```bash\nnpm install @clawdreyhepburn/ovid-me @clawdreyhepburn/ovid\n```\n\n**Native audit DB (optional):** SQLite auditing uses `better-sqlite3`. After a Node upgrade, if tests or the dashboard fail with a `NODE_MODULE_VERSION` / bindings error, rebuild once:\n\n```bash\nnpm run rebuild:native\n# or: npm rebuild better-sqlite3\n```\n\nIf the native addon is unavailable (e.g. `npm install --ignore-scripts`), evaluation still works; audit falls back to JSONL and the forensics dashboard stays off.\n\n**OpenClaw users:** prefer the plugins rather than wiring the library by hand:\n\n```bash\nopenclaw plugins install @clawdreyhepburn/openclaw-ovid\nopenclaw plugins install @clawdreyhepburn/openclaw-ovid-me\n# optional deployment ceiling:\nopenclaw plugins install @clawdreyhepburn/carapace\nopenclaw carapace setup\n```\n\n### Evaluate a mandate\n\n```typescript\nimport { generateKeypair, createOvid } from '@clawdreyhepburn/ovid';\nimport { MandateEngine } from '@clawdreyhepburn/ovid-me';\n\n// Parent creates a sub-agent with a narrow mandate\nconst keys = await generateKeypair();\nconst subAgent = await createOvid({\n  issuerKeys: keys,\n  issuer: 'primary-agent',\n  mandate: {\n    rarFormat: 'cedar',\n    policySet: `permit(\n      principal,\n      action == Ovid::Action::\"read_file\",\n      resource\n    ) when { resource.path like \"/src/*\" };`,\n  },\n});\n\n// Evaluate tool calls against the mandate\nconst engine = new MandateEngine({ mandateMode: 'enforce' });\nconst mandate = subAgent.claims.authorization_details[0];\n\n// This is allowed\nconst r1 = await engine.evaluate(subAgent.claims.jti, mandate, {\n  action: 'read_file',\n  resource: '/src/main.ts',\n});\n// → { decision: 'allow', mode: 'enforce' }\n\n// This is denied — not in the mandate\nconst r2 = await engine.evaluate(subAgent.claims.jti, mandate, {\n  action: 'exec',\n  resource: 'rm -rf /',\n});\n// → { decision: 'deny', mode: 'enforce', reason: 'no matching permit' }\n```\n\n### Configuration\n\n```typescript\nimport { resolveConfig } from '@clawdreyhepburn/ovid-me';\n\nconst config = resolveConfig({\n  mandateMode: 'enforce',    // 'enforce' | 'dry-run' | 'shadow'\n  engine: 'wasm',            // 'wasm' | 'fallback' | 'auto' (auto = wasm, fail-closed; no silent matcher)\n  subsetProof: 'advisory',   // 'required' | 'advisory' | 'off'\n  auditLog: '~/.ovid/audit.jsonl',\n  auditDb: '~/.ovid/audit.db',\n  dashboardPort: 19831,\n});\n```\n\nSee [docs/CONFIG.md](docs/CONFIG.md) for deployment profiles (development, startup, enterprise).\n\n## API\n\n### MandateEngine\n\nThe core evaluation engine. Wraps Cedar evaluation with mode-aware behavior, audit logging, and optional subset proofs.\n\n```typescript\nconst engine = new MandateEngine(config?);\nconst result = await engine.evaluate(agentJti, mandate, { action, resource, context? });\n```\n\n### AuditLogger\n\nAppend-only JSONL audit log + optional SQLite database for structured queries.\n\n```typescript\nimport { createAuditLogger } from '@clawdreyhepburn/ovid-me';\n\nconst logger = createAuditLogger('./audit.jsonl');\nlogger.logDecision(agentJti, action, resource, decision, matchedPolicies);\n```\n\n### Forensics Dashboard\n\n```typescript\nimport { startDashboard } from '@clawdreyhepburn/ovid-me';\n\nconst server = await startDashboard({\n  port: 19831,\n  dbPath: '~/.ovid/audit.db',\n});\n// → OVID Dashboard: http://localhost:19831\n```\n\n## AuthZEN PDP\n\nOVID-ME includes an [AuthZEN](https://openid.github.io/authzen/)-compliant Policy Decision Point API, so you can integrate it with any authorization architecture that speaks the OpenID AuthZEN protocol.\n\n```typescript\nimport { AuthZenServer } from '@clawdreyhepburn/ovid-me';\n\nconst server = new AuthZenServer({\n  defaultPolicy: 'permit(principal, action == Ovid::Action::\"read_file\", resource);',\n});\nawait server.start(19832);\n```\n\n```bash\n# Single evaluation\ncurl -X POST http://localhost:19832/access/v1/evaluation \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"subject\": { \"type\": \"agent\", \"id\": \"agent-47\" },\n    \"action\": { \"name\": \"read_file\" },\n    \"resource\": { \"type\": \"file\", \"id\": \"/src/index.ts\" }\n  }'\n# → { \"decision\": true }\n\n# Batch evaluation\ncurl -X POST http://localhost:19832/access/v1/evaluations \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"evaluations\": [\n      { \"subject\": {\"type\":\"agent\",\"id\":\"a1\"}, \"action\": {\"name\":\"read_file\"}, \"resource\": {\"type\":\"file\",\"id\":\"/src/index.ts\"} },\n      { \"subject\": {\"type\":\"agent\",\"id\":\"a1\"}, \"action\": {\"name\":\"exec\"}, \"resource\": {\"type\":\"command\",\"id\":\"rm -rf /\"} }\n    ]\n  }'\n```\n\n| AuthZEN Feature | Status |\n|---------|--------|\n| Access Evaluation API (§6) | ✅ |\n| Access Evaluations API (§7) | ✅ |\n| PDP Metadata (§9) | ✅ |\n| Search APIs (§8) | ❌ (requires reverse policy analysis) |\n\n## Two-Layer Enforcement\n\nOVID-ME is one half of a two-layer authorization stack:\n\n```\nTool call arrives\n       │\n       ▼\n┌─────────────┐\n│  Carapace   │  ← Human's ceiling. Binary allow/deny.\n│  (layer 1)  │     \"No agent may ever call rm.\"\n└──────┬──────┘\n       │ allowed?\n       ▼\n┌─────────────┐\n│  OVID-ME    │  ← Parent's mandate. Cedar evaluation.\n│  (layer 2)  │     \"This agent may only read /src/*.\"\n└──────┬──────┘\n       │ allowed?\n       ▼\n    Tool runs\n```\n\n| Layer | What it enforces | Who defines it | Runs when |\n|-------|-----------------|----------------|-----------|\n| [Carapace](https://github.com/clawdreyhepburn/carapace) | Deployment ceiling — what's allowed at all | The human | Every tool call |\n| OVID-ME | Parent mandate — what the spawner delegated | The parent agent | Every tool call |\n\nBoth must allow. A sub-agent with a broad mandate can't exceed the human's ceiling. A permissive deployment can't override a narrow mandate.\n\nCarapace implements the `PolicySource` interface, which OVID-ME queries at mandate issuance time to verify new mandates are a subset of the deployment ceiling. Policy conflicts are caught at delegation time, not at enforcement time.\n\n## Related Work\n\nOVID-ME is informed by and builds on:\n\n- **[SPIFFE](https://spiffe.io/)** — workload identity model (the spawner is the attestor)\n- **[OAuth Token Exchange (RFC 8693)](https://www.rfc-editor.org/rfc/rfc8693)** — pairwise delegation\n- **[Rich Authorization Requests (RFC 9396)](https://www.rfc-editor.org/rfc/rfc9396)** — structured `authorization_details` claims\n- **[Transaction Tokens (draft-ietf-oauth-transaction-tokens)](https://datatracker.ietf.org/doc/draft-ietf-oauth-transaction-tokens/)** — scope-narrowing across trust domains\n- **[Cedar](https://www.cedarpolicy.com/)** — deterministic, analyzable policy evaluation\n- **[AuthZEN](https://openid.github.io/authzen/)** — interoperable authorization API\n- **[OVID](https://github.com/clawdreyhepburn/ovid)** — cryptographic agent identity (Ed25519 JWTs, delegation chains); the library that issues the badges this one evaluates\n- **[Carapace](https://github.com/clawdreyhepburn/carapace)** — deployment-level Cedar policy enforcement (the human's absolute ceiling)\n\n### The ready-to-use OpenClaw plugins\n\nIf you just want this working inside [OpenClaw](https://github.com/openclaw/openclaw) without writing code, install the plugin family rather than the libraries directly:\n\n- **[@clawdreyhepburn/openclaw-ovid](https://github.com/clawdreyhepburn/openclaw-ovid)** — issues a badge to every spawned sub-agent.\n- **[@clawdreyhepburn/openclaw-ovid-me](https://github.com/clawdreyhepburn/openclaw-ovid-me)** — the OpenClaw plugin built on *this* library; enforces those badges at every tool call.\n- **[@clawdreyhepburn/carapace](https://github.com/clawdreyhepburn/carapace)** — the human-set ceiling.\n\n\n## License\n\nApache-2.0\n","readmeFilename":"README.md"}