Repository navigation
test(agents,channels,chat): remove low-value tests (batch d582) - #184048
Merged
Merged
Conversation
Compact model fixtures and pricing assertions without deleting discovery behaviors. Retain advisory fallback, pricing conversion/fallback, malformed envelopes/rows, token limits, text-only and image-output filtering, duplicate recovery, and guarded-fetch policy assertions. The already-pruned suite remains below the requested 25% reduction rather than dropping distinct checks. CI-only validation: oxfmt, plain oxlint, and diff-check.
Replace the override builder with minimal shared chat and routing fixtures. Keep endpoint and exact SSRF policy assertions; remove internal call-count, audit-label and header-shape restatements. Shared provider-catalog-live-runtime tests cover transport behavior, including 'uses one timeout budget after a %i ms wall-clock step'. The retained malformed-envelope case hits the same readRows rejection branch as the removed variant. 'parses gateway models with correct pricing conversion' and 'excludes image-output models while retaining chat and static routing entries' retain ordinary-chat inclusion; the duplicate-recovery case now focuses on malformed-first recovery. Preserve all 11 expanded cases and every distinct projection branch. Total shard: 204 to 152 lines. CI-only: oxfmt, plain oxlint and diff-check passed; no tests run.
Deduplicate webhook request/response types and replace custom single-settlement bookkeeping with Promise settlement and finally cleanup. Preserve header-only auth probes, declared-length rejection, deterministic chunk writes, timeout diagnostics, and all caller assertions. No test cases removed; CI-only validation per campaign instructions.
Simplify drip scheduling, inline the single-use server fixture, and compact response and URL fixtures. Preserve all eight cases and their distinct timeout, error metadata, body validation, idle-window, and URL traversal contracts. CI-only shard: plain oxlint and formatting/diff checks passed; runtime tests deferred to hosted CI.
Localize drip-server lifetime and compact response fixtures while retaining timeout, body-error, empty-result, long-idle and URL traversal contracts. Remove the duplicate problem-JSON replay: extensions/xai/video-generation-transport.test.ts, rejects a successful problem JSON response as generated video, covers the same readProviderBinaryResponse MIME branch through downloadGeneratedVideoAsset. Original shard: 199 lines; final: 148 (-25.6%). Plain oxlint and formatting/diff checks passed; no test runs per CI-only mode.
Remove the HTTP response forwarding layer and simplify masked-frame construction without changing authentication assertions or wire data. All helper exports and caller tests remain intact.
Compact policy fixtures and refusal tables while retaining all 25 cases. The dashboard update test retains exact mixed email/OIDC payload coverage formerly repeated by the renewal setup assertion. Preserve policy validation, mapping-change fencing, pagination, token redaction, and shutdown boundaries.
Share reset client/fetch fixtures and exercise successful pagination in the dashboard-reread test. Keep duplicate discovery rejection separate. Remove the creation warm-up already covered by visitors.test.ts: invites the runtime-resolved numeric GitHub account and explains login. Preserve all policy-validation, redaction, mapping-change and shutdown boundaries. CI-only: formatting, plain oxlint and diff checks; no test runs.
Collapse terminal fixture options and completion waiters without removing status, socket reuse, or lifecycle cases. Keep tool delivery count and ordering; payload decoding remains covered by realtime-voice-bridge-events.test.ts (executes tool calls only from successful response output).
Fold successful tool ordering into the completed terminal row; keep every status branch and callback-failure recovery. Replace duplicated event/tool capture and exact message dumps with structured outcome assertions and an exact terminal callback trace. Ordinary completed-response queue draining remains covered by realtime-voice-response-control.test.ts: serializes standalone control speech while an agent tool call is pending. Tool payload decoding remains covered by realtime-voice-bridge-events.test.ts: executes tool calls only from successful response output.
Consolidate PID/exit assertions, fixture path delivery, and startup timer capture. Keep all three real-process cases: auth-token argv isolation, forced shutdown, and cleanup before timeout rejection. The mocked tunnel.test.ts sibling does not replace these process-boundary checks.
Reuse the existing Teams runtime fixture and trim feedback context setup. Preserve all six cases and every event, thread-routing, and authorization assertion. Remove unused message/reaction handler mocks; feedback invokes call authorization directly, not those handler factories.
Retain all nine cases while sharing write setup and stream retry outcomes. Keep pending-cancellation retry/abort at the write owner, and retain start/append/stop retries plus the lost-acknowledgment branch. Payload and state proof remains in streaming.test.ts: starts and appends supported structured stream chunks without buffering markdown text; does not resend committed text when finalization rejects after delivery. Workspace routing remains in client.web-api.test.ts: keeps lost stream responses one-shot without changing listener reads. CI-only: plain oxlint, oxfmt, and git diff --check passed. No tests or coverage executed. Original shard 200 lines; final 150 lines.
Consolidate successful isolated-turn security and delivery proof in the retained bounded tool-free event case. Share replay assertions across successful and failed durable commits without removing either path.
Retain outcome, replay, persistence, routing, event, timeout, and security assertions. Remove redundant mock counts and fixed job metadata checks, and share spy cleanup. Room metadata rendering remains covered by join-intro-prompt.test.ts: grounds unreadable room history in visible room facts and asks what the room needs.
Consolidate cron assertions and collector failure fixtures. Remove redundant non-array wait inputs and copied dashboard metadata inventories. Keep embedded history behavior in the real recalls-an-old-search-hit and preserves-continuation-facts tests; retain string-limit normalization in the byte-cap cases. Preserve authority, lifecycle, cursor and policy assertions. CI-only: plain oxlint, oxfmt and diff checks passed. Static cases 293 to 288; shard lines 5869 to 5799. Remaining suites protect distinct boundaries, so the 20 percent target is not safely attainable.
Keep nested activity serialization in attempt-nested-tool-activity.test.ts and projection in agent-activity-events.test.ts. Native collector tests retain asynchronous cancellation and requester ownership; keep direct wait deadlines, registration races and delegated idempotency. Keep PDF response coercion variants in image-tool.response.test.ts and pdf-tool.helpers.test.ts, and model discovery in pdf-tool.model-config.test.ts. Retain orchestration failure, Bedrock auth boundaries and model-policy lifecycle tests. Keep visible creation registration in sessions-spawn-tool.test.ts. Drop duplicate internal Gateway option inventories and source invocation counts while retaining authority effects, receipts and revocation assertions. Keep Cron malformed updates in cron-tool.input.test.ts and list defaults in cron-tool.output-contract.test.ts. CI-only: no tests run. Plain oxlint, oxfmt and diff checks passed. Shard 5869 to 5547 lines; 20 percent target remains unmet because retained cases protect distinct boundaries.
Exercise collector wait-loop ownership, coalescing and cancellation once through the tool adapter, retaining bridge completion/error/abort mapping. Canonicalize Gateway replacement checks before dispatch and after settlement in the bound request owner; creation retains provenance and option forwarding smoke. Use per-test OpenClaw state for embedded history instead of hand-resetting session and FTS tables. Preserve projection drain and cleanup on failure through nested finally blocks. CI-only: plain oxlint, oxfmt and diff checks passed; no tests run. Additional reduction 5547 to 5465 lines; cumulative 5869 to 5465. The 20 percent target remains unmet without discarding distinct boundary coverage.
Consolidate repeated lock identity and maintenance fixtures, fetch duplex and failure cases, sentinel payload setup, and empty stall reports. Retain all case inputs and distinct ownership, cleanup, compatibility, and error assertions.
Keep exec completion delivery proof while terminal-resolution.test.ts owns length-stop notice generation (adds a length-stop notice only for partial text). Keep one fetch header integration case; fetch-headers.test.ts owns enumerability variants. Remove repeated pooled-reader lifetime assertions covered by sqlite-readonly-worker.operations.test.ts (reuses workers across closed scopes without carrying database or inspection state; retires idle readers through IPC without waiting for broker termination grace) and retained auth restart/environment cases. Watch signal-loss propagation remains covered by the phase table and test/scripts/run-node-lifecycle.test.ts native runner/watch signal proof. Consolidate lock, signal, runner and sentinel fixtures without dropping their distinct authority or cleanup assertions. CI-only: formatting, diff-check and plain oxlint pass; no tests run. Combined shard reduction is 5611 to 5172 lines (7.8%), below the requested 20 percent. No safe whole-file deletion identified.
Share existing and late-discovered auth reader fixtures while retaining caller-close, fallback refresh, held-refresh restart and retirement coverage. Table Gateway exit policies and persisted safe/unsafe rollback reader compatibility. Consolidate lock identity projection assertions without dropping exact namespace checks. Preserve refresh-before-restart proof: the bundled-plugin-assets classifier test does not prove the watch runner invokes refresh each start. CI-only: plain oxlint, formatting and diff-check passed; no tests run. Shard total 5611 to 5091 lines (9.3 percent), still below 20 percent; no further safe deletion established.
Consolidate repeated header rendering and queue mutation setup, reuse the existing request assertion helpers, and remove an unreachable goal fixture branch. Preserve all cases and their distinct custody, privacy, replay, reconnect, and ordering assertions.
Merge pending notice and consumed-history cases into their owning branch tables. Share pane, rename, history, and attachment fixtures while retaining captured-owner, privacy, lifecycle, receipt, and ordering assertions. Remove the ambiguous legacy-main duplicate covered by outbox-store.test.ts: derives badges and replay from the same migrated durable queue. Remove redundant Blob roundtrip assertions covered by outbox-blob-recovery.test.ts: stores attachment payloads without secure-context-only browser APIs. Parked menu membership remains covered by chat-header-session-menu.test.ts: reconciles parked owner membership and labels without replacing surviving rows. Keep historical work-count regressions, including #160030 and #111539. CI-only static checks pass; tests and coverage not run. Original shard 5752 lines to 5323 lines (7.5 percent): short of the 20 percent target without removing distinct safety or regression proof.
Keep compaction and persisted-send variants at one owning branch table. Reuse pending-page, private-input, and async startup fixtures without changing their custody or lifecycle boundaries. Retain observed-title proof in chat-pane-offline-metadata.test.ts: keeps the observed current title when startup precedes a bounded reconnect list. Retain offline inline rename there: queues a header rename and rendered reaction through the shared outbox. Native chat-header-session-menu-loading.test.tsx owns deferred header loading; chat-header-session-menu.test.ts owns parked membership reconciliation. Remove the obsolete idle-timer probe and duplicated layer assertions. CI-only: plain oxlint, oxfmt and diff checks passed; no tests or builds run. Original shard5752 to5180 lines, 9.9 percent reduction. Still below20 percent; distinct privacy, CAS, receipt-source, captured-authority and interleaving contracts retained.
Consolidate repeated schema, provider policy, plugin config, CLI capture, and utility lease fixtures without removing distinct behaviors. Preserve authority, privacy, durability, prompt-prefix, and lifecycle ordering checks; these already-consolidated suites do not admit the requested 20% cut safely. CI-only: plain oxlint, oxfmt, and diff checks passed; runtime and coverage proof deferred to hosted CI.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
disabled auto-merge
October 26, 2026 01:34
steipete
enabled auto-merge (squash)
October 26, 2026 01:36
steipete
disabled auto-merge
October 26, 2026 01:40
steipete
enabled auto-merge (squash)
October 26, 2026 01:41
steipete
disabled auto-merge
October 26, 2026 01:44
steipete
enabled auto-merge (squash)
October 26, 2026 01:45
steipete
disabled auto-merge
October 26, 2026 01:48
steipete
enabled auto-merge (squash)
October 26, 2026 01:49
steipete
disabled auto-merge
October 26, 2026 01:53
steipete
enabled auto-merge (squash)
October 26, 2026 01:53
steipete
disabled auto-merge
October 26, 2026 02:04
steipete
enabled auto-merge (squash)
October 26, 2026 02:05
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 26, 2026
…claw#184048) * test(kilocode): deslop s1014 tests Compact model fixtures and pricing assertions without deleting discovery behaviors. Retain advisory fallback, pricing conversion/fallback, malformed envelopes/rows, token limits, text-only and image-output filtering, duplicate recovery, and guarded-fetch policy assertions. The already-pruned suite remains below the requested 25% reduction rather than dropping distinct checks. CI-only validation: oxfmt, plain oxlint, and diff-check. * test(kilocode): finish s1014 structural reduction Replace the override builder with minimal shared chat and routing fixtures. Keep endpoint and exact SSRF policy assertions; remove internal call-count, audit-label and header-shape restatements. Shared provider-catalog-live-runtime tests cover transport behavior, including 'uses one timeout budget after a %i ms wall-clock step'. The retained malformed-envelope case hits the same readRows rejection branch as the removed variant. 'parses gateway models with correct pricing conversion' and 'excludes image-output models while retaining chat and static routing entries' retain ordinary-chat inclusion; the duplicate-recovery case now focuses on malformed-first recovery. Preserve all 11 expanded cases and every distinct projection branch. Total shard: 204 to 152 lines. CI-only: oxfmt, plain oxlint and diff-check passed; no tests run. * test(telegram): deslop s1018 tests Deduplicate webhook request/response types and replace custom single-settlement bookkeeping with Promise settlement and finally cleanup. Preserve header-only auth probes, declared-length rejection, deterministic chunk writes, timeout diagnostics, and all caller assertions. No test cases removed; CI-only validation per campaign instructions. * test(vydra): deslop s1017 tests Simplify drip scheduling, inline the single-use server fixture, and compact response and URL fixtures. Preserve all eight cases and their distinct timeout, error metadata, body validation, idle-window, and URL traversal contracts. CI-only shard: plain oxlint and formatting/diff checks passed; runtime tests deferred to hosted CI. * test(vydra): finish s1017 structural reduction Localize drip-server lifetime and compact response fixtures while retaining timeout, body-error, empty-result, long-idle and URL traversal contracts. Remove the duplicate problem-JSON replay: extensions/xai/video-generation-transport.test.ts, rejects a successful problem JSON response as generated video, covers the same readProviderBinaryResponse MIME branch through downloadGeneratedVideoAsset. Original shard: 199 lines; final: 148 (-25.6%). Plain oxlint and formatting/diff checks passed; no test runs per CI-only mode. * test(browser): deslop s1021 tests Remove the HTTP response forwarding layer and simplify masked-frame construction without changing authentication assertions or wire data. All helper exports and caller tests remain intact. * test(signal): deslop s1023 tests * test(visitor-access): deslop s1019 tests Compact policy fixtures and refusal tables while retaining all 25 cases. The dashboard update test retains exact mixed email/OIDC payload coverage formerly repeated by the renewal setup assertion. Preserve policy validation, mapping-change fencing, pagination, token redaction, and shutdown boundaries. * test(visitor-access): consolidate s1019 client fixtures Share reset client/fetch fixtures and exercise successful pagination in the dashboard-reread test. Keep duplicate discovery rejection separate. Remove the creation warm-up already covered by visitors.test.ts: invites the runtime-resolved numeric GitHub account and explains login. Preserve all policy-validation, redaction, mapping-change and shutdown boundaries. CI-only: formatting, plain oxlint and diff checks; no test runs. * test(openai): deslop s1022 tests Collapse terminal fixture options and completion waiters without removing status, socket reuse, or lifecycle cases. Keep tool delivery count and ordering; payload decoding remains covered by realtime-voice-bridge-events.test.ts (executes tool calls only from successful response output). * test(openai): consolidate s1022 terminal outcome coverage Fold successful tool ordering into the completed terminal row; keep every status branch and callback-failure recovery. Replace duplicated event/tool capture and exact message dumps with structured outcome assertions and an exact terminal callback trace. Ordinary completed-response queue draining remains covered by realtime-voice-response-control.test.ts: serializes standalone control speech while an agent tool call is pending. Tool payload decoding remains covered by realtime-voice-bridge-events.test.ts: executes tool calls only from successful response output. * test(voice-call): deslop s1024 tests Consolidate PID/exit assertions, fixture path delivery, and startup timer capture. Keep all three real-process cases: auth-token argv isolation, forced shutdown, and cleanup before timeout rejection. The mocked tunnel.test.ts sibling does not replace these process-boundary checks. * test(msteams): deslop s1025 tests Reuse the existing Teams runtime fixture and trim feedback context setup. Preserve all six cases and every event, thread-routing, and authorization assertion. Remove unused message/reaction handler mocks; feedback invokes call authorization directly, not those handler factories. * test(slack): deslop s1026 tests * test(slack): consolidate s1026 retry scenarios Retain all nine cases while sharing write setup and stream retry outcomes. Keep pending-cancellation retry/abort at the write owner, and retain start/append/stop retries plus the lost-acknowledgment branch. Payload and state proof remains in streaming.test.ts: starts and appends supported structured stream chunks without buffering markdown text; does not resend committed text when finalization rejects after delivery. Workspace routing remains in client.web-api.test.ts: keeps lost stream responses one-shot without changing listener reads. CI-only: plain oxlint, oxfmt, and git diff --check passed. No tests or coverage executed. Original shard 200 lines; final 150 lines. * test(channels): deslop s1028 tests Consolidate successful isolated-turn security and delivery proof in the retained bounded tool-free event case. Share replay assertions across successful and failed durable commits without removing either path. * test(channels): trim s1028 fixture and assertion scaffolding Retain outcome, replay, persistence, routing, event, timeout, and security assertions. Remove redundant mock counts and fixed job metadata checks, and share spy cleanup. Room metadata rendering remains covered by join-intro-prompt.test.ts: grounds unreadable room history in visible room facts and asks what the room needs. * test(agents): deslop s1027 tests * test(agents): simplify s1027 auth fixtures and redundant assertions * test(agents): deslop o0001 tests Consolidate cron assertions and collector failure fixtures. Remove redundant non-array wait inputs and copied dashboard metadata inventories. Keep embedded history behavior in the real recalls-an-old-search-hit and preserves-continuation-facts tests; retain string-limit normalization in the byte-cap cases. Preserve authority, lifecycle, cursor and policy assertions. CI-only: plain oxlint, oxfmt and diff checks passed. Static cases 293 to 288; shard lines 5869 to 5799. Remaining suites protect distinct boundaries, so the 20 percent target is not safely attainable. * test(agents): remove redundant o0001 proof layers Keep nested activity serialization in attempt-nested-tool-activity.test.ts and projection in agent-activity-events.test.ts. Native collector tests retain asynchronous cancellation and requester ownership; keep direct wait deadlines, registration races and delegated idempotency. Keep PDF response coercion variants in image-tool.response.test.ts and pdf-tool.helpers.test.ts, and model discovery in pdf-tool.model-config.test.ts. Retain orchestration failure, Bedrock auth boundaries and model-policy lifecycle tests. Keep visible creation registration in sessions-spawn-tool.test.ts. Drop duplicate internal Gateway option inventories and source invocation counts while retaining authority effects, receipts and revocation assertions. Keep Cron malformed updates in cron-tool.input.test.ts and list defaults in cron-tool.output-contract.test.ts. CI-only: no tests run. Plain oxlint, oxfmt and diff checks passed. Shard 5869 to 5547 lines; 20 percent target remains unmet because retained cases protect distinct boundaries. * test(agents): consolidate o0001 shared-owner fixtures Exercise collector wait-loop ownership, coalescing and cancellation once through the tool adapter, retaining bridge completion/error/abort mapping. Canonicalize Gateway replacement checks before dispatch and after settlement in the bound request owner; creation retains provenance and option forwarding smoke. Use per-test OpenClaw state for embedded history instead of hand-resetting session and FTS tables. Preserve projection drain and cleanup on failure through nested finally blocks. CI-only: plain oxlint, oxfmt and diff checks passed; no tests run. Additional reduction 5547 to 5465 lines; cumulative 5869 to 5465. The 20 percent target remains unmet without discarding distinct boundary coverage. * test(infra): deslop o0002 tests Consolidate repeated lock identity and maintenance fixtures, fetch duplex and failure cases, sentinel payload setup, and empty stall reports. Retain all case inputs and distinct ownership, cleanup, compatibility, and error assertions. * test(infra): consolidate o0002 boundary fixtures and duplicate layers Keep exec completion delivery proof while terminal-resolution.test.ts owns length-stop notice generation (adds a length-stop notice only for partial text). Keep one fetch header integration case; fetch-headers.test.ts owns enumerability variants. Remove repeated pooled-reader lifetime assertions covered by sqlite-readonly-worker.operations.test.ts (reuses workers across closed scopes without carrying database or inspection state; retires idle readers through IPC without waiting for broker termination grace) and retained auth restart/environment cases. Watch signal-loss propagation remains covered by the phase table and test/scripts/run-node-lifecycle.test.ts native runner/watch signal proof. Consolidate lock, signal, runner and sentinel fixtures without dropping their distinct authority or cleanup assertions. CI-only: formatting, diff-check and plain oxlint pass; no tests run. Combined shard reduction is 5611 to 5172 lines (7.8%), below the requested 20 percent. No safe whole-file deletion identified. * test(infra): share o0002 observation and lifecycle fixtures Share existing and late-discovered auth reader fixtures while retaining caller-close, fallback refresh, held-refresh restart and retirement coverage. Table Gateway exit policies and persisted safe/unsafe rollback reader compatibility. Consolidate lock identity projection assertions without dropping exact namespace checks. Preserve refresh-before-restart proof: the bundled-plugin-assets classifier test does not prove the watch runner invokes refresh each start. CI-only: plain oxlint, formatting and diff-check passed; no tests run. Shard total 5611 to 5091 lines (9.3 percent), still below 20 percent; no further safe deletion established. * test(chat): deslop o0004 tests Consolidate repeated header rendering and queue mutation setup, reuse the existing request assertion helpers, and remove an unreachable goal fixture branch. Preserve all cases and their distinct custody, privacy, replay, reconnect, and ordering assertions. * test(chat): consolidate o0004 owner fixtures and branch tables Merge pending notice and consumed-history cases into their owning branch tables. Share pane, rename, history, and attachment fixtures while retaining captured-owner, privacy, lifecycle, receipt, and ordering assertions. Remove the ambiguous legacy-main duplicate covered by outbox-store.test.ts: derives badges and replay from the same migrated durable queue. Remove redundant Blob roundtrip assertions covered by outbox-blob-recovery.test.ts: stores attachment payloads without secure-context-only browser APIs. Parked menu membership remains covered by chat-header-session-menu.test.ts: reconciles parked owner membership and labels without replacing surviving rows. Keep historical work-count regressions, including openclaw#160030 and openclaw#111539. CI-only static checks pass; tests and coverage not run. Original shard 5752 lines to 5323 lines (7.5 percent): short of the 20 percent target without removing distinct safety or regression proof. * test(chat): remove duplicate o0004 presentation layers Keep compaction and persisted-send variants at one owning branch table. Reuse pending-page, private-input, and async startup fixtures without changing their custody or lifecycle boundaries. Retain observed-title proof in chat-pane-offline-metadata.test.ts: keeps the observed current title when startup precedes a bounded reconnect list. Retain offline inline rename there: queues a header rename and rendered reaction through the shared outbox. Native chat-header-session-menu-loading.test.tsx owns deferred header loading; chat-header-session-menu.test.ts owns parked membership reconciliation. Remove the obsolete idle-timer probe and duplicated layer assertions. CI-only: plain oxlint, oxfmt and diff checks passed; no tests or builds run. Original shard5752 to5180 lines, 9.9 percent reduction. Still below20 percent; distinct privacy, CAS, receipt-source, captured-authority and interleaving contracts retained. * test(agents): deslop o0003 tests Consolidate repeated schema, provider policy, plugin config, CLI capture, and utility lease fixtures without removing distinct behaviors. Preserve authority, privacy, durability, prompt-prefix, and lifecycle ordering checks; these already-consolidated suites do not admit the requested 20% cut safely. CI-only: plain oxlint, oxfmt, and diff checks passed; runtime and coverage proof deferred to hosted CI. * test: retain boundary proof and repair d582 fixture types * test: retain caller, creation and attachment custody proof * test: preserve routing, pagination and terminal payload contracts * test: preserve worker and menu lifecycle proof * test(signal): retain literal transport kinds in endpoint fixtures * test: prune retired mock entries and retain request body typing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
This test-reduction batch removes duplicate proof layers and consolidates repeated fixtures and assertion plumbing across provider, channel, agent, infra, and chat tests. Distinct authorization, lifecycle, recovery, ordering, and protocol checks remain at their owning boundaries. No production behavior, public API, configuration, or dependencies change.
Replayed 29 of the 30 supplied commits onto main
acb8031f40a6f8a78f8f489a849f904b7dbd5d20. The supplied worktree-support commit was empty because main already contains its removal (canonical current-main change:a68e6fff1b11, #182551), so it was skipped.Impact and inventory
Actual rebased diff: 28 files; +1,061 / -2,064 lines (net -1,003). Production: +0 / -0. Test files: +980 / -1,884. Test-support files: +81 / -178. Ratchet metadata: +0 / -2. No files deleted.
The table measures only files that actually change in this PR against the pinned main base, including follow-up structural-reduction commits. Declaration counts are a static count of test declarations, not executed or table-expanded case counts. The original shard reports predate some follow-up commits; the actual diff is authoritative.
extensions/kilocode/provider-models.test.tsextensions/telegram/src/test-support/webhook-http.tsextensions/browser/src/browser/extension-relay/relay-http.test-support.tsextensions/signal/src/accounts.test.tsextensions/visitor-access/src/cloudflare.test.tsextensions/voice-call/src/tunnel.process.test.tsextensions/msteams/src/monitor-handler.feedback-authz.test.tssrc/agents/prepared-model-runtime.native-login.test.tssrc/agents/tools/cron-tool.test.tssrc/agents/tools/embedded-gateway-stub.history.test.tssrc/agents/tools/gateway-caller-context.test.tssrc/agents/tools/in-process-gateway.test.tssrc/agents/tools/sessions-spawn-tool.input.test-support.tssrc/infra/gateway-lock.test.tssrc/infra/main-thread-stall.test.tssrc/infra/agent-activity-events.test.tssrc/infra/exec-session-event.test.tsui/src/pages/chat/chat-pending-inputs.test.tsui/src/pages/chat/chat-thread.test.tssrc/agents/agent-tools.finalize.test.tssrc/agents/agent-tools.schema.test.tssrc/agents/cli-runner.reply-completion.test-support.tssrc/agents/embedded-agent-subscribe.handlers.lifecycle.test.tssrc/agents/provider-request-config.test.tssrc/agents/simple-completion-runtime.plugin-scope.test.tssrc/agents/system-prompt-config.test.tssrc/agents/utility-completion.runtime.test.tsEvery supplied shard report explicitly states that tests/coverage were not run under the operator's CI-only instructions (s1021's initial report records no change; its later supplied commit does change the helper). There is no coverage-total line to quote and no measured ≤1% coverage claim. Hosted CI is the runtime proof.
Replay resolutions
eb625c5fd576(s1020): skipped as already applied; kept main's current support module.ea1a7100b95b(o0001): retained main's added Code Mode catalog prompt/list discovery assertions and their shared tool variables; dropped the overlapping inline-variable cleanup.316c1ccacb3c(o0001): dropped all changes to the rewritten visible-spawn suite; kept main's newer delegation and dispatch tests. Kept main's expanded Bedrock PDF model configuration in the conflicting hunk; retained the non-conflicting reductions.988aa2bc7e88,e52dcfe13372,bd98525062a1(o0002): dropped restart-sentinel changes, plus runner/watcher changes in the latter two commits where applicable. Main already revised their fixture ownership and added behavior; retained current main intact in these three files. Kept cleanly applicable infra changes.CODEOWNERS visibility: none of the changed paths match the current explicit CODEOWNERS rules.
Evidence
pnpm install --frozen-lockfile --prefer-offline: passed.node_modules/.bin/oxfmt --write <27 changed files>: passed.node_modules/.bin/oxlint -c .oxlintrc.json <27 changed files>: exit 0.git diff --check acb8031f40a6f8a78f8f489a849f904b7dbd5d20: passed.openclaw/ci-gateselects proof from changed files. Auto-merge is pinned to the pushed head; independent review runs during CI.Review and first-head CI follow-up
Independent review returned ten findings. Accepted seven proof-retention findings: restored main's complete composer-persistence, agents-wait-tool, chat-send-readiness, Slack rate-limit, PDF-tool, and Vydra test files, and restored the positive, at-most-five-second Kilocode discovery deadline assertions. This intentionally drops those reductions rather than weakening distinct proof.
Three findings were rejected after checking current source:
writeLockFilecallsresolveLockPath, which createslockDircontaining both lock files.realtime-voice-bridge-events.test.ts("executes tool calls only from successful response output" and "ignores malformed and unfinished response output items"). The reduced suite retains terminal outcome/event-ordering proof.terminal-resolution.test.ts("adds a length-stop notice only for %s"). The exec-session suite owns delivery routing of those already-produced payloads.First-head CI run https://github.com/openclaw/openclaw/actions/runs/40254456392 found type errors in changed test fixtures. Fixed the Signal dynamic matcher union, dashboard unknown request fields, chat helper's overloaded host type, and room-context mock typing without casts. Restoring chat-send-readiness removes its same overloaded-type error. Dropped the fetch-fixture refactor instead of broadening its synthetic AbortSignal cast. Plain lint and formatting passed for all corrections. A fresh head must pass hosted CI; no prior-head runtime result is claimed as new-head proof.
The first PR-context check required exact section headings; those are now corrected. A follow-up independent review runs on the revised diff during CI.
Follow-up review restored authenticated cron-list caller propagation and the successful empty-collection visitor-policy POST before renewal fencing. For attachment custody, the real post-transfer missing-blob assertion was already retained; restored the pre-transfer successful blob read so deletion proof starts with verified persisted bytes. The implementation-shaped cleanup-call spy and duplicate later missing read remain removed. Plain lint, formatting, and diff checks passed for these corrections.
A further review identified distinct method-routing, nonzero-offset pagination, terminal diagnostic-message, and join-job prompt/payload contracts. Dropped the complete reductions to dashboard-tool, embedded-gateway-stub, OpenAI terminal-outcomes, and room-join tests; all four files now match the pinned main base. This also makes the earlier declined OpenAI duplicate-normalization finding moot. The missing-directory and duplicated terminal-generation findings remain rejected for the source-backed reasons above. Plain lint, formatting, and diff checks passed again; independent review and hosted CI continue on the reduced candidate.
Restored the full direct/broker SQLite auth-worker suite and session-menu suite after review identified direct-transport scope/cleanup, open-subtree identity, and unopened-menu laziness contracts. Both files now match the pinned main base. Final retained scope is 27 files, net -1,006 lines, with no production edits. Plain lint, formatting, and diff checks passed for these restorations.
Final independent review established no further P0–P2 behavior-proof defects. Its remaining Signal fixture typing finding was addressed exactly by making the endpoint helper generic over its literal transport kind, with no cast or runtime change. All 27 retained changed files passed oxfmt, plain oxlint (exit 0), and diff-check again. Hosted CI on the final pushed head remains the runtime/type proof.
Hosted run https://github.com/openclaw/openclaw/actions/runs/40256416515 completed the selected runtime/type checks and identified two batch-caused static failures:
check-lint-extensions-1rejectedString(body), andchecks-fast-baseline-ratchetsrequired pruning two deleted Teams mocks. Restored the explicit string-body guard before JSON parsing; deleted exactly the two obsoletemonitor-handler.feedback-authz.test.tsrows named by the ratchet fromconfig/test-mock-exports-baseline.txt(s1025 metadata, +0/-2). No baseline allowance grows. Re-ran only oxfmt, plain oxlint (exit 0), and diff-check locally, per CI-only instructions. The corrected head requires fresh hosted proof.