agui-dotnet-cross-language-tests
Guides adding cross-language interop tests that verify the AG-UI .NET SDK is wire-compatible with the TypeScript SDK, using a Vitest TS client against a C# test server in both directions plus protobuf
What it does
Author cross-language interop tests that verify the AG-UI .NET SDK is wire-compatible with the TypeScript SDK — a Vitest TS client driving a C# CrossLanguage.TestServer over HTTP, both directions, including protobuf byte-parity against @ag-ui/proto. USE FOR: adding or modifying cross-language interop coverage, CrossLanguage.TestServer routes, the CrossLanguage.Vitest suite, protobuf wire parity tests, TS-client-to-C#-server or C#-client-to-TS-server scenarios. DO NOT USE FOR: .NET-only unit tests (use agui-dotnet-unit-tests), ASP.NET Core hosting integration tests (use agui-dotnet-integration-tests).
Quality judgment
The document provides comprehensive, well-organized guidance for cross-language interop testing between .NET and TypeScript AG-UI SDKs. It clearly defines the harness architecture, test patterns, protobuf wire-parity rules, and transport parameterization. The philosophy section establishes TS as the reference oracle, which is appropriate. The critical anti-patterns section is particularly valuable for preventing common mistakes. The only deduction from perfection is that some sections could be more concise, and the document assumes familiarity with referenced files that weren't included in the