Skip to content

feat(guardian): Review createPreview before it opens a public URL - #3601

Merged
dcramer merged 1 commit into
mainfrom
junior/create-preview-review
Nov 17, 2026
Merged

dcramer merged 1 commit into
mainfrom
junior/create-preview-review

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

createPreview gives a server in the Sandbox a public URL that anyone with the link can open. It used approve, so it ran with no Guardian review, and nothing checked what the server shows. It now uses review, so Guardian reviews every call, and the existing rules such as data_exposure decide.

The Guardian evals get two createPreview snapshots in public-publishing.eval.ts: a requested mock-data UI preview (allow), and a preview of a server that serves the whole workspace with a private checkout and .env (ask or deny). The eval tool catalog now gives its workspace a createPreview, so the snapshots use the real tool definition.

via @dcramer.

--

View Session [Sentry]

createPreview gives a sandbox server a public URL that anyone with the
link can open, so Guardian now reviews each call instead of letting it
run without review. Add Guardian eval snapshots for a requested mock-data
preview and for a preview that serves the whole workspace.

Co-Authored-By: David Cramer <[email protected]>
@vercel

vercel Bot commented Nov 17, 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 Nov 17, 2026 5:47pm UTC

Request Review

@dcramer
dcramer marked this pull request as ready for review November 17, 2026 17:49
@sentry-junior
sentry-junior Bot requested a review from dcramer November 17, 2026 17:49
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 17, 2026
@dcramer
dcramer enabled auto-merge (squash) November 17, 2026 17:54
@github-actions

Copy link
Copy Markdown
Contributor

9 screenshot changes — 9 changed · 0 added · 0 removed

Review screenshots in Frameshift

Automation Run Details · Desktop
Automation Run Details · Desktop
Changed
Automation Skill Editor · Desktop
Automation Skill Editor · Desktop
Changed
Automations Expanded Row · Desktop
Automations Expanded Row · Desktop
Changed
Automations Expanded Row · Mobile
Automations Expanded Row · Mobile
Changed
Automations Expanded Row Light · Desktop
Automations Expanded Row Light · Desktop
Changed
Automations Expanded Row Light · Mobile
Automations Expanded Row Light · Mobile
Changed
Show 3 more changed screenshots
Automations Runs Filters · Desktop
Automations Runs Filters · Desktop
Changed
Conversation Attachment Zoom · Desktop
Conversation Attachment Zoom · Desktop
Changed
Conversation Attachment Zoom · Mobile
Conversation Attachment Zoom · Mobile
Changed

@dcramer
dcramer merged commit bf9e8e0 into main Nov 17, 2026
54 checks passed
@dcramer
dcramer deleted the junior/create-preview-review branch November 17, 2026 18:03
dcramer added a commit that referenced this pull request Nov 17, 2026
Adds `design/guardian.md`, the goals and rules of Guardian, and lists it
in the `design/README.md` index. Docs only.

The goals and rules come from the Guardian policy and its prior art
(Codex Guardian, Claude Code auto mode), the public action review docs,
and the intent stated in #874, #2180,
#2147, #2910, #2530,
#3332, #2552, and #3601.

Destination facts come from draft #3596. Until it
merges, the doc states them as a goal, with a gap that points at it.

**Gaps**
- Plugins cannot declare destination facts, so `data_exposure` misses
private data in a plugin write that reaches a public place.
- Guardian does not review Sandbox commands, because `bash` never opted
in to review. Plugin egress rules route some writes to reviewed tools.
Others, such as a git push to a work branch, run with no review.
- `publishImage` makes a public URL with no review and no private-data
check.

<!-- junior-request-attribution:start -->
via @dcramer, **Jeffrey Hung**.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3A270de42799607fa311fdfea32584b14f -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent%3A270de42799607fa311fdfea32584b14f)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A270de42799607fa311fdfea32584b14f/?project=4510944073809921)

<!-- junior-session-footer:end -->

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: David Cramer <[email protected]>

This branch was successfully deployed

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

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant