Files
openclaw/qa/scenarios/runtime/gateway-node-exec-approvals.yaml
Vincent Koc a2e0eea58c test(gateway): cover node exec approval relay (#118825)
Adds real Gateway QA coverage for node exec approval get/set forwarding, malformed payload rejection, and paired-node ownership fencing.
2026-08-04 06:06:25 +08:00

26 lines
1.2 KiB
YAML

title: Gateway node exec approval relay
scenario:
id: gateway-node-exec-approvals
surface: runtime
coverage:
primary:
- gateway.node-exec-approvals
objective: Prove node-local exec approval reads and writes traverse the real Gateway RPC and paired node WebSocket boundary.
successCriteria:
- The Gateway relays the exact node-local approval snapshot returned by the connected node.
- Node approval writes preserve the requested policy and optimistic base hash and return the node update result.
- Malformed node snapshots are rejected at the Gateway boundary.
- A retired node connection cannot settle an invocation owned by the current paired connection.
docsRefs:
- docs/gateway/protocol.md
- docs/cli/approvals.md
codeRefs:
- src/gateway/server-methods/exec-approvals.ts
- src/gateway/node-registry.ts
- test/e2e/qa-lab/runtime/gateway-node-exec-approvals.e2e.test.ts
execution:
kind: vitest
path: test/e2e/qa-lab/runtime/gateway-node-exec-approvals.e2e.test.ts
summary: Run a real Gateway with an authenticated operator and paired replacement node, then verify exact approval relay, validation, pairing generation, and connection ownership.