Skip to content

test(mcp): prove tracedecay_diagnose behavior - #1633

Merged
ScriptedAlchemy merged 5 commits into
masterfrom
cursor/prove-diagnose-behavior-7553
Sep 19, 2026
Merged

ScriptedAlchemy merged 5 commits into
masterfrom
cursor/prove-diagnose-behavior-7553

Conversation

@ScriptedAlchemy

@ScriptedAlchemy ScriptedAlchemy commented Sep 18, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Proves tracedecay_diagnose through the production MCP tools/call path, not the cargo-output parser.
  • Asserts the literal mapped diagnostic (severity, code, message, span, enclosing symbol, callers), the default markdown rendering, severity filters, truncation, unmapped spans, empty input, and the missing-cargo_output refusal.

Motivation

The tool is the agent path for pasted cargo/rustc stderr. A parser unit test does not show what the MCP caller receives. This test calls the same production composition the daemon serves and checks the result the caller observes.

Changes

  • crates/tracedecay/tests/mcp_suite/mcp_handler_test/diagnose_test.rs: one production-graph fixture, several tracedecay_diagnose calls with literal expected payloads.

Test plan

  • ./target/debug/deps/mcp_suite-cab93df4223b2c51 --exact mcp_handler_test::diagnose_test::diagnose_reports_literal_mapping_filters_and_refusals --nocapture --test-threads=1
    • Result: ok. 1 passed; 0 failed; 350 filtered out; finished in 1.85s
    • The call is the production harness tools/call. The first payload matched the literal error-to-target mapping, caller caller, publication status=published / inserted=1 / publication_revision=1, and the default markdown rendering.
  • Do not merge

Checklist

  • CHANGELOG.md updated — not a user-facing release change
  • No secrets, credentials, or .env files included
  • Breaking changes documented — none
Open in Web Open in Cursor 

Drive tracedecay_diagnose through production MCP tools/call and
assert the mapped diagnostic, filters, and missing-input refusal.

Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
@changeset-bot

changeset-bot Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: f07725b

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.

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

@ScriptedAlchemy
ScriptedAlchemy marked this pull request as ready for review September 18, 2026 14:06
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@ScriptedAlchemy ScriptedAlchemy added the ci-full label Sep 18, 2026 — with Cursor
ScriptedAlchemy and others added 4 commits September 18, 2026 11:42
…se-behavior-7553

Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
Rustfmt was rejecting shared lock matches, the credential catalogue doc
comment failed clippy, and three tests asserted the wrong typed outcome
when CI has no Codex CLI, a cold dashboard, or the published credential
sentence.

Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
…553' into cursor/prove-diagnose-behavior-7553

Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
@ScriptedAlchemy
ScriptedAlchemy merged commit 7d4878d into master Sep 19, 2026
1 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants