Skip to content

test(e2e): chat through Hermes's dashboard and keep interface tokens out of state - #14559

Merged
cv merged 3 commits into
v1from
cv/hermes-browser-chat
Nov 18, 2026
Merged

cv merged 3 commits into
v1from
cv/hermes-browser-chat

Conversation

@cv

@cv cv commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

The live docker-openclaw-hermes-interfaces case now holds a Hermes browser chat turn through the dashboard's /api/pty WebSocket, and checks that no interface token reaches the deployment's state or apply's output.

Problem

Part of #14289. The case checked Hermes's browser chat only through a stand-in, a command that opens a pseudo-terminal in the sandbox. Nothing showed that a chat through the reported forward reached the model. live-tests.md also said that refused tokens, a killed dashboard process, and tokens kept out of output and state were integration checks under #14060, but #14178 and #14179 deleted those tests.

Still left in #14289: a Hermes terminal UI turn (after #14102) and an integration test for a refused mount. OpenClaw's Control UI chat stays with Fabric: NemoClaw won't add a client for OpenClaw's Gateway protocol, and NVIDIA/NeMo-Fabric#655 runs OpenClaw's native interface tests, Control UI chat among them, in Fabric's CI.

Change

  • hcl_live::interface takes a prompt. With one, it connects to the path as a WebSocket, with the page's session token and the page's origin. It waits for the screen to draw and settle, types the prompt, then sends Enter on its own, and reads the screen until the expected text appears. This reuses the driver from before test(e2e): move the agent interfaces to an HCL E2E scenario #14179.
    • Hermes refuses a bad session token (4401) or an untrusted host or origin (4403) before it accepts the socket, so the client sees HTTP 403 at the upgrade. The probe reports that status with both causes. It also reports any close code that ends the chat early.
  • visible() shows cursor-forward moves as spaces, because Hermes's terminal UI moves the cursor between words instead of writing spaces.
  • The interfaces run adds a browser_chat target. Its prompt carries a new stub marker, browser, so the reply nemoclaw-stub-reply browser notes shows that this turn's prompt reached the model. The chat also needs the image's /dev/pts grant, so the hermes_pseudo_terminal command is removed.
  • After the probe reads a token from a token file, the token must appear in neither the deployment's state directory nor the apply's JSON result. The interface module takes that result as reported.
  • live-tests.md describes the chat and the token check, and replaces the stale Migrate v1 system tests to HCL integration tests #14060 sentence with what covers rejected interfaces, refused tokens, and a killed interface process now: the SDK's fabric_compatibility.rs and NeMo Fabric's test_hermes_interfaces.py at the pinned revision. Hermes and OpenClaw own their token checks. It cites [Enhancement]: Run the native OpenClaw interface tests in CI against the pinned OpenClaw NeMo-Fabric#655 for OpenClaw's Control UI chat and [Enhancement]: Test Hermes browser chat through the real /api/pty and plan interfaces.terminal's graduation NeMo-Fabric#656 for Fabric's own test of Hermes's browser chat through /api/pty.
  • The verify-fabric-boundary skill's Hermes web UI row says that the live case covers one answered turn, so the skill check owns the file effect, the reconnect, and the later phases.

Beyond CI

On linux arm64, cargo ci live-docker --hcl-cases docker-openclaw-hermes-interfaces passed. The case took 105.8 s, and the interfaces run took 10.2 s. Before the final runs, temporary targets showed that each new assertion fails:

  • a prompt without the marker;
  • a missing session token and a foreign origin, both reported as HTTP 403;
  • a token check pointed at text that the apply's output or the state holds.

…out of state

The interfaces case now holds a Hermes browser chat turn through the
dashboard's /api/pty WebSocket, with the page's session token and origin,
and checks that no token from a token file is in the deployment's state or
apply's output. The real chat replaces the pseudo-terminal stand-in, and
live-tests.md names what covers rejected interfaces, refused tokens, and a
killed interface process now that #14060's tests are gone.

Part of #14289.

Signed-off-by: Carlos Villela <[email protected]>
@cv

cv commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening
Field Status Value Evidence or limit
Harness recorded Pi 1.5.2 (session format v3) Session header and the harness's install path
Skills recorded write-tests (complete read); nemoclaw-contributor-create-pr (complete read) Tool reads to cutoff
Instruction files recorded AGENTS.md (injected); WRITING.md (complete read); .github/PULL_REQUEST_TEMPLATE.md (complete read); .github/SESSION_REPORT_TEMPLATE.md (complete read) Startup context and tool reads to cutoff
Tool calls recorded typescript: 82 Wrapper calls, including failed ones, to cutoff; nested shell, git, and gh calls inside them aren't counted
Tokens recorded input: 11857987; cached input: 11656747; output: 58765 Sum of 82 assistant message usage entries (input + cacheRead + cacheWrite; cacheRead; output) to cutoff
Session window recorded 2026-11-17T19:56Z to 2026-11-17T20:48Z; 52 min First event to cutoff, including idle time
Compactions recorded 0 Complete record to cutoff; one elision of tool results, which isn't a compaction
Models recorded claude-opus-5-5 Model change event and assistant messages; no changes
Reasoning levels recorded high One thinking-level event; no changes

@github-actions

Copy link
Copy Markdown
Contributor

@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 17, 2026
@cv
cv enabled auto-merge (squash) November 17, 2026 21:07
Signed-off-by: Carlos Villela <[email protected]>

# Conflicts:
#	internal-docs/contributing/live-tests.md
@cv
cv merged commit 1798018 into v1 Nov 18, 2026
130 of 132 checks passed
@cv
cv deleted the cv/hermes-browser-chat branch November 18, 2026 03:16
@cv cv added the v1 NemoClaw v1 branch label Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant