[Linux][Agent&Skills] Hermes venv Python outbound requests still intercepted by policy gate after PR #3100 fix
Description
Description
PR #3100 (fix(policy): allow hermes to make outbound requests) adds the Hermes venv Python binary to the policy whitelist so it can make HTTP requests without triggering the OpenShell TUI approval prompt. However, automated testing on v0.0.36 found that /opt/hermes/.venv/bin/python is still being intercepted by the policy gate — outbound requests produce empty stdout instead of the expected HTTP status code.Environment
Device: testnemoclaw (x86_64 CPU server) OS: Ubuntu 24.04 Architecture: x86_64 Node.js: v22.22.2 npm: 10.x Docker: Docker CE 27.x OpenShell CLI: 0.0.36 NemoClaw: v0.0.36 OpenClaw: 2026.4.24Steps to Reproduce
1. Install NemoClaw v0.0.36, onboard with --agent hermes
2. Verify sandbox is healthy: nemoclaw my-assistant status
3. Run outbound request via Hermes venv Python:
nemoclaw exec -- /opt/hermes/.venv/bin/python -c \
'import urllib.request; print(urllib.request.urlopen("https://api.github.com").status)'
4. Observe stdout
Expected Result
stdout prints HTTP status code (200 or 301). The request passes through silently — no TUI approval prompt, no interception. The Hermes venv Python binary is whitelisted by the policy fix in PR #3100.Actual Result
stdout is empty. The Python process appears to be intercepted by the policy gate (TUI prompt) rather than passing through the whitelist. No HTTP status code is returned. The baseline test (node to example.com triggers TUI block) passes correctly, confirming the policy gate itself is working — only the Hermes venv whitelist entry is not taking effect.Logs
Discovered by Agentic QA Pipeline automated vitest execution. Test: TC5948599 — Approve network request via OpenShell TUI on Hermes Vitest results: 1 FAIL / 1 PASS / env SKIPPED Failing test: "Regression #3100 — venv Python to api.github.com (no TUI prompt)" Related PR: https://github.com/NVIDIA/NemoClaw/pull/3100 Related NVBug: #6154495 (shields down fails on Hermes — may share root cause with missing /opt/hermes in permissive policy)
Bug Details
| Field | Value |
|---|---|
| Priority | Unprioritized |
| Action | Dev - Open - To fix |
| Disposition | Open issue |
| Module | Machine Learning - NemoClaw |
| Keyword | NemoClaw, NemoClaw_Agent&Skills, NEMOCLAW_GH_SYNC_APPROVAL, NemoClaw_Policy&Network |
[NVB#6156920]
✨ Related open PRs:
Verified fixed — closing on the NVBug side as QA - Closed - Verified, this GH issue should also close.
Latest repro from @Rohitkalidindi on NVBug #6156920 (2026-05-27) shows the policy-gate interception is gone:
$ nemoclaw test-ollama-hermes exec -- /opt/hermes/.venv/bin/python -c \
'import urllib.request; print(urllib.request.urlopen("https://api.github.com").status)'
Traceback (most recent call last):
File "<string>", line 1, in <module>
import urllib.request; print(urllib.request.urlopen("https://api.github.com").status)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
...
urllib.error.HTTPError: HTTP Error 403: rate limit exceeded
Behavior shift vs the original report:
- Original symptom: "stdout is empty. The Python process appears to be intercepted by the policy gate."
- Current: stdout shows a real HTTPError 403 — the request reached
api.github.comand got a server-side rate-limit response, not a policy block.
The expected-result wording in the original report ("stdout prints HTTP status code (200 or 301)") didn't anticipate GitHub's anonymous rate limit, but the actual test outcome (request goes out, server replies, no policy interception) is exactly what PR #3100 was supposed to enable.
@laitingsheng / @ericksoa — when convenient please close this GH issue too; NVBug already at QA - Closed - Verified.
Fixed in #3100