Repository navigation
test(evals): Move the scheduler evals to the agent test fixture - #2010
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…#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
force-pushed
the
claude/junior-2001-continuation-072da3
branch
from
October 2, 2026 03:01
5640227 to
83c0e25
Compare
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.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()takesdueandonce.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/*andevals/scheduler/delivery.eval.tsuse the fixture.scheduler/helpers.tsis gone, and five baseline entries drop.slack-schedule-tools.test.tsalready covers the stored destination and visibility.sentry/skills.eval.tsstill 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