Skip to content

test(evals): Move the watch evals to the agent test fixture - #2021

Merged
dcramer merged 3 commits into
mainfrom
claude/junior-issue-2001-8775ee
Oct 3, 2026
Merged

dcramer merged 3 commits into
mainfrom
claude/junior-issue-2001-8775ee

Conversation

@dcramer

@dcramer dcramer commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Moves the Watches evals (integration/agent/subscriptions.eval.ts and agent/subscriptions.eval.ts) to the agent test fixture from #2001. Watch delivery now goes through the real signed GitHub webhook route instead of calling createWatch and ingestEvent directly.

const conversation = await run(mention("Let me know here when getsentry/junior#691 lands."));
await insertWatch({ conversation, events: ["pull_request.checks.recovered"], ... });
const delivery = await conversation.continue(githubWebhook("check_suite", { ... }));
expect(delivery.replies).toHaveLength(0);

Fixture changes

  • insertWatch({ conversation, ... }) writes a watch through createWatch.
  • conversation.continue(githubWebhook(...)) posts the webhook and returns what the watches of that Conversation did. run(githubWebhook(...)) still returns the Conversation that an event automation started.
  • Slack posts now match stored replies even when Slack rendering links a reference such as owner/repo#1. Before, the post did not match, so the judge saw the same reply twice.
  • completedToolCalls(name) counts a deferred call through executeTool as a call of the inner tool, with its arguments as input. Assertions no longer depend on whether a tool is deferred.
  • The eval database now applies the GitHub plugin migrations. Before, a pull_request webhook failed on the missing pull request table.
  • The behavioral eval config sets the GitHub webhook secret, as the integration config already does.

Case changes

  • The stop case no longer says a bare "stop". Through the real Slack webhook, a bare "stop" opts Junior out of the thread before any turn runs, and that path already cancels every watch of the thread. watched-message-behavior.test.ts covers it. The old harness called handleNewMention directly, so it skipped this path. The eval now says "you can stop now", which still needs the conversation to mean "stop the watch".
  • The PR cases used the $eval-events MCP fixture plugin to create a PR first. They now refer to PR docs(meta): improve homepage meta description #691, which the shared GitHub HTTP fixture serves, as test(evals): Move the event automation evals to the agent test fixture #2013 did for event automations. The unused fixture plugin and its MCP mock tool are gone.
  • The checks-failed and merged cases used a synthetic event(...) input. They now ask Junior to watch the PR in a first turn, check that the watch covers the event, and then deliver a real check_suite or pull_request webhook.
  • Delivery cases run one setup turn before the turn under test, because insertWatch needs a Conversation and only a call creates one. If we want to avoid that turn, the fixture needs a way to load history without an input.

Two baseline entries drop.

All six cases pass against the real model. The checks-failed case now judges brevity with the rubric instead of an 800-character limit, because link URLs made up most of the length.

Refs #2001

🤖 Generated with Claude Code

Move the Watches integration and behavioral evals to the agent test
fixture. Add insertWatch() and let continue() deliver a GitHub webhook to
the watches of a started Conversation.

A bare "stop" opts Junior out of the thread before any turn runs, so the
stop eval uses a terse follow-up that needs the conversation to mean
"stop the watch". Match Slack posts to stored replies without link markup,
so a linked PR reference does not show the reply twice to the judge.

Remove the unused eval-events fixture plugin and its MCP mock tool.

Refs #2001

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@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 10:37pm UTC

Request Review

@github-actions

github-actions Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

7 screenshot changes — 7 changed · 0 added · 0 removed

Review screenshots in Frameshift

Automation Attention · Desktop
Automation Attention · Desktop
Changed
Conversation Event Details · Desktop
Conversation Event Details · Desktop
Changed
Conversation Image Reply · Desktop
Conversation Image Reply · Desktop
Changed
Conversation Image Reply · Mobile
Conversation Image Reply · Mobile
Changed
Conversation Outbox Author · Desktop
Conversation Outbox Author · Desktop
Changed
Conversation Outbox Author · Mobile
Conversation Outbox Author · Mobile
Changed
Show 1 more changed screenshot
Settings Api Tokens · Desktop
Settings Api Tokens · Desktop
Changed

@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.69 2.2M 1,477.63s

Base commit f5e7abb has no eval run to compare against.

Count deferred tool calls through executeTool as calls of the inner tool,
so assertions do not depend on tool exposure. Apply the GitHub plugin
migrations to the eval database; pull_request webhooks failed on the
missing pull request table. Send a complete merged pull_request payload,
match bare Slack links to stored replies, and judge brevity with the
rubric instead of a character count.

Refs #2001

Co-Authored-By: Claude Opus 5.5 <[email protected]>
All evals share one schema, so a test's plugin options never change which
tables exist. The template now finds each first-party plugin's migrations
instead of a hand-kept list.

Refs #2001

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@dcramer
dcramer marked this pull request as ready for review October 2, 2026 23:20
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Oct 2, 2026
@dcramer
dcramer merged commit d45e092 into main Oct 3, 2026
49 of 52 checks passed
@dcramer
dcramer deleted the claude/junior-issue-2001-8775ee branch October 3, 2026 01:06

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 99f7f324 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: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant