Skip to content

test(rust): scenario parity runner — reference server runs the shared corpus#67

Merged
brentrager merged 1 commit into
mainfrom
parity-rust
Jun 24, 2026
Merged

test(rust): scenario parity runner — reference server runs the shared corpus#67
brentrager merged 1 commit into
mainfrom
parity-rust

Conversation

@brentrager

Copy link
Copy Markdown
Contributor

Completes polyglot server parity: the Rust reference server now runs the shared spec/conformance/scenarios/*.json corpus, 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 MockLlmClient via state.chat_provider (None in production → the live-gateway path is byte-for-byte unchanged) + a placeholder_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

… 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
@changeset-bot

changeset-bot Bot commented Jun 24, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: b51f71d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@brentrager
brentrager merged commit 606d1df into main Jun 24, 2026
1 check passed
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>
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.

1 participant