Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions app/src/routes/_authed/admin/boundaries.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,13 @@ function BoundariesPage() {
<code>key</code> being pressed, the file being touched, the{" "}
<code>command</code> being run, and <code>mcp.server</code>,{" "}
<code>mcp.tool</code> and <code>mcp.effect</code> for a call to
somebody else&rsquo;s tools. A rule that cannot be evaluated counts
as a match, so a mistyped deny refuses rather than quietly
permitting what it was meant to forbid.
somebody else&rsquo;s tools. <code>initiator.kind</code> says what
started the run &mdash; <code>person</code>, <code>routine</code> or{" "}
<code>handoff</code> &mdash; which <code>actor.id</code> cannot,
because a scheduled run carries its owner&rsquo;s authority while
nobody is watching. A rule that cannot be evaluated counts as a
match, so a mistyped deny refuses rather than quietly permitting
what it was meant to forbid.
</>
}
title="It may never"
Expand Down
5 changes: 5 additions & 0 deletions docs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ Policy rules can inspect:
- `command`
- `file.path`, `file.name`, `file.extension`
- `mcp.server`, `mcp.tool`, `mcp.effect`
- `initiator.kind`, `initiator.id` — what started the run, as distinct from whose
authority it carries. `person`, `deployment`, `routine` or `handoff`, with the
routine or Bot id where there is one. `actor.id` is the routine's owner on a
scheduled run, so this is the only field that can tell an unattended run from
somebody typing.

Rules use CEL expressions plus case-insensitive `contains()` and `matches()`.
Deny rules are evaluated before allow rules. The policy engine fails closed: a
Expand Down