Add agent_governance use-case example#268
Open
tomjwxf wants to merge 1 commit into
Open
Conversation
Adds cedar-example-use-cases/agent_governance/ showing Cedar as the policy layer for an AI agent host. Four canonical action verbs (exec, open, connect, request_tool) from the community-maintained schema at VeritasActa/cedar-agent-schemas. Five reference policies covering workspace access, cloud-metadata denies, credential-file denies, safe read-only tool invocation, and trust-gated exec. Three ALLOW and four DENY test queries. No schema changes to cedar-examples or any other directory. Self- contained under cedar-example-use-cases/agent_governance/. Related: VeritasActa/cedar-agent-schemas (canonical community schema library, per the scope pattern established in cedar-policy/rfcs#58 and cedar-policy#69). Signed-off-by: Tom Farley <tommy@scopeblind.com> Signed-off-by: tommylauren <tfarley@utexas.edu>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new use-case example at
cedar-example-use-cases/agent_governance/that shows Cedar as the policy layer for an AI agent host (Claude Code, Cursor, a custom MCP agent, etc.). The example uses the four canonical agent action verbs (exec,open,connect,request_tool) as the vocabulary for agent-host policy authoring.Mirrors the structure of
cedar-example-use-cases/github_example/:README.md— walkthrough of the use case, entities, actionspolicies.cedar— 5 policies covering common agent-governance patternspolicies.cedarschema— Cedar schema for the example (self-contained)entities.json— 9 sample entitiesALLOW/— 3 test queries that should permitDENY/— 4 test queries that should denyWhat this demonstrates
Five policies exercise the main patterns:
/workspace.ssh,.aws,.kubedirectoriesexecgated on ring and trust_scoreCedar's
forbidprecedence is demonstrated: a request toopen /workspace/.ssh/id_rsais denied even thoughallow-workspace-readwould permit it, becausedeny-credential-filestakes precedence.Why this matters
Agent governance is a fast-growing space where operators need portable policies across frameworks (Microsoft AGT, protect-mcp, sb-runtime, Signet, APS, nono). Using canonical verbs from a single shared schema makes operator policies portable. This example shows what that looks like in Cedar.
The full canonical schema and reference policy library live in the community-maintained VeritasActa/cedar-agent-schemas repository, created in response to the scope pattern established in Cedar RFCs #58 (standard library) and #69 (schema libraries).
Scope
Fully self-contained under
cedar-example-use-cases/agent_governance/. No changes to any other directory. No new top-level files or folders.Verification
policies.cedarvalidates againstpolicies.cedarschemagithub_example/conventionRelated