Repository navigation
chore: add a plugin contract and a payload round-trip test helper - #475
Merged
Merged
Conversation
moetemp
marked this pull request as ready for review
November 12, 2026 06:54
brianstrauch
marked this pull request as draft
November 12, 2026 17:02
Member
|
Marking as draft until #470 is merged |
moetemp
marked this pull request as ready for review
November 12, 2026 18:08
moetemp
force-pushed
the
chore/plugin-contract
branch
from
November 13, 2026 07:57
8ba62d1 to
41efcf6
Compare
moetemp
marked this pull request as draft
November 13, 2026 07:58
moetemp
force-pushed
the
chore/plugin-contract
branch
from
November 13, 2026 16:55
8de6810 to
7c1fabf
Compare
moetemp
force-pushed
the
fix/vercel-ai-sdk-abort-signal
branch
from
November 13, 2026 17:42
5d3ddfb to
a6f52c9
Compare
moetemp
force-pushed
the
chore/plugin-contract
branch
from
November 13, 2026 18:32
7c1fabf to
8234e0d
Compare
moetemp
marked this pull request as ready for review
November 13, 2026 19:02
brianstrauch
approved these changes
Nov 13, 2026
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.
What changed?
This PR adds a "Plugin contract" section to
AGENTS.mdand a shared test helper for payload round trips.findPayloadChange(value)sends a value through the default payload converter and returns the first field that changed.typescript/_templateand the five TypeScript plugins.check_conventions.pykeeps the copies equal.vercel-ai-sdkgets a contract test for its Activity input and results.This branch contains #465 to #470, because the contract test fails without them. Those should merge first.
Fixes #AI-953
Why?
The review of
@temporalio/vercel-ai-sdk2.0.0 found six defects. Three had one cause. A value changed between the Workflow and the Activity, and no test sent a real value through the converter. Each rule in the contract comes from one of the six.How did you test it?
make lintandmake testpass invercel-ai-sdk,langsmith,openai-agentsandstrands-agents.python3 scripts/ci/check_conventions.pypasses.make testingoogle-adkfails on my machine in thestrict-layoutcleanup hook. It fails the same way onmain.