Skip to content

test(core,plugins,ui): remove low-value tests (batch d623) - #184944

Merged
steipete merged 32 commits into
mainfrom
tcr/land-d623-1793042466
Oct 26, 2026
Merged

steipete merged 32 commits into
mainfrom
tcr/land-d623-1793042466

Conversation

@steipete

@steipete steipete commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

This maintainer-requested batch removes repeated test scenarios and fixture plumbing that make the affected suites harder to maintain.

User Impact

No production behavior, public API, dependency, or configuration changes. This is test and test-support cleanup only; no runtime speedup or coverage percentage is claimed.

Why This Change Was Made

Replay of batch d623 onto pinned main 929abf856df06ab6daaa086a1496ef6c194e32c3. Related scenarios share fixtures or tables while distinct security, lifecycle, routing, and UI outcomes remain covered.

28 of the 30 supplied commits applied, plus four scoped replay/review/CI correction commits preserving assertions and repairing fixture contracts. Skipped 61d247a979a197b6be94edf60185a4acb8fd4f56 because its patch is already present on main (empty replay). Dropped d160e0e99d369e6d94d6944a3ed429bad555c712 because both Matrix files now contain materially different client ownership, reaction aggregation, and unavailable-user coverage.

Conflict decisions:

  • SMS: kept main's entire media-limits test, including real HTTP serving, cap matrix, typed media fixture, and fetch-exhaustion check. Applied only the separate webhook fixture cleanup.
  • Agents: kept main's entire OpenAI normalization test and its current fixtures; applied the other two agent test changes.
  • Node-host: retained main's expanded unsafe-carrier matrix, meaningful builtin payloads, and additional pnpm/npm cases. Applied compatible fixture consolidation. Kept partial-object matching equivalent to the original asymmetric matcher.
  • Active memory: retained partial-timeout cache rejection alongside successful-cache eligibility.
  • Skills UI: kept main's reader-shell browser suite, including independent footer/password/layout proof; applied compatible shared fixture consolidation.

Evidence

Per the operator's CI-only instruction, local validation was limited to:

  • pnpm install --frozen-lockfile --prefer-offline: passed.
  • node_modules/.bin/oxfmt --write <38 changed surviving TS/JS files>: passed.
  • node_modules/.bin/oxlint -c .oxlintrc.json <38 changed surviving TS/JS files>: exit 0.
  • git diff --check 929abf856df06ab6daaa086a1496ef6c194e32c3: passed.

No local Vitest, typecheck, check-changed, coverage, or Testbox/Crabbox run. Hosted openclaw/ci-gate is the runtime merge gate. Independent review runs during CI. The first pass raised seven findings. Restored the original IP/NAT64 test unchanged, and made the redaction table callback's argument explicit. The installed Vitest implementation passes only each-row values, so the reported extra-context failure was not reproduced or established. A verification pass includes the unchanged owner/caller suites.

Final diff: production +0 / -0; tests +1552 / -2652; test support +151 / -252; shrink-only test metadata +0 / -1. Total +1703 / -2905, net -1202 lines, 41 paths (two test files removed after consolidation).
No changed path matches the current CODEOWNERS rules.

Per-shard inventory and source-report coverage status

LOC below is current pinned main → replayed head over actually changed shard paths. Declarations count static line-start it, test, and describe call sites (tables are not expanded); this is distinct from the source reports' expanded case counts. All supplied shard reports explicitly say coverage was not run under CI-only instructions; there is no measured coverage totals line to report.

