Repository navigation
cli: a Node-vs-Rust comparison of every CLI command - #3087
Merged
Merged
Conversation
scripts/test-polis-cli-differential.sh runs every CLI command against the same fixture data twice, once with the Rust routes switched off (Node) and once on, and requires identical --json data. It covers participant flows (join, vote, comment) as well as admin reads, records which backend served each request, and runs on its own in seconds, separate from the byte-level recordings. Commands backed by a route that exists only in Rust are listed separately: with Rust off they must fail cleanly as unavailable, and they are judged by their own contract tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018NVGBuYCk4EZmiz4csUv9s
The upload step refuses a path that starts with '..'. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018NVGBuYCk4EZmiz4csUv9s
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.
Observable change: none for users. This adds a test harness and its entry point.
scripts/test-polis-cli-differential.shruns every CLI command against the same fixture data twice, once with the Rust routes switched off (Node) and once switched on, and requires identical--jsondata.capability_unavailable, and they're judged by their own contract tests.Today only the merged Rust routes are switched, so most commands compare Node with Node until more Rust routes land. The vote-sign lint reports 0 new sites.
🤖 Generated with Claude Code