Skip to content

test(qa): cover gateway plugin approvals - #119128

Merged
vincentkoc merged 1 commit into
mainfrom
gateway-plugin-approvals-qa
Aug 4, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
gateway-plugin-approvals-qa

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

Summary

  • add the gateway-plugin-approvals QA scenario with primary coverage for gateway.plugin-approvals
  • exercise a real Gateway WebSocket lifecycle with distinct requester and reviewer identities
  • verify approval-client routing, pending wait behavior, one terminal decision, and pending inventory cleanup

Evidence

{
  "scenario": "gateway-plugin-approvals",
  "status": "pass",
  "coverage": "gateway.plugin-approvals",
  "environmentRef": "ed8d1e71d1a22de31529889258906eb6bf95c828",
  "providerMode": "mock-openai",
  "counts": {
    "total": 1,
    "passed": 1,
    "failed": 0,
    "skipped": 0
  }
}
  • focused Blacksmith Testbox: 1 test passed
  • QA suite: 1 scenario passed with evidence schema v2
  • changed gate: all pre-typecheck guards passed; corrected typecheck, full lint, and import-cycle tail passed
  • autoreview: clean, no accepted or actionable findings

Scope

  • production LOC: +0
  • test and QA LOC: +271
  • no timeout, protocol, configuration, storage, or production behavior changes

@vincentkoc vincentkoc self-assigned this Aug 4, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 4, 2026 05:58
@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
@clawsweeper

clawsweeper Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 4, 2026, 2:03 AM ET / 06:03 UTC.

ClawSweeper review

What this changes

Adds a QA scenario and E2E test for a plugin approval request, reviewer delivery, pending wait, resolution, and cleanup over authenticated Gateway WebSockets.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep open: this maintainer-owned QA PR adds complementary authenticated Gateway WebSocket coverage that current main lacks; no concrete correctness or security defect was found.

Priority: P3
Reviewed head: 426ab266129feb1893e93ba42d047bec8616a872
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, behavior-oriented QA addition with no actionable defect found.
Proof confidence 🌊 off-meta tidepool Not applicable: Not applicable to this maintainer-authored test-only PR; the body nevertheless includes a passing authenticated loopback Gateway scenario result.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Not applicable to this maintainer-authored test-only PR; the body nevertheless includes a passing authenticated loopback Gateway scenario result.
Evidence reviewed 6 items Current Gateway contract: The current handler server-generates plugin-prefixed IDs, binds the requester, registers pending state, and delegates delivery; shared helpers authorize the waiter and broadcast the resolved decision once.
Authenticated recipient routing: Gateway approval delivery requires an approvals/admin scope plus a known approval-capable client identity or capability, matching the reviewer setup in the new E2E test.
Coverage matches owner behavior: The branch verifies generated IDs, approval-client routing, pending inventory, an unresolved waiter, one resolution event, terminal metadata, and final cleanup against the real loopback Gateway.
Findings None None.
Security None None.

How this fits together

Gateway plugin approvals accept a request from a plugin-facing client, retain it as pending, and route events to an authorized approval client. A reviewer’s decision then resolves the requester’s wait and removes the pending record.

flowchart LR
A[Plugin-facing requester] --> B[Gateway approval request]
B --> C[Pending approval record]
C --> D[Authorized reviewer WebSocket]
D --> E[Terminal decision]
E --> F[Requester wait response]
E --> G[Pending inventory cleanup]
Loading

Decision needed

Question Recommendation
Should this maintainer-owned, protected QA coverage addition merge after its exact-head checks complete? Merge after exact-head validation: Keep the additive plugin-specific Gateway coverage once required checks are green on the reviewed head.

Why: The PR is labeled maintainer and therefore needs explicit maintainer handling despite having no review finding.

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +243, Other +28. Total +271 across 2 files.

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

Review metrics

Metric Value Why it matters
Production versus test/QA LOC production +0, test/QA +271 The branch increases real transport coverage without changing runtime behavior, configuration, storage, or protocol.

Technical review

Best possible solution:

Retain this focused real-Gateway lifecycle scenario and merge it once the exact head has completed required validation.

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

Not applicable: this PR adds coverage rather than repairing a reported bug; its body supplies a passing authenticated loopback Gateway scenario.

Is this the best way to solve the issue?

Yes: existing unit-level and exec-approval coverage does not exercise plugin-prefixed IDs and plugin approval event delivery across authenticated Gateway WebSockets.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is focused test and QA coverage with no reported production regression or user-facing 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: Not applicable to this maintainer-authored test-only PR; the body nevertheless includes a passing authenticated loopback Gateway scenario result.

Label justifications:

  • P3: This is focused test and QA coverage with no reported production regression or user-facing 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: Not applicable to this maintainer-authored test-only PR; the body nevertheless includes a passing authenticated loopback Gateway scenario result.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Current plugin-approval implementation traces to this contributor’s merged commit, independently of the proposed test branch. (role: introduced current behavior and recent area contributor; confidence: high; commits: a2ccd6ea61ec; files: src/gateway/server-methods/plugin-approval.ts, src/gateway/server-request-context.ts, test/e2e/qa-lab/runtime/gateway-exec-approvals.e2e.test.ts)

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
vincentkoc merged commit 3f2fb7e into main Aug 4, 2026
142 of 149 checks passed
@vincentkoc
vincentkoc deleted the gateway-plugin-approvals-qa branch August 4, 2026 06:07
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
vincentkoc added a commit that referenced this pull request Aug 4, 2026
* 'main' of https://github.com/openclaw/openclaw:
  test(qa): cover sandboxed exec behavior (#119053)
  test(qa): prove shared-channel memory recall (#119111)
  fix(telegram): keep request deadlines through response bodies
  test(qa): cover gateway plugin approvals (#119128)
  fix(ai): keep OpenAI tool call id truncation UTF-16 safe (#110471)
  fix: preserve live updater failure diagnostics (#119096)
  fix: recover new-session models through Gateway startup (#119120)
  test(qa): cover instruction profile artifacts (#119078)
  fix(telegram): record automatic delivery message ids
  test(qa): cover memory promotion safety (#119093)
  test(qa): prove overflow compaction pruning (#119033)
  fix(tool-search): preserve deferred MCP failures (#118363)
  fix(macos): keep setup activation within app checks
  test(setup): type provider kind fixture
  fix(setup): complete prepared model activation
  fix(protocol): regenerate Swift wizard models
  fix(ollama): activate the model selected during setup
  fix(setup): preserve the prepared model handoff
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 5, 2026
* 'main' of https://github.com/openclaw/openclaw:
  test(qa): cover sandboxed exec behavior (openclaw#119053)
  test(qa): prove shared-channel memory recall (openclaw#119111)
  fix(telegram): keep request deadlines through response bodies
  test(qa): cover gateway plugin approvals (openclaw#119128)
  fix(ai): keep OpenAI tool call id truncation UTF-16 safe (openclaw#110471)
  fix: preserve live updater failure diagnostics (openclaw#119096)
  fix: recover new-session models through Gateway startup (openclaw#119120)
  test(qa): cover instruction profile artifacts (openclaw#119078)
  fix(telegram): record automatic delivery message ids
  test(qa): cover memory promotion safety (openclaw#119093)
  test(qa): prove overflow compaction pruning (openclaw#119033)
  fix(tool-search): preserve deferred MCP failures (openclaw#118363)
  fix(macos): keep setup activation within app checks
  test(setup): type provider kind fixture
  fix(setup): complete prepared model activation
  fix(protocol): regenerate Swift wizard models
  fix(ollama): activate the model selected during setup
  fix(setup): preserve the prepared model handoff
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