Shard Changed files LOC before → after Declarations before → after Source report coverage
o0520 extensions/sms/src/webhook.test-support.ts 136 → 114 0 → 0 Not run (CI-only)
o0523 src/cli/capability-cli/{embedding.clawrouter.integration,local-runners.account-secrets,model.run-outcomes}.test.ts 465 → 370 5 → 5 Not run (CI-only)
o0524 extensions/browser/src/cli/browser-cli-actions-input/{register.batch,register.element,shared}.test.ts 491 → 392 28 → 22 Not run (CI-only)
o0525 extensions/browser/chrome-extension/background.document-navigation.test.ts 183 → 113 6 → 4 Not run (CI-only)
o0526 src/node-host/{invoke-system-run-plan.shell-literals.test.ts,stream-command.test-support.ts} 222 → 179 4 → 2 Not run (CI-only)
o0527 extensions/mattermost/src/{session-route,setup}.test.ts 265 → 221 16 → 16 Not run (CI-only)
o0528 src/agents/embedded-agent-helpers/{assistant-message-failures,provider-runtime-failure}.test.ts 299 → 238 28 → 17 Not run (CI-only)
o0529 ui/src/pages/meetings/{meetings-download.test.ts,meetings-summary.test.ts,view.browser.test.tsx} 448 → 358 12 → 10 Not run (CI-only)
o0530 src/llm/{openai-compatible-auth,simple-completion-sentinel-egress,stream.sync-host}.test.ts 440 → 352 8 → 7 Not run (CI-only)
o0531 ui/src/pages/plugin/{logbook-actions,logbook-keyframe,logbook-view.readiness}.test.tsx 439 → 350 10 → 9 Not run (CI-only)
o0532 ui/src/pages/skills/view.test-support.ts 138 → 124 0 → 0 Not run (CI-only)
o0533 extensions/active-memory/{escalation,query,recall-state}.test.ts 437 → 351 20 → 18 Not run (CI-only)
o0534 packages/session-url-contract/src/{focus,index,parse}.test.ts 432 → 342 29 → 21 Not run (CI-only)
o0535 src/daemon/{schtasks-exec.test.ts,gateway-startup-recovery.test.ts,service-definition-backup.mocks.test-support.ts} 322 → 257 10 → 7 Not run (CI-only)
o0536 None; Matrix commit dropped 0 → 0 0 → 0 Not run (CI-only)
o0537 extensions/cua-computer/src/{commands.test-helpers.ts,recording-actions.test.ts,driver-artifacts.test.ts} 429 → 343 7 → 5 Not run (CI-only)
o0538 packages/net-policy/src/redact-sensitive-url.test.ts 259 → 186 19 → 15 Not run (CI-only)
o0539 src/utils/{directive-tags,queue-helpers,run-with-concurrency}.test.ts 429 → 343 26 → 14 Not run (CI-only)

The source reports describe retained contracts and the initial smaller reductions; later supplied consolidation commits account for differences from those report LOC totals.

Review dispositions for the remaining first-pass findings:

  • Desktop gateway support: only portal-stream-command.test.ts calls this fixture's gateway method; desktop tests use its generic cleanup methods and own their gateway setup.
  • Browser authorization transitions: retained direct owner proof in tab-document-provenance.test.ts (child frame and connection revocation), tab-access-events.navigation.test.ts (stale discovery), relay-command-handler.test.ts (child-session routing), and background.relay-lifecycle.test.ts (stale replies across reconnect).
  • Responses IDs: openai-responses-shared.test.ts retains message, function-call, and reasoning no-ID assertions for store-disabled replay. This direct wrapper test still asserts store:false and no reasoning ID.
  • Image forwarding: capability-cli.test.ts retains the registered CLI success path with exact PNG bytes, MIME type, and local transport assertions.
  • Daemon cleanup: gateway-startup-recovery.test.ts retains holder.once("exit", () => custody.release()); teardown awaits the registered exit promises. The holder-exit callback remains the release owner.

CI repair

Run https://github.com/openclaw/openclaw/actions/runs/40387495380 identified batch-caused mock-baseline, typed-lint, and fixture type failures. Fixed from the CI job logs without local tests or typechecks:

  • Use the registry's synchronous StreamFunction contract, complete the embedding fixture's required embed operation, and pin queue item inference to its existing Item type.
  • Use explicit tuple contracts for heterogeneous URL tables and destructure recall identity tuples instead of spreading a tuple union.
  • Restore main's entire worker lifecycle test, dropping the reduction that introduced a misused async callback.
  • Remove exactly the obsolete schtasks mock-baseline entry; its retained mock has an explicit isolation justification.

The whole corrected batch passed independent P0-P2 review; the subsequent CI-repair diff also passed incremental P0-P2 review. Formatting, plain oxlint (exit 0), and diff-check passed again. Fresh-head CI remains authoritative; no blanket exceptions, assertion weakening, timeout increases, or local test execution were used.

Follow-up run https://github.com/openclaw/openclaw/actions/runs/40389349310 exposed the embedding mock's narrower string-only batch input after its missing embed method was fixed. The fixture now takes its full contextual type from Awaited<ReturnType>, preserving one vector per input while supporting the actual structured EmbeddingInput contract. This two-line repair passed its own incremental P0-P2 review; only hosted CI executes the typecheck.

Keep SMS named-account and agent-fallback cap enforcement, exact-cap acceptance, the GIF transport ceiling, and per-attachment inbound budgeting. Account default selection and inherited merging remain covered by account-helpers.test.ts (normalizes account enumeration and configured default selection; merges nested fields without selection metadata or input mutation).

Remove the hosted handler replay: media.test.ts retains hosts repeat GET/HEAD fetches on the exact webhook path and serves each media type with Twilio's required filename. Preserve fixture defaults, fresh arrays, raw form signing bytes, and account isolation while removing return-only wrappers and duplicate account-id state.
Merge element command coverage into the batch registration suite and share its CLI harness. Keep malformed-input, modal replay, interruption, request construction, and timeout assertions. Consolidate stdin, symlink, and FIFO fixtures while retaining each input safety path, including the FIFO fields regression from 2337209.

Static checks: oxlint, oxfmt, git diff --check. Test LOC: 491 -> 392 (20.2% reduction). Runtime tests and coverage deferred to hosted CI under campaign CI-only mode.
Reuse configured background and relay reply helpers; share native frame fixtures and inline single-use blank commit setup. Preserve all six navigation authority and lifecycle cases.
Remove discovery replay covered by tab-access-events.navigation.test.ts: discards a stale selected discovery snapshot of blank before return.

Remove reconnect replay covered by tab-document-provenance.test.ts: discards authority and queued events on connection before response; and background.relay-lifecycle.test.ts: detaches without waiting for old evaluation and never delivers its reply on a colliding new seq.

Child-frame provenance remains covered by does not mint provenance for a caller-constrained child frame; child-session routing by relay-command-handler.test.ts checks ordinary access around native child-session blank navigation. Retain forged authorization and unowned-tab denials here. Simplify native completion setup and retain both pending-destination rows.
Share setup and route fixtures while preserving credential and routing contracts. Remove the directory-group replay covered by the real-HTTP test 'preserves real public and private channel identities in outbound thread routes' in target-resolution.loopback.test.ts. CI-only validation: local oxlint, oxfmt, and diff checks; retain all distinct branches.
Consolidate model outcome assertions and ClawRouter fixtures; remove duplicated credential-case labels. Retain all local outcome, gateway status, image input, embedding recovery, and saved-account ownership cases.
Keep successful image forwarding in capability-cli.test.ts: prepares local model content and instructions. Remove duplicate local success and cross-product diagnostic cases while retaining every error branch. Use real config snapshots and registered CLI routing for all six saved-account ownership cases, plus shared HTTP and auth-store fixtures.
Consolidate runtime classifications and assistant failure cases into tables; trim retry fixtures while preserving timing and truncation assertions.

Repeated Kimi ID pairing remains covered by embedded-agent-runner.openai-tool-id-preservation.test.ts (keeps repeated Kimi calls distinct while repairing the incomplete later turn). JSON thinking-signature replay rejection remains covered by failover/provider-structured-signals.test.ts (classifies replay-invalid carriers as terminal format failures).

CI-only shard: 430 -> 343 test lines; local oxlint, oxfmt and diff checks pass. Tests and coverage deferred to hosted CI.
Share export fixtures and retain cancellation, retry, authority and layout assertions. Remove the keyboard replay covered by hub-tabs.test.ts (moves focus without activating routes), and the heuristic label assertion covered by transcript-library.e2e.test.ts. Keep meeting tab wiring and panel labels.
Move pending tab navigation assertions into the export and summary retry cases. Keep stale selection results in the replacement-summary case and retain separate client and authorization fencing. HubTabs owns active-tab no-op behavior; meeting page cases retain navigation and the browser test retains panel labeling. Simplify export fixtures without changing production code.
Share the shell rejection table and retain one representative per redundant parser payload shape, including nested substitution. Keep native literal approval and every carrier guard.

Keep one worker-entry cleanup interleaving. Desktop preference variants remain in mac-worker-entry.test.ts (preserves profile and desktop preference); exit-code variants remain in one-shot-exit.test.ts. Remove internal invocation counts while retaining completion, release ordering, and bootstrap-failure assertions.

CI-only: plain oxlint, oxfmt and diff-check pass. No tests or coverage run. Cumulative shard LOC 328 -> 289; below the 20 percent target to preserve distinct security and lifecycle behavior.
Reduce the shard from its original 328 lines to 262. Minimize builtin rejection payloads while retaining every guard; consolidate quoted-literal inputs and retain bash as the representative of the non-sh POSIX rejection branch. Keep rawCommand for sh -lc parsing and preserve exact approved argv assertions.

Share the lifecycle no-exit assertion across cases and retain guaranteed gate release and entry settlement. Narrow the stream Gateway fixture to its only caller, portal-stream-command.test.ts; desktop-stream-command.test.ts only uses generic cleanup and streamParams. Preserve binary frame assertions, dual-stack fallback, and teardown.

CI-only validation: plain oxlint, oxfmt and git diff --check pass. No tests or coverage executed. No production changes or deleted files.
Reuse existing Logbook payload fixtures and consolidate repeated mounting, queries, and reopen steps. Keep all distinct action, refresh, pruning, eviction, and connection-retirement behavior.

The shared-keyframe readiness test covers the removed duplicate-reader case at the rendered boundary: both cards stay pending on one request and receive the same data URL. Preserve that regression from 5a54a0a.

CI-only validation: oxfmt, plain oxlint, and git diff --check passed. Test lines 439 -> 350; declarations 10 -> 9; expanded cases 14 -> 13. No local tests or coverage run.
Share synchronous stream failure setup and trim fixture bookkeeping. Keep all 13 expanded cases and all auth, sentinel rejection, null-header and storage-outcome boundaries.

Remove duplicate built-in registry checks: packages/ai/src/transports/simple-completion-transport.test.ts covers them in 'aliases a provider-owned stream while preserving its null auth-header marker'. Keep direct Responses default replay proof using encrypted reasoning; the shared converter test 'omits Responses replay item ids when requested by store-disabled callers' retains text and tool-call conversion assertions.

CI-only validation: plain oxlint, oxfmt and diff-check pass. Tests and coverage intentionally not run. Shard LOC 440 to 394 (10.5%); further reductions would discard distinct boundary proof, so this stops below the 20% target.
Reduce the shard from 394 to 352 lines, reaching 20% below its original 440 lines. Keep all test declarations and distinct auth, sentinel, stream initialization, storage projection and user-facing recovery behavior.

Capture explicit bearer auth at fetch instead of replaying SSE. Successful completion remains covered by packages/ai/src/providers/openai-completions.test.ts, including 'surfaces aggregated chat-completions message.refusal as visible assistant text'.

Run shared stream error projection once per distinct error, retaining both entry points for deferred startup. Remove duplicate downstream classification/retry assertions covered by src/infra/sqlite-worker-contract.test.ts ('keeps rollback nonterminal' and 'classifies canonical and impersonated unavailability') and src/agents/embedded-agent-runner/run/attempt-recovery.storage-outcomes.test.ts ('keeps typed storage terminal=...'). Preserve projected errorCode/errorType checks and recovery-copy assertions here.

Remove redundant construction counts and network fixture fields; src/agents/provider-request-config.test.ts ('keeps exchanged request auth aligned with visible headers and authored network policy') owns network policy retention. CI-only: oxfmt, plain oxlint and diff-check pass; no test or coverage runs.
Retain representative localized recall and reminder boundaries in escalation tables; remove synonymous replays. The oversized-request guard precedes query-mode selection, so its full-mode case covers the removed message/recent replays. Share circuit eviction setup while preserving refresh, threshold, cooldown, reset and identity assertions. Keep the spaced-timeout regressions from #181297.
Merge footer geometry into the installed reader's responsive sizing and scroll lifecycle. Keep both narrow and desktop paths, chrome parity, resize recovery, and Escape dismissal. Credential input presence remains covered by view.test.tsx's nonblank credential replacement test; footer placement is also asserted there and by the missing-alternative installer test.

Reuse createSkillsData defaults without changing legacy fixture aliases, and share error-read and prototype-restoration boilerplate. CI-only validation: oxfmt, diff-check, and plain oxlint passed; no test or build commands run.
Consolidate focus URL construction and parsing in round-trip rows while retaining explicit malformed-input, mounted-base, trailing-slash, and control-selector assertions. Keep literal session parsing in its existing owner table and share compact expected-result fixtures.

Static preservation: focus round-trips retain browser host/node, desktop source/session/control precedence, terminal, and dashboard query/hash behavior. Session parser rows retain forced literals, dot escaping, reserved boot, and mounted multi-segment keys. No production or test-support changes; no runtime tests under the campaign CI-only policy.
Move retained parse.test.ts cases into index.test.ts under the same package Vitest routing. Share URL fixtures and builder helpers, put configured-main and invalid-share cases in their owner tables, and trim focus fixtures while preserving escaping and selector assertions.

The retained round-trips exact key cases cover the removed bare-slug and forced-literal parser duplicates. The retained focus parses mounted dashboard case covers shared trailing-slash normalization. No production changes or test runs; plain oxlint, formatting and diff checks pass. Original shard: 432 lines; final: 342 lines (-20.8%).
Flatten schtasks executor cases and compact their fixtures and assertions. Keep malformed and out-of-range HRESULT, termination, environment isolation, timeout, fallback, and cleanup-uncertainty contracts.

The retained confirmed native HRESULT case covers the same parser branch as the removed second numeric error code. Keep all startup recovery and platform backup mocks unchanged; they protect distinct lifecycle and native isolation boundaries. Static oxlint and formatting checks pass; runtime proof is deferred to hosted CI under campaign CI-only mode.
Share export-preserving native mock factories and remove unreachable LaunchAgent port-probe and cleanup mocks: the fixture fixes its context port to null. Keep Windows port inspection, which bounded takeover still uses.

Consolidate successful, timed-out and signaled schtasks outcomes with exact result, timeout and environment checks. The retained timeout HRESULT case covers the same non-exit rejection guard as the removed signal variant. Remove redundant defined assertions; the retained recycled-PID and successful-stop cases still require the captured owner.

Join child cleanup while retaining the holder exit handler as the lock-release owner. CI-only: formatting, diff-check and plain oxlint pass; no test/build commands run. Original shard 322 lines to 257 (20.2% reduction).
Share credential fixtures and table-driven redaction assertions while retaining malformed, opaque, encoded, and safe URL contracts. Consolidate IP classification assertions.

Remove repeated RFC8215 address layouts: classifies private/internal IPv6 addresses retains blocking, and extracts embedded IPv4 without guessing local-use NAT64 retains undefined extraction. Both exercise the same 64:ff9b:1::/48 prefix guard.
Share recording replies and package manifest fixtures; remove unused driver fixture fields and options. The installed SDK import-conditions test retains the successful artifact verification covered by the removed synthetic acceptance case on Linux and Windows. Preserve all recording redaction, replay escape, shutdown ordering, and artifact failure assertions.
Reuse the existing test-finished mock cleanup, remove the unused capture override, and project minimal fixture state. Seed the replay trajectory after starting the recording instead of through an extra mock callback. Preserve all remaining cases and assertions.
Consolidate queue summary preview, ordered elision, and UTF-16 truncation assertions around one fixture. Retain all protected/in-flight queue and debounce cases, and every concurrency interleaving.

Share directive stress assertions and trim table metadata without removing distinct parsing or whitespace cases. CI-only validation: plain oxlint, oxfmt, and diff-check; no tests or coverage run. Reduction remains below 20% because retained behaviors have no duplicate owner proof.
Move submitted-array mutation coverage into the bounded-worker ordering case. Preserve first-error identity, callback indexes, and continued completion in the context-isolation table, including nonthrowing hooks.

Share debounce setup across cancellation, requeue, and clock rollback. Table-drive directive stripping and trim fixture text while retaining whitespace, Unicode, and protected-queue assertions.

Cumulative shard size: 429 to 343 lines. CI-only: oxfmt, plain oxlint, and git diff --check pass; no tests or coverage run.
@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review blocked

Automated review did not run, so no review verdict was produced.

Reason: The input-safety check rejected material in this revision. No detected value, path, or scanner output is reproduced here.

Automatic review is on hold, including after source changes. Request a fresh re-review after resolving the failure; maintainers can also release the hold through an intentional scanner-policy update.

Next step: If this is a genuine credential, remove and rotate it. If it is an intentional test fixture, a maintainer must review and qualify it.

View the workflow run.

@steipete
steipete enabled auto-merge (squash) October 26, 2026 19:24
@openclaw-barnacle openclaw-barnacle Bot added channel: mattermost Channel integration: mattermost app: web-ui App: web-ui gateway Gateway runtime cli CLI command changes agents Agent runtime and tooling channel: sms Channel integration: sms plugin: cua-computer extensions: active-memory extensions: browser labels Oct 26, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T19:46:39.375076Z 0207ba6 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete enabled auto-merge (squash) October 26, 2026 19:31
@steipete
steipete disabled auto-merge October 26, 2026 19:41
@steipete
steipete enabled auto-merge (squash) October 26, 2026 19:44
@steipete
steipete disabled auto-merge October 26, 2026 19:49
@steipete
steipete enabled auto-merge (squash) October 26, 2026 19:52
@steipete steipete changed the title test: remove low-value tests (batch d623) test(core,plugins,ui): remove low-value tests (batch d623) Oct 26, 2026
@steipete
steipete merged commit a3d1da3 into main Oct 26, 2026
144 of 146 checks passed
@steipete
steipete deleted the tcr/land-d623-1793042466 branch October 26, 2026 20:06
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 27, 2026
…184944)

* test(sms): consolidate o0520 owner proof and fixtures

Keep SMS named-account and agent-fallback cap enforcement, exact-cap acceptance, the GIF transport ceiling, and per-attachment inbound budgeting. Account default selection and inherited merging remain covered by account-helpers.test.ts (normalizes account enumeration and configured default selection; merges nested fields without selection metadata or input mutation).

Remove the hosted handler replay: media.test.ts retains hosts repeat GET/HEAD fetches on the exact webhook path and serves each media type with Twilio's required filename. Preserve fixture defaults, fresh arrays, raw form signing bytes, and account isolation while removing return-only wrappers and duplicate account-id state.

* test(browser): deslop o0524 tests

Merge element command coverage into the batch registration suite and share its CLI harness. Keep malformed-input, modal replay, interruption, request construction, and timeout assertions. Consolidate stdin, symlink, and FIFO fixtures while retaining each input safety path, including the FIFO fields regression from 565e237.

Static checks: oxlint, oxfmt, git diff --check. Test LOC: 491 -> 392 (20.2% reduction). Runtime tests and coverage deferred to hosted CI under campaign CI-only mode.

* test(browser): deslop o0525 tests

Reuse configured background and relay reply helpers; share native frame fixtures and inline single-use blank commit setup. Preserve all six navigation authority and lifecycle cases.

* test(browser): consolidate o0525 navigation coverage

Remove discovery replay covered by tab-access-events.navigation.test.ts: discards a stale selected discovery snapshot of blank before return.

Remove reconnect replay covered by tab-document-provenance.test.ts: discards authority and queued events on connection before response; and background.relay-lifecycle.test.ts: detaches without waiting for old evaluation and never delivers its reply on a colliding new seq.

Child-frame provenance remains covered by does not mint provenance for a caller-constrained child frame; child-session routing by relay-command-handler.test.ts checks ordinary access around native child-session blank navigation. Retain forged authorization and unowned-tab denials here. Simplify native completion setup and retain both pending-destination rows.

* test(mattermost): deslop o0527 tests

Share setup and route fixtures while preserving credential and routing contracts. Remove the directory-group replay covered by the real-HTTP test 'preserves real public and private channel identities in outbound thread routes' in target-resolution.loopback.test.ts. CI-only validation: local oxlint, oxfmt, and diff checks; retain all distinct branches.

* test(cli): deslop o0523 tests

Consolidate model outcome assertions and ClawRouter fixtures; remove duplicated credential-case labels. Retain all local outcome, gateway status, image input, embedding recovery, and saved-account ownership cases.

* test(cli): remove redundant o0523 fixture layers

Keep successful image forwarding in capability-cli.test.ts: prepares local model content and instructions. Remove duplicate local success and cross-product diagnostic cases while retaining every error branch. Use real config snapshots and registered CLI routing for all six saved-account ownership cases, plus shared HTTP and auth-store fixtures.

* test(agents): deslop o0528 tests

Consolidate runtime classifications and assistant failure cases into tables; trim retry fixtures while preserving timing and truncation assertions.

Repeated Kimi ID pairing remains covered by embedded-agent-runner.openai-tool-id-preservation.test.ts (keeps repeated Kimi calls distinct while repairing the incomplete later turn). JSON thinking-signature replay rejection remains covered by failover/provider-structured-signals.test.ts (classifies replay-invalid carriers as terminal format failures).

CI-only shard: 430 -> 343 test lines; local oxlint, oxfmt and diff checks pass. Tests and coverage deferred to hosted CI.

* test(meetings): deslop o0529 tests

Share export fixtures and retain cancellation, retry, authority and layout assertions. Remove the keyboard replay covered by hub-tabs.test.ts (moves focus without activating routes), and the heuristic label assertion covered by transcript-library.e2e.test.ts. Keep meeting tab wiring and panel labels.

* test(meetings): consolidate o0529 pending operation coverage

Move pending tab navigation assertions into the export and summary retry cases. Keep stale selection results in the replacement-summary case and retain separate client and authorization fencing. HubTabs owns active-tab no-op behavior; meeting page cases retain navigation and the browser test retains panel labeling. Simplify export fixtures without changing production code.

* test(node-host): deslop o0526 tests

* test(node-host): consolidate o0526 boundary cases

Share the shell rejection table and retain one representative per redundant parser payload shape, including nested substitution. Keep native literal approval and every carrier guard.

Keep one worker-entry cleanup interleaving. Desktop preference variants remain in mac-worker-entry.test.ts (preserves profile and desktop preference); exit-code variants remain in one-shot-exit.test.ts. Remove internal invocation counts while retaining completion, release ordering, and bootstrap-failure assertions.

CI-only: plain oxlint, oxfmt and diff-check pass. No tests or coverage run. Cumulative shard LOC 328 -> 289; below the 20 percent target to preserve distinct security and lifecycle behavior.

* test(node-host): minimize o0526 boundary fixtures

Reduce the shard from its original 328 lines to 262. Minimize builtin rejection payloads while retaining every guard; consolidate quoted-literal inputs and retain bash as the representative of the non-sh POSIX rejection branch. Keep rawCommand for sh -lc parsing and preserve exact approved argv assertions.

Share the lifecycle no-exit assertion across cases and retain guaranteed gate release and entry settlement. Narrow the stream Gateway fixture to its only caller, portal-stream-command.test.ts; desktop-stream-command.test.ts only uses generic cleanup and streamParams. Preserve binary frame assertions, dual-stack fallback, and teardown.

CI-only validation: plain oxlint, oxfmt and git diff --check pass. No tests or coverage executed. No production changes or deleted files.

* test(ui): deslop o0531 tests

Reuse existing Logbook payload fixtures and consolidate repeated mounting, queries, and reopen steps. Keep all distinct action, refresh, pruning, eviction, and connection-retirement behavior.

The shared-keyframe readiness test covers the removed duplicate-reader case at the rendered boundary: both cards stay pending on one request and receive the same data URL. Preserve that regression from 746ff6c.

CI-only validation: oxfmt, plain oxlint, and git diff --check passed. Test lines 439 -> 350; declarations 10 -> 9; expanded cases 14 -> 13. No local tests or coverage run.

* test(llm): deslop o0530 tests

Share synchronous stream failure setup and trim fixture bookkeeping. Keep all 13 expanded cases and all auth, sentinel rejection, null-header and storage-outcome boundaries.

Remove duplicate built-in registry checks: packages/ai/src/transports/simple-completion-transport.test.ts covers them in 'aliases a provider-owned stream while preserving its null auth-header marker'. Keep direct Responses default replay proof using encrypted reasoning; the shared converter test 'omits Responses replay item ids when requested by store-disabled callers' retains text and tool-call conversion assertions.

CI-only validation: plain oxlint, oxfmt and diff-check pass. Tests and coverage intentionally not run. Shard LOC 440 to 394 (10.5%); further reductions would discard distinct boundary proof, so this stops below the 20% target.

* test(llm): remove duplicate o0530 proof layers

Reduce the shard from 394 to 352 lines, reaching 20% below its original 440 lines. Keep all test declarations and distinct auth, sentinel, stream initialization, storage projection and user-facing recovery behavior.

Capture explicit bearer auth at fetch instead of replaying SSE. Successful completion remains covered by packages/ai/src/providers/openai-completions.test.ts, including 'surfaces aggregated chat-completions message.refusal as visible assistant text'.

Run shared stream error projection once per distinct error, retaining both entry points for deferred startup. Remove duplicate downstream classification/retry assertions covered by src/infra/sqlite-worker-contract.test.ts ('keeps rollback nonterminal' and 'classifies canonical and impersonated unavailability') and src/agents/embedded-agent-runner/run/attempt-recovery.storage-outcomes.test.ts ('keeps typed storage terminal=...'). Preserve projected errorCode/errorType checks and recovery-copy assertions here.

Remove redundant construction counts and network fixture fields; src/agents/provider-request-config.test.ts ('keeps exchanged request auth aligned with visible headers and authored network policy') owns network policy retention. CI-only: oxfmt, plain oxlint and diff-check pass; no test or coverage runs.

* test(active-memory): deslop o0533 tests

Retain representative localized recall and reminder boundaries in escalation tables; remove synonymous replays. The oversized-request guard precedes query-mode selection, so its full-mode case covers the removed message/recent replays. Share circuit eviction setup while preserving refresh, threshold, cooldown, reset and identity assertions. Keep the spaced-timeout regressions from openclaw#181297.

* test(ui): consolidate o0532 reader shell coverage

Merge footer geometry into the installed reader's responsive sizing and scroll lifecycle. Keep both narrow and desktop paths, chrome parity, resize recovery, and Escape dismissal. Credential input presence remains covered by view.test.tsx's nonblank credential replacement test; footer placement is also asserted there and by the missing-alternative installer test.

Reuse createSkillsData defaults without changing legacy fixture aliases, and share error-read and prototype-restoration boilerplate. CI-only validation: oxfmt, diff-check, and plain oxlint passed; no test or build commands run.

* test(session-url-contract): deslop o0534 tests

Consolidate focus URL construction and parsing in round-trip rows while retaining explicit malformed-input, mounted-base, trailing-slash, and control-selector assertions. Keep literal session parsing in its existing owner table and share compact expected-result fixtures.

Static preservation: focus round-trips retain browser host/node, desktop source/session/control precedence, terminal, and dashboard query/hash behavior. Session parser rows retain forced literals, dot escaping, reserved boot, and mounted multi-segment keys. No production or test-support changes; no runtime tests under the campaign CI-only policy.

* test(session-url-contract): consolidate o0534 URL suite

Move retained parse.test.ts cases into index.test.ts under the same package Vitest routing. Share URL fixtures and builder helpers, put configured-main and invalid-share cases in their owner tables, and trim focus fixtures while preserving escaping and selector assertions.

The retained round-trips exact key cases cover the removed bare-slug and forced-literal parser duplicates. The retained focus parses mounted dashboard case covers shared trailing-slash normalization. No production changes or test runs; plain oxlint, formatting and diff checks pass. Original shard: 432 lines; final: 342 lines (-20.8%).

* test(daemon): deslop o0535 tests

Flatten schtasks executor cases and compact their fixtures and assertions. Keep malformed and out-of-range HRESULT, termination, environment isolation, timeout, fallback, and cleanup-uncertainty contracts.

The retained confirmed native HRESULT case covers the same parser branch as the removed second numeric error code. Keep all startup recovery and platform backup mocks unchanged; they protect distinct lifecycle and native isolation boundaries. Static oxlint and formatting checks pass; runtime proof is deferred to hosted CI under campaign CI-only mode.

* test(daemon): consolidate o0535 fixtures and outcomes

Share export-preserving native mock factories and remove unreachable LaunchAgent port-probe and cleanup mocks: the fixture fixes its context port to null. Keep Windows port inspection, which bounded takeover still uses.

Consolidate successful, timed-out and signaled schtasks outcomes with exact result, timeout and environment checks. The retained timeout HRESULT case covers the same non-exit rejection guard as the removed signal variant. Remove redundant defined assertions; the retained recycled-PID and successful-stop cases still require the captured owner.

Join child cleanup while retaining the holder exit handler as the lock-release owner. CI-only: formatting, diff-check and plain oxlint pass; no test/build commands run. Original shard 322 lines to 257 (20.2% reduction).

* test(net-policy): deslop o0538 tests

Share credential fixtures and table-driven redaction assertions while retaining malformed, opaque, encoded, and safe URL contracts. Consolidate IP classification assertions.

Remove repeated RFC8215 address layouts: classifies private/internal IPv6 addresses retains blocking, and extracts embedded IPv4 without guessing local-use NAT64 retains undefined extraction. Both exercise the same 64:ff9b:1::/48 prefix guard.

* test(cua-computer): deslop o0537 tests

* test(cua-computer): consolidate o0537 fixtures

Share recording replies and package manifest fixtures; remove unused driver fixture fields and options. The installed SDK import-conditions test retains the successful artifact verification covered by the removed synthetic acceptance case on Linux and Windows. Preserve all recording redaction, replay escape, shutdown ordering, and artifact failure assertions.

* test(cua-computer): trim o0537 fixture plumbing

Reuse the existing test-finished mock cleanup, remove the unused capture override, and project minimal fixture state. Seed the replay trajectory after starting the recording instead of through an extra mock callback. Preserve all remaining cases and assertions.

* test(utils): deslop o0539 tests

Consolidate queue summary preview, ordered elision, and UTF-16 truncation assertions around one fixture. Retain all protected/in-flight queue and debounce cases, and every concurrency interleaving.

Share directive stress assertions and trim table metadata without removing distinct parsing or whitespace cases. CI-only validation: plain oxlint, oxfmt, and diff-check; no tests or coverage run. Reduction remains below 20% because retained behaviors have no duplicate owner proof.

* test(utils): consolidate o0539 owner scenarios

Move submitted-array mutation coverage into the bounded-worker ordering case. Preserve first-error identity, callback indexes, and continued completion in the context-isolation table, including nonthrowing hooks.

Share debounce setup across cancellation, requeue, and clock rollback. Table-drive directive stripping and trim fixture text while retaining whitespace, Unicode, and protected-queue assertions.

Cumulative shard size: 429 to 343 lines. CI-only: oxfmt, plain oxlint, and git diff --check pass; no tests or coverage run.

* test(node-host): preserve partial denial matching after replay

* test(net-policy): preserve security vectors and bind table arguments

* test: repair d623 fixture types and shrink mock baseline

* test(cli): infer embedding fixture inputs from the provider contract
fransqaas added a commit to fransqaas/openclaw that referenced this pull request Nov 27, 2026
… the turn starts

Main now checks authority one time, when work starts (openclaw#204249). Drop the
live consent callback (`admit`) from the shared Decision runtime and the
consumer's mid-request rereads: the hook admits the turn with its config and
a change applies to the next turn. `src/decisions` and the SDK capability
docs are back to main.

Tests: drop the mid-run withdrawal cases, the batch-shape test ClawSweeper
flagged, the Russian integration case main removed in openclaw#184944, and unit
cases already covered by the hook integration tests. Add a Chinese resume
request from openclaw#151178 that the built-in matcher misses.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui channel: mattermost Channel integration: mattermost channel: sms Channel integration: sms cli CLI command changes extensions: active-memory extensions: browser gateway Gateway runtime plugin: cua-computer size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant