Repository navigation
test(gateway): add node control-plane QA coverage - #118784
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 4:20 PM ET / 20:20 UTC. ClawSweeper reviewWhat this changesThis 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 readinessThe 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 Review scores
Verification
How this fits togetherQA 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]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +1047, Other +60. Total +1107 across 5 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest 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. 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
HistoryReview history (5 earlier review cycles)
|
6ccaa88 to
7fac362
Compare
33498c6 to
6b37ba2
Compare
d8f7a25 to
945aec6
Compare
* 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)
…-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) ...
* 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
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-presencegateway.node-capabilitiesgateway.node-inventorygateway.node-actionsgateway.node-eventsgateway.pending-work-deliverygateway.remote-device-capabilitiesgateway.remote-host-commandsThe existing Ollama paired-node scenario keeps
gateway.node-capabilitiesassecondary 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:
945aec665aa142ab2cb83b9c13b5ce2bf3bd85f6Full scenario proof on rebased behavioral head
6b37ba2c9dccbe9059d5c7753749af57f53d51ad:tbx_01kz4k6ka0rqd0c2jgzq37ndk5OPENCLAW_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.jsonfull TypeScript project build passed; all five changed files passed
oxfmt..artifacts/qa-e2e/gateway-nodes-b1-final/qa-evidence.jsonPublic-boundary proof on content-equivalent pre-rebase head
d8f7a25f87dbfbbd1dfe3726d9bee5d722fe02b6:tbx_01kz4m7t64q4n1m8cpp70gncdaproject build passed; both changed test files passed
oxfmt.main, including productiondependency advisory fixes; the five-file PR diff is unchanged.
Review:
extensions/qa-lab/api.tsharness boundary.Scope
+0/-0+1108/-1