Skip to content

Commit b4f01af

Browse files
authored
test(qa): cover Canvas agent and node controls (#119047)
* test(qa): cover Canvas agent and node controls * fix(test): activate Canvas registry before gateway startup * fix(test): align Canvas node proof with wire contract * fix(test): narrow Canvas node invocation frames
1 parent e4aab26 commit b4f01af

2 files changed

Lines changed: 485 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
title: Canvas agent tool and Linux node controls
2+
3+
scenario:
4+
id: canvas-agent-node-controls
5+
surface: plugins
6+
category: plugins.agent-tools-and-node-controls
7+
coverage:
8+
primary:
9+
- plugins.agent-canvas-tool
10+
- plugins.node-canvas-commands
11+
objective: Prove the registered Canvas agent tool crosses a real Gateway and protocol-compatible Linux node for every supported Canvas action.
12+
successCriteria:
13+
- The enabled Canvas plugin registers its agent tool and Linux node command policy in a real Gateway process.
14+
- Present, hide, navigate, eval, snapshot, A2UI push, and A2UI reset reach the connected node under their exact command names.
15+
- Every node request preserves the action parameters, carries a positive remaining timeout no greater than the requested budget, and uses a unique UUID idempotency key.
16+
- The local node returns command-specific responses, including eval text and a valid snapshot image payload.
17+
docsRefs:
18+
- docs/gateway/protocol.md
19+
- docs/help/testing.md
20+
codeRefs:
21+
- extensions/canvas/index.ts
22+
- extensions/canvas/src/tool.ts
23+
- src/gateway/server-methods/nodes.invoke.ts
24+
- test/e2e/qa-lab/plugins/canvas-agent-node.e2e.test.ts
25+
execution:
26+
kind: vitest
27+
path: test/e2e/qa-lab/plugins/canvas-agent-node.e2e.test.ts
28+
summary: Starts a real Gateway with Canvas enabled, resolves the registered agent tool, and acknowledges every forwarded command from a protocol-compatible Linux node.

0 commit comments

Comments
 (0)