Skip to content

fix(tasks): Frame automated agent input plainly - #1653

Merged
dcramer merged 3 commits into
mainfrom
fix/event-task-framing
Aug 22, 2026
Merged

dcramer merged 3 commits into
mainfrom
fix/event-task-framing

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Event tasks still used internal runtime vocabulary in agent input, and scheduled tasks had the same problem. Temporary resource watches already used plain framing.

This change makes the three automated wrappers consistent:

  • event tasks use About / Instructions / Summary / verified details / external text
  • scheduled tasks use plain instructions without creator metadata
  • all three ask replies to summarize what Junior acted on and what it did or needs next
  • event-task Slack footers keep the human label and drop raw event keys

Primary coverage is full inline snapshots for the rendered agent input on event tasks, resource watches, and scheduled tasks.

Checks:

  • event-task, heartbeat, resource-event unit/component tests (48)
  • @sentry/junior typecheck
  • @sentry/junior lint

Requested by David Cramer.

--

View Junior Session [Sentry]

@vercel

vercel Bot commented Aug 22, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview Aug 22, 2026 3:46am

Request Review

@dcramer
dcramer marked this pull request as ready for review August 22, 2026 03:51
@dcramer
dcramer merged commit ecd50ba into main Aug 22, 2026
40 checks passed
@dcramer
dcramer deleted the fix/event-task-framing branch August 22, 2026 03:52
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Aug 22, 2026
dcramer added a commit that referenced this pull request Oct 2, 2026
…#2009)

Automations now record and receive the exact person a task is for.
Before this change, a stored instruction such as "Remind me to do
healthchecks" reached the agent with no way to know who "me" was. Since
#1653 removed the creator from scheduled task input, the reminder tagged
nobody or, as in #1394, the wrong person.

The fix has two parts:

- **At creation:** the scheduled and event automation create and update
tools share one instruction description. It tells the agent that the
task runs later without this conversation, so it must name each person
with their Slack mention instead of "me", "my", or "you". "Remind me in
this channel to submit my timesheet" is now stored as an instruction for
`<@U…>`.
- **At dispatch:** task input adds a `Created by: <@U…>` line for
scheduled and event automations. This covers instructions that people
write in the dashboard editor, and tasks stored since #1653 that still
say "me". `chat/README.md` lists the new section.

`slackMention()` moves from a private helper in `user-lookup.ts` to
`slack/mrkdwn.ts`, so the three callers share it.

The deterministic guard is in `heartbeat.test.ts`: the dispatch input
must name the creator. The agent-level checks are exact integration
evals in the stacked fixture PR, which needs this change to pass.
Without this change, both evals fail with the reported bug.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[email protected]>
dcramer added a commit that referenced this pull request Oct 2, 2026
…#2009)

Automations now record and receive the exact person a task is for.
Before this change, a stored instruction such as "Remind me to do
healthchecks" reached the agent with no way to know who "me" was. Since
#1653 removed the creator from scheduled task input, the reminder tagged
nobody or, as in #1394, the wrong person.

The fix has two parts:

- **At creation:** the scheduled and event automation create and update
tools share one instruction description. It tells the agent that the
task runs later without this conversation, so it must name each person
with their Slack mention instead of "me", "my", or "you". "Remind me in
this channel to submit my timesheet" is now stored as an instruction for
`<@U…>`.
- **At dispatch:** task input adds a `Created by: <@U…>` line for
scheduled and event automations. This covers instructions that people
write in the dashboard editor, and tasks stored since #1653 that still
say "me". `chat/README.md` lists the new section.

`slackMention()` moves from a private helper in `user-lookup.ts` to
`slack/mrkdwn.ts`, so the three callers share it.

The deterministic guard is in `heartbeat.test.ts`: the dispatch input
must name the creator. The agent-level checks are exact integration
evals in the stacked fixture PR, which needs this change to pass.
Without this change, both evals fail with the reported bug.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[email protected]>

This branch was successfully deployed

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

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant