Skip to content

test(qa): cover Canvas agent and node controls - #119047

Merged
vincentkoc merged 4 commits into
mainfrom
test/qa-canvas-agent-node
Aug 4, 2026
Merged

vincentkoc merged 4 commits into
mainfrom
test/qa-canvas-agent-node

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

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

@vincentkoc vincentkoc self-assigned this Aug 4, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper review

@vincentkoc
vincentkoc marked this pull request as ready for review August 4, 2026 01:30
@clawsweeper

clawsweeper Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added the maintainer Maintainer-authored PR label Aug 4, 2026
@clawsweeper

clawsweeper Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 11:17 PM ET / August 4, 2026, 03:17 UTC.

ClawSweeper review

What this changes

Adds a QA scenario and loopback Gateway end-to-end test for Canvas agent actions forwarded to a paired Linux node.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

No 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
Reviewed head: ee0b2da044a57009ee31f995048b357d78100a05
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, well-scoped boundary test with no actionable correctness or security finding.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored, test-only PR is exempt from the external-contributor proof gate; its body and exact test nevertheless show a real loopback Gateway and paired-node run.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored, test-only PR is exempt from the external-contributor proof gate; its body and exact test nevertheless show a real loopback Gateway and paired-node run.
Evidence reviewed 6 items Canvas command owner: Canvas registers eight node commands, while its agent tool forwards command parameters, a bounded timeout, and a random UUID idempotency key.
Gateway wire contract: The protocol defines node invocation fields and the Gateway registry emits the node invocation frame with timeout and idempotency data.
Exact-head boundary test: The added test starts a loopback Gateway, registers Canvas, pairs a Linux node, invokes every agent-tool action, and asserts returned results, request parameters, timeout bounds, and distinct UUID v4 keys.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Decision needed

Question Recommendation
Should this maintainer-owned QA coverage PR proceed through the normal refreshed-base landing review? Refresh and land: Revalidate the exact merge result and land the focused coverage if the current checks remain green.

Why: The author association and maintainer label require explicit maintainer handling despite the lack of a code finding.

Before merge

  • Resolve merge risk (P1) - GitHub reports the branch as behind main; refresh the merge/base review before landing, even though the PR does not overlap the added files on current main.
Agent review details

Security

None.

PR surface

Tests +457, Other +28. Total +485 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 457 0 +457
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 28 0 +28
Total 2 485 0 +485

Review metrics

Metric Value Why it matters
Production versus QA LOC production +0, tests/scenarios +485 The branch adds only regression evidence, so its review value is coverage quality rather than runtime compatibility.

Stored data model

Persistent data-model change detected: serialized state: test/e2e/qa-lab/plugins/canvas-agent-node.e2e.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Retain the focused real-Gateway regression coverage and land it after an exact merge-ref refresh confirms the current base remains clean.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label changes:

  • add P3: This is a focused test-only coverage improvement with no runtime behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored, test-only PR is exempt from the external-contributor proof gate; its body and exact test nevertheless show a real loopback Gateway and paired-node run.

Label justifications:

  • P3: This is a focused test-only coverage improvement with no runtime behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored, test-only PR is exempt from the external-contributor proof gate; its body and exact test nevertheless show a real loopback Gateway and paired-node run.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Recent Canvas/Linux-node feature and Canvas deadline work place him closest to the underlying product boundary. (role: Canvas and node-feature history contributor; confidence: high; commits: b363d5a, 060a541c, 71f7f9e4; files: extensions/canvas/index.ts, extensions/canvas/src/tool.ts, src/gateway/server-methods/nodes.invoke.ts)
  • qingminlong: A2UI validation is the policy path shared by the Canvas push commands exercised here. (role: A2UI validation contributor; confidence: medium; commits: 5c77724; files: extensions/canvas/index.ts, extensions/canvas/src/a2ui-jsonl.ts)
  • Vincent Koc: Current blame attributes the Canvas command list and tool forwarding boundary to this recent Canvas-area work, independently of this proposed test branch. (role: recent Canvas area contributor; confidence: medium; commits: 0758316883f5; files: extensions/canvas/index.ts, extensions/canvas/src/tool.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Refresh the exact merge/base review before landing because the branch is behind main.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Aug 4, 2026
@vincentkoc
vincentkoc merged commit b4f01af into main Aug 4, 2026
141 of 145 checks passed
@vincentkoc
vincentkoc deleted the test/qa-canvas-agent-node branch August 4, 2026 12:42
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 4, 2026
* 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)
  ...
vincentkoc added a commit that referenced this pull request Aug 4, 2026
* 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)
  ...
vincentkoc added a commit that referenced this pull request Aug 4, 2026
* 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)
vincentkoc added a commit that referenced this pull request Aug 4, 2026
…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)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 5, 2026
* 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
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 6, 2026
* 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)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: qa-lab maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant