Skip to content

test(AIC-3601): use the new handoff result text in the langchain-agents fixture - #233

Merged
XieX merged 1 commit into
mainfrom
xie/aic-3601-langchain-fixture
Oct 28, 2026
Merged

XieX merged 1 commit into
mainfrom
xie/aic-3601-langchain-fixture

Conversation

@XieX

@XieX XieX commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Review follow-up from #230. test_handoff_handler_records_destination in packages/langchain-agents/tests/test_handler.py defines its own handoff handler and still returned the old result text (Finish your own work and provide your final response.). It now returns the text #230 puts in graph.py and that TESTING.md §3.15a pins:

Handoff to billing recorded. billing takes over when your turn ends. Finish your own part, then end your turn. Do not answer for billing.

The fixture only checks that a handler's return value passes through the built tool unchanged, so the test was never wrong, only out of date. This is a separate test: PR so that langchain-agents doesn't get a release for a test-only change. Squash-merging it into #230 would have put it under that PR's fix: title.

The PRs can merge in either order. Neither depends on the other.

Tests

langchain-agents suite: 222 passed. ruff check and ruff format --check are clean.

🤖 Generated with Claude Code


Note

Overview
Updates test_handoff_handler_records_destination so the local mock handoff handler and its expected tool return value use the newer handoff guidance string (billing takes over when the turn ends; finish your part and do not answer for the destination agent), matching what graph.py and TESTING.md §3.15a specify after the related production change.

No runtime or handler logic changes—only test expectations so the fixture stays in sync with the canonical handoff copy.

Reviewed by Cursor Bugbot for commit a0f7e50. Bugbot is set up for automated code reviews on this repo. Configure here.

…ts fixture

The fixture only checks that a handoff handler's return value passes through
the built tool unchanged, so it still passed with the old wording. Match the
text TESTING.md §3.15a now pins so it no longer reads as current.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@XieX
XieX requested a review from jeffdupont October 28, 2026 14:48
@XieX
XieX enabled auto-merge (squash) October 28, 2026 14:49
@XieX
XieX merged commit 5bdc305 into main Oct 28, 2026
11 checks passed
@XieX
XieX deleted the xie/aic-3601-langchain-fixture branch October 28, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants