Skip to content

test(core,plugins,tooling): remove low-value tests (batch d011) - #158811

Merged
steipete merged 16 commits into
mainfrom
tcr/land-d011-1790390504
Sep 26, 2026
Merged

steipete merged 16 commits into
mainfrom
tcr/land-d011-1790390504

Conversation

@steipete

@steipete steipete commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The test suite carries repeated input variants, copied implementation inventories, and fixture boilerplate that add maintenance cost without independent behavior coverage.

User Impact

No intended user-visible behavior change. Batch d011 reduces the maintained test surface while preserving current-main regressions. Production edits remove test-only exports; their runtime implementations and required callers remain.

Why This Change Was Made

Replayed all ten campaign commits onto main 7abc1b2e4a7781dac38d0d58c3f44efc0949b99b, preserving newer behavior and following moved test owners. Stale or uncertain hunks were dropped. Follow-up fixture corrections preserve the current assistant-message helper and current native-app credential guidance.

Evidence

Current recovery

  • Merged: 7b68c81b60ca41c94fa678b257ff5e138bc1551a on September 26, 2026. Final hosted run https://github.com/openclaw/openclaw/actions/runs/36248417232 passed on exact head 7d9695763169d77d99d4e1e3bcfb479614abf8f8: 122 successful jobs, 18 skipped jobs, no failures; openclaw/ci-gate succeeded. Both previously failing lint jobs passed. Recovery used two repair passes and one conflict-free rebase, retaining all prior patches. Both Testbox leases below are stopped.

  • Recovery round 1 rebased all 14 existing commits onto 412eecccd29d0a2613696944cea4a22525466b15. No conflicts or dropped hunks; git range-diff confirms every prior patch is identical.

  • Fixed the three lint errors from run 36241571386, job 108403132643: removed two unused test imports and replaced a two-row map/spread fixture with explicit GET and HEAD rows. Both authorization cases remain. Recovery commit: f3aa40e465ccf17305614927e6b11372fc2b79ba.

  • Independent focused review passed with no actionable findings. A separate current-caller review confirmed removed exports remain test-only, the canonical parseSnapshotKey export and runtime consumer remain, and the baseline change removes one entry without additions.

  • Formatting passed across changed files; git diff --check passed against the pinned base.

  • Both repaired suites passed locally and on Blacksmith Testbox: 114 tests, no failures. The exact failed hosted lint stripes (core 1/5 and 2/5, including agents and Gateway) passed on Testbox with zero warnings or errors. Local lint did not reach lint execution because SDK declaration preparation hit its five-minute infrastructure timeout; the Linux stripe rerun passed.

  • Testbox lease: tbx_01m3ev6sfmpxmcsamxtxh1apjr; run: https://github.com/openclaw/openclaw/actions/runs/36242216635 . The wrapper verified source revision 85b598dbcab933801b482f64a77e940f719c087c plus the lint patch as source tree d2b9e0577fbefb860c500f0d667a6d6fb24da810. Test execution took 31.94 seconds; the complete test-and-lint payload returned exit 0.

  • The committed recovery head has the same Git tree, d2b9e0577fbefb860c500f0d667a6d6fb24da810, as the verified Testbox source. Committing the repair did not change the tested bytes.

  • Remaining Testbox infrastructure gap: the subsequent committed-head attempt submitted all 277 touched test files followed by OPENCLAW_TESTBOX=1 node scripts/check-changed.mjs -- <285 changed paths>, with the wrapper's remote-child environment. Native Blacksmith selected full sync because 285 files exceed its 200-file threshold, then failed with file sync failed: sync timed out after 2m0s before either validation payload began. This attempt supplies no passing result for the full selection or changed gate. The earlier focused tests and exact failed lint stripes passed. Hosted openclaw/ci-gate remains the required merge gate under the operator's explicit infrastructure-gap arming rule.

  • Lease tbx_01m3ev6sfmpxmcsamxtxh1apjr was stopped after validation; Blacksmith confirmed stopped (completed).

  • Second recovery pass fixed the next hosted failure: run 36245643749, job 108414404226 reported an unused max-lines suppression in extensions/copilot/src/event-bridge.test.ts. The reduction made that suppression obsolete. Removed only the comment; all test bodies and assertions remain. Independent focused review and formatting passed; all 35 Copilot event-bridge tests passed locally.

  • Second Testbox infrastructure gap: lease tbx_01m3ezn57pt2c9mjdmrnt5hkk5 (https://github.com/openclaw/openclaw/actions/runs/36246454689) expired during source preparation. The wrapper returned Blacksmith Testbox has finished; create a new lease with commandMs: 0. The submitted payload included the Copilot test, extension lint stripe 5/6, the remaining 276 touched test files, and the 285-path changed gate; none began. The lease is confirmed already stopped. The previous 114-test/core-lint Testbox pass and the new 35-test local pass remain valid for their stated scopes. Hosted openclaw/ci-gate must pass on the new head before merge.

  • Second recovery commit: 7d9695763169d77d99d4e1e3bcfb479614abf8f8. No additional rebase or conflict resolution was needed.

Earlier campaign evidence

  • Formatting and git diff --check origin/main passed on the rebased candidate.

  • Blacksmith Testbox lease tbx_01m3edj2j17x1857v6pjx2rv0s verified source d729cf0da22b39b1001a663508fffaf4a6a9ce71 and exercised 70 of 284 selected files: 68 passed, one failed, and one was skipped; 4,596 tests passed, one failed, and 193 were skipped. Test execution took 362.89 seconds. The single failure exposed two stale native-app UI strings; commit b110b4cfe8ba0258a68ae7c4c463c4279d0d254f restores main's exact current strings.

  • Remaining remote proof is blocked, not passing: the corrected i18n file plus 214 unexecuted targets could not run because native Blacksmith sync repeatedly reported file sync failed: sync timed out after 2m0s. The requested changed-file gate encountered the same failure before execution. Its command was OPENCLAW_TESTBOX=1 node scripts/check-changed.mjs -- <287 changed paths>, executed through the wrapper on the same lease with its remote-child environment.

  • The current source-mirror fix is present. Cold preparation copied 50,049 files; reuse copied one file and reused 50,048. Native Blacksmith still selected full-checksum sync because 287 changed files exceed its 200-file threshold. Publishing the branch made the head fetchable but did not avoid this remaining cutoff.

  • Hosted run: https://github.com/openclaw/openclaw/actions/runs/36230131975 . The wrapper's command results above are the Testbox evidence; the lease is stopped.

  • Current-head GitHub CI remains required under the campaign's pinned-head auto-merge workflow. A source review found no new consumers of the removed exports; parseSnapshotKey remains exported by its canonical owner for its runtime caller.

  • Independent full-diff autoreview completed in five passes. Two findings were accepted and fixed: restart-path Web Push revocation coverage and unrelated-PR hosted CI evidence rejection. Nine findings were rejected against retained owner proof or equivalent mocked branches (details below). Fresh focused reviews of the correction files passed with no actionable findings.

  • A subsequent CI typecheck identified two fixture imports still required by newer main tests. Both existing bindings were restored without changing assertions. Their import-only review passed with no actionable findings.

  • Initial hosted CI stopped on a replay error in the plugin-doctor parameterized test: its assertion used the former single-case variable. The correction restores each case's expected diagnostic.

  • ClawSweeper produced no review verdict because its input-safety check blocked review. The exposed diagnostic maps to a removed synthetic loopback-auth fixture; the artifact exposes only one of 41 findings, so the remaining findings are not classified here. Its safeguards remain unchanged.

  • Conflict-recovery rebase: kept current main's complete ios-release-fastlane-gates.test.ts and dropped that file's old cleanup. Git range-diff confirms the other 13 commits are patch-identical. Dependencies and whitespace checks passed after rebase; the Testbox limitations above remain explicit.

  • Second conflict-recovery rebase: kept current main's complete browser connection test file and current Git-fetch attempt matrix. The retired browser helper import was not reintroduced; the still-required cron helper import remains. This drops obsolete cleanup rather than changing current-main behavior.

Historical coverage is partial: s034 and s036 had no valid comparison; s030, s041, and s037 excluded files. The per-shard figures below describe the original campaign runs, not fresh coverage of this rebased batch.

Final diff: 285 files, +7,188/-29,217 LOC (net -22,029). Tests: +7,184/-28,594 (net -21,410); test support: 0/-616; production/tooling: +4/-6 (net -2); config: 0/-1. Static test declaration delta: -633; parameterized tables count once. Counts use the pinned merge base.

Per-shard scope, declarations, and historical coverage
Shard Files Test LOC + / - Declaration delta Original coverage totals and limits
s035 35 +789 / -4309 -110 covered statements 24198 -> 24170 (-28); branches 18589 -> 18561 (-28); functions 4385 -> 4379 (-6). 45 files compared.
s030 33 +1189 / -2680 -40 covered statements 1696 -> 1695 (-1); branches 982 -> 981 (-1); functions 361 -> 361 (0). Four-file fallback only; 36 files excluded.
s039 35 +487 / -3001 -111 statements 9729 -> 9726 (-3); branches 6248 -> 6245 (-3); functions 1876 -> 1875 (-1). No excluded groups.
s034 23 +381 / -1375 -36 none compared; statements 0 -> 0, branches 0 -> 0. Coverage preservation unverified.
s040 14 +547 / -2161 -56 covered statements 2559 -> 2559 (0); branches 2129 -> 2123 (-6); functions 495 -> 495 (0). No excluded groups.
s042 39 +438 / -2653 -55 covered statements 12187 -> 12187 (0); branches 9837 -> 9833 (-4); functions 2132 -> 2132 (0). All groups succeeded.
s041 15 +263 / -1293 -24 statements 5087 -> 5087; branches 2707 -> 2707; functions 787 -> 787. Final comparison 7/54 files; 47 excluded.
s022 28 +1302 / -4119 -52 covered statements 7335 -> 7325 (-10); branches 5207 -> 5212 (+5); functions 1439 -> 1437 (-2). Saved 26-file comparison; newer 24-file run not comparable.
s036 18 +158 / -2161 -51 statements 0 -> 0; branches 0 -> 0; functions 0 -> 0. All groups excluded; not a passing comparison.
s037 45 +1628 / -4839 -98 statements 9061 -> 9065 (+4); branches 5910 -> 5913 (+3); functions 1809 -> 1810 (+1). 44 files compared; five process files excluded.

Declaration counts use Babel AST declaration calls, including local it/test aliases; each table is one declaration. Helper invocations are excluded. s034 includes its moved close-owner deletion; s036 also removes 616 support lines.

s035 files

src/agents/agent-bundle-mcp-harness.test.ts, src/agents/agent-create.test.ts, src/agents/agent-run-terminal-outcome.test.ts, src/agents/agent-tools.policy.test.ts, src/agents/apply-patch.test.ts, src/agents/auth-profiles.resolve-auth-profile-order.does-not-prioritize-lastgood-round-robin-ordering.test.ts, src/agents/bash-tools.exec-host-shared.test.ts, src/agents/bash-tools.exec.security-floor.test.ts, src/agents/bash-tools.process.poll-timeout.test.ts, src/agents/cli-output-records.test.ts, src/agents/cli-output-stream.test.ts, src/agents/cli-runner.helpers.test.ts, src/agents/code-mode-swarm.test.ts, src/agents/code-mode.agent-loop.test.ts, src/agents/code-mode.guest.test.ts, src/agents/code-mode.wait.test.ts, src/agents/context.lookup.test.ts, src/agents/context.test.ts, src/agents/embedded-agent-helpers.formatassistanterrortext.test.ts, src/agents/embedded-agent-helpers.validate-turns.test.ts, src/agents/embedded-agent-runner.extensions.test.ts, src/agents/embedded-agent-subscribe.tools.extract.test.ts, src/agents/embedded-agent-utils.test.ts, src/agents/exec-auto-review.stress.test.ts, src/agents/github-tool-identity.test.ts, src/agents/model-catalog.test.ts, src/agents/model-compat.test.ts, src/agents/node-plugin-tools.test.ts, src/agents/openclaw-tools.browser-plugin.integration.test.ts, src/agents/openclaw-tools.camera.test.ts, src/agents/provider-auth-aliases.test.ts, src/agents/provider-request-config.test.ts, src/agents/tool-policy-pipeline.test.ts, src/agents/tools-effective-inventory.cold-provider.test.ts, src/agents/transcript-policy.test.ts

s030 files

scripts/generate-npm-package-lock.mts, scripts/lib/pnpm-lockfile-documents.mjs, scripts/pre-commit/pnpm-audit-prod.mjs, test/scripts/bench-cli-startup.test.ts, test/scripts/bench-gateway-startup.test.ts, test/scripts/ci-changed-node-test-plan.test.ts, test/scripts/ci-test-timings.test.ts, test/scripts/control-ui-i18n.test.ts, test/scripts/dependency-guard-script.test.ts, test/scripts/dev-tooling-safety.test.ts, test/scripts/docker-e2e-helper-cli.test.ts, test/scripts/full-release-candidate-reuse.test.ts, test/scripts/generate-npm-package-lock.test.ts, test/scripts/ios-periphery-comment-workflow.test.ts, test/scripts/kitchen-sink-plugin-assertions.test.ts, test/scripts/mac-elevation-artifact.test.ts, test/scripts/openclaw-release-telegram-qa-workflow.test.ts, test/scripts/plugin-npm-security-scan.test.ts, test/scripts/pnpm-audit-prod.test.ts, test/scripts/postinstall-bundled-plugins.test.ts, test/scripts/pr-merge.test.ts, test/scripts/release-beta-verifier.test.ts, test/scripts/release-telegram-candidate-archive.test.ts, test/scripts/release-tooling-identity.test.ts, test/scripts/run-oxlint.test.ts, test/scripts/test-extension.test.ts, test/scripts/test-projects-build-admission.test.ts, test/scripts/test-projects-routing.test.ts, test/scripts/upgrade-survivor-mobile-pairing.test.ts, test/scripts/upgrade-survivor-update-result.test.ts, test/scripts/upstream-repository-advisories.test.ts, test/scripts/validate-release-publish-approval.test.ts, test/scripts/vercel-container-registry-publish.test.ts

s039 files

extensions/browser/src/browser/cdp-proxy-bypass.test.ts, extensions/browser/src/browser/cdp.helpers.fuzz.test.ts, extensions/browser/src/browser/cdp.helpers.internal.test.ts, extensions/browser/src/browser/cdp.helpers.test.ts, extensions/browser/src/browser/cdp.internal.test.ts, extensions/browser/src/browser/cdp.test.ts, extensions/browser/src/browser/chrome-mcp.test.ts, extensions/browser/src/browser/chrome.internal.test.ts, extensions/browser/src/browser/chrome.test.ts, extensions/browser/src/browser/client-fetch.loopback-auth.test.ts, extensions/browser/src/browser/client.test.ts, extensions/browser/src/browser/config.test.ts, extensions/browser/src/browser/control-auth.auto-token.test.ts, extensions/browser/src/browser/extension-install-layout.test.ts, extensions/browser/src/browser/extension-install.test.ts, extensions/browser/src/browser/extension-native-host.test.ts, extensions/browser/src/browser/navigation-guard.test.ts, extensions/browser/src/browser/profiles-service.test.ts, extensions/browser/src/browser/pw-download-capture.test.ts, extensions/browser/src/browser/pw-role-snapshot.test.ts, extensions/browser/src/browser/pw-session.test.ts, extensions/browser/src/browser/pw-tools-core.browser-ssrf-guard.test.ts, extensions/browser/src/browser/pw-tools-core.interactions.batch.test.ts, extensions/browser/src/browser/pw-tools-core.interactions.navigation-guard.test.ts, extensions/browser/src/browser/pw-tools-core.interactions.set-input-files.test.ts, extensions/browser/src/browser/pw-tools-core.snapshot.navigate-guard.test.ts, extensions/browser/src/browser/screenshot-annotate.test.ts, extensions/browser/src/browser/server-context.ensure-browser-available.waits-for-cdp-ready.test.ts, extensions/browser/src/browser/server-context.existing-session.test.ts, extensions/browser/src/browser/server-context.hot-reload-profiles.test.ts, extensions/browser/src/browser/server-context.list-profiles.test.ts, extensions/browser/src/browser/server-context.remote-profile-tab-ops.fallback.test.ts, extensions/browser/src/browser/server-context.remote-profile-tab-ops.playwright.test.ts, extensions/browser/src/browser/server-context.tab-selection-state.test.ts, extensions/browser/src/browser/server.agent-contract-form-layout-act-commands.test.ts

s034 files

src/gateway/approval-web-push.test.ts, src/gateway/chat-attachments.test.ts, src/gateway/cron-stream-watchers.test.ts, src/gateway/github-publication-boundaries.test.ts, src/gateway/mcp-app-standalone.test.ts, src/gateway/mention-inbox.test.ts, src/gateway/net.test.ts, src/gateway/plugin-icon-http.test.ts, src/gateway/probe.test.ts, src/gateway/server-aux-handlers.test.ts, src/gateway/server-cron-notifications.test.ts, src/gateway/server-session-events.test.ts, src/gateway/server-startup-plugins.test.ts, src/gateway/server.agent.gateway-server-agent-b.test.ts, src/gateway/server.chat-history-cursor.test.ts, src/gateway/server.device-token-rotate-authz.test.ts, src/gateway/server.sessions-send.test.ts, src/gateway/server.sessions.worker-placement-lifecycle.test.ts, src/gateway/session-companion.test.ts, src/gateway/session-lifecycle-state.test.ts, src/gateway/session-utils-owners.test.ts, src/gateway/talk/client-gateway-control.close.test.ts, src/gateway/talk/client-gateway-control.test.ts

s040 files

extensions/copilot/harness.test.ts, extensions/copilot/src/attempt-transcript-journal.test.ts, extensions/copilot/src/auth-bridge.test.ts, extensions/copilot/src/byok-proxy.test.ts, extensions/copilot/src/event-bridge.test.ts, extensions/copilot/src/permission-bridge.test.ts, extensions/copilot/src/prompt-guidance.test.ts, extensions/copilot/src/provider-bridge.test.ts, extensions/copilot/src/replay-shim.test.ts, extensions/copilot/src/runtime.test.ts, extensions/copilot/src/sdk-loader.test.ts, extensions/copilot/src/tool-bridge.test.ts, extensions/copilot/src/usage-bridge.test.ts, extensions/copilot/src/workspace-bootstrap.test.ts

s042 files

src/auto-reply/reply/acp-projector.test.ts, src/auto-reply/reply/agent-runner-direct-runtime-config.test.ts, src/auto-reply/reply/agent-runner-execution-cli-progress.test.ts, src/auto-reply/reply/agent-runner-execution-cli-sessions.test.ts, src/auto-reply/reply/agent-runner-execution-probes.test.ts, src/auto-reply/reply/agent-runner-execution-progress.test.ts, src/auto-reply/reply/agent-runner-execution-results.test.ts, src/auto-reply/reply/agent-runner-execution-state.test.ts, src/auto-reply/reply/agent-runner-execution-terminal-failures.test.ts, src/auto-reply/reply/agent-runner-utils.test.ts, src/auto-reply/reply/before-deliver.test.ts, src/auto-reply/reply/block-reply-pipeline.test.ts, src/auto-reply/reply/commands-allowlist.test.ts, src/auto-reply/reply/commands-approve.test.ts, src/auto-reply/reply/commands-compact.test.ts, src/auto-reply/reply/commands-export-session.test.ts, src/auto-reply/reply/commands-gating.test.ts, src/auto-reply/reply/commands-login.test.ts, src/auto-reply/reply/commands-plugin.test.ts, src/auto-reply/reply/commands-plugins.test.ts, src/auto-reply/reply/commands-reset-hooks.test.ts, src/auto-reply/reply/commands-session-lifecycle.test.ts, src/auto-reply/reply/commands-subagents.test.ts, src/auto-reply/reply/commands-system-prompt.test.ts, src/auto-reply/reply/commands-tts.test.ts, src/auto-reply/reply/current-turn-images.test.ts, src/auto-reply/reply/directive-handling.mixed-inline.test.ts, src/auto-reply/reply/dispatch-from-config.continuation-settlement.test.ts, src/auto-reply/reply/followup-turn-execution.test.ts, src/auto-reply/reply/get-reply-directive-aliases.test.ts, src/auto-reply/reply/mentions.test.ts, src/auto-reply/reply/progress-narrator.test.ts, src/auto-reply/reply/queue.dedupe.test.ts, src/auto-reply/reply/queue.drain-restart.test.ts, src/auto-reply/reply/reply-flow.test.ts, src/auto-reply/reply/reply-media-paths.test.ts, src/auto-reply/reply/reply-state.test.ts, src/auto-reply/reply/source-reply-delivery-mode.test.ts, src/auto-reply/reply/startup-context.test.ts

s041 files

src/agents/auth-profiles/oauth-manager.test.ts, src/agents/auth-profiles/oauth-refresh-failure.test.ts, src/agents/auth-profiles/order.test.ts, src/agents/auth-profiles/session-override.test.ts, src/agents/auth-profiles/usage-state.test.ts, src/agents/harness/host-capability.test.ts, src/agents/harness/model-catalog.test.ts, src/agents/harness/native-hook-relay-store.test.ts, src/agents/harness/native-hook-relay.approval-wait.test.ts, src/agents/harness/native-hook-relay.test.ts, src/agents/harness/registry.test.ts, src/agents/harness/runtime-plugin.test.ts, src/agents/harness/selection.test.ts, src/agents/harness/settled-turn-finalization-result.test.ts, src/agents/harness/tool-result-middleware.test.ts

s022 files

scripts/lib/plugin-prerelease-test-plan.mts, scripts/resolve-openclaw-package-candidate.mts, scripts/test-docker-all.mts, test/scripts/authorized-beta-focused-evidence.test.ts, test/scripts/barnacle-auto-response.test.ts, test/scripts/check-openclaw-package-tarball.test.ts, test/scripts/ci-git-owner.test.ts, test/scripts/ci-linux-git.test.ts, test/scripts/ci-platform-checkout.test.ts, test/scripts/codesign-mac-app.test.ts, test/scripts/codex-install-assertions.test.ts, test/scripts/docker-all-scheduler.test.ts, test/scripts/find-reusable-release-validation.test.ts, test/scripts/kova-report-gate.test.ts, test/scripts/live-docker-stage.test.ts, test/scripts/native-app-i18n.test.ts, test/scripts/openclaw-performance-workflow.test.ts, test/scripts/parallels-npm-update-smoke.test.ts, test/scripts/plugin-prerelease-test-plan.test.ts, test/scripts/pr-prepare-gates.test.ts, test/scripts/pr-wrappers.test.ts, test/scripts/publish-model-catalog.test.ts, test/scripts/release-plan-producer.test.ts, test/scripts/resolve-openclaw-package-candidate.test.ts, test/scripts/run-vitest.test.ts, test/scripts/test-group-report.test.ts, test/scripts/verify-pr-hosted-gates.test.ts, test/scripts/write-cli-startup-metadata.test.ts

s036 files

src/config/sessions/delivery-info.test.ts, src/config/sessions/legacy-main-session-migration.test.ts, src/config/sessions/origin-channel-switch.test.ts, src/config/sessions/session-accessor.parent-fork.test.ts, src/config/sessions/session-accessor.readonly.test.ts, src/config/sessions/session-accessor.reply-init-concurrency.test.ts, src/config/sessions/session-accessor.sqlite-data-version.test.ts, src/config/sessions/session-accessor.sqlite-transcript-suffix.test.ts, src/config/sessions/session-accessor.test.ts, src/config/sessions/session-registry-maintenance.test.ts, src/config/sessions/session-snapshot-merge.test.ts, src/config/sessions/sessions.test.ts, src/config/sessions/store.pruning.test.ts, src/config/sessions/targets-discovery.test.ts, src/config/sessions/transcript-append-redact.test.ts, src/config/sessions/transcript-append.test-support.ts, src/config/sessions/transcript-tree.test.ts, src/config/sessions/transcript.test.ts

s037 files

config/max-lines-baseline.txt, src/cli/argv.test.ts, src/cli/channel-auth.test.ts, src/cli/channels-cli.test.ts, src/cli/claws-cli.test.ts, src/cli/command-path-policy.test.ts, src/cli/command-secret-targets.test.ts, src/cli/completion-cli.test.ts, src/cli/completion-cli.write-state.test.ts, src/cli/completion-runtime.test.ts, src/cli/config-cli.roster.integration.test.ts, src/cli/config-cli.secrets.integration.test.ts, src/cli/config-model-validation.test.ts, src/cli/container-target.test.ts, src/cli/devices-cli.test.ts, src/cli/directory-cli.test.ts, src/cli/exec-approvals-cli.pending-resolve.test.ts, src/cli/exec-approvals-cli.test.ts, src/cli/exec-policy-cli.test.ts, src/cli/gateway-backed-exit.process.test.ts, src/cli/gateway-cli.coverage.test.ts, src/cli/hooks-cli.toggle.test.ts, src/cli/logs-cli.test.ts, src/cli/mcp-cli.test.ts, src/cli/models-cli.test.ts, src/cli/native-hook-relay-cli.test.ts, src/cli/nodes-camera.test.ts, src/cli/nodes-cli.coverage.test.ts, src/cli/one-shot-exit.test.ts, src/cli/plugins-authoring-command.test.ts, src/cli/plugins-cli.inspect.test.ts, src/cli/plugins-cli.list.test.ts, src/cli/plugins-cli.policy.test.ts, src/cli/plugins-cli.uninstall.test.ts, src/cli/plugins-install-config.test.ts, src/cli/profile.test.ts, src/cli/program.force.test.ts, src/cli/proxy-cli.runtime.test.ts, src/cli/qr-cli.test.ts, src/cli/resume-cli.test.ts, src/cli/run-main.test.ts, src/cli/secrets-cli.test.ts, src/cli/session-ref.test.ts, src/cli/skills-cli.test.ts, src/cli/skills-cli.verify.test.ts

Replay decisions: retained main changes and dropped hunks
  • s035: preserved main's expanded guest toJSON/prototype safety and node/quickjs malformed-command/runtime-error tests while applying shared harness cleanup; retained newer embedded text stream-boundary regression and GitHub environment cleanup.

  • s035: retained current model eligibility changes in consolidated assertions; replaced copied priority-model inventory with existing slash-preservation contract.

  • s035: retained new apply-patch path mappings and credential/JSONL helpers; dropped bridge.lifecycle deletion because main c6c7810 removed its stronger duplicate, retaining circular-flush proof.

  • s030: adapted moved audit helpers: removed pnpm-audit-prod re-exports and made shared stripVersionDecorators private, retaining shared parseSnapshotKey export and runtime consumer; did not resurrect old parser implementation.

  • s030: kept current benchmark shared fixtures and split-ready traces; preserved new Copilot per-source planning/metadata, partial timing inventory/runtime schema, memory/database-worker/Matrix/Telegram routing and Windows cron coverage; applied compatible reductions only.

  • s030: dropped pr-ci-sweeper and extended-stable workflow cleanup after main rewrites; kept new publication identity/review-body safeguards, merged-PR Telegram provenance, Python interpreter selection, moved upgrade schemas, and Vercel 2GB cap matrix.

  • s039: retained new auth lookup precedence/failure matrix, browser-doctor dispatcher advice, operation failure transport and auth advice tests; dropped only unchanged duplicate transient HTTP payload case from conflicting sections.

  • s039: retained newer MCP cancellation, Chrome preference preservation, launcher sanitization, upload timeout constants, attach-only abort, dashboard-owned tab protections and stale-channel readiness (replacement diagnostic already removed by ad1c934); did not resurrect deleted Chrome wrapper.

  • s034: followed talk suite relocation; removed the original duplicate teardown-failure case in talk/client-gateway-control.close.test.ts with stronger disconnect failure/cleanup proof retained; removed copied serialized session-list snapshot while preserving filter/owner assertions.

  • s034: dropped server-kernel and transcript-title-reader cleanup after substantial owner/API rewrites; kept leaf rewind and compaction/reset paths, companion scheduler clock/disconnect assertions, and shared lifecycle store fixtures.

  • s034: preserved async approval/revocation ordering, large PDF bytes, publication authority/outcome/base safeguards, bind-probe lifecycle, both GET/HEAD icon activity cases; removed duplicate rollback only with stronger exact-account rollback proof retained.

  • s040: preserved synchronous tool factories and factory-error/aborted-signal regressions; did not resurrect retired beforeExecute, code-mode, or non-array tests; applied compatible allowlist/duplicate assertions consolidation.

  • s040: preserved extracted tool-event registration, native-task terminal recovery, callback and completion assertions; dropped stale attempt fixture cleanup after main extracted the fake SDK/session owner.

  • s040: adapted harness consolidation to awaited onSessionEstablished; kept real SQLite close/reopen journal validation and stale-session replacement race, dropping old in-memory/missing-session fixture replacements.

  • s042: honored main b1f980f deletion of agent-runner-session-reset; dropped reply-delivery cleanup after directBlockDeliveries rewrite and session-fork cleanup after SQLite/leaf-context rewrite; kept new media workspace assertion and progress-refresh delivery-silence regression.

  • s042: kept generic inbound-context table, prepared fallback/cancellable-login/async ACP/status/discarded-task/image hydration regressions and session generation/preflight failure paths; adapted current shared execution defaults, honoring main f2dff0d silent-policy deletion and 5c906f9 progress contract rewrite.

  • s041: dropped old external-oauth and OAuth refresh-fallback file hunks; main 11921d8 retired those suites and moved live assertions to current auth owners.

  • s041: retained worker/no-main-thread-SQLite lifecycle and current permission-request fixtures; removed stale-owner/disposal duplicates with token/pid and active/retired owner proof retained.

  • s041: followed moved duplicate cases to usage-state and oauth-refresh-failure; kept exact-clock/redaction proof, current OAuth refresh helpers and model-catalog ownership/discovery/refresh/preparedSnapshot APIs.

  • s022: retained new Node/Bun runtime selection and native preparation tests, current worker entrypoint declarations, compiled report worker invocation and startup helper fixtures; adapted report CLI consolidation to resolveRuntimeWorkerArgv.

  • s022: retained expanded Barnacle comment actions, current tarball worker-path import, Docker rerun/failure-index/current lane/cleanup contracts and Bundler version; dropped stale Docker fixture replacements.

  • s022: retained plugin prerelease CI/runner/security contracts, current PR gate fixtures/shared shell helper, wrapper dependency/alias/writer checks, native pricing, distinct-root YAML and release tamper/installer coverage.

  • s036: retained metadata-batch delivery ownership and newer safe-tools recovery-fence cases; applied equivalent snapshot/migration duplicate removals; dropped history-eviction edits after main's protection-race dispatch rewrite.

  • s036: dropped conformance adapter-flattening rewrite to preserve public/SQLite adapter boundary and async teardown; retained new data-version commit-during-list and selected-read lifetime regressions.

  • s036: kept exact assistant redaction/opaque thinkingSignature regression; deleted obsolete JSONL cases and exclusive transcript-append test-support after confirming no remaining actual importer.

  • s037: retained proxy-child temp/cache isolation, plugin retirement/output-order/failure and required-dependency warning tests, plus update-canary argument regression; dropped stale JSON doctor-test resurrection and applied compatible CLI helper consolidation.

  • s037: retained current channel fixtures/WAL handling, live shell completion and async subcli/plugin registration, expanded account/channel blank selectors and validation precedence; applied equivalent tuple-table/fixture reductions.

  • s037: retained ZIP namespace redaction, MCP disabled-only/JSON and renamed server helper, model activation/login/account tests, and both direct-bridge unavailable paths.

  • Follow-up: kept main's current credential and setup-code copy when consolidating native-app i18n assertions; the initial focused run exposed two obsolete campaign strings.

Independent review resolutions
  • Accepted finding 5: Restored both same-process and after-restart revoked-device Web Push authority cases.
  • Accepted finding 10: Restored distinct hosted fallback PR evidence membership negatives with a successful control that reaches the real guard.
  • Rejected finding 1: Removed full-permission MCP rows only defer through the same existing branch; explicit prepared prompt policy remains covered by mcp-codex-tool-approval.test.ts.
  • Rejected finding 2: No-sandbox reply path rejects all file URLs before decoding; sandbox-media-paths.test.ts retains both encoded-separator owner cases.
  • Rejected finding 3: Exact malformed close fixture remains in shared/text/assistant-visible-text.test.ts, plus streaming mismatched-tag coverage.
  • Rejected finding 4: Removed Git config rows all stubbed the same nonempty filtered output and never exercised matcher classes; the credential-helper and worktree scope tests retain that contract.
  • Rejected finding 6: Retained exact-account failed-restart test asserts current and required generations both restored.
  • Rejected finding 7: Legacy revision is captured before queuing; retained legacy/revised test covers capture while committed deleted/rebound cases cover shared post-await validation.
  • Rejected finding 8: Untouched real TLS probe suite checks correct/wrong explicit pins and zero credentials before upgrade.
  • Rejected finding 9: Retained disconnect/provider-reject test asserts logical cleanup once and original close rejection.
  • Rejected finding 11: Retained CLI table rejects INSTALL_FAILED/missing codes; sibling mixed-outcome test protects the shared reviewed-plugin guard.

@clawsweeper

clawsweeper Bot commented Sep 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.

ClawSweeper will not retry this unchanged revision.

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.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime cli CLI command changes scripts Repository scripts docker Docker and sandbox tooling agents Agent runtime and tooling extensions: copilot extensions: browser size: XL labels Sep 26, 2026
@steipete
steipete enabled auto-merge (squash) September 26, 2026 10:14
@steipete
steipete disabled auto-merge September 26, 2026 10:26
@steipete
steipete enabled auto-merge (squash) September 26, 2026 11:11
@steipete
steipete disabled auto-merge September 26, 2026 11:22
@steipete
steipete enabled auto-merge (squash) September 26, 2026 11:33
@steipete
steipete disabled auto-merge September 26, 2026 11:50
@steipete
steipete force-pushed the tcr/land-d011-1790390504 branch from 640ad1d to 2c2bf4b Compare September 26, 2026 12:01
@steipete
steipete enabled auto-merge (squash) September 26, 2026 12:01
@steipete
steipete disabled auto-merge September 26, 2026 12:09
@steipete
steipete force-pushed the tcr/land-d011-1790390504 branch from 2c2bf4b to 91158fd Compare September 26, 2026 12:19
@steipete
steipete enabled auto-merge (squash) September 26, 2026 12:20
@steipete
steipete force-pushed the tcr/land-d011-1790390504 branch from 91158fd to f3aa40e Compare September 26, 2026 13:34
@steipete
steipete merged commit 7b68c81 into main Sep 26, 2026
205 checks passed
@steipete
steipete deleted the tcr/land-d011-1790390504 branch September 26, 2026 14:42
MarMarLabs added a commit to MarMarLabs/openclaw that referenced this pull request Sep 26, 2026
7 upstream commits, including the low-value test removals in openclaw#158811 and
openclaw#158698, which deleted or condensed tests across 33 Feishu test files.
Three of those files conflicted with this branch (channel.test.ts,
outbound.test.ts, reply-dispatcher.test.ts), and two more changed on both
sides and auto-merged (comment-dispatcher.test.ts, config-schema.test.ts).

Every test this branch added, or whose body it changed, stays in this
branch's form. Tests this branch did not change follow upstream: deleted
where upstream deleted them, and upstream's two remaining rows for the
receipt-loss case, with this branch's body. Tests this branch had only
moved into its split-out files, unchanged, also follow upstream's deletion,
since git cannot see those as conflicts: three in
outbound.markdown-tables.test.ts and one in outbound.reply-target.test.ts.
Two branch tests now use upstream's outboundContext and createReplyAccount
helpers, which build the same objects as the literals they replace.

No generated file and no lockfile changed upstream. build:docker in a
separate detached checkout, followed by config:channels:gen and
config:docs:gen, changed nothing, and the three generated-file checks pass
there.

Feishu: 105 files and 1904 tests in the extension project, 16 files and
301 tests in the database-workers project, all 121 Feishu test files on
disk. The forwarder test and the routing guards pass, 1907 tests.
tsgo:core, tsgo:extensions, tsgo:extensions:test, tsgo:test:root, the
line-cap and assertion-safety ratchets against upstream/main, oxlint and
oxfmt on the 42 changed code files all pass. The max-lines ratchet against
cccacbe reports a stale baseline entry for
extensions/copilot/src/event-bridge.test.ts, which upstream's own openclaw#158811
left behind and b7cf7d9 removes. This branch touches neither file.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 27, 2026
…claw#158811)

* test(agents): deslop s035 tests

* test(scripts): deslop s030 tests

* test(browser): deslop s039 tests

* test(gateway): deslop s034 tests

* test(copilot): deslop s040 tests

* test(auto-reply): deslop s042 tests

* test(agents): deslop s041 tests

* test(scripts): deslop s022 tests

* test(sessions): deslop s036 tests

* test(cli): deslop s037 tests

* test: adapt d011 fixtures to current owners

* test: preserve current native i18n guidance

* test: preserve d011 authorization coverage and diagnostic assertions

* test: retain fixture imports used by newer main tests

* test: fix lint in d011 test reductions

* test(copilot): remove obsolete max-lines suppression
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling cli CLI command changes docker Docker and sandbox tooling extensions: browser extensions: copilot gateway Gateway runtime scripts Repository scripts size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant