Repository navigation
feat(guardian): Review createPreview before it opens a public URL - #3601
Merged
Merged
Conversation
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]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
dcramer
approved these changes
Nov 17, 2026
dcramer
marked this pull request as ready for review
November 17, 2026 17:49
dcramer
enabled auto-merge (squash)
November 17, 2026 17:54
Contributor
|
9 screenshot changes — 9 changed · 0 added · 0 removed Review screenshots in Frameshift |
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]>
24 tasks done
This branch was successfully deployed
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.
createPreviewgives a server in the Sandbox a public URL that anyone with the link can open. It usedapprove, so it ran with no Guardian review, and nothing checked what the server shows. It now usesreview, so Guardian reviews every call, and the existing rules such asdata_exposuredecide.The Guardian evals get two
createPreviewsnapshots inpublic-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 acreatePreview, so the snapshots use the real tool definition.via @dcramer.
--
View Session [Sentry]