Repository navigation
chore(gateway): add HTTP API QA coverage - #118809
Conversation
d2d38d2 to
0b0f105
Compare
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 3:13 PM ET / 19:13 UTC. ClawSweeper reviewWhat this changesThis PR adds a QA scenario and an end-to-end Gateway test that exercises OpenAI-compatible model, chat, responses, embedding, tool-invocation, and wake-hook HTTP routes over local TCP. Merge readinessKeep this maintainer-authored, maintainer-labeled draft open. Static review found a focused full-Gateway TCP QA test and matching scenario for the declared HTTP boundaries, with no discrete patch defect; the remaining gate is exact-head focused test evidence after the in-progress check completes. Priority: P3 Review scores
Verification
How this fits togetherGateway exposes HTTP endpoints that authenticate callers, dispatch agent and tool work, call configured embedding providers, and enqueue authenticated hook events. This PR adds QA-Lab metadata and a test that sends HTTP requests through that public boundary and checks the observable responses and event queue. flowchart LR
Client[HTTP client] --> Auth[Gateway authentication]
Auth --> Routes[Gateway HTTP routes]
Routes --> Agents[Agent and tool dispatch]
Routes --> Embeddings[Embedding provider]
Routes --> Hooks[Wake hook event queue]
Agents --> Responses[HTTP JSON responses]
Embeddings --> Responses
Hooks --> Responses
Routes --> QA[QA-Lab TCP regression proof]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +278, Other +32. Total +310 across 2 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the dedicated TCP coverage after the focused exact-head QA run demonstrates the scenario is discovered, passes reliably, and leaves no Gateway test-state residue. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds regression coverage rather than repairing a reported user-visible failure. The source provides a clear local TCP exercise path, but it was not executed in this read-only review. Is this the best way to solve the issue? Yes. A dedicated QA scenario plus a full-Gateway loopback test is the maintainable place to prove the three HTTP boundaries, while existing scenarios retain their narrower secondary OpenAI-compatible coverage. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against cd42cb770332. LabelsLabel changes:
Label justifications:
EvidenceAcceptance criteria:
What 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 Exact-head focused Testbox, canonical QA evidence, path-scoped changed gate, and autoreview are now complete and recorded in the PR body. |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
@clawsweeper automerge Exact-head focused Testbox proof, canonical QA evidence, path-scoped changed gate, autoreview, and current CI are green. The focused-proof rank-up move is complete. The optional re-review move was requested and remains queued; the existing exact-head review reports no findings and labels the refresh non-blocking. |
|
🦞👀 Command router queued. I will update this comment with the next step. |
…outing-20260803 * origin/main: (34 commits) 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) test(gateway): add HTTP API QA coverage (#118809) test(qa): cover Control UI sessions and cron (#118838) fix(macos): preserve native command ownership and consent (#118914) test(qa): cover OpenClaw exec process lifecycle (#118819) test(ui): cover diagnostic operator flows (#118837) fix(search): propagate cancellation through provider-owned requests (#118895) test(gateway): cover loopback and LAN access (#118824) refactor(channels): own the lifecycle status contract in SDK patch factories (#118795) test(ui): add guarded config QA coverage (#118814) fix(feishu): fence external collaboration tool results (#118877) test(qa): cover Plugin SDK import topology (#118878) test(qa): register external app SDK proof (#118829) fix(gateway): expire temporal rows in cached session lists (#118875) test(matrix): isolate runtime state (#118892) ...
…te-dry-run-no-state-mutation * commit '682f60ce56b37c5cd3205fdcbbf25b21d48708f2': (28 commits) 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) test(gateway): add HTTP API QA coverage (#118809) test(qa): cover Control UI sessions and cron (#118838) fix(macos): preserve native command ownership and consent (#118914) test(qa): cover OpenClaw exec process lifecycle (#118819) test(ui): cover diagnostic operator flows (#118837) fix(search): propagate cancellation through provider-owned requests (#118895) test(gateway): cover loopback and LAN access (#118824) refactor(channels): own the lifecycle status contract in SDK patch factories (#118795) test(ui): add guarded config QA coverage (#118814) fix(feishu): fence external collaboration tool results (#118877) test(qa): cover Plugin SDK import topology (#118878) test(qa): register external app SDK proof (#118829) fix(gateway): expire temporal rows in cached session lists (#118875) test(matrix): isolate runtime state (#118892) ...
What Problem This Solves
The canonical QA portfolio did not have first-class product proof for the Gateway's OpenAI-compatible HTTP APIs, tool invocation endpoint, or hook ingress boundary.
Why This Change Was Made
Adds one full-Gateway TCP test and one QA scenario claiming exactly:
gateway.openai-compatible-apisgateway.tool-invocation-apigateway.hook-ingressThe proof uses deterministic agent responses, a real local OpenAI-compatible embedding fixture, the real
agents_listtool, and the real system-event queue. It changes no production code.User Impact
No runtime behavior changes. Maintainers gain executable regression coverage for the public Gateway HTTP boundaries.
Evidence
0b0f1052788d3dc2bd9b0e70d23bc6d8f6f1356dtbx_01kz4epa6rh91kxhwz00vwpe8p(harbor-krill-55eb)gateway-http-apis: passedopenclaw.qa.evidence-summaryv2pnpm check:changed: passed, including tsgo, all lint shards, formatting, guards, and import cyclesgit diff --check: passed+0/-0AI-assisted.