-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
area:runtime-nodeArea: Node runtime bridgeArea: Node runtime bridgepriority:p1Priority P1 (high)Priority P1 (high)
Milestone
Description
Problem
OptimizedNodeBridge does not validate the Python bridge’s protocol version. If the Python subprocess is mismatched (older/newer protocol), OptimizedNodeBridge will still send requests and attempt to decode responses, potentially producing silent misbehavior or hard crashes. NodeBridge guards this via meta validation; OptimizedNodeBridge does not.
Evidence
src/runtime/optimized-node.ts: nometacall orprotocolVersionvalidation during init or worker spawn.src/runtime/node.ts:refreshBridgeInfo()validatesprotocolandprotocolVersion.
Acceptance criteria
- On worker spawn (or at init), call
metaand validateprotocol+protocolVersion. - On mismatch, terminate the worker and surface a
BridgeProtocolError. - Add a test fixture with mismatched protocol version to ensure OptimizedNodeBridge rejects it.
Metadata
Metadata
Assignees
Labels
area:runtime-nodeArea: Node runtime bridgeArea: Node runtime bridgepriority:p1Priority P1 (high)Priority P1 (high)