@agentproto/policy
v0.1.0
Published
@agentproto/policy — AIP-38 POLICY.md reference implementation. A markdown + frontmatter format for declaring policy on a resource — access grants (who can perform which actions), defaults (per-block behavioural defaults), limits (rate / quota caps), and
Maintainers
Readme
@agentproto/policy
AIP-38 POLICY.md reference implementation. A markdown + frontmatter format for declaring policy on a resource — access grants (who can perform which actions), defaults (per-block behavioural defaults), limits (rate / quota caps), and requirements (cross-cutting must-haves like MFA / approval). Composable inline | ref | file. Granted on AIP-39 ACTION ids — implementations / TOOLs are decoupled from policy.
Status: 0.1.0-alpha. Generated by
scripts/scaffold-aip.mjs—build()andvalidate()bodies are TODOs.
Spec: https://agentproto.sh/docs/aip-38
Usage
import { definePolicy } from "@agentproto/policy"
const x = definePolicy({
id: "my-policy",
description: "Short purpose.",
// ...
})License
MIT — see LICENSE.
