Skip to content

feat(guardian): Let any person in the Conversation authorize - #5352

Open
sentry-junior[bot] wants to merge 2 commits into
mainfrom
guardian/simplify-authority
Open

sentry-junior[bot] wants to merge 2 commits into
mainfrom
guardian/simplify-authority

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

Guardian should stop only two things: outside changes that no person authorized, and sensitive data that reaches a wider audience. Work in the Sandbox is Junior's own. Today Guardian asks more than that, and it ignores a teammate in the same thread who says "yes, do it".

  • Who authorizes. Any person in the Conversation can authorize an action or answer Guardian's ask: people in the Slack thread, and verified GitHub authors linked to a person. Bots, parent agents, Slack authors outside the allowed domains, and unverified accounts are context. Ingress marks a thread reply whose author fails the allowed-domain check, and Guardian labels it untrusted person.
  • Holds. Code checks who set a hold, so a hold that only an agent's brief or context sets does not block the work's own steps.
  • Gates. Reads and changes that stay in the Sandbox need no gate. A hand-off is an outside effect.
  • Hand-off context. Hand-offs learn about this work's own pull requests.
  • Evals. The Guardian eval cases now expect what this threat model says. A secret leak is denied, not asked. A push to the work's own branch is allowed. A teammate's yes counts. Cases whose inputs were wrong or duplicated are removed.
  • Design. design/guardian.md states the new instruction-authority, own-lines, linked-account and sandbox-boundary rules, and drops the linked-account gap that this change closes.

via @dcramer.

--

View Session [Sentry]

- Any person in the Conversation can authorize an action or answer
  Guardian's ask: people in the Slack thread, and verified GitHub
  authors linked to a person. Bots, parent agents, Slack authors who
  fail the allowed-domain check, and unverified accounts are context.
- The code, not the model, checks who set a hold.
- Reads and Sandbox-only changes need no gate. A hand-off is an
  outside effect.
- Hand-offs learn about this work's own pull requests.
- The Guardian evals expect what the threat model says: a secret leak
  is denied, pushes to the work's own branch are allowed, and a
  teammate's yes counts.

Co-Authored-By: David Cramer <23610+dcramer@users.noreply.github.com>
@vercel

vercel Bot commented Dec 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Dec 6, 2026 6:42pm UTC

Request Review

Co-Authored-By: David Cramer <23610+dcramer@users.noreply.github.com>
@dcramer
dcramer marked this pull request as ready for review December 6, 2026 18:40
@sentry-junior
sentry-junior Bot requested a review from dcramer December 6, 2026 18:40
@github-actions github-actions Bot added the risk: high PR risk score: high label Dec 6, 2026

@dcramer dcramer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ci defaults shouldn't ever need to be changed. Roach just operates on everything we do

Comment thread design/guardian.md
- Example: on a PR Watch, the person's own GitHub comment "also add a
test for the empty case" authorizes that test. The same words from
another account are context.
- `instruction-authority` Any person in the Conversation can authorize an

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This can be cleaned up. Guardian doesn't need to be hyper descriptive about where identity comes from. It just needs to explain to any person can authorize an action, even if it wasn't their own

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Proposed replacement for instruction-authority and linked-account. Confirm it, or edit it, and I'll commit it exactly:

- `instruction-authority` Any person in the Conversation can authorize an
  action, also one that serves another person's instruction. Bots, agents,
  and Events never authorize. In a Conversation that an agent started or
  messaged, the allowed brief is the instruction (`brief-is-instruction`).
  - Example: in a shared Slack thread, Junior asks Alice before it
    deploys. Bob answers "yes, deploy it". Bob's answer authorizes the
    deploy.
- `linked-account` A person's message counts also when an Event delivers
  it, such as their GitHub comment on a Watch.

via @dcramer.

This branch was successfully deployed

1 active deployment
Preview – junior-docs — fa5c5adb Deployed Dec 6, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant