Skip to content

test(mcp): assert the 0.37 effective-transport policy in the registry SSE heal test - #3877

Merged
Daniel Meppiel (danielmeppiel) merged 2 commits into
mainfrom
danielmeppiel-3876-heal-transport-test
Nov 18, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 2 commits into
mainfrom
danielmeppiel-3876-heal-transport-test

Conversation

@danielmeppiel

Copy link
Copy Markdown
Collaborator

Description

test_registry_sse_heal_is_not_newly_blocked_by_effective_transport fails on main. It still asserts the 0.36.1 contract, where only declared MCP transports were judged. #3788 (#3764) deliberately made mcp.transport.allow judge the effective transport, including registry SSE remotes. The test, renamed test_registry_sse_heal_is_blocked_by_effective_transport, now asserts the 0.37 contract:

  • the install exits non-zero and names heal-registry and the SSE transport;
  • native MCP files are unchanged (pre-write block);
  • audit --ci reports mcp-transport as failed.

Tests only; no production code changes.

Issue and approved scope

Issue: Fixes #3876

Human scope-approval comment: #3876 (comment)

Does this PR complete the issue, or what remains? Completes it.

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Maintenance / refactor

Testing

  • Tested locally
  • All existing tests pass
  • Added tests for new functionality (if applicable)

Validation: APM_E2E_TESTS=1 APM_BINARY_PATH=$PWD/.venv/bin/apm .venv/bin/python -m pytest tests/integration/test_mcp_retired_shape_heal_lifecycle.py -p no:xdist -q gives 29 passed on main 2ce7a38 plus this change; the original test failed. uvx [email protected] check and format --check are clean.

Spec conformance (OpenAPM v0.1)

  • N/A -- this PR does not change OpenAPM-observable behaviour.

… SSE heal test (#3876)

#3788 made mcp.transport.allow judge the effective registry transport, so
an SSE remote outside the allow list is now blocked before any MCP write.
The heal lifecycle test still asserted the 0.36.1 declared-only contract.

Co-authored-by: Copilot App <[email protected]>
@danielmeppiel Daniel Meppiel (danielmeppiel) added this to the 0.37.0 milestone Nov 18, 2026
Copilot AI balanced review requested due to automatic review settings November 18, 2026 13:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the test-and-changelog update aligning MCP heal lifecycle expectations with the effective-transport policy.

No open issues 🎉

What changed in this PR

Updates the MCP heal lifecycle regression test to match the effective-transport policy introduced in #3788, resolving #3876. No production code changes are included.

Changes:

  • Renames the test and expects installation to reject a registry SSE transport outside the policy allow list.
  • Verifies that blocked installation leaves native MCP files unchanged and that audit --ci reports transport-policy failure.
  • Records the test correction in the changelog.
File Description
tests/​integration/​test_mcp_retired_shape_heal_lifecycle.py Replaces the old allow expectation with rejection, pre-write safety, and audit assertions.
CHANGELOG.md Documents alignment with the 0.37 effective-transport policy.

Review effort: Balanced

@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit 100fe33 into main Nov 18, 2026
27 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the danielmeppiel-3876-heal-transport-test branch November 18, 2026 14:10
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 19, 2026
* docs(changelog): make 0.36.0 onwards legible and concise

Rewrites [Unreleased], [0.36.1] and [0.36.0] as one short line per user-visible change, with Highlights and a Breaking changes and upgrade notes list per version, grouped PRs and internal-only entries dropped (#3637, #3771, #3794, #3796, #3877). Credits, PR references, the 0.36.1 issue closures and the live Azure DevOps caveat are kept. Sections from 0.35.1 down are unchanged. The changelog instructions now describe this style.

Co-authored-by: Copilot App <[email protected]>

* chore(lock): record the new changelog instructions hash

Co-authored-by: Copilot App <[email protected]>

* docs: note the shared .mcp.json and VS Code Local mode in 0.37 upgrade notes

Co-authored-by: Copilot App <[email protected]>

* docs(changelog): restore accuracy qualifiers flagged in review

Restores the static env caveat for .mcp.json, the pack default-format
qualifier, Copilot CLI scope for COPILOT_HOME, the 0.36.1 frozen-lockfile
recovery step, and the bundle install --target qualifier.

Co-authored-by: Copilot App <[email protected]>

---------

Co-authored-by: danielmeppiel <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 19, 2026
Resolve the CHANGELOG conflict with #3886 by taking main's file: the
concise rewrite drops test-only entries (as it did for #3877), so this
test-only PR carries no CHANGELOG line.

Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 19, 2026
…idance (#3903)

* docs(changelog): enforce one-line entries in agent and contributor guidance

Make the changelog rule concrete in its single source
(.apm/instructions/changelog.instructions.md): one line, user-visible
effect first, 25 words or fewer, ending with (#PR); breaking changes in
"Breaking changes and upgrade notes" with a one-line migration; never a
second line for the same change; no entry for internal-only PRs; two
good and two bad examples from the current changelog.

cut-release now re-sanitizes the whole [Unreleased] block at release
time (dedupe, condense, Highlights, upgrade notes, ref/credit check).
The delivery and merge autopilot workers, pr-description-skill,
CONTRIBUTING.md, the PR template and the development guide point at
the rule. Generated .github/ and .agents/ copies and apm.lock.yaml
hashes are re-synced with apm install.

Clean the current [Unreleased] block into that shape: drop the long
duplicates of #3765/#3818, #3769, #3788, #3865, #3867, #3873, #3875,
#3882 and the spec lines, fold their user-relevant caveats into the
short lines, and drop test-only #3877.

Co-authored-by: Copilot App <[email protected]>

* docs(changelog): scope delivery-worker CHANGELOG edits to one task; shorten sanitizer example

Address review: only the task whose files_hint owns CHANGELOG.md edits it
(wave gate forbids shared-file edits across task branches), and the
worked example now fits rule 2 while keeping its caveat and four refs.

Co-authored-by: Copilot App <[email protected]>

---------

Co-authored-by: danielmeppiel <[email protected]>
Co-authored-by: Copilot App <[email protected]>
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.

[BUG] Heal lifecycle test still asserts the 0.36.1 MCP transport policy contract

2 participants