@moonbooth/verification
v0.3.0
Published
Moonbooth verification library: structural, compatibility and behavioral checks, receipts
Maintainers
Readme
@moonbooth/verification
The verification engine for Moonbooth capability packages. Given a package manifest and its files, the engine runs structural checks, security policy checks (built on @moonbooth/security), compatibility checks against an environment profile, and behavioral checks when the package carries a test suite. It returns per-dimension results and a receipt that records what was checked and what the outcome was.
The engine is deterministic and runs locally. It does not execute package code, and it does not call a model API.
Install
npm install @moonbooth/verificationExample
import { buildPackage } from "@moonbooth/protocol";
import { runVerification } from "@moonbooth/verification";
const pkg = buildPackage({
manifest: {
act_version: "0.1",
capability: {
id: "sample-capability",
name: "Sample Capability",
version: "1.0.0",
description: "A sample capability.",
},
artifact: { format: "agent-skills", entrypoint: "SKILL.md" },
requirements: { tools: [], configuration: [] },
requested_permissions: {
network: false,
filesystem_write: false,
external_side_effects: false,
},
verification: { test_manifest: "tests/manifest.json" },
},
files: {
"SKILL.md": "# Sample\n\nDo the sample task.\n",
"tests/manifest.json": "{\"suite_id\":\"sample\",\"version\":\"1.0.0\"}\n",
},
});
const result = runVerification({ manifest: pkg.manifest, files: pkg.files, env: {} });
console.log(result.overall); // "VERIFIED" when structural and security checks pass
console.log(result.receipt); // the receipt recording each dimension's outcomeRead the per-dimension results (structural, security, compatibility, behavioral) on the result and on the receipt. A dimension that did not run reports that it did not run; the receipt keeps each dimension separate.
Links
- Homepage: https://www.moonbooth.ai
- Repository: https://github.com/moonboothai/moonbooth (this package lives in
packages/verification) - Issues: https://github.com/moonboothai/moonbooth/issues
License
MIT
