test(rust): scenario parity runner — reference server runs the shared corpus#67
Merged
Conversation
… conformance corpus Ports the scenario parity runner (spec/conformance/scenarios/*.json) into the Rust reference server suite. Both seed scenarios pass against the reference, confirming the corpus matches the canonical behavior. Adds a production-neutral test-injection seam: a MockLlmClient can be supplied via state.chat_provider (None in production, so the live-gateway path is unchanged), with a placeholder LlmConfig so a keyless deterministic turn runs — mirroring the mock-injection the Python/TS/Go/C# servers already had. All five servers now run the shared corpus = tested protocol parity. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01U7Mn93HpqhSgEmX6tRdPAv
|
brentrager
added a commit
that referenced
this pull request
Jun 24, 2026
… shared parity corpus (#69) The TS/Python/Go servers landed (#59/#60/#61) and all five now run the shared spec/conformance/scenarios corpus (#62-#67) — tested protocol parity. Updates the servers row + tests section from 'in progress' to the real state. Claude-Session: https://claude.ai/code/session_01U7Mn93HpqhSgEmX6tRdPAv Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Completes polyglot server parity: the Rust reference server now runs the shared
spec/conformance/scenarios/*.jsoncorpus, alongside Python/TS/Go/C#. Both seed scenarios pass against the reference — confirming the corpus encodes the canonical behavior (and that the TS+C# fixes from the other ports were toward the reference, not away from it).Adds a production-neutral test-injection seam so the deterministic corpus can drive the Rust server without a gateway key: a
MockLlmClientviastate.chat_provider(None in production → the live-gateway path is byte-for-byte unchanged) + aplaceholder_llm_config()(never used for a network call; the mock replaces the client). This mirrors the mock-injection the other four servers already had.Verified: full server suite 78 passing, clippy clean, both scenarios green.
With this, all five native servers run the shared scenario corpus → tested protocol parity.
🤖 Generated with Claude Code