Repository navigation
test(sdk): Go parity guards for spawn and tool constants (#1098) - #1099
Merged
Merged
Conversation
8 of 9 tasks
Co-Authored-By: OpenAI Codex <[email protected]> Signed-off-by: Samuele Verzi <[email protected]>
6 of 13 tasks
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.
Summary
Scenario 9 of the TypeScript SDK local-daemon milestone needs compile-time-adjacent guards for constants shared across the Node client and Go server. This PR implements ADR 0292 parity checks without changing the server, protocol, or engine:
Closes #1098
Related: #821
Acceptance criteria
readyDocandreadyDocSchemain both directionsserver.FeatureMCPServersOnCreateMcpServerSpecprotobuf fieldsmecated servetoolkit.MaxOutputBytesType of change
Test plan
Required baseline
task lint)task test) — run twice; Scenario 9 andinternal/adapter/serverpass, while unrelated existing failures remain incmd/mecatequi,internal/adapter/acp, andinternal/appgo run ./cmd/mecademo) — not run under the Taskfile-only session constraintConditional checks
task docs)task site:build)task api:check)task api:update) andengine/CHANGELOG.mdupdatedAdditional automated verification:
task sdk:install sdk:lint sdk:typecheck sdk:test sdk:build sdk:pack sdk:api:checktask ac-trace— all seven Scenario 9 acceptance criteria resolve to the six exact Go proof namesChanges
internal/adapter/server/sdk_typescript_local_parity_test.gosdk/typescript/src/spawn.tssdk/typescript/src/tool.tssdk/typescript/src/tool-host.tsDoes this introduce a user-facing change?
No.
Implementation plan
Approved implementation plan
Scenario 9 of
docs/acceptance/sdk-typescript-local.md, governed by ADR 0292.Special notes for reviewers
The spawn guard also pins
checkLifetimePipeFDsocketpair handling because Node and Bun supply the lifetime channel through stdio.sdk/40-e2estacks onsdk/39-parity.