Skip to content

test(core,plugins,chat): remove low-value tests (batch d010) - #158698

Merged
steipete merged 14 commits into
mainfrom
tcr/land-d010-1790389409
Sep 26, 2026
Merged

steipete merged 14 commits into
mainfrom
tcr/land-d010-1790389409

Conversation

@steipete

@steipete steipete commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Batch d010 removes duplicated scenarios, repetitive matrix rows, and redundant fixtures from the test suite to reduce maintenance cost while retaining distinct contracts.

User Impact

There is no user-visible behavior change and no production-code change. The final diff covers 254 test files, three test-support files, and one shrink-only baseline entry.

Why This Change Was Made

All ten campaign commits were replayed onto current main; none were skipped. Newer ownership, authorization, migration, storage, and lifecycle contracts took precedence during conflicts. Thirty-nine source test files, including startup cleanup, and both proposed production-export changes remain entirely unchanged from main. The final net reductions are 25,077 test lines, plus 17 support lines and one obsolete baseline entry.

Two independent full reviews produced 30 findings: 17 accepted/addressed and 13 rejected with concrete retained proof. The accepted changes restore distinct security, privacy, migration, and lifecycle coverage; the final oversized-request case also asserts rejection before another model preparation or completion. A scoped review of the corrections completed clean at P2. No failing assertion, deadline, or runtime behavior was weakened.

Evidence

Recovery validation — 2026-09-26 (round 4)

Final candidate: 34466e84f3ab76b66684418b2d52a16f6cb74d09, based on 412eecccd29d0a2613696944cea4a22525466b15; source tree b642c2f206e46d9b7744abd59bf33768c5b4cc10.

Three recovery passes in this session retained all 14 commits. The channel-setup conflict keeps main's asynchronous policy reads and the consolidated snapshot fixture. The final plugin conflicts preserve main's typed installed-index fixtures and the campaign's manifest helper. The obsolete six-source-to-one-source policy-test reduction was dropped because main moved and strengthened that owner; installed-plugin-index-store.policy.test.ts remains unchanged, including concurrent admission persistence and all six recovery sources. The remaining 13 commits are patch-identical to the preceding candidate. No production path changes, and the baseline only removes the obsolete auth-choice entry.

  • Blacksmith Testbox verified the exact head and tree, then passed 9,565 tests across 255 files, with four existing skips, in 13 groups. This covers all 254 changed test files plus the preserved policy owner. Command: CI=1 pnpm install --frozen-lockfile --prefer-offline >/dev/null && CI=1 pnpm test <changed test files> src/plugins/installed-plugin-index-store.policy.test.ts. Lease: tbx_01m3evc2cctyv3m60g6rw2k6xs; Testbox run. The lease is verified completed.
  • The prior failing UI job's include set, replayed with the current manifest and --maxWorkers 3 --shard 5/8, passed 419 tests across 80 files. The two composer files have moved out of that slice on this head. A dedicated final-head replay of the IME Escape and composer-measurement files was blocked before execution: Testbox reported that the lease had finished after source-snapshot preparation. Both files passed on the preceding rebased head 1197432ac8f within its 383-test browser run. The final-head direct replay is recorded as an infrastructure gap under the approved hosted-CI gating rule.
  • The full OPENCLAW_TESTBOX=1 node scripts/check-changed.mjs -- <changed paths> gate was run and remains non-green due to unrelated global core-lint failures: src/state/openclaw-agent-execution.worker.ts is 716/700 lines and ui/src/lib/sessions/session-mutations.ts was 709/700. Neither is changed by this PR. An independent macOS control at main 90b9af2658f01388f7e5e616047c4c9e280128dc reproduced the worker's exact 716/700 failure using the repository lint wrapper; its blob is identical to the candidate. The session-mutation case is already repaired on main by ea4004381820. All preceding selected guards, all 25 core/UI test typecheck groups, extension-test typing, and the script/production/full-tree dead-export scans passed. These passing steps do not make the complete changed gate green.
  • Local oxfmt --check passed on all 257 changed TypeScript files, and whitespace checks passed against the pinned base and fetched main. Fresh isolated Codex autoreview completed clean at P0 across six passes. Independent overlap review found no remaining issue: all nine main-added blocks in the three intersecting paths are preserved.

Earlier passes exposed a main-only state-worker test line-limit failure (fixed by 3b829ce81bd) and stale QA protocol references (fixed by 18b0130a21b9); both fixes are included in this base, and the QA catalog guard now passes. The earlier composer-measurement failure did not recur on the next full browser replay, which passed 383 tests, including IME Escape and measurement. A separate baseline attempt was blocked before execution by Blacksmith's two-minute full-sync timeout; no assertions, deadlines, or transport checks were weakened. Leases tbx_01m3ek5f5ff6agb4grgdrxmwfs and tbx_01m3er2et60bagm837p3942a8h were stopped and verified completed.

Final-head hosted CI completed successfully, and the required openclaw/ci-gate passed. UI E2E shard 3/9 passed 371 tests across 80 files and explicitly passed both IME Escape and native typing measurements. Its tested merge 943f6957cf636a60ba8a124e463cc30e8fa1ac45 includes the exact PR head. This supplies final-head regression proof despite the direct Testbox replay gap. The PR merged as cccacbe377ef on 2026-09-26. No enforced review or check was bypassed.

Historical recovery round 1 — 2026-09-26

Recovery round 1 rebased all 14 commits onto 51b995e18df4ebb6dd549c02b7d595522f21f39a. Published head: 52683bcb949e409eda1fd56caabcd9635b3687a1; candidate tree: 3ab594ec7935fe99d95e60074107b4d1ad878f4f.

The single conflict in src/gateway/github-repository-publication.test.ts retains the shared fixture consolidation and awaits seedPublicationWorker, preserving main's asynchronous placement setup. No hunks were dropped. An independent overlap inspection checked all 13 files changed on both sides and found no lost main contracts; the baseline remains shrink-only. The reduction scope and net line counts are unchanged.

  • Blacksmith Testbox verified the exact source and tree, then passed 9,556 tests across all 254 changed test files, with four existing skips, in 13 Vitest groups. Command: CI=1 pnpm install --frozen-lockfile --prefer-offline >/dev/null && CI=1 pnpm test <all changed test files>. The test runner reported 717.72 seconds. Lease: tbx_01m3edmbp32j5a1q62rrv4xs8s; Testbox run. The lease was stopped and its provider status verified as completed.
  • Local oxfmt --check passed on all 257 changed TypeScript files, and git diff --check origin/main passed. Fresh isolated autoreview completed scoped-clean at its default P0 threshold across six passes, with no findings. The broader earlier reviews and their dispositions remain documented below.
  • Blocked, not passed: the requested UI CI shard 1/3 replay and OPENCLAW_TESTBOX=1 node scripts/check-changed.mjs -- <changed paths> never started. Four attempts on the same lease failed during native Blacksmith full-checksum sync with sync timed out after 2m0s. Debug output showed the 259-path transport payload exceeded its 200-file incremental threshold. Publishing the candidate removed the missing-ref fetch error but did not remove the full-sync timeout. No test assertion, deadline, or transport limit was weakened; no sync-verification bypass was used.
  • The old UI shard failure was chat-thread.test.ts's closed-pane garbage-collection assertion under Bun. This PR does not change that file; its test body is identical on the recovery base. It has not been classified as reproduced on current main because the requested replay could not run.
  • Auto-merge is intentionally disabled by this recovery operator pending those two Testbox checks. Exact-head hosted CI was still running with no failed jobs when this evidence was recorded.

Historical validation before recovery

Base: 4363d7d55bdd991802a008ff7016032af5503cfe. Final candidate tree: 9eef0a5dc2dbdcf0153d338bcf77db7d139989fe.
Final head: 96dc23137d00bb5d4a3d8c4f834d2dcd7fcb78af.

  • The reviewed restoration tree ddb01550386e12ac072632f8d70eb708655cc7d0 passed 1,217 tests across 28 files on Blacksmith Testbox. Its six selected core type graphs, extension typing, core and extension lint, and dead-code/export checks passed.
  • Final-tree Testbox proof passed 306 tests across four files: pnpm test src/agents/exec-auto-reviewer.test.ts src/agents/cli-auth-epoch.test.ts src/shared/text/assistant-visible-text.test.ts src/agents/embedded-agent-helpers.sanitizeuserfacingtext.test.ts. The wrapper verified tree 9eef0a5dc2dbdcf0153d338bcf77db7d139989fe before running. Scoped corrections autoreview completed clean at P2; oxfmt --check and git diff --check passed. Lease tbx_01m3e7ngks9j36g3886kx87mmy was stopped after both proof commands; all earlier task leases were also stopped.
  • An earlier full-batch Testbox run covered all 255 then-changed test files: 9,533 tests passed, two replay fixture-reference failures were repaired and their affected files rerun successfully, and four existing skips remained. The final diff has 254 changed tests because startup cleanup was fully restored.
  • OPENCLAW_TESTBOX=1 node scripts/check-changed.mjs -- <changed paths> was run through the repository wrapper. The full changed gate remains non-green due to independently reproduced baseline failures below; selected changed-file checks passing does not make that full gate green.

The baseline failures also reproduced in fresh detached Testbox checkouts of base 4363d7d55bd, in files this PR does not change:

  • UI E2E typing: control-ui-retained-assets.e2e.test.ts imports ControlUiRootState from its old owner. Follow-up da8149b8ba7 addresses it.
  • Whole-core lint: line limits were exceeded in src/gateway/server-kernel.test.ts (1003/1000), src/gateway/channel-health-monitor.test.ts (1023/1000), src/state/openclaw-state-read.worker.ts (703/700), and src/config/sessions/session-accessor.sqlite-entry-cache-publication.ts (701/700). Follow-up 2d61c98379a addresses the state-worker case; the remaining failures were recorded without suppressions or baseline widening.

No changed path matches the current .github/CODEOWNERS rules. GitHub's required openclaw/ci-gate and enforced reviews remain the merge gates.

Category Inserted Deleted Net LOC Files
Production 0 0 0 0
Tests 9532 34612 -25080 254
Test support 2 19 -17 3
Baseline 0 1 -1 1

The initial CI run 36223284330 found two orphaned test-support exports. The exact dead-export gate now passes on Testbox. The Codex support helpers marketplaceEntry and withPersistentCodexTestToolPolicy remain internally used; only their orphaned export modifiers were removed. The other support cleanup is in src/commands/status.summary.test-support.ts. The baseline change only removes the obsolete auth-choice entry from config/max-lines-baseline.txt.

Review dispositions and retained proof

Accepted findings restore native config defaults and destructive-action policy rows; blocking secret input and startup cleanup; durable-admission acknowledgement; exec authorization variants; SecretRef serialization; failed refresh and later-started owner races; Talk scopes; sensitive node command families; omitted dotenv takeover keys; cross-plugin setup collisions; relay push privacy; source-only credential migration; and Discord/Slack binding context. The final input-size enhancement requires unknown risk and exactly one preparation/completion across an accepted 15k command followed by a rejected 16k command.

Rejected findings:

  • Terminal-anchor completion: The retained SQLite completion case checks the same terminal anchor and absent after-turn maintenance; extensions/codex/src/app-server/run-attempt.settlement.test.ts additionally checks the exact persisted-entry/idempotency anchor.
  • Blank-message migration: extensions/feishu/src/doctor.test.ts runs real Doctor against consecutive blank SQLite messages, verifies their removal and an empty transcript, and preserves unrelated state.
  • Webhook limiter cleanup: src/plugin-sdk/webhook-memory-guards.test.ts directly tests stale-key pruning and key caps for the shared limiter instantiated by extensions/feishu/src/monitor.state.ts; the Feishu burst-429 case remains.
  • Self-authored comments: extensions/feishu/src/monitor.comment.test.ts retains self-authored cold-start rejection and configured-identity versus mismatched-recipient rejection through the same effective-identity branch.
  • Missing parity scenario: extensions/qa-lab/src/agentic-parity-report.test.ts retains the same candidate/baseline inputs with one required scenario and checks failure, exactly one missing-scenario error, and no duplicate mismatch.
  • Migration restart diagnostics: extensions/qa-lab/src/gateway-child.test.ts retains the complete positive diagnostic, launch-state reuse and consumed-budget result, then rejects a second restart.
  • Send idempotency: src/gateway/server-methods/send.test.ts concurrently dispatches omitted and explicit default routes with one key, checking one outbound delivery and matching responses with one cached result.
  • Recovery scheduling: src/gateway/server-runtime-services.ts installs its retry interval unconditionally and ignores the recovery return value. The retained empty-scan test proves the five-second scheduler; pending, stop, and authority cases remain.
  • Plugin event namespace/scope: src/plugins/services.test.ts checks the exact namespaced event and operator.read scope during rollback through the same gateway-events.ts emitter.
  • Unrelated approval ownership: ui/src/pages/chat/tool-stream.node.test.ts retains an active foreground mapping, rejects an unrelated engine-run approval, and leaves waiting state empty. The owner checks exact run membership without heartbeat-specific semantics.
  • Malformed function-response text: src/shared/text/assistant-visible-text.test.ts retains newline, dangling, leading-space, and chained variants at the canonical sanitizer owner.
  • Reviewer acquisition failure: src/agents/exec-auto-reviewer.test.ts directly exercises an acquisition error and asserts ask, unknown risk, and an unavailable rationale.
  • OAuth account identity: src/agents/cli-auth-epoch.test.ts changes only the OAuth email and verifies the epoch changes; the adjacent profile-owned case independently covers account ID.

Original reviewed shard scope and historical coverage

These historical metrics compare the pre-recovery reviewed candidate with its original base, grouped by the original shard ownership. The two additional Codex support files belong to s018; files identical to base are omitted. Declarations count each it/test declaration once, including parameterized declarations, rather than executed cases: 7,687 → 7,068 (−619).

The coverage columns are historical measurements from the original shard audits. They are not coverage measurements of the rebased or reviewed candidate. Every original audit passed its 1% statement/branch gate on the measured subset; exclusions, existing failures, and retries are recorded per shard below.

Shard Changed files Final test LOC + / - (net) Declarations before → after (net) Historical covered statements; branches; functions
s023 23 +1034 / -2866 (-1832) 680 → 636 (-44) 11920 -> 11933 (+13); 9831 -> 9838 (+7); 2563 -> 2568 (+5)
s018 14 +934 / -4373 (-3439) 524 → 470 (-54) 13244 -> 13241 (-3); 10683 -> 10684 (+1); 2551 -> 2551 (0)
s025 29 +1332 / -3916 (-2584) 894 → 826 (-68) 20625 -> 20592 (-33); 16049 -> 16010 (-39); 3665 -> 3661 (-4)
s026 29 +1241 / -5154 (-3913) 984 → 880 (-104) 9597 -> 9589 (-8); 7196 -> 7187 (-9); 2111 -> 2106 (-5)
s024 25 +751 / -3348 (-2597) 635 → 588 (-47) 8458 -> 8438 (-20); 6491 -> 6474 (-17); 1573 -> 1571 (-2)
s027 27 +532 / -1636 (-1104) 731 → 708 (-23) 30909 -> 30709 (-200); 21624 -> 21497 (-127); 5769 -> 5731 (-38)
s028 29 +728 / -3094 (-2366) 925 → 845 (-80) 23229 -> 23228 (-1); 17862 -> 17858 (-4); 4501 -> 4501 (0)
s032 33 +1470 / -5786 (-4316) 1043 → 913 (-130) 7054 -> 7044 (-10); 5561 -> 5548 (-13); 1203 -> 1203 (0)
s031 21 +752 / -2321 (-1569) 595 → 551 (-44) 12967 -> 12960 (-7); 9093 -> 9086 (-7); 2417 -> 2418 (+1)
s033 28 +758 / -2118 (-1360) 676 → 651 (-25) 18296 -> 18296 (0); 13360 -> 13361 (+1); 3248 -> 3248 (0)
s023: changed files, replay decisions, and historical limitations

