Repository navigation
feat(automations): Answer Automation runs with reply, noReply and reportBlocked - #3145
Conversation
…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]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
dcramer
left a comment
There was a problem hiding this comment.
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?
…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]>
Co-Authored-By: David Cramer <[email protected]>
|
14 screenshot changes — 14 changed · 0 added · 0 removed Review screenshots in Frameshift Show 8 more changed screenshots |
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]>
|
Seems fine but fire off another thread to clean up our telemetry.md it's way too inefficient and large |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ 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, |
There was a problem hiding this comment.
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.
Reviewed by Cursor Bugbot for commit 9579b55. Configure here.
**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]>
…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]>


Every non-person Turn on an
automationConversation now ends withreply,noReply, orreportBlocked, with one re-ask. This replacesfinishAutomationRunand theautomationRunflag.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]