Skip to content

test(evals): Move the scheduler evals to the agent test fixture - #2010

Merged
dcramer merged 2 commits into
mainfrom
claude/junior-2001-continuation-072da3
Oct 2, 2026
Merged

dcramer merged 2 commits into
mainfrom
claude/junior-2001-continuation-072da3

Conversation

@dcramer

@dcramer dcramer commented Oct 2, 2026

Copy link
Copy Markdown
Member

Moves the scheduler evals to the agent test fixture from #2001 and adds the heartbeat() input they need. Stacked on #2009: two new exact evals here fail without that fix.

await insertScheduledAutomation({
  destination: slackChannel(),
  due: true,
  task: "Remind me to do healthchecks.",
});
const delivery = await run(heartbeat());
expect(delivery.replies[0]!.text).toContain("<@U0TEST>");

Fixture changes

  • heartbeat() calls the authenticated heartbeat route. run(heartbeat()) returns the Conversation that the due automation started. The fixture finds it from the in-process queue traffic, so it uses no runtime internals. That Conversation takes no further input.
  • insertScheduledAutomation() takes due and once.
  • Slack replies are read from the message blocks that people see, not the fallback text. The fallback repeats the automation footer, so the judge saw each automation reply twice and scored the footer as a schedule confirmation. Thread replies are unchanged.
  • completedToolCalls() replaces per-file copies of the same filter.

Migrated tests

  • evals/integration/scheduler/* and evals/scheduler/delivery.eval.ts use the fixture. scheduler/helpers.ts is gone, and five baseline entries drop.
  • The move and creation evals no longer read stored automations directly. They assert on the tool call. slack-schedule-tools.test.ts already covers the stored destination and visibility.
  • The "addresses its creator" delivery case moves from a scored behavioral eval to an exact integration eval. As a scored case, it passed on partial credit while the bug fixed in fix(automations): Name the creator exactly in automation instructions #2009 was live. A new creation case checks that the stored instruction contains the requester's mention and not "me" or "my".

sentry/skills.eval.ts still uses the old due-automation input. It also needs credentials, a plugin package, and the sandbox, so it moves in a later slice.

Refs #2001

🤖 Generated with Claude Code

@vercel

vercel Bot commented Oct 2, 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 Oct 2, 2026 3:02am UTC

Request Review

@dcramer
dcramer marked this pull request as ready for review October 2, 2026 02:56
@dcramer
dcramer added this pull request to stack #2011 October 2, 2026 02:56
@github-actions github-actions Bot added the risk: high PR risk score: high label Oct 2, 2026
Base automatically changed from claude/automation-creator-mention to main October 2, 2026 03:01
dcramer and others added 2 commits October 1, 2026 20:01
…#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]>
Adds heartbeat() to the agent test fixture. It calls the authenticated
heartbeat route, and run(heartbeat()) returns the Conversation that the due
automation started. insertScheduledAutomation() can now make an automation
due or one-off.

Slack replies are now read from the message blocks that people see. The
fallback text repeats the automation footer, so the judge saw automation
replies twice.

The scheduler integration evals and scheduler delivery evals now use the
fixture. Exact cases check that a reminder for the requester stores and
delivers the requester's Slack mention.

Refs #2001

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@dcramer
dcramer force-pushed the claude/junior-2001-continuation-072da3 branch from 5640227 to 83c0e25 Compare October 2, 2026 03:01
@dcramer
dcramer merged commit 22eb8dc into main Oct 2, 2026
14 of 15 checks passed
@dcramer
dcramer deleted the claude/junior-2001-continuation-072da3 branch October 2, 2026 03:02
@sentry-evals

sentry-evals Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Sentry Evals

junior-behavioral

Run Status Passed Failed Errored Cost Tokens Duration
Head Complete 61 6 0 $0.78 2.6M 1,277.93s

Base commit 2b156e1 has no eval run to compare against.

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 83c0e252 Deployed Oct 2, 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