Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By dogwood-policyv1.0.0Apache-2.0In 1 marketplace
Writes and validates Dogwood (.dw) authorization policies for AI agents from plain-English requirements, checked with the dogwood CLI. It says its reference interpreter is not intended for production enforcement.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Dogwood is a governance language designed for AI agents and their tools. It
supports Cedar policies and adds temporal
conditions (since, formerly, once, aggregations) to look back over an
agent's recent events.
permit(principal, action, resource)
when { context.input.amount < 1000 }
when formerly within 1h {
Action::"Approve"::request{ approver: context.input.approver }
};
This repository contains a reference interpreter for the language for the purpose of understanding the semantics of the language, with simple examples of the kinds of policies Dogwood supports. This reference interpreter is NOT intended for production use. Please see the end of this document for a list of important limitations of the interpreter.
📖 Read the full documentation →
permit/forbid with when/unlesscontext.* slots filled at runtimedogwood-lsp workspace crate
provides diagnostics and semantic tokens. This repository includes no editor
extension code. dogwood-language owns the canonical parser-backed syntax
spans.| Path | Description |
|---|---|
dogwood-syntax/ | Shared policy grammar and lossless concrete syntax |
dogwood-language/ | The core Rust library — parser, interpreter, lowering, and API |
dogwood-formatter/ | Source-preserving pretty-printer for Dogwood policies |
dogwood-docs/guide/ | The language guide (syntax, schemas, temporal expressions, providers, formal spec) |
dogwood-cli/ | The dogwood CLI (validate, lower, replay, explain) |
dogwood-lsp/ | The pure dogwood-lsp server (diagnostics and semantic tokens over stdio; no editor extension) |
dogwood-docs/examples/ | Runnable example policies with traces and expected output |
dogwood-language/configuration/ | Starter action schemas and event schemas |
dogwood-lean/ | A formal specification of the language in Lean 4, checked against the crate (not part of the Cargo build) |
# Pretty-print a policy:
dogwood format policy.dw
# Validate a policy against its schemas:
dogwood validate policy.dw --policy-schema schema.cedarschema
# Lower to Cedar and see the output:
dogwood lower policy.dw --policy-schema schema.cedarschema --emit both
# Replay a trace and see verdicts:
dogwood replay policy.dw --policy-schema schema.cedarschema --trace events.log
The read_after_login example
permits a Read only if the same user logged in within the last hour:
// policy.dw
@id("read_after_login")
permit (
principal,
action == Drupe::Action::"Read",
resource
)
when temporal {
formerly within 1h Drupe::Action::"Login"::request{ input.user: context.input.user }
};
Replay it against a trace of three events (login at t=0, read at t=10s, read at t=2h):
$ dogwood replay dogwood-docs/examples/read_after_login/policy.dw \
--policy-schema dogwood-docs/examples/read_after_login/schema.cedarschema \
--trace dogwood-docs/examples/read_after_login/trace.log
@0 (time point 0): DENY
@10 (time point 1): ALLOW [rules: 0]
@7200 (time point 2): DENY
The first event is the login itself (no read requested) → DENY. Ten seconds later Alice reads → ALLOW (she logged in recently). Two hours later she tries again → DENY (the login has expired from the 1-hour window).
You can also validate and lower to Cedar:
$ dogwood validate dogwood-docs/examples/read_after_login/policy.dw \
--policy-schema dogwood-docs/examples/read_after_login/schema.cedarschema
OK: validation passed with no errors or warnings.
$ dogwood lower dogwood-docs/examples/read_after_login/policy.dw \
--policy-schema dogwood-docs/examples/read_after_login/schema.cedarschema \
--emit cedar-policies
@id("read_after_login")
permit(principal, action == Drupe::Action::"Read", resource) when { context.policy_0__temporal_0 };
7-day copy clicks
npx claudepluginhub dogwood-policy/dogwood --plugin dogwoodBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground