Skip to content

test(browser,channels,runtime): remove low-value tests (batch d539) - #183633

Merged
steipete merged 31 commits into
mainfrom
tcr/land-d539-1792936427
Oct 25, 2026
Merged

steipete merged 31 commits into
mainfrom
tcr/land-d539-1792936427

Conversation

@steipete

@steipete steipete commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Redundant test layers and repeated fixtures make the suite harder to maintain. This batch consolidates duplicate proof while retaining the current owners of distinct behavior.

User Impact

No production behavior, public API, configuration, or dependency changes. Test-only maintenance; no migration or user action required.

Why This Change Was Made

Replay batch d539 onto main, then rebase onto pinned main f27b11a after GitHub reported a conflict. Applied 29 of 30 source commits in order, preserving their messages. Skipped 819ad603258cee67b2d7ff54e09741a107f75491 because all its target files overlap newer Copilot authority and fixture proof. Retained independent hunks from other commits; did not reinstate older fixture layouts.

The reductions remove repeated setup, mock-call inventories, and duplicate owner replays; they retain lifecycle, authorization, cancellation, privacy, and persistence proof. No production files or test files are deleted.

Evidence

  • pnpm install --frozen-lockfile --prefer-offline: passed.
  • node_modules/.bin/oxfmt --write <67 changed files>: exit 0; no additional changes.
  • node_modules/.bin/oxlint -c .oxlintrc.json <67 changed TS/TSX files>: exit 0.
  • git diff --check 643dbc274d78ac4fa0754949711287c8c19cc640: passed.
  • Per operator CI-only instruction, no local tests, coverage, typecheck, check-changed, or Testbox runs. Required openclaw/ci-gate is the runtime/type proof. No measured runtime speedup or coverage-delta claim.
  • Independent review completed; addressed 13 findings with conservative restorations and rejected 3 with source evidence. Auto-merge is pinned to the submitted head.
  • LOC split from git diff --numstat: production +0/−0; tests +2532/−4832; test support +174/−255. Ratchet metadata +0/−2. Total +2706/−5089, net −2383.
  • No changed path matches the current CODEOWNERS rules.

Per-shard replay metrics

Counts cover only files changed by this replay, relative to the pinned main. Declaration counts are lexical it/test call-site counts (not expanded cases or execution counts). The source result reports for every shard explicitly say tests/coverage were not run under CI-only mode; there is no coverage totals line to quote.

Shard Changed files Test/support LOC Declarations Source report coverage
s0432 5 1426 → 1202 (-224) 40 → 32 Not run (CI-only)
s0433 4 1130 → 993 (-137) 18 → 15 Not run (CI-only)
s0434 6 1722 → 1544 (-178) 43 → 40 Not run (CI-only)
s0435 2 516 → 443 (-73) 11 → 10 Not run (CI-only)
s0436 7 2747 → 2431 (-316) 71 → 63 Not run (CI-only)
s0437 8 2710 → 2316 (-394) 73 → 66 Not run (CI-only)
s0438 5 1419 → 1331 (-88) 35 → 30 Not run (CI-only)
s0439 6 1696 → 1412 (-284) 65 → 60 Not run (CI-only)
s0440 8 2279 → 2173 (-106) 45 → 43 Not run (CI-only)
s0441 2 1144 → 993 (-151) 18 → 17 Not run (CI-only)
s0442 6 1758 → 1536 (-222) 39 → 27 Not run (CI-only)
s0443 5 1388 → 1222 (-166) 39 → 32 Not run (CI-only)
s0444 3 1317 → 1275 (-42) 39 → 38 Not run (CI-only)
Files by shard

s0432

  • extensions/mattermost/src/mattermost/monitor-model-picker.test.ts
  • extensions/mattermost/src/mattermost/reply-delivery.test.ts
  • extensions/mattermost/src/mattermost/slash-commands.test.ts
  • extensions/mattermost/src/mattermost/slash-http.test.ts
  • extensions/mattermost/src/mattermost/target-resolution.test.ts

s0433

  • extensions/browser/src/browser/chrome-mcp.chromium.test.ts
  • extensions/browser/src/browser/chrome-mcp.cleanup.test.ts
  • extensions/browser/src/browser/pw-download-capture.test.ts
  • extensions/browser/src/browser/server-context.list-profiles.test.ts

s0434

  • src/gateway/chat-display-projection.visibility.test.ts
  • src/gateway/client-bootstrap.test.ts
  • src/gateway/control-ui-plugin-tabs.test.ts
  • src/gateway/http-common.test.ts
  • src/gateway/server.incomplete-stream.test.ts
  • src/gateway/server.subagent-prompt-recent.gateway.test-support.ts

s0435

  • src/cli/daemon-cli/lifecycle-core.config-guard.test.ts
  • src/cli/daemon-cli/probe.reachability.test.ts

s0436

  • extensions/browser/src/browser/routes/agent.act.dashboard-ownership.test.ts
  • extensions/browser/src/browser/routes/agent.screencast.test.ts
  • extensions/browser/src/browser/routes/agent.snapshot.scoped.chromium.test.ts
  • extensions/browser/src/browser/routes/agent.storage.device.test.ts
  • extensions/browser/src/browser/routes/basic.existing-session.test.ts
  • extensions/browser/src/browser/routes/permissions.test.ts
  • extensions/browser/src/browser/routes/tabs.test.ts

s0437

  • extensions/nextcloud-talk/src/accounts.test.ts
  • extensions/nextcloud-talk/src/inbound-media.test.ts
  • extensions/nextcloud-talk/src/inbound.authz.test.ts
  • extensions/nextcloud-talk/src/inbound.room-info-retry.test.ts
  • extensions/nextcloud-talk/src/monitor-runtime.abort.test.ts
  • extensions/nextcloud-talk/src/monitor.replay.test.ts
  • extensions/nextcloud-talk/src/room-info.test.ts
  • extensions/nextcloud-talk/src/webhook-spool.test.ts

s0438

  • src/plugins/management-service.lifecycle-cache.test.ts
  • src/plugins/manifest-contract-eligibility.test.ts
  • src/plugins/memory-state.test.ts
  • src/plugins/update.work-deadline.test.ts
  • src/plugins/wired-hooks-compaction.test.ts

s0439

  • src/infra/agent-run-delegated-authority.test.ts
  • src/infra/clawhub-client.test.ts
  • src/infra/exec-approval-reply.test.ts
  • src/infra/git-commit.test.ts
  • src/infra/node-compile-cache.test.ts
  • src/infra/ports-format.test.ts

s0440

  • extensions/feishu/src/bot.bot-threads.test.ts
  • extensions/feishu/src/bot.broadcast.test.ts
  • extensions/feishu/src/dm-delivery-loopback.test.ts
  • extensions/feishu/src/dynamic-agent.test.ts
  • extensions/feishu/src/message-content-loopback.test.ts
  • extensions/feishu/src/monitor.startup.test.ts
  • extensions/feishu/src/monitor.webhook-routing.test.ts
  • extensions/feishu/src/setup-surface.test.ts

s0441

  • ui/src/plugins/control-ui-runtime.test.ts
  • ui/src/plugins/control-ui-session-summary.test.ts

s0442

  • src/commands/doctor/shared/channel-plugin-blockers.test.ts
  • src/commands/doctor/shared/context-engine-host-compat.test.ts
  • src/commands/doctor/shared/legacy-config-account-promotion.test.ts
  • src/commands/doctor/shared/legacy-config-migrate.provider-shapes.test.ts
  • src/commands/doctor/shared/legacy-runtime-session-migration.test.ts
  • src/commands/doctor/shared/post-core-plugin-convergence.source-checkout.test.ts

s0443

  • src/agents/agent-settings.test.ts
  • src/agents/code-mode.failure-phase.test.ts
  • src/agents/embedded-agent-runner.run-embedded-agent.finalization-scope.test.ts
  • src/agents/models-config.providers.normalize-keys.test.ts
  • src/agents/plugin-native-subagent.list.test-support.ts

s0444

  • extensions/copilot/src/attempt-session.integration.test.ts
  • extensions/copilot/src/event-bridge.test.ts
  • extensions/copilot/src/runtime.test.ts
Conflict decisions

Kept current-head versions of the following conflicted files (all corresponding hunks dropped). Main has different or newer fixture/owner proof; overlapping reductions are not a reason to restore retired scaffolding. Earlier successfully applied changes to a file remain intact. In particular, main already split the duplicate restart-health suites; its current ownership tests remain unchanged.

  • extensions/browser/src/browser/chrome.launch-early-exit.test.ts
  • extensions/browser/src/browser/client.test.ts
  • extensions/browser/src/browser/control-auth.auto-token.test.ts
  • src/cli/daemon-cli/restart-health.test.ts
  • src/gateway/managed-image-record-store.test.ts
  • src/gateway/mcp-app-standalone-cancellation.test.ts
  • src/gateway/operator-run-recovery.requester.test.ts
  • src/gateway/server.shared-auth-rotation.test.ts
  • extensions/mattermost/src/mattermost/directory.test.ts
  • extensions/mattermost/src/mattermost/monitor.test.ts
  • extensions/mattermost/src/mattermost/monitor-draft-delivery.test.ts
  • extensions/mattermost/src/mattermost/monitor-resources.test.ts
  • src/plugins/provider-replay-helpers.test.ts
  • src/plugins/install-record-commit.sqlite.test.ts
  • src/plugins/public-surface-runtime.test.ts
  • src/plugins/runtime-context.test.ts
  • src/plugins/update-npm-metadata.test-support.ts
  • src/infra/windows-gateway-firewall-diagnostics.test.ts
  • src/infra/delivery-queue-health.test.ts
  • src/infra/provider-usage.auth.plugin.test.ts
  • src/infra/windows-diagnostic-env.test.ts
  • extensions/feishu/src/comment-handler.test.ts
  • ui/src/plugins/control-ui-contributions.test.ts
  • ui/src/plugins/control-ui-host.test.ts
  • ui/src/plugins/control-ui-view.test.tsx
  • src/agents/agent-settings.test.ts
  • src/agents/model-selection.plugin-runtime.test.ts
  • src/agents/live-model-switch.test.ts
  • extensions/copilot/src/provider-bridge.test.ts
  • extensions/copilot/src/attempt-active-run.test.ts
  • extensions/copilot/src/event-bridge.test.ts
  • extensions/copilot/src/tool-bridge.test.ts
  • src/commands/doctor/shared/channel-doctor.test.ts
  • src/commands/doctor/shared/config-flow-steps.test.ts

Nonconflicting hunks were retained except the conservative review restorations below. The wholly skipped Copilot commit is listed above. The mock-export baseline shrinks by the two exact stale Feishu entries identified by CI; no baseline allowance is increased.

Independent review follow-up

The first review identified 15 possible coverage regressions. Restored these 13 files to the pinned main version, including their distinct authorization, durable ingress, cleanup, byte-preservation, migration, and session-scope assertions:

  • src/gateway/server.avatar-generation-e2e.test.ts
  • extensions/mattermost/src/mattermost/monitor-ingress.test.ts
  • extensions/browser/src/browser/extension-native-host.test.ts
  • extensions/browser/src/browser/pw-tools-core.interactions.batch.test.ts
  • extensions/nextcloud-talk/src/inbound.behavior.test.ts
  • extensions/mattermost/src/mattermost/slash-state.test.ts
  • src/agents/apply-patch-context-bytes.test.ts
  • extensions/nextcloud-talk/src/send.fetch-timeout.test.ts
  • src/commands/doctor/shared/missing-configured-plugin-install.version-drift.test.ts
  • src/commands/doctor/shared/provider-rename.test.ts
  • src/infra/update-managed-service-handoff-campaign.test-support.ts
  • src/plugins/status-dependencies-core.test.ts
  • ui/src/plugins/control-ui-dashboard.test.ts

Two findings rejected after source verification: credential-bearing input and redacted listProfiles() output are already tested in extensions/browser/src/browser/server-context.existing-session.test.ts (126–144); real plugins.changed descriptor/capability refresh, generation publication, and same-connection behavior remain in ui/src/app/gateway-store.plugins.test.ts (48–88, with stale-response checks at 90–115). Final staged candidate was independently re-reviewed; its only reported finding was rejected because the deadline scenario matrix never selects stall-metadata and fixture.mode is only first-metadata-miss or empty. No test assertions were weakened to address a failure.

CI repairs and final rebase

The initial run 40200299966 exposed batch-caused errors. Repaired optional trailing tuple callback arguments in agent settings and client bootstrap; restored the cookie GET boundary invocation and its I/O mock; documented Feishu mock isolation. Restored agent.snapshot.local-managed.test.ts and default-agent-role-materialization.write.test.ts to main instead of carrying outdated fixture/expectation rewrites. The earlier review restorations also remove the failing apply-patch and dependency-status rewrites. No local tests/typechecks were run and no failed assertion was weakened to force green.

The rebase retained main's new session-summary subscription-lifetime assertions and dropped the conflicting final fixture-consolidation hunk. Only two earlier redundant assertions remain removed in that file. Re-ran oxfmt, plain oxlint, and diff-check successfully on the rebased tree. Hosted CI must verify this new head.

The second run 40201537931 exposed two remaining lint/ratchet failures: a Symbol sentinel in the Mattermost auth fixture and the exact stale Feishu baseline rows. The sentinel is now a unique Error (identity checks unchanged), and the two baseline rows are removed. Focused independent review returned no actionable findings. Local plain oxlint, oxfmt and diff-check passed; the final pushed head still requires fresh hosted CI.

@clawsweeper

clawsweeper Bot commented Oct 25, 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 25, 2026 14:01
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 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-25T14:22:07.232499Z cc2d488 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.

@openclaw-barnacle openclaw-barnacle Bot added channel: mattermost Channel integration: mattermost channel: nextcloud-talk Channel integration: nextcloud-talk app: web-ui App: web-ui gateway Gateway runtime cli CLI command changes commands Command implementations agents Agent runtime and tooling channel: feishu Channel integration: feishu extensions: copilot extensions: browser size: XL labels Oct 25, 2026
@steipete
steipete disabled auto-merge October 25, 2026 14:06
Keep exact-child cleanup proof in chrome.internal.test.ts, unauthorized native relay proof in extension-install.native-host.e2e.test.ts, and profile URL redaction in server-context.existing-session.test.ts. Test-mode auth generation remains covered by control-auth.test.ts. Client JSON decoding stays covered at the client-fetch auth transport boundary.

Share download commit-boundary fixtures, consolidate equivalent nested-error and snapshot-option cases, and remove mock-generated payload checks and internal state inventories. CI-only: formatting, plain oxlint and diff checks; no test runs.
Unify download interruption stages, reuse session cleanup and snapshot traversal, and remove unreachable launch timer/endpoint mocks. The retained delayed-stderr case covers nonzero exit; zero and signal cases retain immediate-exit paths. Preserve real process, browser, publication and security assertions.

CI-only validation: plain oxlint, formatting and diff checks; no test runs. Shard now 2395 lines from original 2784; 25 percent reduction target remains unmet.
Remove the duplicate probe and managed-wait suites from restart-health.test.ts. Their assertions remain in restart-health-probe.test.ts and restart-health-wait.test.ts, including redaction, policy rejection, identity mismatch, migration, platform and cancellation cases. Keep the base ownership regressions.

Share socket fixtures and config-guard setup without removing their distinct cases. Static case count: 150 to 119; test LOC: 3451 to 2639 (23.5% reduction). Preserve the remaining auth, authority, deadline and lifecycle-ordering cases rather than force the 25% line target.

CI-only validation: plain oxlint, oxfmt and git diff --check passed. No tests, coverage, Testbox, builds or typechecks run.
Consolidate plugin route fixtures and reuse loopback provider helpers. Remove the incomplete-stream diagnostic payload dump; preserve every scenario and assertion. CI-only validation: plain oxlint, oxfmt, and diff-check. Shard reduction is 60 of 3181 lines (1.9%), below the requested 25%; no distinct boundary coverage was traded for the target.
Keep auth provenance at the unmocked client-bootstrap.auth boundary. Retain MCP disconnect proof and the successful HTTP lifetime keeper, consolidate tab projection setup, and drop wording-only exec replay. Subagent prompt delivery consumes registry completion receipts; remove unused child transcript seeding. Keep independent durability, auth, revocation and ordering checks.

CI-only: plain oxlint, oxfmt and diff-check passed. Original shard 3181 lines to 2924 (8.1% reduction); below the requested 25%, with no defensible whole-file retirement found.
Keep authenticated provider I/O and in-flight device revocation in the avatar E2E test. Read-only rejection remains covered by server/ws-connection/agents-avatar.dispatch.test.ts: rejects avatar generation from a read-only WebSocket operator before invoking the method. Route-preparation revocation remains covered by server-methods/agents-avatar.authority.test.ts: does not dispatch to the provider after device authority is revoked during route preparation.

CI-only: plain oxlint, oxfmt, and diff-check passed; no tests run. This removes the E2E-only route gate and duplicate setups without deleting the live-provider revocation boundary.
Reuse the existing fetch fixture, consolidate slash request setup and exact log assertions, and table-drive equivalent credential capacity and ambiguous-account checks. Retain all expanded cases and security/lifecycle assertions. The shard is already largely distinct owner-boundary proof; this bounded pass does not meet the 25% LOC target.
Keep allowlist normalization, sender matching, drop logs, and direct command authorization in monitor-auth.test.ts. Keep empty reply diagnostics in no-visible-reply-diagnostic.test.ts and required slash fields at the real slash-state HTTP boundary.

Queue isolation/recovery, deferred lane release, admission FIFO/retries, and stop/prune races remain covered by ingress-queue.test.ts, ingress-drain.test.ts and ingress-monitor admission/restart tests. Mattermost merged-source failure classification remains at monitor.ingress-debounce.test-support.ts: settles every merged source once after failure. The real slash-http.boundary suite owns credential pool capacity.

Shared cache expiry and map bounds remain in stale-while-revalidate-cache.test.ts and map-size.test.ts; public/private target classification remains in target-resolution.loopback.test.ts. Retain credential/server cache-key isolation and warm-cache proof here.

Presentation rendering and typed-action redaction remain at channel.test.ts and shared interactive tests. Preserve first-chunk controls, provider-finalized content, media scopes, partial receipts and TTS-specific paths. Generic preview custody/finalization-hook failure remains in live-lifecycle.test.ts and lifecycle.test.ts.

Observe token authentication through its explicit callback rather than an unrelated runtime initialization error. CI-only: no tests or coverage run; plain oxlint, oxfmt and diff checks pass. Cumulative shard LOC: 3329 to 2643 (-20.6%), below the 25% target; remaining distinct proof retained.
Consolidate quoted reply targeting into the native automatic upload cases and numeric file-size admission into the durable file recovery row. Retain string-size parsing in voice recovery, and all distinct auth, credential, replay, and lifecycle assertions.

Factor local lookup, quote, and lifecycle fixtures; remove the ingress-monitor wiring spy while retaining the durable recovery proof (shared scheduling owner: src/channels/message/ingress-monitor.admission.test.ts). CI-only: formatting, plain oxlint, and diff checks passed; no test or coverage runs. LOC 3591 to 3393, below the 25 percent target because distinct boundary cases remain.
Remove shared visibility-mode replays covered by security/context-visibility.test.ts; keep provider access-group quote filtering. Move ordered bot-link assertions into retained partial-delivery cases. Native caption/byte delivery remains covered by outbound-media.test.ts.

Keep canonical UID escaping, credential, SSRF, history query and response-release assertions in the recipient-collision media table. Room credential resolution and early response release remain covered by accounts.test.ts and guarded-response.test.ts. Drop the implementation-coupled stalled-body timer spy: http-body.response.test.ts owns idle cancellation, while the real oversized-body cases retain the plugin fail-closed redaction branch.

Retain auth, durability, plugin lifecycle wiring, and live HTTP timeout assertions. Compact fixtures and remove redundant configuration variants/internal metadata assertions. CI-only: oxfmt, plain oxlint and diff checks passed; no tests or coverage run. Shard LOC 3393 to 3009, cumulative 3591 to 3009; below 25 percent target.
Share replay and deadline fixture data, remove the unreachable metadata-stall fixture mode, and simplify direct mock forwarding. Preserve all 78 declarations and 163 expanded cases, including lifecycle, consent, durability and public boundary assertions.
Remove the retained-install suite duplicated in install-record-commit.retention.test.ts, which runs in the same database-worker project. Keep consent and concurrent config rollback tests here.

Public-surface-generation.test.ts retains captured graph and native dist proof; public-surface-loader.test.ts retains missing artifacts. Keep a focused nested-source precedence check here. Moonshot index.test.ts retains the duplicate tool-call-ID policy at provider registration. Transcript-policy.test.ts retains direct and canonical Anthropic prefix-policy proof.

Consolidate compaction end decisions without dropping their outcome, retry, hook, wait or accounting assertions. Reuse metadata fixtures and reduce same-branch path, model and policy variants. Original shard: 2998 to 2514 lines, 78 to 67 declarations, 163 to 139 expanded cases. Static lint, format and diff checks only, per CI-only instructions.
Remove mocked automatic-transfer replay already covered by update-startup-campaign-run tests for rejected transfer persistence and by update-managed-service-handoff-lifecycle preserves Gateway refusal during cancellation settlement.

Keep Git reader contracts in git-root tests for bounded short reads, exact packed refs, and native linked layouts; keep eviction in LruCache evicts the least recently used entry. SQLite store and read-only worker compile-cache tests retain real enabled startup and later flush proof; keep disabled cache proof here.

Consolidate listener and approval formatting cases, preserve authority and credential boundaries, and remove diagnostic call-shape inventories. Validation: plain oxlint, oxfmt, and git diff --check only under CI-only campaign instructions.
Reuse route fixtures and consolidate repeated authority assertions without deleting distinct behavior. Retain snapshot identity races, permission boundaries, cancellation, and Chromium error coverage; this already compact shard falls short of the line-reduction target.
Replace the scoped-ref race's HTTP/WebSocket proxy with a barrier around the real native CDP reply. Use the real agent route helper in managed snapshot tests instead of copying its dispatch and error mapping.

Consolidate validation and delta cases, trim transport-only call shapes and diagnostic object dumps. Keep route ambiguity mapping; target-id.test.ts retains raw-id/label collision rejection. doctor.test.ts retains extension version summary formatting.
Remove Map-backed storage assertions that only checked the test's own implementation. Preserve padded keys, values and normalized storage kind in the real dashboard state mutation test. Native reads remain covered by agent.content.chromium.test.ts (returns every native storage key), with whitespace semantics covered by normalization-core/string-coerce.test.ts.

Consolidate headless-start branches and replace the tab cancellation listener fixture with an explicit resolution barrier. Keep distinct authority, redaction, cancellation and native error behavior.
Share comment delivery and button fixtures, reuse runtime and reply-dispatcher test defaults, and consolidate equivalent lifecycle setup into separate table cases. Preserve all 84 expanded cases, including comment privacy/pairing and cleanup ordering, broadcast claim settlement, and current-policy thread admission.
Remove repeated chat/error routes and card transport cross-products while retaining each SDK branch. Drop request inventories enforced by the loopback server, internal call-shape assertions, and unused monitor scaffolding. Preserve account authority, privacy, partial-delivery receipts, and shutdown ordering. No test runs under campaign CI-only policy.
Remove duplicate surface recovery and context-retirement cases covered by control-ui-surface.test.tsx: keeps native defaults reactive through delegation and failure recovery; revokes deselected composer operations before rendering and retires replaced contexts.

Keep reload success and selection stability here; the manager suite preserves Reload action failure presentation. Consolidate runtime activation setup and repeated view assertions without dropping authority, lifecycle, or cursor proof. CI-only validation: plain oxlint, oxfmt, and diff check.
Move revision-publication assertions into the runtime event lifecycle case, merge action failure and retry proof, and remove duplicated manager and view assertions. Keep all distinct grants, revocation, target ownership, disposal, cursor, and privacy paths.

Roster refresh success is covered by agents/index.test.ts: reuses the current roster while preserving forced refresh and reconnect ownership; session-roster-refresh.test.ts: reuses conditional sidebar rows while accepting fresh facets and query replacements. Surface recovery and deselection are covered by control-ui-surface.test.tsx. Reload and retry are covered by control-ui-manager.solid.test.tsx.

CI-only static gates: oxfmt, plain oxlint and git diff --check passed. No test runs. Original shard 3388 lines becomes 3030; 25 percent target remains unmet because retained cases carry distinct boundary behavior.
Keep runtime activation, grants, event reactions and connection retirement at their owner. Remove the repeated GatewayStore descriptor-refresh layer covered by gateway-store.plugins.test.ts: refreshes plugin methods and surfaces on the existing connection. Successful registry completion remains in the concurrent activation case; empty completion remains in catalog recovery.

Consolidate pane-agent action scoping across header and composer, reuse navigation and view fixtures, remove dead fixture state and repeated internal assertions, and share summary request setup. Preserve identity, authority, disposal, cursor and privacy assertions.

CI-only: oxfmt, plain oxlint and diff checks pass; no tests run. Shard is 2859 lines from original 3388. The requested 25 percent cut remains unmet; further identified removals would drop distinct boundary proof.
Share patch envelopes and fixture setup, table overflow assertions, and reuse native-list expected rows. Preserve every original scenario and credential, custody, rollback, and no-op assertion. No production changes.

CI-only: formatting, diff check, and plain oxlint pass; no tests or coverage run. Shard LOC 3166 -> 2930 (7.5%); below 25% because remaining cases protect distinct authority, lifecycle, byte-preservation, and provider contracts.
Keep patch byte behavior in apply-patch-update.test.ts (preserves update bytes table) and sequential matching in apply-patch-ambiguous-hunk.test.ts (keeps sequential hunk searches after the prior match). Retain unique no-op, move, fuzzy-context and blank-line cases here.

Keep duplicate/absent cost proof in models-config.model-input-presence.test.ts (keeps one-step identities and exact source fields through repeated planning; uses authored duplicate partial costs through discovery and final catalog merging). Retain partial-cost tier preservation locally.

Remove same-branch compaction variants and internal setter/catalog/diagnostic call shapes. Preserve credential, replay, authority and finalization cases. CI-only: oxfmt, diff-check and plain oxlint passed; no test runs. Cumulative LOC 3166 to 2793 (11.8%), below target; no safe whole-file deletion found.
Remove resettable live-switch mocks used only by internal read/path call-shape assertions; preserve selection and queued-write behavior. Reduce catalog precedence fixtures to distinct model names rather than replaying metadata preservation fields.

Remove direct partial-cost replay: doctor-plugin-model-catalog.test.ts, repairs only partial retained costs and persists the repair across reopening, exercises the same normalizeModelCostForCatalog owner with tiers, missing rates and persistence. models-config.model-input-presence.test.ts retains catalog-planner cost integration.

CI-only: oxfmt, diff-check and plain oxlint pass; no tests run. Cumulative shard LOC 3166 to 2735 (13.6%), still below 25%; remaining distinct contracts not removed to satisfy a count.
Consolidate Windows case and separator normalization into the drive-root pool test. Preserve positive BYOK shape support assertions in the existing provider mapping cases, and share the event usage fixture.

Keep distinct authority, credential, transaction and lifecycle cases. CI-only shard: formatting, plain oxlint and diff checks passed; runtime tests and coverage were not run.
Keep before/after-send and pending-tool steering in one concurrent scenario. Journal hook metadata remains covered by keeps selected steering mentions only on unchanged committed text in attempt-transcript-journal.test.ts; preserve active-run provenance, display prompt, replay and rejection assertions.

Share preparation, owned/unowned rejection and returned-error conversion setup. Keep session transaction commit/rollback and cleanup proof while removing row-shape duplication covered by commits a hidden tool turn to SQLite in assistant request order in attempt-transcript-journal.test.ts. Replace stale steering helper imports with local fixture construction.

CI-only: plain oxlint, formatting and diff checks passed. No tests or coverage run. Original shard 3051 lines; now 2904, below the requested 25 percent reduction.
Share channel blocker scan fixtures while retaining each trust and activation path. Remove repeated provider-origin inputs with the same URL-origin branch.

The retained safe-row and locked-owner migration cases cover legacy binding migration, reopen, local identity, resume selection, preview, and idempotence; preserve exact binding assertions there.
Remove the stale ClawHub replay covered by missing-configured-plugin-install.availability.test.ts and update deferral covered by missing-configured-plugin-install.test.ts.

Keep migration exception isolation in setup-registry.test.ts and read-only engine nonactivation in registry-inspection-resources.test.ts. Keep source selection policy in dev-source-root.test.ts and manifest-registry.test.ts; retain real Doctor, CLI, and cohort import proof here.

Consolidate promotion and TTS fixtures, replace internal migration inventories with executable boundary assertions, and retain ownership, persisted-state, and lifecycle guards. CI-only: plain oxlint, formatting, and diff checks passed; no tests run.
@steipete
steipete force-pushed the tcr/land-d539-1792936427 branch from 987763e to cc2d488 Compare October 25, 2026 14:17
@steipete
steipete enabled auto-merge (squash) October 25, 2026 14:17
@steipete
steipete disabled auto-merge October 25, 2026 14:26
@steipete
steipete enabled auto-merge (squash) October 25, 2026 14:27
@steipete

Copy link
Copy Markdown
Contributor Author

The only failing test on head 5695bff09c6353d65bf144472fccc6034d3d26e3 is pre-existing on scheduled main CI:

The batch does not touch this test or src/infra/postgres-sync production code. Fresh main 53fe804a9cf080bbda7928101fbc4cfb836ad09c has no changes in that owner since this PR's base. All other current-head checks have completed without a failure; openclaw/ci-gate is red because of this same conformance failure.

Landing this exact head under the maintainer-authorized pre-existing-failure exception. The main failure is recorded for separate coordinator repair; it is not marked passing or hidden by a retry.

@steipete
steipete merged commit c9666f3 into main Oct 25, 2026
121 of 124 checks passed
@steipete
steipete deleted the tcr/land-d539-1792936427 branch October 25, 2026 14:54
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 26, 2026
…penclaw#183633)

* test(browser): remove redundant layers from s0433

Keep exact-child cleanup proof in chrome.internal.test.ts, unauthorized native relay proof in extension-install.native-host.e2e.test.ts, and profile URL redaction in server-context.existing-session.test.ts. Test-mode auth generation remains covered by control-auth.test.ts. Client JSON decoding stays covered at the client-fetch auth transport boundary.

Share download commit-boundary fixtures, consolidate equivalent nested-error and snapshot-option cases, and remove mock-generated payload checks and internal state inventories. CI-only: formatting, plain oxlint and diff checks; no test runs.

* test(browser): consolidate s0433 fixture layers

Unify download interruption stages, reuse session cleanup and snapshot traversal, and remove unreachable launch timer/endpoint mocks. The retained delayed-stderr case covers nonzero exit; zero and signal cases retain immediate-exit paths. Preserve real process, browser, publication and security assertions.

CI-only validation: plain oxlint, formatting and diff checks; no test runs. Shard now 2395 lines from original 2784; 25 percent reduction target remains unmet.

* test(daemon-cli): deslop s0435 tests

Remove the duplicate probe and managed-wait suites from restart-health.test.ts. Their assertions remain in restart-health-probe.test.ts and restart-health-wait.test.ts, including redaction, policy rejection, identity mismatch, migration, platform and cancellation cases. Keep the base ownership regressions.

Share socket fixtures and config-guard setup without removing their distinct cases. Static case count: 150 to 119; test LOC: 3451 to 2639 (23.5% reduction). Preserve the remaining auth, authority, deadline and lifecycle-ordering cases rather than force the 25% line target.

CI-only validation: plain oxlint, oxfmt and git diff --check passed. No tests, coverage, Testbox, builds or typechecks run.

* test(gateway): deslop s0434 tests

Consolidate plugin route fixtures and reuse loopback provider helpers. Remove the incomplete-stream diagnostic payload dump; preserve every scenario and assertion. CI-only validation: plain oxlint, oxfmt, and diff-check. Shard reduction is 60 of 3181 lines (1.9%), below the requested 25%; no distinct boundary coverage was traded for the target.

* test(gateway): consolidate s0434 fixtures and duplicate checks

Keep auth provenance at the unmocked client-bootstrap.auth boundary. Retain MCP disconnect proof and the successful HTTP lifetime keeper, consolidate tab projection setup, and drop wording-only exec replay. Subagent prompt delivery consumes registry completion receipts; remove unused child transcript seeding. Keep independent durability, auth, revocation and ordering checks.

CI-only: plain oxlint, oxfmt and diff-check passed. Original shard 3181 lines to 2924 (8.1% reduction); below the requested 25%, with no defensible whole-file retirement found.

* test(gateway): remove duplicate avatar authorization replays

Keep authenticated provider I/O and in-flight device revocation in the avatar E2E test. Read-only rejection remains covered by server/ws-connection/agents-avatar.dispatch.test.ts: rejects avatar generation from a read-only WebSocket operator before invoking the method. Route-preparation revocation remains covered by server-methods/agents-avatar.authority.test.ts: does not dispatch to the provider after device authority is revoked during route preparation.

CI-only: plain oxlint, oxfmt, and diff-check passed; no tests run. This removes the E2E-only route gate and duplicate setups without deleting the live-provider revocation boundary.

* test(mattermost): deslop s0432 tests

Reuse the existing fetch fixture, consolidate slash request setup and exact log assertions, and table-drive equivalent credential capacity and ambiguous-account checks. Retain all expanded cases and security/lifecycle assertions. The shard is already largely distinct owner-boundary proof; this bounded pass does not meet the 25% LOC target.

* test(mattermost): consolidate duplicate s0432 proof layers

Keep allowlist normalization, sender matching, drop logs, and direct command authorization in monitor-auth.test.ts. Keep empty reply diagnostics in no-visible-reply-diagnostic.test.ts and required slash fields at the real slash-state HTTP boundary.

Queue isolation/recovery, deferred lane release, admission FIFO/retries, and stop/prune races remain covered by ingress-queue.test.ts, ingress-drain.test.ts and ingress-monitor admission/restart tests. Mattermost merged-source failure classification remains at monitor.ingress-debounce.test-support.ts: settles every merged source once after failure. The real slash-http.boundary suite owns credential pool capacity.

Shared cache expiry and map bounds remain in stale-while-revalidate-cache.test.ts and map-size.test.ts; public/private target classification remains in target-resolution.loopback.test.ts. Retain credential/server cache-key isolation and warm-cache proof here.

Presentation rendering and typed-action redaction remain at channel.test.ts and shared interactive tests. Preserve first-chunk controls, provider-finalized content, media scopes, partial receipts and TTS-specific paths. Generic preview custody/finalization-hook failure remains in live-lifecycle.test.ts and lifecycle.test.ts.

Observe token authentication through its explicit callback rather than an unrelated runtime initialization error. CI-only: no tests or coverage run; plain oxlint, oxfmt and diff checks pass. Cumulative shard LOC: 3329 to 2643 (-20.6%), below the 25% target; remaining distinct proof retained.

* test(nextcloud-talk): deslop s0437 tests

Consolidate quoted reply targeting into the native automatic upload cases and numeric file-size admission into the durable file recovery row. Retain string-size parsing in voice recovery, and all distinct auth, credential, replay, and lifecycle assertions.

Factor local lookup, quote, and lifecycle fixtures; remove the ingress-monitor wiring spy while retaining the durable recovery proof (shared scheduling owner: src/channels/message/ingress-monitor.admission.test.ts). CI-only: formatting, plain oxlint, and diff checks passed; no test or coverage runs. LOC 3591 to 3393, below the 25 percent target because distinct boundary cases remain.

* test(nextcloud-talk): consolidate s0437 owner coverage

Remove shared visibility-mode replays covered by security/context-visibility.test.ts; keep provider access-group quote filtering. Move ordered bot-link assertions into retained partial-delivery cases. Native caption/byte delivery remains covered by outbound-media.test.ts.

Keep canonical UID escaping, credential, SSRF, history query and response-release assertions in the recipient-collision media table. Room credential resolution and early response release remain covered by accounts.test.ts and guarded-response.test.ts. Drop the implementation-coupled stalled-body timer spy: http-body.response.test.ts owns idle cancellation, while the real oversized-body cases retain the plugin fail-closed redaction branch.

Retain auth, durability, plugin lifecycle wiring, and live HTTP timeout assertions. Compact fixtures and remove redundant configuration variants/internal metadata assertions. CI-only: oxfmt, plain oxlint and diff checks passed; no tests or coverage run. Shard LOC 3393 to 3009, cumulative 3591 to 3009; below 25 percent target.

* test(plugins): deslop s0438 tests

Share replay and deadline fixture data, remove the unreachable metadata-stall fixture mode, and simplify direct mock forwarding. Preserve all 78 declarations and 163 expanded cases, including lifecycle, consent, durability and public boundary assertions.

* test(plugins): consolidate s0438 duplicate coverage

Remove the retained-install suite duplicated in install-record-commit.retention.test.ts, which runs in the same database-worker project. Keep consent and concurrent config rollback tests here.

Public-surface-generation.test.ts retains captured graph and native dist proof; public-surface-loader.test.ts retains missing artifacts. Keep a focused nested-source precedence check here. Moonshot index.test.ts retains the duplicate tool-call-ID policy at provider registration. Transcript-policy.test.ts retains direct and canonical Anthropic prefix-policy proof.

Consolidate compaction end decisions without dropping their outcome, retry, hook, wait or accounting assertions. Reuse metadata fixtures and reduce same-branch path, model and policy variants. Original shard: 2998 to 2514 lines, 78 to 67 declarations, 163 to 139 expanded cases. Static lint, format and diff checks only, per CI-only instructions.

* test(infra): deslop s0439 tests

* test(infra): remove duplicated s0439 test layers

Remove mocked automatic-transfer replay already covered by update-startup-campaign-run tests for rejected transfer persistence and by update-managed-service-handoff-lifecycle preserves Gateway refusal during cancellation settlement.

Keep Git reader contracts in git-root tests for bounded short reads, exact packed refs, and native linked layouts; keep eviction in LruCache evicts the least recently used entry. SQLite store and read-only worker compile-cache tests retain real enabled startup and later flush proof; keep disabled cache proof here.

Consolidate listener and approval formatting cases, preserve authority and credential boundaries, and remove diagnostic call-shape inventories. Validation: plain oxlint, oxfmt, and git diff --check only under CI-only campaign instructions.

* test(browser): deslop s0436 tests

Reuse route fixtures and consolidate repeated authority assertions without deleting distinct behavior. Retain snapshot identity races, permission boundaries, cancellation, and Chromium error coverage; this already compact shard falls short of the line-reduction target.

* test(browser): consolidate s0436 route proof

Replace the scoped-ref race's HTTP/WebSocket proxy with a barrier around the real native CDP reply. Use the real agent route helper in managed snapshot tests instead of copying its dispatch and error mapping.

Consolidate validation and delta cases, trim transport-only call shapes and diagnostic object dumps. Keep route ambiguity mapping; target-id.test.ts retains raw-id/label collision rejection. doctor.test.ts retains extension version summary formatting.

* test(browser): remove redundant s0436 storage scaffolding

Remove Map-backed storage assertions that only checked the test's own implementation. Preserve padded keys, values and normalized storage kind in the real dashboard state mutation test. Native reads remain covered by agent.content.chromium.test.ts (returns every native storage key), with whitespace semantics covered by normalization-core/string-coerce.test.ts.

Consolidate headless-start branches and replace the tab cancellation listener fixture with an explicit resolution barrier. Keep distinct authority, redaction, cancellation and native error behavior.

* test(feishu): deslop s0440 tests

Share comment delivery and button fixtures, reuse runtime and reply-dispatcher test defaults, and consolidate equivalent lifecycle setup into separate table cases. Preserve all 84 expanded cases, including comment privacy/pairing and cleanup ordering, broadcast claim settlement, and current-policy thread admission.

* test(feishu): trim s0440 duplicate boundary scaffolding

Remove repeated chat/error routes and card transport cross-products while retaining each SDK branch. Drop request inventories enforced by the loopback server, internal call-shape assertions, and unused monitor scaffolding. Preserve account authority, privacy, partial-delivery receipts, and shutdown ordering. No test runs under campaign CI-only policy.

* test(control-ui): deslop s0441 tests

Remove duplicate surface recovery and context-retirement cases covered by control-ui-surface.test.tsx: keeps native defaults reactive through delegation and failure recovery; revokes deselected composer operations before rendering and retires replaced contexts.

Keep reload success and selection stability here; the manager suite preserves Reload action failure presentation. Consolidate runtime activation setup and repeated view assertions without dropping authority, lifecycle, or cursor proof. CI-only validation: plain oxlint, oxfmt, and diff check.

* test(control-ui): consolidate s0441 owner proof

Move revision-publication assertions into the runtime event lifecycle case, merge action failure and retry proof, and remove duplicated manager and view assertions. Keep all distinct grants, revocation, target ownership, disposal, cursor, and privacy paths.

Roster refresh success is covered by agents/index.test.ts: reuses the current roster while preserving forced refresh and reconnect ownership; session-roster-refresh.test.ts: reuses conditional sidebar rows while accepting fresh facets and query replacements. Surface recovery and deselection are covered by control-ui-surface.test.tsx. Reload and retry are covered by control-ui-manager.solid.test.tsx.

CI-only static gates: oxfmt, plain oxlint and git diff --check passed. No test runs. Original shard 3388 lines becomes 3030; 25 percent target remains unmet because retained cases carry distinct boundary behavior.

* test(control-ui): trim s0441 fixture and wiring layers

Keep runtime activation, grants, event reactions and connection retirement at their owner. Remove the repeated GatewayStore descriptor-refresh layer covered by gateway-store.plugins.test.ts: refreshes plugin methods and surfaces on the existing connection. Successful registry completion remains in the concurrent activation case; empty completion remains in catalog recovery.

Consolidate pane-agent action scoping across header and composer, reuse navigation and view fixtures, remove dead fixture state and repeated internal assertions, and share summary request setup. Preserve identity, authority, disposal, cursor and privacy assertions.

CI-only: oxfmt, plain oxlint and diff checks pass; no tests run. Shard is 2859 lines from original 3388. The requested 25 percent cut remains unmet; further identified removals would drop distinct boundary proof.

* test(agents): deslop s0443 tests

Share patch envelopes and fixture setup, table overflow assertions, and reuse native-list expected rows. Preserve every original scenario and credential, custody, rollback, and no-op assertion. No production changes.

CI-only: formatting, diff check, and plain oxlint pass; no tests or coverage run. Shard LOC 3166 -> 2930 (7.5%); below 25% because remaining cases protect distinct authority, lifecycle, byte-preservation, and provider contracts.

* test(agents): remove redundant s0443 proof layers

Keep patch byte behavior in apply-patch-update.test.ts (preserves update bytes table) and sequential matching in apply-patch-ambiguous-hunk.test.ts (keeps sequential hunk searches after the prior match). Retain unique no-op, move, fuzzy-context and blank-line cases here.

Keep duplicate/absent cost proof in models-config.model-input-presence.test.ts (keeps one-step identities and exact source fields through repeated planning; uses authored duplicate partial costs through discovery and final catalog merging). Retain partial-cost tier preservation locally.

Remove same-branch compaction variants and internal setter/catalog/diagnostic call shapes. Preserve credential, replay, authority and finalization cases. CI-only: oxfmt, diff-check and plain oxlint passed; no test runs. Cumulative LOC 3166 to 2793 (11.8%), below target; no safe whole-file deletion found.

* test(agents): trim remaining s0443 fixture layers

Remove resettable live-switch mocks used only by internal read/path call-shape assertions; preserve selection and queued-write behavior. Reduce catalog precedence fixtures to distinct model names rather than replaying metadata preservation fields.

Remove direct partial-cost replay: doctor-plugin-model-catalog.test.ts, repairs only partial retained costs and persists the repair across reopening, exercises the same normalizeModelCostForCatalog owner with tiers, missing rates and persistence. models-config.model-input-presence.test.ts retains catalog-planner cost integration.

CI-only: oxfmt, diff-check and plain oxlint pass; no tests run. Cumulative shard LOC 3166 to 2735 (13.6%), still below 25%; remaining distinct contracts not removed to satisfy a count.

* test(copilot): deslop s0444 tests

Consolidate Windows case and separator normalization into the drive-root pool test. Preserve positive BYOK shape support assertions in the existing provider mapping cases, and share the event usage fixture.

Keep distinct authority, credential, transaction and lifecycle cases. CI-only shard: formatting, plain oxlint and diff checks passed; runtime tests and coverage were not run.

* test(copilot): consolidate s0444 boundary fixtures

Keep before/after-send and pending-tool steering in one concurrent scenario. Journal hook metadata remains covered by keeps selected steering mentions only on unchanged committed text in attempt-transcript-journal.test.ts; preserve active-run provenance, display prompt, replay and rejection assertions.

Share preparation, owned/unowned rejection and returned-error conversion setup. Keep session transaction commit/rollback and cleanup proof while removing row-shape duplication covered by commits a hidden tool turn to SQLite in assistant request order in attempt-transcript-journal.test.ts. Replace stale steering helper imports with local fixture construction.

CI-only: plain oxlint, formatting and diff checks passed. No tests or coverage run. Original shard 3051 lines; now 2904, below the requested 25 percent reduction.

* test(doctor): deslop s0442 tests

Share channel blocker scan fixtures while retaining each trust and activation path. Remove repeated provider-origin inputs with the same URL-origin branch.

The retained safe-row and locked-owner migration cases cover legacy binding migration, reopen, local identity, resume selection, preview, and idempotence; preserve exact binding assertions there.

* test(doctor): deslop s0442 test layers

Remove the stale ClawHub replay covered by missing-configured-plugin-install.availability.test.ts and update deferral covered by missing-configured-plugin-install.test.ts.

Keep migration exception isolation in setup-registry.test.ts and read-only engine nonactivation in registry-inspection-resources.test.ts. Keep source selection policy in dev-source-root.test.ts and manifest-registry.test.ts; retain real Doctor, CLI, and cohort import proof here.

Consolidate promotion and TTS fixtures, replace internal migration inventories with executable boundary assertions, and retain ownership, persisted-state, and lifecycle guards. CI-only: plain oxlint, formatting, and diff checks passed; no tests run.

* test: preserve reviewed contracts and repair d539 fixtures

* test: repair d539 lint and shrink mock baseline
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: feishu Channel integration: feishu channel: mattermost Channel integration: mattermost channel: nextcloud-talk Channel integration: nextcloud-talk cli CLI command changes commands Command implementations extensions: browser extensions: copilot gateway Gateway runtime size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant