Skip to content

The agent that grows with you

test: drop the duplicate MCP freeze test, keep the sidecar cases only it pins

Teknium9f8ef656c5a6
diff --git a/tests/tools/test_editor_mcp_schema_freeze.py b/tests/tools/test_editor_mcp_schema_freeze.py
deleted file mode 100644
index cebf031ee0b..00000000000
--- a/tests/tools/test_editor_mcp_schema_freeze.py
+++ /dev/null
@@ -1,29 +0,0 @@
-"""An off-scope tools/list_changed refresh cannot mutate an editor's frozen tools."""
-from types import SimpleNamespace
-
-import pytest
-
-
-def test_editor_connection_scope_fences_later_schema_refresh(monkeypatch):
- from tools import mcp_tool as core
- from tools.mcp_tool_registration import _register_server_tools
- from tools.registry import registry, session_tool_scope
- from hermes_state_runtime import RuntimeStoreError
-
- server = core.MCPServerTask('editor-freeze')
- server._tools = [SimpleNamespace(name='echo', description='initial',
- inputSchema={'type': 'object', 'properties': {}})]
- key = ('editor-session:review-freeze', server.name)
- monkeypatch.setitem(core._servers, key, server)
- monkeypatch.setitem(core._server_scope_keys, key, key[0])
- config = {'tools': {'resources': False, 'prompts': False}}
- with session_tool_scope(key[0]):
- names = _register_server_tools(server.name, server, config)
- assert names
- try:
- server._tools[0].description = 'changed after session creation'
- with pytest.raises(RuntimeStoreError, match='acp_mcp_schema_changed'):
- _register_server_tools(server.name, server, config)
- finally:
- for name in names:
- registry.deregister(name, scope=key[0])
diff --git a/tests/tui_gateway/test_adversarial_sidecar_availability.py b/tests/tui_gateway/test_adversarial_sidecar_availability.py
index 956d96d5b25..c2fafca76b6 100644
--- a/tests/tui_gateway/test_adversarial_sidecar_availability.py
+++ b/tests/tui_gateway/test_adversarial_sidecar_availability.py
@@ -10,11 +10,8 @@ from tui_gateway import server
from tui_gateway.ws import _dispatch_request
@pytest.mark.asyncio
[email protected]('method,params', [
- ('pet.info.meta', {}), ('projects.list', {}),
- ('profiles.describe', {'name': 'default'}), ('mcp.servers.list', {}),
- ('skills.manage', {'action': 'list'}), ('plugins.manage', {'action': 'list'}),
-])
+# The two namespaces only this test pins: the legacy fallback gate's own tests do not cover them.
[email protected]('method,params', [('pet.info.meta', {}), ('projects.list', {})])
async def test_registered_presentation_sidecar_remains_available_on_canonical_transport(method, params, tmp_path, monkeypatch):
monkeypatch.setattr(server, '_LONG_HANDLERS', server._LONG_HANDLERS - {method})
home = str(server._launch_home())