Skip to content

test(gateway): add node control-plane QA coverage - #118784

Merged
vincentkoc merged 4 commits into
mainfrom
qa-gateway-b1-nodes
Aug 3, 2026
Merged

vincentkoc merged 4 commits into
mainfrom
qa-gateway-b1-nodes

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 3, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Gateway node behavior had working source tests but incomplete durable QA
ownership. Node inventory, actions, events, pending work, remote-device
capabilities, and remote-host commands were absent from primary coverage
reporting.

Why This Change Was Made

This adds native QA scenarios around a real authenticated Gateway and paired
node WebSockets. The change is test and scenario metadata only: no production,
protocol, taxonomy, SDK, or security-owned test changes.

Primary coverage added:

  • gateway.node-presence
  • gateway.node-capabilities
  • gateway.node-inventory
  • gateway.node-actions
  • gateway.node-events
  • gateway.pending-work-delivery
  • gateway.remote-device-capabilities
  • gateway.remote-host-commands

The existing Ollama paired-node scenario keeps gateway.node-capabilities as
secondary coverage while becoming the primary owner for
gateway.remote-host-commands.

User Impact

No runtime behavior changes. Maintainers gain executable primary evidence for
the Gateway node control plane and both pending-work delivery paths.

Evidence

Exact head: 945aec665aa142ab2cb83b9c13b5ce2bf3bd85f6

Full scenario proof on rebased behavioral head
6b37ba2c9dccbe9059d5c7753749af57f53d51ad:

  • Lease: tbx_01kz4k6ka0rqd0c2jgzq37ndk5
  • Run: https://github.com/openclaw/openclaw/actions/runs/30847986805
  • Command:
    OPENCLAW_BUILD_PRIVATE_QA=1 pnpm build && OPENCLAW_BUILD_PRIVATE_QA=1 pnpm openclaw qa suite --provider-mode mock-openai --output-dir .artifacts/qa-e2e/gateway-nodes-b1-final --scenario gateway-node-control-plane --scenario gateway-node-pending-work --scenario ollama-paired-node-inference --concurrency 1 --fail-fast && node scripts/run-tsgo.mjs -b tsconfig.projects.json
  • Result: private QA build passed; 3 scenarios passed, 0 failed, 0 skipped;
    full TypeScript project build passed; all five changed files passed oxfmt.
  • Artifact:
    .artifacts/qa-e2e/gateway-nodes-b1-final/qa-evidence.json
  • Primary coverage in artifact: all eight IDs listed above.

Public-boundary proof on content-equivalent pre-rebase head
d8f7a25f87dbfbbd1dfe3726d9bee5d722fe02b6:

Review:

  • Structured Sol autoreview: clean, no accepted or actionable findings.
  • Both root tests use the public extensions/qa-lab/api.ts harness boundary.

Scope

  • Production LOC: +0/-0
  • Tests and QA metadata: +1108/-1

@vincentkoc vincentkoc self-assigned this Aug 3, 2026
@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 3, 2026
@clawsweeper

clawsweeper Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

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

ClawSweeper review

What this changes

This PR adds QA Lab scenario metadata and authenticated Gateway-node end-to-end coverage for node inventory, commands, presence events, pending work, remote-device capabilities, and remote-host commands.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

The final head resolves the prior QA-Lab boundary finding by importing the child-Gateway harness through its public API barrel. The added scenarios exercise existing Gateway node behavior rather than changing it; keep this maintainer-authored draft open for a final-head rebase and validation refresh before merge.

Priority: P3
Reviewed head: d8f7a25f87dbfbbd1dfe3726d9bee5d722fe02b6

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is well-scoped and resolves the prior boundary finding, while the final draft head still needs a rebase and fresh validation record.
Proof confidence 🌊 off-meta tidepool Not applicable: This is a member-authored test-only PR, so the external-contributor proof gate does not apply; its body nevertheless records a real child-Gateway and paired-WebSocket Testbox run on the earlier proof head.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This is a member-authored test-only PR, so the external-contributor proof gate does not apply; its body nevertheless records a real child-Gateway and paired-WebSocket Testbox run on the earlier proof head.
Evidence reviewed 6 items Prior finding resolved: Both new root QA tests import startQaGatewayChild from QA Lab's public api.ts barrel, and current main exports that symbol from the barrel; this removes the prior private-extension implementation import.
Gateway contract matches coverage: Current Gateway handlers require the reconnecting paired session before draining work and preserve pairing-generation checks; the existing unit coverage also establishes the baseline-status drain behavior exercised by the new end-to-end test.
Scenario discovery supports new files: QA Lab recursively discovers scenario YAML under qa/scenarios, so the two new runtime scenario files do not require a manual index registration.
Findings None None.
Security None None.

How this fits together

QA Lab makes durable, reportable end-to-end checks from scenario metadata and executable tests. The new tests start an authenticated child Gateway, pair an emulated iOS or iPadOS node over WebSocket, exercise control-plane requests, and emit coverage evidence for the Gateway surface.

flowchart LR
  Scenario[QA scenario metadata] --> Runner[QA Lab test runner]
  Runner --> Gateway[Authenticated child Gateway]
  Gateway --> Operator[Operator WebSocket]
  Gateway --> Node[Paired node WebSocket]
  Operator --> Requests[Inventory, invoke, pending work]
  Node --> Results[Node results and presence]
  Results --> Evidence[QA coverage evidence]
Loading

Before merge

  • Resolve merge risk (P1) - The PR remains a draft and its body’s Testbox and changed-gate evidence names an earlier head; the final public-barrel import follow-up should be rebased and validated on the exact merge candidate before landing.
  • Complete next step (P2) - The prior mechanical finding is fixed; this maintainer-authored, protected draft needs ordinary final-head rebase and validation review rather than an automated repair PR.
Agent review details

Security

None.

PR surface

Tests +1047, Other +60. Total +1107 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 1047 0 +1047
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 3 61 1 +60
Total 5 1108 1 +1107

Review metrics

Metric Value Why it matters
Production versus verification LOC production +0/-0; tests and QA metadata +1108/-1 The large diff is entirely executable verification and coverage ownership, with no runtime or protocol behavior added.

Stored data model

Persistent data-model change detected: serialized state: qa/scenarios/runtime/gateway-node-control-plane.yaml. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the public QA-Lab API import, rebase the final branch onto current main, rerun the stated three-scenario Gateway QA suite plus the relevant changed typecheck on that exact head, then mark the PR ready for maintainer review.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep the public QA-Lab API import, rebase the final branch onto current main, rerun the stated three-scenario Gateway QA suite plus the relevant changed typecheck on that exact head, then mark the PR ready for maintainer review.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this PR adds coverage for established Gateway node behavior rather than reporting a new user-facing defect. The PR body supplies a real child-Gateway scenario run, and current source confirms the exercised node-pending contracts.

Is this the best way to solve the issue?

Yes. Adding end-to-end QA coverage and scenario ownership is the maintainable path, and the final head now uses QA Lab’s public test harness instead of a private implementation path.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against f73a7809a5e6.

Labels

Label changes:

  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This is a member-authored test-only PR, so the external-contributor proof gate does not apply; its body nevertheless records a real child-Gateway and paired-WebSocket Testbox run on the earlier proof head.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P3: This is a test and QA-coverage improvement with no production behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This is a member-authored test-only PR, so the external-contributor proof gate does not apply; its body nevertheless records a real child-Gateway and paired-WebSocket Testbox run on the earlier proof head.

Evidence

What I checked:

  • Prior finding resolved: Both new root QA tests import startQaGatewayChild from QA Lab's public api.ts barrel, and current main exports that symbol from the barrel; this removes the prior private-extension implementation import. (test/e2e/qa-lab/runtime/gateway-node-control-plane.e2e.test.ts:7, d8f7a25f87db)
  • Gateway contract matches coverage: Current Gateway handlers require the reconnecting paired session before draining work and preserve pairing-generation checks; the existing unit coverage also establishes the baseline-status drain behavior exercised by the new end-to-end test. (src/gateway/server-methods/nodes-pending.ts:65, f73a7809a5e6)
  • Scenario discovery supports new files: QA Lab recursively discovers scenario YAML under qa/scenarios, so the two new runtime scenario files do not require a manual index registration. (extensions/qa-lab/src/scenario-catalog.ts:508, f73a7809a5e6)
  • Final-head provenance: The final branch commit is titled "test(gateway): use public QA harness" and is the head after the previous ClawSweeper finding; it is based on the PR base commit. (test/e2e/qa-lab/runtime/gateway-node-pending-work.e2e.test.ts:7, d8f7a25f87db)
  • Current-area provenance: Blame attributes the current Gateway pending-work handler, queue implementation, and QA public export lines to the recent current-main area commit by Peter Steinberger. (src/gateway/server-methods/nodes-pending.ts:65, 830ab164ef86)
  • Reported real run: The PR body reports a Blacksmith Testbox execution of the three affected scenarios with 3 passed, 0 failed, and 0 skipped on the earlier proof head; the final public-import follow-up still needs a fresh exact-head validation record. (7fac362582de)

Likely related people:

  • Peter Steinberger: Current-main blame attributes the pending-work handler, the queue contract, and the QA-Lab public child-Gateway export to the same recent area commit. (role: recent Gateway and QA-Lab area contributor; confidence: high; commits: 830ab164ef86; files: src/gateway/server-methods/nodes-pending.ts, src/gateway/node-pending-work.ts, extensions/qa-lab/api.ts)

Rank-up moves

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

  • Rebase the final head onto current main and rerun the stated Gateway QA scenarios plus the affected changed typecheck.
  • Update the PR evidence with the resulting exact head and mark the draft ready for maintainer review.

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.

History

Review history (5 earlier review cycles)
  • reviewed 2026-08-03T17:18:47.040Z sha 52ac0ac :: needs maintainer review before merge. :: none
  • reviewed 2026-08-03T18:05:07.465Z sha 7fac362 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-03T18:23:11.785Z sha 7fac362 :: needs changes before merge. :: [P2] Capture the operator before the asynchronous presence assertion
  • reviewed 2026-08-03T19:02:17.778Z sha 33498c6 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-03T19:31:34.128Z sha 6b37ba2c9dccbe9059d5c7753749af57f53d51ad :: found issues before merge. :: [P2] Use QA Lab’s public test harness

@vincentkoc
vincentkoc force-pushed the qa-gateway-b1-nodes branch from 6ccaa88 to 7fac362 Compare August 3, 2026 17:58
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 3, 2026
@vincentkoc vincentkoc changed the title chore(gateway): add node control-plane QA coverage test(gateway): add node control-plane QA coverage Aug 3, 2026
@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. 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. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 3, 2026
@vincentkoc
vincentkoc force-pushed the qa-gateway-b1-nodes branch from 33498c6 to 6b37ba2 Compare August 3, 2026 19:25
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed 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. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 3, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 3, 2026 20:24
@vincentkoc
vincentkoc force-pushed the qa-gateway-b1-nodes branch from d8f7a25 to 945aec6 Compare August 3, 2026 20:27
@vincentkoc
vincentkoc merged commit 7a97997 into main Aug 3, 2026
96 of 100 checks passed
@vincentkoc
vincentkoc deleted the qa-gateway-b1-nodes branch August 3, 2026 20:38
vincentkoc added a commit that referenced this pull request Aug 3, 2026
* commit 'efcced7207baa0b1b1db5e8e1836673a24212657':
  test(agents): prove process control roundtrip (#118843)
  test(qa): add memory redaction boundary coverage (#118916)
  fix(kilocode): model discovery overstates the usable context window (#118868)
  fix(media): isolate generated-provider text from delivery directives (#118780)
  test(gateway): add node control-plane QA coverage (#118784)
  fix(config): reject unsupported diagnostics otel grpc (#93087)
  fix(providers): recognize configured media credentials across provider boundaries (#118761)
  refactor: delete dead post-landing plugin/hooks scaffolding (#118920)
  fix(cron): deliver child results after heartbeat-only parent responses (#118743)
  fix(ci): keep Matrix chunk tests aligned with inventory (#118917)
  fix(tts): preserve hidden speech answers when synthesis fails (#118690)
vincentkoc added a commit that referenced this pull request Aug 3, 2026
…-worker-update-20260803

* origin/main: (48 commits)
  test(ui): add shell and PWA primary QA proof (#118788)
  test(qa): cover CLI distribution workflows (#118948)
  chore(i18n): refresh native locales (#118883)
  test(qa): prove plugin tool ownership in gateway flow (#118958)
  docs: correct onboarding risk flags and Google Chat credential shapes (#118936)
  fix(imessage): honor explicitly enabled accounts during startup (#118944)
  test(gateway): cover client transport defaults (#118798)
  fix(signal): normalize accounts during noninteractive setup (#118932)
  fix(msteams): enable channels for federated environment credentials (#118931)
  fix(openai): enforce final transcript bounds before callback delivery (#118928)
  test(tasks): cover plugin-managed flows (#118919)
  test(agents): prove process control roundtrip (#118843)
  test(qa): add memory redaction boundary coverage (#118916)
  fix(kilocode): model discovery overstates the usable context window (#118868)
  fix(media): isolate generated-provider text from delivery directives (#118780)
  test(gateway): add node control-plane QA coverage (#118784)
  fix(config): reject unsupported diagnostics otel grpc (#93087)
  fix(providers): recognize configured media credentials across provider boundaries (#118761)
  refactor: delete dead post-landing plugin/hooks scaffolding (#118920)
  fix(cron): deliver child results after heartbeat-only parent responses (#118743)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
* test(gateway): promote remote host command proof

* test(gateway): cover node control plane

* test(gateway): narrow connected operator client

* test(gateway): use public QA harness
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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL 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