Repository navigation
test(qa): cover Gateway usage and memory APIs - #118995
Conversation
6d812b2 to
5d11394
Compare
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 7:08 PM ET / 23:08 UTC. ClawSweeper reviewWhat this changesAdds a QA scenario and authenticated WebSocket end-to-end test for Gateway usage summaries, SQLite-backed session details, invalid session handling, and disabled-memory status. Merge readinessKeep open for normal maintainer review. The test-only PR adds valid authenticated Gateway regression coverage for the already-landed SQLite usage repair, with no blocking correctness or security finding. Priority: P3 Review scores
Verification
How this fits togetherQA Lab registers YAML scenarios that execute isolated runtime tests. This test seeds canonical SQLite session data, sends authenticated Gateway RPCs, and verifies the usage and memory-status responses operators receive. flowchart LR
A[QA scenario catalog] --> B[Gateway E2E test]
B --> C[Isolated SQLite session state]
C --> D[Authenticated Gateway]
D --> E[Usage and memory RPCs]
E --> F[Response assertions]
F --> G[QA coverage result]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +345, Other +26. Total +371 across 2 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep this transport-level regression coverage in QA Lab and land it once the existing ClawSweeper rank-up instructions and current merge result are confirmed. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds regression coverage for a merged fix rather than reporting a new unresolved bug. Is this the best way to solve the issue? Yes. Exercising the authenticated Gateway transport with real isolated SQLite state is stronger and more maintainable than duplicating handler-level mocks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1cdfe9ed7d7b. 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
|
|
Merged via squash.
|
* origin/main: (1301 commits) fix(sms): align MMS retries with network timeouts (openclaw#119002) test(qa): cover composed tool result consumption (openclaw#118991) test(cron): cover delivery outcomes (openclaw#118993) test(qa): cover guarded media fetch boundaries (openclaw#118857) test(qa): cover music generation controls (openclaw#118901) test(qa): cover core vision routing (openclaw#118861) test(qa): cover Gateway usage and memory APIs (openclaw#118995) fix(docker): use authenticated gateway health command (openclaw#118996) test(plugins): align tool fixtures with owner policy (openclaw#118959) test(qa): cover managed gateway service lifecycle (openclaw#118855) test(qa): cover audio proxy and limit handling (openclaw#118863) test(qa): cover PDF extraction dispatch (openclaw#118860) test(ui): add service-worker update primary QA proof (openclaw#118805) test(qa): cover CLI onboarding and plugin install sources (openclaw#118882) test(qa): cover remote logging boundaries (openclaw#118951) fix(sms): retry transient MMS failures before durable adoption (openclaw#118994) test(qa): cover video generation invocation (openclaw#118864) test(qa): cover media reference intake (openclaw#118858) test(qa): cover image generation task lifecycle (openclaw#118915) feat(sms): track Twilio delivery status (openclaw#118665) ...
What Problem This Solves
Adds repeatable QA coverage for the authenticated Gateway usage and memory API surface after SQLite-backed session usage details were restored in #118918.
Scope
usage.status,usage.cost,sessions.usage,sessions.usage.timeseries, andsessions.usage.logs.sessionFilefield.INVALID_REQUEST.doctor.memory.statusreports explicit unavailability when the memory plugin is disabled.gateway.usage-and-memory-apisin the QA scenario catalog.Evidence
5d11394cc21c75ee7a2b4d763f9ff2d47f11afa4mainhead3d65ea2a1b54f4ef1dea66a6e2b17bf6a61836e7tbx_01kz4v4pv0qma561phz10e5xkgpnpm check:changed: passed the fail-safe all-lanes gatehosted_exact_or_recent_parent)ClawSweeper Disposition
5d11394cc21c75ee7a2b4d763f9ff2d47f11afa4reviewed with no findings and no security concern.Dependency
Built on the landed prerequisite #118918 at
d3ea24c669da8148be7df27d47dfca7d662b378b.Changelog not required: test-only QA coverage.
AI-assisted: yes. The implementation and evidence above were reviewed before submission.