feat(rust-first): prove retrieval parity on frozen golden baseline#71
Merged
Conversation
Advance tool/codebase_search and transport/stdio-rust-rmcp toward ts_deleted by locking a frozen golden baseline fixture and enforcing Rust authority parity in CI and release gate. - Add fixtures/golden-retrieval-baseline.json (captured rust-tfidf contract) - Add test/retrieval-parity.test.ts and MCP golden_parity integration test - Add docs/specs/coderag-migration-ledger.json (parity_proven states) - Wire parity checks into CI and benchmark:release-gate
packages/mcp-server no longer depends on @sylphx/mcp-server-sdk or @sylphx/vex, but bun.lock still listed them. CI `bun install --frozen-lockfile` failed on the test job (PR #71).
- Record transport/web-mcp-http, stdio-rust-rmcp, codebase_search as rust_impl under rej-010 (proof missing/stale; no authority_rust) - Mark transport/stdio-ts-adapter ts_deleted; freeze promotions - Accept PACKAGE_ROOT-relative native bin path in differential harness test
- Atomic write (tmp + rename) for rust-index / file-hashes persistence - Serialize all fixture-corpus unit tests behind one lock - Isolate persists_and_reloads_index_snapshot onto a private temp root
CI runners resolve `node` via Bun, which treats `node -` as a module path (`Module not found '.../-'`). Switch authority-gate ledger checks to python3 stdin scripts for portable fail-closed evaluation.
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.
Rust-First migration slice
Advances two in-scope capabilities from
rust_impl→parity_proventowardts_deleted:tool/codebase_searchrust_implparity_proventransport/stdio-rust-rmcprust_implparity_provenChanges
fixtures/golden-retrieval-baseline.json— frozen rust-tfidf authority contract (top-hit paths + ranked paths for 3 golden queries)test/retrieval-parity.test.ts— asserts Rust CLI matches frozen baseline exactlycrates/coderag-mcp-server/tests/golden_parity.rs— MCPcodebase_searchtool parity on benchmark corpusdocs/specs/coderag-migration-ledger.json— repo migration ledger (Phase 0 denominator lock)parity:frozen_baseline,fixtures:parity_baseline,tests:retrieval_paritychecksTests
Blockers to
ts_deleted(next slices)transport/web-mcp-http— Web MCP Streamable HTTP not shippedtransport/stdio-ts-adapter— TS stdio adapter retained for semantic/OpenAI hybrid until Web MCP cutoverFleet ledger
Control plane
ledgers/SylphxAI__coderag.jsonupdated toparity_provenfor the two capabilities above.