Skip to content

test(mcp): prove tracedecay_feedback_diagnostics behavior - #1694

Merged
ScriptedAlchemy merged 4 commits into
masterfrom
cursor/prove-feedback-diagnostics-ea7f
Sep 19, 2026
Merged

ScriptedAlchemy merged 4 commits into
masterfrom
cursor/prove-feedback-diagnostics-ea7f

Conversation

@ScriptedAlchemy

@ScriptedAlchemy ScriptedAlchemy commented Sep 18, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Prove tracedecay_feedback_diagnostics through the production MCP tools/call path on a mounted project.
  • Rejected arguments stay JSON-RPC invalid-request errors with the reviewed schema detail.
  • A handle the contract accepts but the daemon never minted, or minted for a different read, is a not_found_or_not_authorized concealment problem, not an empty cycle.
  • A handle minted by a published advisory cycle returns that cycle. The fixture's real rustc warning (unused variable: unused_anchor) is the finding, the checkout HEAD is the scope, and a repeat read returns the same cycle under a new request id.

Motivation

Schema pins still pass if the daemon answers with an empty success or a differently typed refusal. These tests call the tool the way a host does. The success case publishes a compiler warning through tracedecay_diagnose, takes the diagnostics handle the advisory cycle mints, and asserts the literal diagnostics payload.

Changes

  • crates/tracedecay/tests/mcp_suite/mcp_handler_test/feedback_diagnostics_test.rs — production MCP journeys for this tool only.

Test plan

  • REQUIRE_EXACT_TEST_COUNT=2 scripts/require-exact-test.sh cargo test -p tracedecay --features test-transport --test mcp_suite mcp_handler_test::feedback_diagnostics_test -- --test-threads=1
  • Linux root-transport: both tests passed (feedback_diagnostics_returns_the_published_cycle_for_its_minted_handle, feedback_diagnostics_refuses_bad_arguments_and_denies_unknown_handles)

CI note

The four red checks on 6f1d1de are not this tool:

  • Clippy fails in crates/tracedecay-privacy/src/rules.rs (doc_lazy_continuation), which is unchanged on master.
  • Repository gates fails cargo fmt --all --check in lifecycle_lease.rs and code_index_generations/locking.rs, also unchanged on master.
  • Linux root-journeys fails search-eval baseline drift and a workflow fan-out timeout.
  • Linux root-transport fails a flaky storage-status restart and a graph-rebuild status timeout.

This PR does not change those crates.

Checklist

  • CHANGELOG.md updated (under [Unreleased] if no version bump)
  • No secrets, credentials, or .env files included
  • Breaking changes documented (if any)
Open in Web Open in Cursor 

@changeset-bot

changeset-bot Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: a1d6b36

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

cursoragent and others added 2 commits September 18, 2026 07:54
Call the production MCP tools/call path and assert the literal
JSON-RPC refusal for rejected arguments and the concealment
problem for handles the daemon never minted.

Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
Call the production tools/call path with the handle the advisory cycle
mints and assert the returned cycle matches the fixture checkout.
A list handle minted for a different read stays concealed.

Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/prove-feedback-diagnostics-ea7f branch from 7766c1a to bd33d26 Compare September 18, 2026 08:00
A compiler warning published through the production diagnose tool is
returned by tools/call for the minted handle, keyed to the fixture
checkout. A sibling list handle stays concealed.

Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
@ScriptedAlchemy
ScriptedAlchemy marked this pull request as ready for review September 18, 2026 08:36
@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.

The first cycle payload was overwritten before anything read it.

Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
@ScriptedAlchemy
ScriptedAlchemy merged commit 39bb366 into master Sep 19, 2026
8 of 26 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