Repository navigation
feat(google): Turn verified emails to Junior into requests - #2817
Closed
sentry-junior[bot] wants to merge 1 commit into
Closed
sentry-junior[bot] wants to merge 1 commit into
sentry-junior[bot] wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
14 screenshot changes — 14 changed · 0 added · 0 removed Review screenshots in Frameshift Show 8 more changed screenshots |
Junior polls the inbox of its Google account from the plugin heartbeat. The plugin proves who sent each email (DMARC pass at an allowed domain) and drops automated mail. Core Identity dispatch then starts work in the sender's Slack DM only when the address belongs to a current Slack member. Co-Authored-By: BYK <[email protected]>
sentry-junior
Bot
force-pushed
the
feat/google-email-requests
branch
from
November 6, 2026 20:00
ef2e1fc to
d08e956
Compare
sentry-junior
Bot
changed the base branch from
main
to
feat/identity-dispatch
November 6, 2026 20:01
Contributor
Author
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.
People can email, CC, or forward mail to Junior's Google account to ask for work. For example, CC Junior on a candidate thread with "Junior, find us 30 minutes next week", or forward a GitHub issue email. Junior does the work in the sender's Slack DM. It does not send email.
This is an internal trial. It is off by default: set
GOOGLE_WORKSPACE_EMAIL_REQUESTS=true, addgmail.readonlyto the consent screen, and connect the account again. Until the stored grant has the Gmail scope, the heartbeat reads no mail.Trust rule. The Google heartbeat polls inbox history every minute. Junior drops an email before it reaches a Turn unless all of these are true:
Authentication-Resultsheader is frommx.google.comand showsdmarc=passfor the From domain. A sender cannot fake this with a header of their own, because Google's header is added last.GOOGLE_WORKSPACE_ALLOWED_DOMAINS.not_linked, and the email is dropped.Auto-Submitted,Precedence,List-Id), a calendar reply, or mail from Junior.Quoted and forwarded text goes to the agent as external text, not as instructions. The Gmail token stays in host code. Gmail is not in the plugin egress domains, so no tool or sandbox command can read mail.
Stacked on #2217. This PR has no core change. It calls
ctx.agent.dispatchForIdentity({ verifiedEmail })from the heartbeat, withgoogle-email:<messageId>as the idempotency key. The work runs in the sender's DM with their own credentials, like a DM they sent.Open questions for the trial
Authentication-Resultsheader. If so, it fails closed, and we need a different check for same-domain mail. I could not confirm this without a live mailbox.[[NO_REPLY]]when the sender asks nothing, but this can be noisy.via @BYK.
--
View Session in Sentry