test(mcp): prove tracedecay_god_class behavior - #1715
Merged
Merged
Conversation
|
Call the production tools/call path and assert literal member counts, path scope, limit, and default markdown. Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
JSON object key order is not the ranking a caller sees. The production tools/call proof now checks the field set and the literal member counts that the tool returned. Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
cursor
Bot
force-pushed
the
cursor/prove-god-class-behavior-cdec
branch
from
September 18, 2026 08:34
af8f8e1 to
d72afb6
Compare
ScriptedAlchemy
marked this pull request as ready for review
September 18, 2026 08:35
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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_god_classthrough the production MCPtools/callpath, not a handler unit test.Motivation
tracedecay_god_classhad a line-number check and no assertion of the ranking a caller actually sees. The tool's contract is which classes and structs rank, with which method and field counts, underlimitandpath.Changes
crates/tracedecay/tests/mcp_suite/mcp_handler_test/god_class_test.rscalls the real MCP server.Test plan
REQUIRE_EXACT_TEST_COUNT=2 scripts/require-exact-test.sh cargo test -p tracedecay --test mcp_suite --features test-transport god_class_test -- --test-threads=1—2 passed; 0 failedin 3.31sChecklist
.envfiles includedCHANGELOG.mdupdated — not applicable; test-onlyDo not merge from this lane.