Repository navigation
test(qa): cover Canvas agent and node controls - #119047
Conversation
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 11:17 PM ET / August 4, 2026, 03:17 UTC. ClawSweeper reviewWhat this changesAdds a QA scenario and loopback Gateway end-to-end test for Canvas agent actions forwarded to a paired Linux node. Merge readinessNo patch defect found: this is a focused, test-only real Gateway-to-Linux-node coverage addition. It remains distinct from current main and is maintainer-authored/labeled, so it requires normal maintainer handling rather than automated cleanup. Priority: P3 Review scores
Verification
How this fits togetherThe Canvas plugin registers an agent tool and node-command policy; the Gateway validates and forwards each invocation to a paired node. The new test covers that path through command results returned to the tool. flowchart LR
A[Agent Canvas action] --> B[Canvas plugin]
B --> C[Gateway policy]
C --> D[Paired Linux node]
D --> E[Command response]
E --> F[Agent tool result]
Decision needed
Why: The author association and Before merge
Agent review detailsSecurityNone. PR surfaceTests +457, Other +28. Total +485 across 2 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the focused real-Gateway regression coverage and land it after an exact merge-ref refresh confirms the current base remains clean. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds regression coverage rather than reporting a user-facing bug; its loopback Gateway/node scenario is a concrete after-change validation path. Is this the best way to solve the issue? Yes: exercising the registered tool through a real Gateway and paired node is the right owner-boundary proof, stronger than adding more mocked tool assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 12beeb7b2947. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
@clawsweeper re-review |
|
Merged via squash.
|
* origin/main: (208 commits) fix(telegram): route reactions to their originating forum topics test(gateway): isolate scheduled service timers (#119218) test(qa): cover Canvas agent and node controls (#119047) fix(cli): avoid repeated migration scans during local agent turns (#119051) fix(gateway): keep agents list on prepared model facts (#119208) fix(telegram): retry update offset persistence fix(ci): accept profiled partial Kova gates (#119121) fix(qqbot): keep channel API calls on the active account [AI] (#118575) fix(agents): recover from invalid compaction summaries (#119137) fix(gateway): expose OAuth-backed tools to CLI agents (#119166) fix(plugins): preserve metadata reloads during models status (#119183) fix(test): bound direct gateway server runs (#119184) test(tui): prove command surfaces through PTY (#119165) fix(testbox): restore claims across path aliases (#119170) fix(message): preserve sends with incidental Telegram locations fix(perf): give each concurrency sample a full deadline (#119164) fix(testbox): remove changed-gate sync residue (#119163) fix(telegram): preserve later chunks after rejected sends fix(tui): block terminal controls in system messages (#118998) fix(auto-reply): suppress false no-reply fallback during continuations (#119154) ...
* origin/main: (23 commits) chore(tui): add Gateway boundary PTY coverage (#119191) fix(telegram): route reactions to their originating forum topics test(gateway): isolate scheduled service timers (#119218) test(qa): cover Canvas agent and node controls (#119047) fix(cli): avoid repeated migration scans during local agent turns (#119051) fix(gateway): keep agents list on prepared model facts (#119208) fix(telegram): retry update offset persistence fix(ci): accept profiled partial Kova gates (#119121) fix(qqbot): keep channel API calls on the active account [AI] (#118575) fix(agents): recover from invalid compaction summaries (#119137) fix(gateway): expose OAuth-backed tools to CLI agents (#119166) fix(plugins): preserve metadata reloads during models status (#119183) fix(test): bound direct gateway server runs (#119184) test(tui): prove command surfaces through PTY (#119165) fix(testbox): restore claims across path aliases (#119170) fix(message): preserve sends with incidental Telegram locations fix(perf): give each concurrency sample a full deadline (#119164) fix(testbox): remove changed-gate sync residue (#119163) fix(telegram): preserve later chunks after rejected sends fix(tui): block terminal controls in system messages (#118998) ...
* origin/main: chore(tui): add Gateway boundary PTY coverage (#119191) fix(telegram): route reactions to their originating forum topics test(gateway): isolate scheduled service timers (#119218) test(qa): cover Canvas agent and node controls (#119047) fix(cli): avoid repeated migration scans during local agent turns (#119051) fix(gateway): keep agents list on prepared model facts (#119208) fix(telegram): retry update offset persistence fix(ci): accept profiled partial Kova gates (#119121)
…time * origin/main: (177 commits) fix(telegram): route reactions to their originating forum topics test(gateway): isolate scheduled service timers (#119218) test(qa): cover Canvas agent and node controls (#119047) fix(cli): avoid repeated migration scans during local agent turns (#119051) fix(gateway): keep agents list on prepared model facts (#119208) fix(telegram): retry update offset persistence fix(ci): accept profiled partial Kova gates (#119121) fix(qqbot): keep channel API calls on the active account [AI] (#118575) fix(agents): recover from invalid compaction summaries (#119137) fix(gateway): expose OAuth-backed tools to CLI agents (#119166) fix(plugins): preserve metadata reloads during models status (#119183) fix(test): bound direct gateway server runs (#119184) test(tui): prove command surfaces through PTY (#119165) fix(testbox): restore claims across path aliases (#119170) fix(message): preserve sends with incidental Telegram locations fix(perf): give each concurrency sample a full deadline (#119164) fix(testbox): remove changed-gate sync residue (#119163) fix(telegram): preserve later chunks after rejected sends fix(tui): block terminal controls in system messages (#118998) fix(auto-reply): suppress false no-reply fallback during continuations (#119154) ...
* 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
* origin/main: (23 commits) chore(tui): add Gateway boundary PTY coverage (openclaw#119191) fix(telegram): route reactions to their originating forum topics test(gateway): isolate scheduled service timers (openclaw#119218) test(qa): cover Canvas agent and node controls (openclaw#119047) fix(cli): avoid repeated migration scans during local agent turns (openclaw#119051) fix(gateway): keep agents list on prepared model facts (openclaw#119208) fix(telegram): retry update offset persistence fix(ci): accept profiled partial Kova gates (openclaw#119121) fix(qqbot): keep channel API calls on the active account [AI] (openclaw#118575) fix(agents): recover from invalid compaction summaries (openclaw#119137) fix(gateway): expose OAuth-backed tools to CLI agents (openclaw#119166) fix(plugins): preserve metadata reloads during models status (openclaw#119183) fix(test): bound direct gateway server runs (openclaw#119184) test(tui): prove command surfaces through PTY (openclaw#119165) fix(testbox): restore claims across path aliases (openclaw#119170) fix(message): preserve sends with incidental Telegram locations fix(perf): give each concurrency sample a full deadline (openclaw#119164) fix(testbox): remove changed-gate sync residue (openclaw#119163) fix(telegram): preserve later chunks after rejected sends fix(tui): block terminal controls in system messages (openclaw#118998) ...
What Problem This Solves
Canvas agent-tool and node-command coverage was absent from the QA coverage ledger, leaving the real gateway-to-node forwarding contract unproved.
Why This Change Was Made
Adds one private-QA scenario and an end-to-end test that registers the Canvas agent tool, pairs a Linux node over the gateway socket, exercises every supported Canvas action, and verifies command parameters, timeout budgets, idempotency keys, and command-specific responses.
The proof follows the current node wire contract: gateway-only session metadata is not asserted on
node.invoke.request.User Impact
No runtime behavior changes. Maintainers get regression coverage for the Canvas agent tool and its node command surface.
Evidence
0; test/scenario additions:485.canvas-agent-node.e2e.test.tspassed1/1.extensions/canvas/src/tool.test.tspassed33/33.OPENCLAW_BUILD_PRIVATE_QA=1 pnpm buildpassed.canvas-agent-node-controlspassed on Linux / Nodev24.19.0.plugins.agent-canvas-toolandplugins.node-canvas-commands, both primary.0.99confidence.