Skip to content

test(evals): Check the moved Conversation's Space in the Lead move case - #4422

Merged
dcramer merged 2 commits into
mainfrom
fix/lead-move-eval-space
Nov 26, 2026
Merged

dcramer merged 2 commits into
mainfrom
fix/lead-move-eval-space

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

The Lead eval case "moves the Conversation" from #4411 failed even when the Lead moved the work. The Lead ran moveConversationToSpace inside a codemode script, and a script call records no tool output, so the case read undefined.

The case now reads the moved Conversation's Space from its dashboard page, as the person sees it, instead of the tool output. The eval fixture gets a readConversationSpace helper for this, which calls GET /api/conversations/:id as the web person.

via @dcramer.

--

View Session [Sentry]

A move inside a codemode script records no tool output, so the case read
an undefined output even when the Lead moved the work. Read the Space from
the moved Conversation's page instead.

Co-Authored-By: David Cramer <[email protected]>
@vercel

vercel Bot commented Nov 26, 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 Nov 26, 2026 4:00am UTC

Request Review

@dcramer
dcramer marked this pull request as ready for review November 26, 2026 03:56
@sentry-junior
sentry-junior Bot requested a review from dcramer November 26, 2026 03:56
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 26, 2026

@dcramer dcramer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really, an eval that's checking if the space move happened should just check the outcome. Like, did the resulting row move to the right space

@sentry-junior

sentry-junior Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Agreed. As of 636b0f4 the case only checks the outcome: it reads the moved Conversation's Space (its row's space_id, through the Conversation's dashboard page) and expects the Lead's Space. The tool-call assertion is gone. The check that the Lead started no Conversation stays, because that's the behavior the case measures.

@dcramer
dcramer merged commit ece4c72 into main Nov 26, 2026
56 checks passed
@dcramer
dcramer deleted the fix/lead-move-eval-space branch November 26, 2026 04:13

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 636b0f42 Deployed Nov 26, 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