Skip to content

feat(automations): Answer Automation runs with reply, noReply and reportBlocked - #3145

Merged
dcramer merged 4 commits into
mainfrom
feat/automation-shared-answers
Nov 11, 2026
Merged

dcramer merged 4 commits into
mainfrom
feat/automation-shared-answers

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Every non-person Turn on an automation Conversation now ends with reply, noReply, or reportBlocked, with one re-ask. This replaces finishAutomationRun and the automationRun flag.
Step 3 of #3060.
Builds on #3125, which is merged, so this targets main.
Needs https://github.com/getsentry/junior-prod/pull/660 at deploy; five production skills still name finishAutomationRun.
Failures on Watch Turns of an Automation run are no longer posted in its thread.

via @dcramer.

--

View Session [Sentry]

…ortBlocked

Every non-person Turn on an automation Conversation ends with reply,
noReply or reportBlocked, with one re-ask. finishAutomationRun and the
automationRun flag are removed. Step 3 of #3060.

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

vercel Bot commented Nov 11, 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 11, 2026 2:41am UTC

Request Review

@dcramer dcramer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think these three tools could be on all subagents too? ReportBlocked maybe be better as a more flexible tool but it just seems like reporting a real status concern is useful?

sentry-junior Bot and others added 2 commits November 11, 2026 02:22
…un Turn

A dispatch Turn without an answer fails the run again. reportBlocked
blocks the Automation from Watch and child result Turns too. Drop the
one-reply guard, align wording, and document the answer telemetry.

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

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

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

Review screenshots in Frameshift

Automation Skill Editor · Desktop
Automation Skill Editor · Desktop
Changed
Conversation Attachment Zoom · Desktop
Conversation Attachment Zoom · Desktop
Changed
Conversation Captured Memories Popover · Desktop
Conversation Captured Memories Popover · Desktop
Changed
Conversation Details Watched Linked Work · Desktop
Conversation Details Watched Linked Work · Desktop
Changed
Conversation Long Transcript Touch · Mobile
Conversation Long Transcript Touch · Mobile
Changed
Conversation Question Picks And Text · Desktop
Conversation Question Picks And Text · Desktop
Changed
Show 8 more changed screenshots
Conversation Stop Active · Mobile
Conversation Stop Active · Mobile
Changed
Conversation Text Attachment · Desktop
Conversation Text Attachment · Desktop
Changed
Conversations Sections Collapsed · Desktop
Conversations Sections Collapsed · Desktop
Changed
Memories · Mobile
Memories · Mobile
Changed
Push Notifications Tip · Desktop
Push Notifications Tip · Desktop
Changed
Push Notifications Tip On · Desktop
Push Notifications Tip On · Desktop
Changed
Review Desk Item · Mobile
Review Desk Item · Mobile
Changed
Settings Mcp · Desktop
Settings Mcp · Desktop
Changed

A Watch can outlive the 7-day dispatch record, so reportBlocked on a
later Turn reads the Automation from junior_automation_runs. The
dispatch record is a fallback, and a miss logs a warning.

Co-Authored-By: David Cramer <[email protected]>
@dcramer
dcramer marked this pull request as ready for review November 11, 2026 07:17
@github-actions github-actions Bot added the risk: high PR risk score: high label Nov 11, 2026
@dcramer

dcramer commented Nov 11, 2026

Copy link
Copy Markdown
Member

Seems fine but fire off another thread to clean up our telemetry.md it's way too inefficient and large

@dcramer
dcramer merged commit 6d4a612 into main Nov 11, 2026
52 checks passed
@dcramer
dcramer deleted the feat/automation-shared-answers branch November 11, 2026 07:19

@cursor cursor Bot left a comment

Copy link
Copy Markdown

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 9579b55. Configure here.

// run has its outcome even without a reply.
const RUN_ENDING_TOOL_NAMES = new Set([
FINISH_AUTOMATION_RUN_TOOL_NAME,
REPLY_TOOL_NAME,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

noReply no longer ends confirmation retry

Medium Severity

RUN_ENDING_TOOL_NAMES replaced finishAutomationRun with reply and reportBlocked but omitted noReply. After an ask rejection, a successful noReply is no longer treated as a final outcome, so the confirmation-retry path can continue a Turn that already answered.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 9579b55. Configure here.

BYK added a commit that referenced this pull request Nov 11, 2026
**Cause:** a `noReply` call ends the run after its tool batch. An idle
period starts only from a final response (`stopReason: "stop"`), so a
Turn that ends with `noReply` never starts one. Its next Turn writes the
whole prefix again.

**Change:**
- When `noReply` ends the run, the agent marks this on the cache warming
recorder. `stop()` then starts the normal idle period from the request
that called `noReply`: same snapshot, segment, work state, parent prior
and system prompt check. The gap is recorded on return like any other.
- An Automation run (gated Turn) that ends with `noReply` starts no idle
period, because an ended run almost never gets a reply. Since #3145,
`noReply` replaces `finishAutomationRun` in Automation runs, so the gate
is `behavior.gated`.
- The recorder now remembers the last finished call before it skips
mid-Turn calls. This way the snapshot is the `noReply` request even when
earlier calls came first in the Turn.
- New attribute `app.cache_warming.turn_ending` (`reply` or `no_reply`)
on the `cache_warming.warmup` span and the
`cache_warming.conversation.returned` log, so reports can group warmups,
skips and returns by it.

**Prefix:** the snapshot is the input of the `noReply` request, and that
request wrote or read the cache for it. Next Turn's input adds the
`noReply` call, its result and the new message to that input. History
keeps `noReply` calls unchanged, so the warmup refreshes the same prefix
that the next Turn reads. A final response works the same way.

**Before merge:** check the gain against the 11-17 full-week backtest.

No UI change.

<!-- junior-request-attribution:start -->
via @BYK.
<!-- junior-request-attribution:end -->

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

--

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

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

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: BYK <[email protected]>
sentry-junior Bot added a commit that referenced this pull request Nov 22, 2026
…nation

An Automation run that the instruction tells to post a message often
searches for a Slack posting tool before it calls reply. When it finds
none, it can end with reportBlocked or noReply, and nothing is posted.

#3145 replaced finishAutomationRun with reply. The old
tool said that the runtime posts the message to the stored destinations
and that a missing Slack posting tool does not block the run. The new
prompt and reply description lost that: they only say not to post the
reply with another tool. State it again in the automation-run rules,
and make the reply description say where the reply goes.

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

This branch was successfully deployed

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

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant