Repository navigation
test(core,plugins,chat): remove low-value tests (batch d010) - #158698
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 26, 2026, 10:36 AM ET / 14:36 UTC (Revision 4). ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherOpenClaw'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]
Before merge
Agent review detailsSecurityNone. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest 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. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
96dc231 to
52683bc
Compare
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.
52683bc to
34466e8
Compare
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.
…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.
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 on412eecccd29d0a2613696944cea4a22525466b15; source treeb642c2f206e46d9b7744abd59bf33768c5b4cc10.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.tsremains 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.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.--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 head1197432ac8fwithin its 383-test browser run. The final-head direct replay is recorded as an infrastructure gap under the approved hosted-CI gating rule.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.tsis 716/700 lines andui/src/lib/sessions/session-mutations.tswas 709/700. Neither is changed by this PR. An independent macOS control at main90b9af2658f01388f7e5e616047c4c9e280128dcreproduced 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.oxfmt --checkpassed 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_01m3ek5f5ff6agb4grgdrxmwfsandtbx_01m3er2et60bagm837p3942a8hwere stopped and verified completed.Final-head hosted CI completed successfully, and the required
openclaw/ci-gatepassed. UI E2E shard 3/9 passed 371 tests across 80 files and explicitly passed both IME Escape and native typing measurements. Its tested merge943f6957cf636a60ba8a124e463cc30e8fa1ac45includes 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.tsretains the shared fixture consolidation and awaitsseedPublicationWorker, 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.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.oxfmt --checkpassed on all 257 changed TypeScript files, andgit diff --check origin/mainpassed. Fresh isolated autoreview completedscoped-cleanat its default P0 threshold across six passes, with no findings. The broader earlier reviews and their dispositions remain documented below.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 withsync 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.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.Historical validation before recovery
Base:
4363d7d55bdd991802a008ff7016032af5503cfe. Final candidate tree:9eef0a5dc2dbdcf0153d338bcf77db7d139989fe.Final head:
96dc23137d00bb5d4a3d8c4f834d2dcd7fcb78af.ddb01550386e12ac072632f8d70eb708655cc7d0passed 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.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 tree9eef0a5dc2dbdcf0153d338bcf77db7d139989febefore running. Scoped corrections autoreview completed clean at P2;oxfmt --checkandgit diff --checkpassed. Leasetbx_01m3e7ngks9j36g3886kx87mmywas stopped after both proof commands; all earlier task leases were also stopped.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:control-ui-retained-assets.e2e.test.tsimportsControlUiRootStatefrom its old owner. Follow-up da8149b8ba7 addresses it.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), andsrc/config/sessions/session-accessor.sqlite-entry-cache-publication.ts(701/700). Follow-up2d61c98379aaddresses the state-worker case; the remaining failures were recorded without suppressions or baseline widening.No changed path matches the current
.github/CODEOWNERSrules. GitHub's requiredopenclaw/ci-gateand enforced reviews remain the merge gates.The initial CI run 36223284330 found two orphaned test-support exports. The exact dead-export gate now passes on Testbox. The Codex support helpers
marketplaceEntryandwithPersistentCodexTestToolPolicyremain internally used; only their orphaned export modifiers were removed. The other support cleanup is insrc/commands/status.summary.test-support.ts. The baseline change only removes the obsolete auth-choice entry fromconfig/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:
extensions/codex/src/app-server/run-attempt.settlement.test.tsadditionally checks the exact persisted-entry/idempotency anchor.extensions/feishu/src/doctor.test.tsruns real Doctor against consecutive blank SQLite messages, verifies their removal and an empty transcript, and preserves unrelated state.src/plugin-sdk/webhook-memory-guards.test.tsdirectly tests stale-key pruning and key caps for the shared limiter instantiated byextensions/feishu/src/monitor.state.ts; the Feishu burst-429 case remains.extensions/feishu/src/monitor.comment.test.tsretains self-authored cold-start rejection and configured-identity versus mismatched-recipient rejection through the same effective-identity branch.extensions/qa-lab/src/agentic-parity-report.test.tsretains the same candidate/baseline inputs with one required scenario and checks failure, exactly one missing-scenario error, and no duplicate mismatch.extensions/qa-lab/src/gateway-child.test.tsretains the complete positive diagnostic, launch-state reuse and consumed-budget result, then rejects a second restart.src/gateway/server-methods/send.test.tsconcurrently dispatches omitted and explicit default routes with one key, checking one outbound delivery and matching responses with one cached result.src/gateway/server-runtime-services.tsinstalls 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.src/plugins/services.test.tschecks the exact namespaced event andoperator.readscope during rollback through the samegateway-events.tsemitter.ui/src/pages/chat/tool-stream.node.test.tsretains 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.src/shared/text/assistant-visible-text.test.tsretains newline, dangling, leading-space, and chained variants at the canonical sanitizer owner.src/agents/exec-auto-reviewer.test.tsdirectly exercises an acquisition error and assertsask, unknown risk, and an unavailable rationale.src/agents/cli-auth-epoch.test.tschanges 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/testdeclaration 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.
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.tssrc/plugins/commands.test.tssrc/plugins/conversation-binding.test.tssrc/plugins/http-registry.test.tssrc/plugins/install-record-commit.test.tssrc/plugins/installed-plugin-index-records.test.tssrc/plugins/installed-plugin-index-store.test.tssrc/plugins/interactive.test.tssrc/plugins/management-service-featured.test.tssrc/plugins/marketplace.test.tssrc/plugins/openai-compatible-embedding-provider.test.tssrc/plugins/plugin-module-loader-cache.test.tssrc/plugins/plugin-registry.test.tssrc/plugins/provider-discovery.runtime.test.tssrc/plugins/provider-self-hosted-setup.test.tssrc/plugins/providers.test.tssrc/plugins/schema-validator.test.tssrc/plugins/sdk-alias.test.tssrc/plugins/services.test.tssrc/plugins/setup-registry.test.tssrc/plugins/status.registry-snapshot.test.tssrc/plugins/status.test.tssrc/plugins/uninstall.test.tss018: 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.tsextensions/codex/src/app-server/bounded-turn.test.tsextensions/codex/src/app-server/computer-use.test-support.ts(test support)extensions/codex/src/app-server/computer-use.test.tsextensions/codex/src/app-server/config.test.tsextensions/codex/src/app-server/elicitation-bridge.test.tsextensions/codex/src/app-server/event-projector.assistant.test.tsextensions/codex/src/app-server/plugin-thread-config.test.tsextensions/codex/src/app-server/run-attempt.configured-mcp.test.tsextensions/codex/src/app-server/run-attempt.context-engine.test-support.ts(test support)extensions/codex/src/app-server/run-attempt.context-engine.test.tsextensions/codex/src/app-server/run-attempt.turn-watches.test.tsextensions/codex/src/app-server/thread-lifecycle.user-mcp-servers.test.tsextensions/codex/src/app-server/transcript-mirror.test.tss025: 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.tsui/src/pages/chat/chat-command-executor.test.tsui/src/pages/chat/chat-commands.test.tsui/src/pages/chat/chat-composer-actions.test.tsui/src/pages/chat/chat-composer.test.tsui/src/pages/chat/chat-gateway.test.tsui/src/pages/chat/chat-history.inflight.test.tsui/src/pages/chat/chat-history.test.tsui/src/pages/chat/chat-page.test.tsui/src/pages/chat/chat-pane-board.test.tsui/src/pages/chat/chat-pane-history.test.tsui/src/pages/chat/chat-pane-lifecycle.test.tsui/src/pages/chat/chat-pane-sharing.test.tsui/src/pages/chat/chat-pane.test.tsui/src/pages/chat/chat-pending-inputs.test.tsui/src/pages/chat/chat-session-rail.test.tsui/src/pages/chat/composer-dictation.test.tsui/src/pages/chat/history-merge.test.tsui/src/pages/chat/run-lifecycle.test.tsui/src/pages/chat/scroll.test.tsui/src/pages/chat/session-prefetch.test.tsui/src/pages/chat/stream-reconciliation.test.tsui/src/pages/chat/talk/consult.test.tsui/src/pages/chat/talk/google-live.test.tsui/src/pages/chat/talk/lifecycle.test.tsui/src/pages/chat/talk/session.test.tsui/src/pages/chat/talk/webrtc.test.tsui/src/pages/chat/tool-stream-fallback.node.test.tsui/src/pages/chat/tool-stream.node.test.tss026: 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.tsextensions/qa-lab/src/character-eval.test.tsextensions/qa-lab/src/cli.runtime.test.tsextensions/qa-lab/src/cli.test.tsextensions/qa-lab/src/code-mode-model-matrix.test.tsextensions/qa-lab/src/confidence-report.test.tsextensions/qa-lab/src/coverage-report.test.tsextensions/qa-lab/src/evidence-gallery.test.tsextensions/qa-lab/src/evidence-summary.test.tsextensions/qa-lab/src/gateway-child-lifecycle.test.tsextensions/qa-lab/src/gateway-child.test.tsextensions/qa-lab/src/lab-server.test.tsextensions/qa-lab/src/live-scenario-timeouts.test.tsextensions/qa-lab/src/qa-gateway-config.test.tsextensions/qa-lab/src/run-config.test.tsextensions/qa-lab/src/runtime-parity.test.tsextensions/qa-lab/src/runtime-tool-fixture.test.tsextensions/qa-lab/src/scenario-catalog.test.tsextensions/qa-lab/src/scenario-flow-runner.test.tsextensions/qa-lab/src/suite-launch.runtime.test.tsextensions/qa-lab/src/suite-planning.test.tsextensions/qa-lab/src/suite-runtime-agent-process.test.tsextensions/qa-lab/src/suite-runtime-agent-session.test.tsextensions/qa-lab/src/suite-runtime-gateway.test.tsextensions/qa-lab/src/suite-summary.test.tsextensions/qa-lab/src/test-file-scenario-runner.script-evidence.test.tsextensions/qa-lab/src/token-efficiency-report.test.tsextensions/qa-lab/src/tool-coverage-report.test.tsextensions/qa-lab/src/tool-search-gateway.fixture.test.tss024: 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.tssrc/commands/agents.add.test.tssrc/commands/agents.providers.test.tssrc/commands/auth-choice.apply.plugin-provider.test.tssrc/commands/auth-choice.test.tssrc/commands/channels.add.test.tssrc/commands/channels.adds-non-default-telegram-account.test.tssrc/commands/configure.gateway-auth.prompt-auth-config.test.tssrc/commands/doctor-gateway-daemon-flow.test.tssrc/commands/doctor-memory-search.test.tssrc/commands/doctor-plugin-registry.test.tssrc/commands/doctor-session-canonical-keys.test.tssrc/commands/flows.test.tssrc/commands/gateway-status.test.tssrc/commands/health.test.tssrc/commands/migrate.test.tssrc/commands/onboard-guided.custodian.test.tssrc/commands/onboard.test.tssrc/commands/sessions-cleanup.test.tssrc/commands/status.summary.test-support.ts(test support)src/commands/status.summary.test.tssrc/commands/status.test.tssrc/commands/tasks.test.tssrc/commands/triage.test.tss027: 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.tssrc/gateway/chat-display-projection.test.tssrc/gateway/embeddings-http.test.tssrc/gateway/gateway-codex-harness.live-helpers.test.tssrc/gateway/github-oauth-lifecycle.test.tssrc/gateway/github-repository-publication.test.tssrc/gateway/hooks-mapping.test.tssrc/gateway/method-scopes.test.tssrc/gateway/operator-approval-store.test.tssrc/gateway/server-http.probe.test.tssrc/gateway/server-runtime-services.test.tssrc/gateway/server-runtime-subscriptions.test.tssrc/gateway/server.agent.gateway-server-agent-a.test.tssrc/gateway/server.hooks.test.tssrc/gateway/server.models-voicewake-misc.test.tssrc/gateway/server.node-pairing-authz.test.tssrc/gateway/server.plugin-http-auth.test.tssrc/gateway/server.sessions.create.projects.test.tssrc/gateway/server.sessions.delete-lifecycle.test.tssrc/gateway/server.sessions.recover.test.tssrc/gateway/server.sessions.reset-cleanup.test.tssrc/gateway/server.sessions.reset-hooks.test.tssrc/gateway/server.sessions.store-rpc.test.tssrc/gateway/session-observer.terminal.test.tssrc/gateway/session-observer.test.tssrc/gateway/talk/client-gateway-control.agent-consult.test.tssrc/gateway/tool-resolution.exclude.test.tss028: 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.tssrc/agents/agent-command.compaction-rotation.test.tssrc/agents/agent-command.embedded-maintenance.test.tssrc/agents/agent-tools.before-tool-call.embedded-mode.test.tssrc/agents/bash-tools.exec-approval-followup.test.tssrc/agents/bash-tools.exec-runtime.test.tssrc/agents/bash-tools.exec-workdir.test.tssrc/agents/bash-tools.exec.resolve-env-hook.test.tssrc/agents/bash-tools.test.tssrc/agents/bootstrap-files.test.tssrc/agents/cli-auth-epoch.test.tssrc/agents/cli-runner.before-agent-reply-cron.test.tssrc/agents/code-mode.bridge.test.tssrc/agents/embedded-agent-helpers.sanitizeuserfacingtext.test.tssrc/agents/exec-auto-reviewer.test.tssrc/agents/memory-search.test.tssrc/agents/model-auth-availability.test.tssrc/agents/model-fallback.probe.test.tssrc/agents/models-config.providers.auth-provenance.test.tssrc/agents/models-config.providers.implicit.discovery-scope.test.tssrc/agents/openclaw-tools.media-factory-plan.test.tssrc/agents/openclaw-tools.registration.test.tssrc/agents/prepared-model-runtime.lifecycle.test.tssrc/agents/prepared-model-runtime.test.tssrc/agents/provider-local-service.test.tssrc/agents/sandbox.resolveSandboxContext.test.tssrc/agents/session-tool-result-guard.test.tssrc/agents/session-tool-result-guard.tool-result-persist-hook.test.tssrc/agents/tool-search-runtime.test.tss032: 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.tsextensions/feishu/src/app-registration.test.tsextensions/feishu/src/bot.broadcast.test.tsextensions/feishu/src/bot.card-action.test.tsextensions/feishu/src/bot.test.tsextensions/feishu/src/channel.test.tsextensions/feishu/src/chat.test.tsextensions/feishu/src/client.test.tsextensions/feishu/src/comment-dispatcher.test.tsextensions/feishu/src/comment-handler.test.tsextensions/feishu/src/config-schema.test.tsextensions/feishu/src/directory.test.tsextensions/feishu/src/doctor.test.tsextensions/feishu/src/docx-create-loopback.test.tsextensions/feishu/src/docx-table-actions.test.tsextensions/feishu/src/docx.test.tsextensions/feishu/src/drive.test.tsextensions/feishu/src/dynamic-agent.test.tsextensions/feishu/src/feishu-ingress.test.tsextensions/feishu/src/media-upload-contract.test.tsextensions/feishu/src/media.test.tsextensions/feishu/src/monitor.comment.test.tsextensions/feishu/src/monitor.reaction.test.tsextensions/feishu/src/monitor.startup.test.tsextensions/feishu/src/monitor.webhook-e2e.test.tsextensions/feishu/src/monitor.webhook-security.test.tsextensions/feishu/src/outbound.test.tsextensions/feishu/src/probe.test.tsextensions/feishu/src/reply-dispatcher.test.tsextensions/feishu/src/send.reply-fallback.test.tsextensions/feishu/src/setup-surface.test.tsextensions/feishu/src/streaming-card.test.tsextensions/feishu/src/tool-account-routing.test.tss031: 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.tssrc/infra/device-bootstrap.test.tssrc/infra/device-pairing-node.test.tssrc/infra/diagnostic-events.test.tssrc/infra/dotenv.test.tssrc/infra/exec-approval-channel-runtime.test.tssrc/infra/exec-approval-forwarder.test.tssrc/infra/exec-approvals-policy.test.tssrc/infra/gateway-lock.test.tssrc/infra/heartbeat-runner.ghost-reminder.test.tssrc/infra/heartbeat-runner.skips-busy-session-lane.test.tssrc/infra/push-apns.test.tssrc/infra/restart-sentinel.test.tssrc/infra/sqlite-readonly-location.test.tssrc/infra/sqlite-snapshot.test.tssrc/infra/state-migrations.orphan-keys.test.tssrc/infra/state-migrations.shared-auth-store.test.tssrc/infra/state-migrations.workspace-setup-sandbox.test.tssrc/infra/state-migrations.workspace-setup.test.tssrc/infra/update-candidate-state.test.tssrc/infra/update-global.test.tss033: 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.tssrc/gateway/server-methods/board.test.tssrc/gateway/server-methods/chat-metadata-runtime.test.tssrc/gateway/server-methods/chat-send-pending-inputs.test.tssrc/gateway/server-methods/chat.abort-authorization.test.tssrc/gateway/server-methods/config.test.tssrc/gateway/server-methods/devices.lifecycle.test.tssrc/gateway/server-methods/environments.test.tssrc/gateway/server-methods/nodes.runner-inventory.test.tssrc/gateway/server-methods/nodes.test.tssrc/gateway/server-methods/question.test.tssrc/gateway/server-methods/session-active-runs.test.tssrc/gateway/server-methods/session-catalog.test.tssrc/gateway/server-methods/sessions-diff.test.tssrc/gateway/server-methods/sessions-files.test.tssrc/gateway/server-methods/sessions-read-cache.test.tssrc/gateway/server-methods/sessions-rewind.test.tssrc/gateway/server-methods/sessions-suggestions.test.tssrc/gateway/server-methods/sessions.abort-agent-scope.test.tssrc/gateway/server-methods/sessions.dispatch.test.tssrc/gateway/server-methods/skills.proposals.test.tssrc/gateway/server-methods/system-agent-setup-resolution.test.tssrc/gateway/server-methods/tasks.test.tssrc/gateway/server-methods/terminal.test.tssrc/gateway/server-methods/tools-effective.test.tssrc/gateway/server-methods/usage.sessions-usage.test.tssrc/gateway/talk/handlers/client-native-actions.test.tssrc/gateway/talk/handlers/native-consult-target.test.ts