Repository navigation
test(gateway): trim redundant instrumentation and catalog permutations - #198924
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR trims repeated Gateway test instrumentation and permutations and removes a registry test covered by the acceptance-handler suite. Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR’s previous findings are resolved, and the remaining focused test cleanup has no actionable findings; exact-head CI is still pending. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherGateway tests exercise chat cancellation, prepared model catalogs, usage reporting, and task-suggestion acceptance, checking responses and lifecycle boundaries. flowchart LR
A[Test fixtures] --> B[Gateway handlers]
B --> C[Existing runtime owners]
C --> D[Responses and events]
D --> E[Retained contract assertions]
Technical reviewBest possible solution: Retain this focused reduction with the restored boundary guards and complete the existing exact-head CI gates. Do we have a high-confidence way to reproduce the issue? This is test maintenance rather than a product bug report; the review inspected source and supplied validation without running tests. Is this the best way to solve the issue? The narrowed diff removes redundant repetitions while preserving the previously identified architecture and lifecycle guards, using existing covering suites. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 314ae9ae9077. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests -221. Total -221 across 4 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (6 earlier review cycles)
Reviewed November 23, 2026, 6:46 AM ET / 11:46 UTC (Revision 7). |
e23f560 to
9f06af3
Compare
|
@clawsweeper re-review Please review exact head |
|
🦞👀 Re-review progress:
|
9f06af3 to
b986747
Compare
|
@clawsweeper re-review Repair round 2 at exact head |
|
🦞👀 Re-review progress:
|
b986747 to
224c13d
Compare
|
@clawsweeper re-review Third repair round at exact head |
|
🦞👀 Re-review progress:
|
|
HOLD at unchanged head The sole 55-line whole-file deletion has an exact stronger task-suggestions keeper. All nine historical behavior concerns and 28 prior retentions remain protected in the proposed alternative. This does not approve the unchanged incoming ten-suite deletion. PR stays open and draft; native checkpoint stays OPEN-retained. No disposable GWT was created. |
224c13d to
258c3b1
Compare
|
@clawsweeper re-review Please review exact head |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Please review exact head |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Please review exact head |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
openclaw#198924) * test(gateway): trim redundant instrumentation and catalog permutations * test(gateway): retain worker SQL boundary guards * test(gateway): retain catalog and observer regression guards * test(gateway): retain scoped catalog acquisition guards
Removes repeated instrumentation and permutation checks while retaining the Gateway's authorization, lifecycle, publication and usage-privacy guards.
Refs #198737.
2408b27ff5d2exactly.src/gateway/chat-abort.test.tssrc/gateway/server.required-worker-profile.test.tssrc/gateway/server-methods/models.prepared.test.tschat-metadata-handler.test.ts(“serves commands without preparing a catalog when the client reads models separately”, refresh assertion at 386) andchat-metadata-runtime.test.ts(“refreshes command eligibility through skills publication without announcing changed models”, at 529).src/gateway/server-methods/usage.sessions-usage-cache.test.tsusage.sessions-usage-owner-attribution.integration.test.ts:462andusage.sessions-usage.test.ts:570,:778.src/gateway/session-observer.worker.test.tssrc/gateway/task-suggestion-registry.test.tssrc/gateway/server-methods/task-suggestions.test.ts:277, “evicts accepted-session replay before an unseen pending suggestion”, exercises the same registry through real acceptance, retained pending work, created session and events. No surviving reference to the deleted file.Additional unchanged covering suites (33 KEEP files)
src/gateway/chat-display-projection.test.tssrc/gateway/control-ui-public-session.http.test.tssrc/gateway/control-ui-session-pr-subscriptions.test.tssrc/gateway/server-broadcast.transport.test.tssrc/gateway/server-methods/agents-delete.integration.test.tssrc/gateway/server-methods/chat-history-pages.recovery.test.tssrc/gateway/server-methods/chat-send-direct-followup.test.tssrc/gateway/server-methods/chat-send-prestart-steer.test.tssrc/gateway/server-methods/cron.gateway-policy.integration.test.tssrc/gateway/server-methods/cron.inference-binding.test.tssrc/gateway/server-methods/cron.validation.test.tssrc/gateway/server-methods/question.recovery.test.tssrc/gateway/server-methods/requester-model-catalog.test.tssrc/gateway/server-methods/session-controls.incognito.test.tssrc/gateway/server-methods/sessions-github-readiness.test.tssrc/gateway/server-methods/sessions-patch-model-selection.test.tssrc/gateway/server-methods/system-agent-setup-resolution.test.tssrc/gateway/server-methods/update.ocm.test.tssrc/gateway/server-plugin-reload.prepared-borrow.test.tssrc/gateway/server-reload-managed-secrets.test.tssrc/gateway/server-templates-add-authority.e2e.test.tssrc/gateway/server.chat.gateway-server-chat-lifecycle.test.tssrc/gateway/server.subagent-stop-followup.product.test.tssrc/gateway/session-history-worker-runtime.test.tssrc/gateway/session-row-delta-audiences.test.tssrc/gateway/session-row-selection.retained.test.tssrc/gateway/session-utils.fs.test.tssrc/gateway/worker-environments/local-workspace-cas.test.tssrc/gateway/worker-environments/node-bootstrap-artifact.test.tssrc/gateway/worker-environments/node-worker-tunnel.lifecycle.test.tssrc/gateway/worker-environments/node-workspace-transfer-service.test.tssrc/gateway/worker-environments/workspace-accepted-sync.test.tssrc/gateway/worker-environments/workspace-sync-manifest.test.tsValidation for exact head
8b6b4a43f4c84aea7327f66efc97d9d5bf3e0b69:git diff --checkpassed.The eight scoped suites include the three changed survivors, the restored required-worker and observer keepers, task suggestions, usage owner attribution, and usage sessions. Removed instrumentation and ordinary permutations are deliberately judged by value; retained security, race and user-visible regression guards are not replaced by mock-count assertions.
Review repair: the first narrowed head removed SQL observations that independently protect the Gateway-thread execution boundary. Both named boundaries are restored; ordinary counting/permutation trims remain.
Second review repair: retain the original unwatched-stream filesystem regression and the registered models.list SQL/registry/rebuild guards. Ten/eight-read permutation expansions remain reduced; the independent hot-path boundaries remain asserted.
Scoped catalog repair: retain the original cold/warm authority-read limits (12/2), no native catalog discovery, same/sibling/changed-account projection counts and concurrent changed-account publication; retain default-versus-explicit projection reuse. Six-read repetitions are reduced to two concurrent reads.