Skip to content

Explain why an automation run was blocked #2244

Open

Description

@sentry-junior

A one-off scheduled automation was told to post exact text but was created with no outcomes. It ran, couldn't post, and was blocked. The only reason anyone saw was the run model's own guess: "No Slack message-posting tool is available in this run." The real cause, that the automation had no send_message outcome, only turned up by digging through Junior's own tracing data.

  • Creation: slackScheduleCreateAutomation accepted outcomes: [] with an instruction to post a message. Nothing flagged the mismatch.
  • Run: with no outcomes, finishAutomationRun only offers no_action and misconfigured (packages/junior/src/chat/tools/runtime/finish-automation-run.ts). The run searched for a posting tool three times, then declared misconfigured with a reason it wrote itself.
  • Surfacing: the blocked notice and the automation's statusReason repeat that model-written sentence. Neither says that the automation has no outcomes or that the run had no way to post.
  • Diagnosis: to find the cause, someone had to read tool-call span attributes from production tracing for both the create call and the run. The user reasonably expected the automation itself to explain the failure.

Related: #1975 (attention states), #2014, #2051.

via markus.

--

View Junior Session [Sentry]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions