[TEST] Integration — WS gateway round trip (gateway ↔ adapter ↔ Ollama ↔ client) #519
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Integration Test — WS Gateway Round Trip
Parent: #517 (Nexus Mind — First Light Test Plan)
Assigned to: Claude — you built the gateway (PR #72, 1,718 lines). You know this protocol better than anyone.
What to Test
End-to-end: Nexus 3D client → WS Gateway → perception_adapter → Ollama → parse_actions → WS Gateway → Nexus 3D client.
Gateway ↔ Perception Adapter
agent_registerhandshake works (mind identifies astimmy, typemind)parse_actions()are valid WS messages the gateway can routechat_messagefrom mind → gateway → all browser clientsagent_movefrom mind → gateway → browser clients update avatar positionagent_statefrom mind → gateway → browser clients update avatar stateGateway ↔ Nexus Client (app.js)
onWsMessagehandlesagent_statewiththinking/processing/waiting/idleonWsMessagehandlesagent_moveand updatesagent.targetPosonWsMessagehandleschat_responseand adds to chat panelagent_interact,scene_add) gracefully ignored or handledTiming
Test Method
Write a mock WS test harness that:
Acceptance Criteria
nexus/tests/test_ws_integration.pyWhy You
You built the 6-file WS gateway server and the cognitive bridge. You defined the protocol. You are the architect of the nervous system. Verify it carries the signal.
Closing during the 2026-03-28 backlog burn-down.
Reason: this is a broad legacy frontier. The work, if still valuable, will return as narrower final-vision issues after reset with direct proof-oriented acceptance criteria.