Skip to content

feat: add ai-agents example schema#47

Merged
tstirrat15 merged 2 commits into
mainfrom
ai-agents-example
Jun 17, 2026
Merged

feat: add ai-agents example schema#47
tstirrat15 merged 2 commits into
mainfrom
ai-agents-example

Conversation

@sohanmaheshwar

Copy link
Copy Markdown
Contributor

Summary

  • Adds a new example schema demonstrating an AI agent acting on behalf of a user.
  • An agent inherits view access (but not edit) to documents the user can read or write, via a delegates permission and arrows from reader/writer on the document.
  • Two files only: schemas/ai-agents/README.md and schemas/ai-agents/schema-and-data.yaml. Follows the structure of basic-rebac.

Test plan

  • Load the example in the playground and confirm it appears in the dropdown.
  • Verify all assertions pass (tom/fred view as expected, both agents view, agents cannot edit).
  • Verify the validation block matches the playground's regenerated output.

Adds an example showing an AI agent inheriting view access to documents
on behalf of a user via an arrow on a `delegates` permission.
@sohanmaheshwar

Copy link
Copy Markdown
Contributor Author

TODO after this PR is merged -> bump the playground's submodule pointer and commit the test count change from 8 to 9

tstirrat15
tstirrat15 previously approved these changes Jun 17, 2026

@tstirrat15 tstirrat15 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tstirrat15 tstirrat15 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tstirrat15 tstirrat15 merged commit 1a189ba into main Jun 17, 2026
7 checks passed
@tstirrat15 tstirrat15 deleted the ai-agents-example branch June 17, 2026 15:09
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants