test(mcp): prove tracedecay_search behavior - #1664
Merged
Merged
Conversation
|
cursor
Bot
force-pushed
the
cursor/prove-tracedecay-search-c75e
branch
from
September 18, 2026 08:37
d2854e2 to
a78a277
Compare
ScriptedAlchemy
marked this pull request as ready for review
September 18, 2026 09:27
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Call the production MCP server the way an agent does and assert the symbol, routes, freshness, and missing-query refusal it returns. Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
The production tools/call classifies an exact symbol name as exact_message, and the markdown bullet lists that class plus one route disclosure per matching chunk. Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
The ready-for-review CI run was canceled while queued. No product or test change. Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
Repository gates run cargo fmt on the whole workspace. These shared-lock matches already fail that check on master. Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
cursor
Bot
force-pushed
the
cursor/prove-tracedecay-search-c75e
branch
from
September 18, 2026 11:53
41a28db to
1959047
Compare
5 tasks
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.
Summary
tracedecay_searchthrough the production MCP server (tools/call), not a stubbed search executor.ledger_post_entryinsrc/ledger.rs), the freshness and coverage verdict, the lexical route disclosure, the markdown bullet, the empty page for a query that names nothing, the anchor that still ranks that symbol, and the typed refusal whenqueryis missing.Motivation
Existing search coverage either injects a fake executor or only checks that some name appears. Neither would fail if the tool stopped returning the symbol the caller asked for. This test calls the tool the way a host does and pins the payload that host observes.
Changes
crates/tracedecay/tests/mcp_suite/mcp_handler_test/search_behavior_test.rs— one behavior test fortracedecay_searchonly.An exact identifier query is classified
exact_message, notapproximate. The markdown bullet repeats the three lexical routes once per matching chunk, which is the text the host receives.Test plan
scripts/require-exact-test.sh cargo test -p tracedecay --features test-transport --locked --offline --test mcp_suite mcp_handler_test::search_behavior_test::search_returns_the_named_symbol_and_rejects_a_missing_query -- --exact --test-threads=1Result:
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 350 filtered outcargo nextest run --workspace --no-fail-fastis not the proof for this one-tool testcargo clippy— left to CItools/call) against a fixture that containsledger_post_entryDrafts run no CI job on this repo, so this PR is marked ready for review to collect checks. Do not merge from this update.
Checklist
CHANGELOG.mdupdated (under[Unreleased]if no version bump) — test-only, no product change.envfiles included