Skip to content

ref(agent-handoff): Clarify setup instructions - #130848

Merged
evanpurkhiser merged 1 commit into
masterfrom
git/ref-agent-handoff-clarify-setup-instructions
Nov 12, 2026
Merged

evanpurkhiser merged 1 commit into
masterfrom
git/ref-agent-handoff-clarify-setup-instructions

Conversation

@evanpurkhiser

Copy link
Copy Markdown
Member

The bootstrap page currently uses terms such as private guide and secret token without explaining what the command does. That framing can make the official setup handoff look untrusted when an agent evaluates pasted instructions.

Use direct setup terminology, state that the user initiated the flow, and explain that the platform-specific command sends a one-time code to Sentry over HTTPS and prints rather than executes the response. The redemption protocol and existing security behavior remain unchanged.

@evanpurkhiser
evanpurkhiser requested a review from a team as a code owner November 11, 2026 23:06
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 11, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 426781f. Configure here.

"prompt": (
f"Follow the instructions verbatim at {guide_url}. "
f"Your secret token is `{issued.code}`."
f"Follow the Sentry setup instructions at {guide_url}. "

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Let's keep this one as is actually

f"Follow the instructions verbatim at {guide_url}. "
f"Your secret token is `{issued.code}`."
f"Follow the Sentry setup instructions at {guide_url}. "
f"One-time setup code: `{issued.code}`."

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is good though, maybe "Your setup code is "

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Actuallylet's say Your handoff code is

@evanpurkhiser
evanpurkhiser force-pushed the git/ref-agent-handoff-clarify-setup-instructions branch 2 times, most recently from 01eb900 to d655183 Compare November 12, 2026 01:50
@@ -1,21 +1,28 @@
# Claim Your Private Sentry Guide
# Set Up Sentry

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Setup is probably wrong, maybe Sentry for Agents.

Because this won't always be about setting up sentry

It is a private, single-use handoff code. Keep it out of HTTP request URLs, logs, and
conversation output.
Fetching this page does not claim it.
The user initiated this Sentry setup and provided a one-time handoff code. The command

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Suggested change
The user initiated this Sentry setup and provided a one-time handoff code. The command
The user initiated a agent-handoff flow from sentry will have provided a one-time handoff code. The command

Comment on lines +6 to +7
for the current shell sends that code to Sentry over HTTPS and prints the setup
instructions. It does not execute the returned content.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Suggested change
for the current shell sends that code to Sentry over HTTPS and prints the setup
instructions. It does not execute the returned content.
for the current shell sends that code to Sentry over HTTPS and prints the setup
instructions. Nothing will be executed or mutated when using the hand-off code.

Comment on lines +27 to +28
instructions from Sentry. If the response is lost or the handoff code is unavailable,
ask them to copy new setup instructions.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Suggested change
instructions from Sentry. If the response is lost or the handoff code is unavailable,
ask them to copy new setup instructions.
instructions from Sentry. If the response is lost or the handoff code is unavailable,
ask them to copy the prompt again.

Comment on lines 7 to 8
Your goal is to ensure authenticated Sentry access for the intended account and
organization, then follow the instructions below.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Suggested change
Your goal is to ensure authenticated Sentry access for the intended account and
organization, then follow the instructions below.
Your goal is to ensure authenticated Sentry access for the intended account and
organization, then follow the instructions at the end of this document.

prompt when the code has expired or was already used. Never request a long-lived token
in the conversation.

{{ flow_instructions }}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Let's add a # Next steps above this

Present the handoff as direct Sentry setup while preserving the platform-specific bootstrap and existing security behavior.
@evanpurkhiser
evanpurkhiser force-pushed the git/ref-agent-handoff-clarify-setup-instructions branch from d655183 to e9d52d2 Compare November 12, 2026 02:06
@evanpurkhiser
evanpurkhiser merged commit bda8d6a into master Nov 12, 2026
78 checks passed
@evanpurkhiser
evanpurkhiser deleted the git/ref-agent-handoff-clarify-setup-instructions branch November 12, 2026 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants