Skip to content

The agent that grows with you

test(pm): allow-list the packaged-npx node lookups in the resolution ratchet

ethernetc4f9a169d61c
diff --git a/tests/fixtures/resolution_allowlist.json b/tests/fixtures/resolution_allowlist.json
index 66d3e51c8ca..55f387e0878 100644
--- a/tests/fixtures/resolution_allowlist.json
+++ b/tests/fixtures/resolution_allowlist.json
@@ -558,6 +558,16 @@
"symbol": "_managed_launcher",
"kind": "bare_which"
},
+ {
+ "path": "tools/mcp_tool_config.py",
+ "symbol": "_outside_package",
+ "kind": "bare_which"
+ },
+ {
+ "path": "tools/mcp_tool_config.py",
+ "symbol": "_packaged_npx_entry",
+ "kind": "bare_which"
+ },
{
"path": "tools/process_registry.py",
"symbol": "_build_systemd_scope_argv",
diff --git a/tests/test_managed_runtime_resolution.py b/tests/test_managed_runtime_resolution.py
index dcd5da94cd3..652d9a794c0 100644
--- a/tests/test_managed_runtime_resolution.py
+++ b/tests/test_managed_runtime_resolution.py
@@ -98,6 +98,10 @@ _ALLOWED: dict[tuple[str, str], str] = {
"Plugin workspace installs resolve npm inside the PM runner env that "
"pm.ensure('npm') just composed."
),
+ ("tools/mcp_tool_config.py", "node"): (
+ "Looks up node only inside the sealed payload's own node dirs (an explicit "
+ "`path=`, never the ambient PATH), to run a package bin on the packaged node."
+ ),
("apps/desktop/electron/fixtures/source-backend.py", "uv"): (
"Test fixture drives the real uv deliberately placed on the test "
"runner's PATH; it is not Hermes-owned subprocess resolution."