Retained current index seeding and synchronous lookup APIs, icon selection, replacement alias suites, plugin-root/auth additions, lifecycle caches and lazy status reporting. Reapplied duplicate removals and applicable fixture consolidation; omitted moved download, format and native-loading suites.

Historical coverage/validation limitations: All 29 assigned test files passed.

Final changed files:

  • src/plugins/capability-provider-runtime.test.ts
  • src/plugins/commands.test.ts
  • src/plugins/conversation-binding.test.ts
  • src/plugins/http-registry.test.ts
  • src/plugins/install-record-commit.test.ts
  • src/plugins/installed-plugin-index-records.test.ts
  • src/plugins/installed-plugin-index-store.test.ts
  • src/plugins/interactive.test.ts
  • src/plugins/management-service-featured.test.ts
  • src/plugins/marketplace.test.ts
  • src/plugins/openai-compatible-embedding-provider.test.ts
  • src/plugins/plugin-module-loader-cache.test.ts
  • src/plugins/plugin-registry.test.ts
  • src/plugins/provider-discovery.runtime.test.ts
  • src/plugins/provider-self-hosted-setup.test.ts
  • src/plugins/providers.test.ts
  • src/plugins/schema-validator.test.ts
  • src/plugins/sdk-alias.test.ts
  • src/plugins/services.test.ts
  • src/plugins/setup-registry.test.ts
  • src/plugins/status.registry-snapshot.test.ts
  • src/plugins/status.test.ts
  • src/plugins/uninstall.test.ts
s018: changed files, replay decisions, and historical limitations

Kept current startup cleanup, approval outcomes, consent/destructive-denial checks, app availability/policy, deferred turn-start barriers and MCP projections. Retained safe reductions and fixture consolidation; retained four rewritten files entirely from main, and restored startup cleanup entirely after review and did not resurrect moved or retired tests.

Historical coverage/validation limitations: Comparison excluded attempt-startup.test.ts and run-attempt.turn-watches.test.ts after baseline failures and SQLite-lock flakes; 17 comparison files. Both full test runs retained the pre-existing startup account/read failure.

Final changed files:

  • extensions/codex/src/app-server/approval-bridge.test.ts
  • extensions/codex/src/app-server/bounded-turn.test.ts
  • extensions/codex/src/app-server/computer-use.test-support.ts (test support)
  • extensions/codex/src/app-server/computer-use.test.ts
  • extensions/codex/src/app-server/config.test.ts
  • extensions/codex/src/app-server/elicitation-bridge.test.ts
  • extensions/codex/src/app-server/event-projector.assistant.test.ts
  • extensions/codex/src/app-server/plugin-thread-config.test.ts
  • extensions/codex/src/app-server/run-attempt.configured-mcp.test.ts
  • extensions/codex/src/app-server/run-attempt.context-engine.test-support.ts (test support)
  • extensions/codex/src/app-server/run-attempt.context-engine.test.ts
  • extensions/codex/src/app-server/run-attempt.turn-watches.test.ts
  • extensions/codex/src/app-server/thread-lifecycle.user-mcp-servers.test.ts
  • extensions/codex/src/app-server/transcript-mirror.test.ts
s025: changed files, replay decisions, and historical limitations

Kept new avatar/outbox/attachment facts, mutation-refresh distinctions, talk timer and voice-ownership boundaries, both failed-owner transport paths and current stream reconciliation. Dropped six rewritten files; retained safe duplicate removals and fixture reductions in current talk paths.

Historical coverage/validation limitations: Full shard tests and coverage passed. Larger per-file drops retained independent chat-pane-session-menu owner proof.

Final changed files:

  • ui/src/pages/chat/chat-avatar.test.ts
  • ui/src/pages/chat/chat-command-executor.test.ts
  • ui/src/pages/chat/chat-commands.test.ts
  • ui/src/pages/chat/chat-composer-actions.test.ts
  • ui/src/pages/chat/chat-composer.test.ts
  • ui/src/pages/chat/chat-gateway.test.ts
  • ui/src/pages/chat/chat-history.inflight.test.ts
  • ui/src/pages/chat/chat-history.test.ts
  • ui/src/pages/chat/chat-page.test.ts
  • ui/src/pages/chat/chat-pane-board.test.ts
  • ui/src/pages/chat/chat-pane-history.test.ts
  • ui/src/pages/chat/chat-pane-lifecycle.test.ts
  • ui/src/pages/chat/chat-pane-sharing.test.ts
  • ui/src/pages/chat/chat-pane.test.ts
  • ui/src/pages/chat/chat-pending-inputs.test.ts
  • ui/src/pages/chat/chat-session-rail.test.ts
  • ui/src/pages/chat/composer-dictation.test.ts
  • ui/src/pages/chat/history-merge.test.ts
  • ui/src/pages/chat/run-lifecycle.test.ts
  • ui/src/pages/chat/scroll.test.ts
  • ui/src/pages/chat/session-prefetch.test.ts
  • ui/src/pages/chat/stream-reconciliation.test.ts
  • ui/src/pages/chat/talk/consult.test.ts
  • ui/src/pages/chat/talk/google-live.test.ts
  • ui/src/pages/chat/talk/lifecycle.test.ts
  • ui/src/pages/chat/talk/session.test.ts
  • ui/src/pages/chat/talk/webrtc.test.ts
  • ui/src/pages/chat/tool-stream-fallback.node.test.ts
  • ui/src/pages/chat/tool-stream.node.test.ts
s026: changed files, replay decisions, and historical limitations

Preserved taxonomy/defaults, billing errors, producer failure/blocked evidence, attempt-specific script output directories, retained-root cleanup, repeated scenario-ID independence, portable channel binding and v2/v3 evidence. Dropped four rewritten files and omitted retired update-run or moved concurrency tests.

Historical coverage/validation limitations: All 36 assigned test files passed; one existing skip unchanged.

Final changed files:

  • extensions/qa-lab/src/agentic-parity-report.test.ts
  • extensions/qa-lab/src/character-eval.test.ts
  • extensions/qa-lab/src/cli.runtime.test.ts
  • extensions/qa-lab/src/cli.test.ts
  • extensions/qa-lab/src/code-mode-model-matrix.test.ts
  • extensions/qa-lab/src/confidence-report.test.ts
  • extensions/qa-lab/src/coverage-report.test.ts
  • extensions/qa-lab/src/evidence-gallery.test.ts
  • extensions/qa-lab/src/evidence-summary.test.ts
  • extensions/qa-lab/src/gateway-child-lifecycle.test.ts
  • extensions/qa-lab/src/gateway-child.test.ts
  • extensions/qa-lab/src/lab-server.test.ts
  • extensions/qa-lab/src/live-scenario-timeouts.test.ts
  • extensions/qa-lab/src/qa-gateway-config.test.ts
  • extensions/qa-lab/src/run-config.test.ts
  • extensions/qa-lab/src/runtime-parity.test.ts
  • extensions/qa-lab/src/runtime-tool-fixture.test.ts
  • extensions/qa-lab/src/scenario-catalog.test.ts
  • extensions/qa-lab/src/scenario-flow-runner.test.ts
  • extensions/qa-lab/src/suite-launch.runtime.test.ts
  • extensions/qa-lab/src/suite-planning.test.ts
  • extensions/qa-lab/src/suite-runtime-agent-process.test.ts
  • extensions/qa-lab/src/suite-runtime-agent-session.test.ts
  • extensions/qa-lab/src/suite-runtime-gateway.test.ts
  • extensions/qa-lab/src/suite-summary.test.ts
  • extensions/qa-lab/src/test-file-scenario-runner.script-evidence.test.ts
  • extensions/qa-lab/src/token-efficiency-report.test.ts
  • extensions/qa-lab/src/tool-coverage-report.test.ts
  • extensions/qa-lab/src/tool-search-gateway.fixture.test.ts
s024: changed files, replay decisions, and historical limitations

Preserved runtime JSON/status writers, linked-task and sanitization contracts, account-promotion identity, current doctor targets and shared async mocks. Dropped four rewritten files. Retained safe duplicates/fixtures and the shrink-only auth-choice baseline removal.

Historical coverage/validation limitations: Coverage excluded repeatedly failing baseline doctor-config-preflight.process.test.ts and health.snapshot.test.ts. Three unchanged doctor failures persisted in the final full run. Whole-core lint timed out at 900 seconds; focused lint and typecheck passed.

Final changed files:

  • config/max-lines-baseline.txt (baseline)
  • src/commands/agent-exec.test.ts
  • src/commands/agents.add.test.ts
  • src/commands/agents.providers.test.ts
  • src/commands/auth-choice.apply.plugin-provider.test.ts
  • src/commands/auth-choice.test.ts
  • src/commands/channels.add.test.ts
  • src/commands/channels.adds-non-default-telegram-account.test.ts
  • src/commands/configure.gateway-auth.prompt-auth-config.test.ts
  • src/commands/doctor-gateway-daemon-flow.test.ts
  • src/commands/doctor-memory-search.test.ts
  • src/commands/doctor-plugin-registry.test.ts
  • src/commands/doctor-session-canonical-keys.test.ts
  • src/commands/flows.test.ts
  • src/commands/gateway-status.test.ts
  • src/commands/health.test.ts
  • src/commands/migrate.test.ts
  • src/commands/onboard-guided.custodian.test.ts
  • src/commands/onboard.test.ts
  • src/commands/sessions-cleanup.test.ts
  • src/commands/status.summary.test-support.ts (test support)
  • src/commands/status.summary.test.ts
  • src/commands/status.test.ts
  • src/commands/tasks.test.ts
  • src/commands/triage.test.ts
s027: changed files, replay decisions, and historical limitations

Preserved draining/cancellation, placement/environment authority, request identity, session metadata and transcript helpers. Kept detailed auth-rotation and real asynchronous transcript-failure proof. Dropped two rewritten files and omitted moved task-event reductions.

Historical coverage/validation limitations: Two timing failures passed a 51/51 affected-file retry; full coverage retry passed all 38 files. Larger drops retained send.test.ts and server/ws-connection.test.ts owner proof.

Final changed files:

  • src/gateway/chat-abort.test.ts
  • src/gateway/chat-display-projection.test.ts
  • src/gateway/embeddings-http.test.ts
  • src/gateway/gateway-codex-harness.live-helpers.test.ts
  • src/gateway/github-oauth-lifecycle.test.ts
  • src/gateway/github-repository-publication.test.ts
  • src/gateway/hooks-mapping.test.ts
  • src/gateway/method-scopes.test.ts
  • src/gateway/operator-approval-store.test.ts
  • src/gateway/server-http.probe.test.ts
  • src/gateway/server-runtime-services.test.ts
  • src/gateway/server-runtime-subscriptions.test.ts
  • src/gateway/server.agent.gateway-server-agent-a.test.ts
  • src/gateway/server.hooks.test.ts
  • src/gateway/server.models-voicewake-misc.test.ts
  • src/gateway/server.node-pairing-authz.test.ts
  • src/gateway/server.plugin-http-auth.test.ts
  • src/gateway/server.sessions.create.projects.test.ts
  • src/gateway/server.sessions.delete-lifecycle.test.ts
  • src/gateway/server.sessions.recover.test.ts
  • src/gateway/server.sessions.reset-cleanup.test.ts
  • src/gateway/server.sessions.reset-hooks.test.ts
  • src/gateway/server.sessions.store-rpc.test.ts
  • src/gateway/session-observer.terminal.test.ts
  • src/gateway/session-observer.test.ts
  • src/gateway/talk/client-gateway-control.agent-consult.test.ts
  • src/gateway/tool-resolution.exclude.test.ts
s028: changed files, replay decisions, and historical limitations

Preserved parser/security, exec heartbeat, credential provenance, prepared-catalog scopes, personal-instructions and tool identity. Kept asynchronous model leases and expanded shared-owner dispatch gates. Dropped five rewritten files and obsolete owner-fixture helpers; retained applicable duplicate removals.

Historical coverage/validation limitations: Coverage covered 35 files and excluded auth-provenance and headless Code Mode after the failed retry group. The same pre-existing auth-provenance cooldown failure remained. Knip passed on retry.

Final changed files:

  • src/agents/agent-bundle-mcp-tools.materialize.test.ts
  • src/agents/agent-command.compaction-rotation.test.ts
  • src/agents/agent-command.embedded-maintenance.test.ts
  • src/agents/agent-tools.before-tool-call.embedded-mode.test.ts
  • src/agents/bash-tools.exec-approval-followup.test.ts
  • src/agents/bash-tools.exec-runtime.test.ts
  • src/agents/bash-tools.exec-workdir.test.ts
  • src/agents/bash-tools.exec.resolve-env-hook.test.ts
  • src/agents/bash-tools.test.ts
  • src/agents/bootstrap-files.test.ts
  • src/agents/cli-auth-epoch.test.ts
  • src/agents/cli-runner.before-agent-reply-cron.test.ts
  • src/agents/code-mode.bridge.test.ts
  • src/agents/embedded-agent-helpers.sanitizeuserfacingtext.test.ts
  • src/agents/exec-auto-reviewer.test.ts
  • src/agents/memory-search.test.ts
  • src/agents/model-auth-availability.test.ts
  • src/agents/model-fallback.probe.test.ts
  • src/agents/models-config.providers.auth-provenance.test.ts
  • src/agents/models-config.providers.implicit.discovery-scope.test.ts
  • src/agents/openclaw-tools.media-factory-plan.test.ts
  • src/agents/openclaw-tools.registration.test.ts
  • src/agents/prepared-model-runtime.lifecycle.test.ts
  • src/agents/prepared-model-runtime.test.ts
  • src/agents/provider-local-service.test.ts
  • src/agents/sandbox.resolveSandboxContext.test.ts
  • src/agents/session-tool-result-guard.test.ts
  • src/agents/session-tool-result-guard.tool-result-persist-hook.test.ts
  • src/agents/tool-search-runtime.test.ts
s032: changed files, replay decisions, and historical limitations

Preserved fake-timer cleanup, broadcast/shared harnesses, group-topic-sender precedence, attachment intent/promotion, downstream error handling, signed webhook time boundaries and mixed-case account authority. Dropped the rewritten send suite; retained safe fixture reductions and duplicate cases.

Historical coverage/validation limitations: Full shard tests and coverage passed. interactive-message-content.ts lost nine covered statements; its unchanged owner tests passed.

Final changed files:

  • extensions/feishu/src/accounts.test.ts
  • extensions/feishu/src/app-registration.test.ts
  • extensions/feishu/src/bot.broadcast.test.ts
  • extensions/feishu/src/bot.card-action.test.ts
  • extensions/feishu/src/bot.test.ts
  • extensions/feishu/src/channel.test.ts
  • extensions/feishu/src/chat.test.ts
  • extensions/feishu/src/client.test.ts
  • extensions/feishu/src/comment-dispatcher.test.ts
  • extensions/feishu/src/comment-handler.test.ts
  • extensions/feishu/src/config-schema.test.ts
  • extensions/feishu/src/directory.test.ts
  • extensions/feishu/src/doctor.test.ts
  • extensions/feishu/src/docx-create-loopback.test.ts
  • extensions/feishu/src/docx-table-actions.test.ts
  • extensions/feishu/src/docx.test.ts
  • extensions/feishu/src/drive.test.ts
  • extensions/feishu/src/dynamic-agent.test.ts
  • extensions/feishu/src/feishu-ingress.test.ts
  • extensions/feishu/src/media-upload-contract.test.ts
  • extensions/feishu/src/media.test.ts
  • extensions/feishu/src/monitor.comment.test.ts
  • extensions/feishu/src/monitor.reaction.test.ts
  • extensions/feishu/src/monitor.startup.test.ts
  • extensions/feishu/src/monitor.webhook-e2e.test.ts
  • extensions/feishu/src/monitor.webhook-security.test.ts
  • extensions/feishu/src/outbound.test.ts
  • extensions/feishu/src/probe.test.ts
  • extensions/feishu/src/reply-dispatcher.test.ts
  • extensions/feishu/src/send.reply-fallback.test.ts
  • extensions/feishu/src/setup-surface.test.ts
  • extensions/feishu/src/streaming-card.test.ts
  • extensions/feishu/src/tool-account-routing.test.ts
s031: changed files, replay decisions, and historical limitations

Preserved queue seeding, environment inputs, approval routing, captured restart revisions, asynchronous read-only snapshot assertions, doctor-only migrations and current publication receipts. Dropped six rewritten files; retained representative cache-allocation rows and supported duplicate removals.

Historical coverage/validation limitations: Partial coverage: 24/40 files, with 16 excluded. Failures were 3 before and 5 after; four after-failures were unchanged files, and the edited restart-sentinel flake passed 34/34 on retry.

Final changed files:

  • src/infra/delivery-queue-sqlite.test.ts
  • src/infra/device-bootstrap.test.ts
  • src/infra/device-pairing-node.test.ts
  • src/infra/diagnostic-events.test.ts
  • src/infra/dotenv.test.ts
  • src/infra/exec-approval-channel-runtime.test.ts
  • src/infra/exec-approval-forwarder.test.ts
  • src/infra/exec-approvals-policy.test.ts
  • src/infra/gateway-lock.test.ts
  • src/infra/heartbeat-runner.ghost-reminder.test.ts
  • src/infra/heartbeat-runner.skips-busy-session-lane.test.ts
  • src/infra/push-apns.test.ts
  • src/infra/restart-sentinel.test.ts
  • src/infra/sqlite-readonly-location.test.ts
  • src/infra/sqlite-snapshot.test.ts
  • src/infra/state-migrations.orphan-keys.test.ts
  • src/infra/state-migrations.shared-auth-store.test.ts
  • src/infra/state-migrations.workspace-setup-sandbox.test.ts
  • src/infra/state-migrations.workspace-setup.test.ts
  • src/infra/update-candidate-state.test.ts
  • src/infra/update-global.test.ts
s033: changed files, replay decisions, and historical limitations

Kept parser production files unchanged because their current exports have runtime callers. Preserved quoted/Unicode/mode-only diff coverage, runtime configuration and provenance, receipts, abort scope, resident-session/no-SQLite reads, fork authority/sandbox gates and current task factories. Terminal retains source-home coverage; only an empty-capability duplicate row was removed. Dropped obsolete outcomes/cache/date APIs and six entire test files.

Historical coverage/validation limitations: Complete 42-file before/after coverage, no exclusions; 1311 passed tests and two unchanged skips. Nonfatal Markdown parsing warnings appeared in both snapshots.

Final changed files:

  • src/gateway/server-methods/artifacts.test.ts
  • src/gateway/server-methods/board.test.ts
  • src/gateway/server-methods/chat-metadata-runtime.test.ts
  • src/gateway/server-methods/chat-send-pending-inputs.test.ts
  • src/gateway/server-methods/chat.abort-authorization.test.ts
  • src/gateway/server-methods/config.test.ts
  • src/gateway/server-methods/devices.lifecycle.test.ts
  • src/gateway/server-methods/environments.test.ts
  • src/gateway/server-methods/nodes.runner-inventory.test.ts
  • src/gateway/server-methods/nodes.test.ts
  • src/gateway/server-methods/question.test.ts
  • src/gateway/server-methods/session-active-runs.test.ts
  • src/gateway/server-methods/session-catalog.test.ts
  • src/gateway/server-methods/sessions-diff.test.ts
  • src/gateway/server-methods/sessions-files.test.ts
  • src/gateway/server-methods/sessions-read-cache.test.ts
  • src/gateway/server-methods/sessions-rewind.test.ts
  • src/gateway/server-methods/sessions-suggestions.test.ts
  • src/gateway/server-methods/sessions.abort-agent-scope.test.ts
  • src/gateway/server-methods/sessions.dispatch.test.ts
  • src/gateway/server-methods/skills.proposals.test.ts
  • src/gateway/server-methods/system-agent-setup-resolution.test.ts
  • src/gateway/server-methods/tasks.test.ts
  • src/gateway/server-methods/terminal.test.ts
  • src/gateway/server-methods/tools-effective.test.ts
  • src/gateway/server-methods/usage.sessions-usage.test.ts
  • src/gateway/talk/handlers/client-native-actions.test.ts
  • src/gateway/talk/handlers/native-consult-target.test.ts

@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 complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime commands Command implementations docker Docker and sandbox tooling agents Agent runtime and tooling channel: feishu Channel integration: feishu extensions: qa-lab extensions: codex size: XL labels Sep 26, 2026
@steipete
steipete enabled auto-merge (squash) September 26, 2026 06:19
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 26, 2026
@clawsweeper

clawsweeper Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 26, 2026, 10:36 AM ET / 14:36 UTC (Revision 4).

ClawSweeper review

What this changes

The branch consolidates tests across core agents, Gateway, plugins, QA Lab, and Control UI, trims three test-support files, and removes one obsolete line-limit baseline entry.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep open. Current main and the latest release still contain test cases this branch consolidates. The sampled authorization, webhook, authentication, and routing removals retain coverage at relevant boundaries; this review found no concrete introduced defect.

Priority: P3
Reviewed head: 34466e84f3ab76b66684418b2d52a16f6cb74d09

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The cleanup has substantial reported validation and retained boundary checks, with no concrete defect found in the inspected diff.
Proof confidence 🌊 off-meta tidepool Not applicable: The changed owner is the regression test suite, with no production behavior or stored-data contract change. The repository state identifies the author as a member, independently supported by repository admin permission; the reported exact-head Testbox run is supplemental validation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The changed owner is the regression test suite, with no production behavior or stored-data contract change. The repository state identifies the author as a member, independently supported by repository admin permission; the reported exact-head Testbox run is supplemental validation.
Evidence reviewed 12 items Introduced scope: The pinned introduced diff contains 254 test files, three test-support files, and one shrink-only baseline entry; it contains no production or stored-data contract change. This resolves the earlier review's truncated-file data-model uncertainty.
Still distinct from main: Fetched main retains a dotenv conflict case removed by the branch, so the central cleanup has not already landed.
Release check: The latest release also retains the pre-cleanup dotenv test file; this PR's consolidation is not shipped.
Findings None None.
Security None None.

How this fits together

OpenClaw's regression tests feed fixtures and simulated requests into core, plugin, and Control UI behavior. CI uses their results to detect regressions before a merge.

flowchart LR
  A[Source behavior and fixtures] --> B[Core and plugin tests]
  A --> C[Control UI tests]
  B --> D[CI results]
  C --> D
  D --> E[Merge gate]
Loading

Before merge

  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

None.

Stored data model

Persistent data-model change detected: unknown-truncated-pull-files. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep one independent test at each meaningful contract boundary and let the repository's normal exact-head CI and review gates determine landing.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this PR addresses test maintenance rather than a reported product failure.

Is this the best way to solve the issue?

Yes for the inspected removals: retaining stronger checks at the owning boundaries is a maintainable way to reduce duplicate tests.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against d9a52238b381.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is internal test-maintenance work with no introduced production behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The changed owner is the regression test suite, with no production behavior or stored-data contract change. The repository state identifies the author as a member, independently supported by repository admin permission; the reported exact-head Testbox run is supplemental validation.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Dallin Romney: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Alix-007: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Ayaan Zaidi: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (3 earlier review cycles)
  • reviewed 2026-09-26T06:23:04.597Z sha c038a4a :: blocked before merge. :: none
  • reviewed 2026-09-26T07:21:38.285Z sha 96dc231 :: blocked before merge. :: none
  • reviewed 2026-09-26T09:58:05.147Z sha 52683bc :: blocked before merge. :: none

@steipete
steipete disabled auto-merge September 26, 2026 06:31
@steipete
steipete enabled auto-merge (squash) September 26, 2026 07:13
@steipete
steipete disabled auto-merge September 26, 2026 09:38
@steipete
steipete force-pushed the tcr/land-d010-1790389409 branch from 96dc231 to 52683bc Compare September 26, 2026 09:39
@steipete
steipete enabled auto-merge (squash) September 26, 2026 09:51
Restore reviewed authorization, lifecycle, migration, and privacy cases with independent behavior coverage. Keep retained owner tests for duplicate findings and strengthen the pre-model input budget assertion. Make two internally used test-support helpers private after their external callers were removed.
@steipete
steipete force-pushed the tcr/land-d010-1790389409 branch from 52683bc to 34466e8 Compare September 26, 2026 14:27
@steipete
steipete merged commit cccacbe into main Sep 26, 2026
169 checks passed
@steipete
steipete deleted the tcr/land-d010-1790389409 branch September 26, 2026 14:43
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
…w#158698)

* test(plugins): deslop s023 tests

* test(codex): deslop s018 tests

* test(chat): deslop s025 tests

* test(qa-lab): deslop s026 tests

* test(commands): deslop s024 tests

* test(gateway): deslop s027 tests

* test(agents): deslop s028 tests

* test(feishu): deslop s032 tests

* test(infra): deslop s031 tests

* test(gateway): deslop s033 tests

* test: format d010 replayed fixtures

* test: repair d010 replay fixture references

* test: preserve replay fixture types and remove unused imports

* test: preserve distinct d010 regression coverage

Restore reviewed authorization, lifecycle, migration, and privacy cases with independent behavior coverage. Keep retained owner tests for duplicate findings and strengthen the pre-model input budget assertion. Make two internally used test-support helpers private after their external callers were removed.
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 commands Command implementations docker Docker and sandbox tooling extensions: codex extensions: qa-lab gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant