Skip to content

Fix MCP stdio conversion pinning; 150 more listed tests pass - #1994

Merged
Paul Lizer (paullizer) merged 5 commits into
microsoft:Developmentfrom
paullizer:claude/known-failures-batch-5
Nov 30, 2026
Merged

Paul Lizer (paullizer) merged 5 commits into
microsoft:Developmentfrom
paullizer:claude/known-failures-batch-5

Conversation

@paullizer

@paullizer Paul Lizer (paullizer) commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Batch 5 of the known-failures cleanup: functional_tests/known_failures.txt goes from 1,095 entries to 943 after the latest Development merge (150 removed, none added). Version 0.261.505.

Product fix

A retired stdio MCP action can be converted to a remote server again. The bulk personal action save passes the legacy action it replaces to validate_mcp_tool_pinning_for_save(). The check normalized that action's old connection to compare it, and normalizing a stdio connection raises McpStdioRemovedError. The route reports any ValueError from the check as "Discover and approve MCP tools", so the conversion failed even with approved fingerprints. A retired stdio action now counts as having no comparable connection: the conversion needs approved tools like any new connection, and saves once they match. New test test_converting_a_retired_stdio_action_needs_approval_instead_of_failing fails on the old code. See docs/explanation/fixes/MCP_RETIRED_STDIO_CONVERSION_PINNING_FIX.md.

Harnesses brought up to date

  • M365 loader preflight (17): seamed names that the loader catches are now real exception classes, so except no longer raises TypeError.
  • MCP legacy stdio (17): new MCP fixtures list a discovered tool with its approved fingerprint, as saves now require.
  • Group collaboration storage (15): the new create/retry helper is loaded.
  • Document transform rendering (14) and orchestration transform (8): the run reader returns records through production's _strip_cosmos_metadata. It returned the SDK's CosmosDict, which the result access check rightly refuses.
  • Plan revision references (13) and routes (6): the source fake is patched where planner candidates are now checked (resolve_orchestration_source_manifest) and carries source_kind; the shared route harness keeps the model scope on answer selections as production does, accepts the new terminal argument, and routes single-message calls; invalid edit replies cover every repair attempt.
  • Workspace authoring (12 + 7): agent credentials use the owner-bound credential- names since ff8b645; the tests check that the stored reference holds the credential instead of the old editor- name.
  • Embedding defaults (12) and discovery (6), chat reasoning runtime (11), agent delegation (8): extracted code gets the helpers it now calls from the real modules. The reasoning harness opens a request context for the screening guards. One expectation was updated: the legacy group test route now resolves the active group once.
  • Template lifecycle (4): the shared screening pipeline fixture gets the template accessibility helpers.

Cosmos boundary review

  • functions_mcp_tool_pinning.py::persist_mcp_tool_drift is a reviewed storage owner, and its fingerprint covers the whole module. Its body is unchanged; its boundary in cosmos_response_boundaries.json is re-recorded with a contract note, as the 0.261.459 fingerprint fix did. Its evidence test passes.
  • deployers/bicep/postconfig.py::<module>: the Azure Government Speech change merged from Development (0.261.504) changed the module digest without re-recording its reviewed boundary, so Development fails this guard too. Its point reads and writes are unchanged and its evidence test passes; the boundary is re-recorded here with a contract note.
  • test_user_plugin_bulk_save_id_preservation.py and test_document_transform_sources.py hold reviewed Cosmos seams whose fingerprint covers the file's imports, and changing a seam needs fault-injection evidence. Their fixes needed new imports, so both files stay as on Development and 17 of their entries stay listed. Clearing them means migrating those seams.

Left listed, needs a decision

test_classic_preflight_blocks_before_staging_and_flashes_actionable_error: when the embedding preflight rejects a classic admin settings save, the AIConnectionError handler runs the Key Vault cleanup for every endpoint, though nothing was staged yet. As far as I can tell it deletes nothing (it only removes references the unstaged endpoint holds and the stored one doesn't), but it was left as is pending a decision on whether to skip cleanup before staging.

Checks

  • 279 of 282 selected test files passed with the list on; after the merge fix the two plan revision files pass in full. test_action_credentials_chat_reconstruction.py timed out under load and passes alone.
  • check_known_failures_shrink.py --base Development: no new entries. check_cosmos_response_boundaries.py: 0 review gaps.

🤖 Generated with Claude Code

… tests pass

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…one-turn terminal argument

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…pinning owner

The bulk save and template source tests need new module imports, which change
reviewed Cosmos seams; they return to Development's version and their entries
stay listed, except four template lifecycle tests the shared pipeline fix passes.
The pinning owner's body is unchanged; its boundary is re-recorded for the new
module digest. 150 listed tests pass, leaving 944.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@paullizer Paul Lizer (paullizer) changed the title Fix MCP stdio conversion pinning; 167 more listed tests pass Fix MCP stdio conversion pinning; 150 more listed tests pass Nov 30, 2026
Development took 0.261.504 for the Azure Government Speech fix. The release notes
keep its section and add this batch's as 0.261.505. The postconfig storage owner's
reviewed boundary is re-recorded for the Speech change's module digest; its point
reads and writes are unchanged and its evidence test passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@paullizer
Paul Lizer (paullizer) merged commit 2499ece into microsoft:Development Nov 30, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant