Skip to content

test(core,ui,plugins): remove low-value tests (batch d619) - #184769

Merged
steipete merged 33 commits into
mainfrom
tcr/land-d619-1793029330
Oct 26, 2026
Merged

steipete merged 33 commits into
mainfrom
tcr/land-d619-1793029330

Conversation

@steipete

@steipete steipete commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Consolidate redundant test fixtures, assertion scaffolding, and duplicate lower-level replays while retaining distinct boundary, lifecycle, authorization, and persistence coverage. This is batch d619, rebased onto main at 3d7f8fb. No product behavior is changed.

28 of 30 supplied commits applied (some partially). Skipped 9bbe6b01dafd and 4edbb38df0b2 because their only changes overlap newer main coverage and ownership contracts. No production source changes: production +0/-0 LOC; tests and test support +1884/-3303 LOC (net -1419). Two test files are consolidated into retained suites; one shared test-support file is added.

Evidence

  • Frozen-lockfile install passed.
  • Changed-file oxfmt passed (51 existing files); plain oxlint with .oxlintrc.json exited 0; git diff --check passed.
  • CI-only operator instruction: no local Vitest, check-changed, typechecking, coverage, or Testbox. Hosted openclaw/ci-gate is the behavioral gate; review runs during CI.
  • All 17 source shard reports explicitly state tests and coverage were not run. They contain no measured covered-statement/branch totals; no coverage-preservation percentage is claimed. Their initial LOC figures precede later consolidation commits, so the accounting below is measured from this PR's pinned base and final tree.

Replay decisions

  • o0458: kept main's approval-native.test.ts and error-policy.test.ts unchanged, retaining account/thread isolation and current approval fixtures. Applied other Telegram changes.
  • o0459: consolidated alias/lifecycle cases while retaining main's escaped-untrusted-input bounds and JSON serialization assertions. Dropped the later work-context reduction; applied its separate restart-input deletion.
  • o0462: retained main's browser-redact, clipboard, open-external-url, speech-playback and system-info tests. These overlap newer security/focus/playback fixtures; applied only the nonconflicting link-preview cleanup. Skipped the follow-up boundary consolidation entirely.
  • o0461: retained current migration-import and provenance integration tests, including separate security/memory consent assertions. Applied navigation and finalize-fixture cleanup.
  • o0464: retained main's assistant events suite; applied reactions and interaction-lifecycle cleanup.
  • o0465: retained both current timer suites and their real helper; did not introduce the missing createTimerExecutionState import noted in the source report. Kept damaged exec-grant and admission coverage; applied other cron cleanup.
  • o0471: kept main's notice delivery/session-owned append contract and skipped the conflicting notice table. Applied policy diagnostics and the nonconflicting fixture cleanup.
  • o0474: kept main's route-navigation, archive-state and usage suites, applying only swarm-activity cleanup.
  • The only baseline change removes two obsolete Tlon mock-export entries; no allowances were added and no production seams changed. No changed path matches .github/CODEOWNERS.

Per-shard accounting

LOC includes test support. Declarations are static it/test declarations (parameterized rows are not expanded); these are not executed test counts. Only files actually changed by this PR are listed.

Shard Test/support LOC Declarations Changed files
o0458 424 → 352 3 → 3 extensions/telegram/src/bot-media-timers.test-support.ts
extensions/telegram/src/bot.callback-retry.test.ts
extensions/telegram/src/telegram-ingress-worker.context.test.ts
extensions/telegram/src/thread-bindings.test-support.ts
o0459 415 → 321 12 → 8 ui/src/pages/chat/chat-export.test.ts
ui/src/pages/chat/chat-pane-suspension.test.ts
ui/src/pages/chat/chat-restart-input.test.ts
ui/src/pages/chat/chat-work-context.test.ts
o0461 374 → 280 6 → 5 src/wizard/navigation-prompter.test.ts
src/wizard/setup.finalize.fixtures.test-support.ts
o0462 101 → 93 5 → 5 ui/src/lib/link-preview.test.ts
o0463 715 → 577 31 → 27 extensions/tlon/src/urbit/channel-ops.transport.test.ts
extensions/tlon/src/urbit/fetch.test.ts
extensions/tlon/src/urbit/sse-client.test.ts
extensions/tlon/src/urbit/upload.test.ts
o0464 539 → 463 15 → 14 extensions/slack/src/monitor/events/interactions.lifecycle.test.ts
extensions/slack/src/monitor/events/reactions.test.ts
o0465 464 → 376 9 → 6 src/cron/service/jobs.schedule-error-isolation.test.ts
src/cron/service/ops-lifecycle.start-arm.test.ts
src/cron/service/ops.mutation-completion.test.ts
src/cron/service/parent-pause.service.test.ts
o0466 683 → 571 27 → 26 packages/gateway-protocol/src/gateway-suspend.test.ts
packages/gateway-protocol/src/native-protocol-levels.guard.test.ts
packages/gateway-protocol/src/plugins-validators.test.ts
packages/gateway-protocol/src/transcripts.test.ts
packages/gateway-protocol/src/update-runs-validators.test.ts
o0467 418 → 297 12 → 8 src/hooks/bundled/session-memory/handler-admission.test.ts
src/hooks/bundled/session-memory/handler-auto-reset.test.ts
src/hooks/bundled/session-memory/transcript.test.ts
o0468 538 → 430 11 → 10 ui/src/pages/model-setup/first-run-activation-receipt.test.ts
ui/src/pages/model-setup/first-run.test.ts
ui/src/pages/model-setup/provider-picker.browser.test.ts
ui/src/pages/model-setup/rpc.test.ts
o0469 680 → 550 30 → 18 extensions/memory-lancedb/auto-recall.deadline.test.ts
extensions/memory-lancedb/lancedb-store.delete.test.ts
extensions/memory-lancedb/memory-capture-sanitization.test.ts
extensions/memory-lancedb/memory-cli.test.ts
extensions/memory-lancedb/memory-stats.test.ts
o0470 675 → 583 34 → 30 src/tui/components/btw-inline-message.test.ts
src/tui/components/chat-log-run-state.test.ts
src/tui/components/filterable-select-list.test.ts
src/tui/components/render.test-support.ts
src/tui/components/searchable-select-list.test.ts
src/tui/components/tool-execution.test.ts
o0471 564 → 552 22 → 21 src/skills/workshop/review-outcome.test.ts
src/skills/workshop/tool-policy-diagnostic.test.ts
o0472 151 → 146 3 → 3 ui/src/lib/config/runtime-config-activation.test.ts
o0473 658 → 526 25 → 20 extensions/parallel/src/parallel-web-search-provider.test.ts
o0474 105 → 99 1 → 1 ui/src/lib/sessions/swarm-activity.integration.test.ts
o0477 650 → 519 10 → 10 ui/src/components/terminal/terminal-file-upload.test.ts
ui/src/components/terminal/terminal-panel-handoff.test.ts
ui/src/components/terminal/terminal-panel-lifecycle.test-support.ts
ui/src/components/terminal/terminal-panel-readiness.test.ts

Total changed test/support LOC: 8154 → 6735; declarations 256 → 215. Source reports' common coverage status: tests and coverage were not run, per CI-only instructions.

CI correction

The initial run found three replay defects: a missing retained expect import in gateway-suspend, a stored cron fixture annotated with the public CronJob type, and an untyped Promise rejection reason in the cold-start fixture. Restored the import, used CronStoredJob, and supplied an Error rejection. No assertions or timeouts were weakened. Changed-file formatting, plain lint, and diff checks pass; the narrow independent review of these three corrections found no actionable P0–P2 issue. The eight initial review concerns were rejected with source-backed sibling coverage and fixture-cleanup evidence.

The next CI run identified TS2532 in the Slack pin fixture after mapping its source tuple into an array. The fixture now reads the identical event directly from the fixed source tuple, retaining bounds proof. Plain lint/format/diff checks and a narrow independent review passed; no test assertion changed.

The third run exposed a Vitest hoisted-export syntax failure in Telegram and missing real-export preservation in two Tlon mocks. The former now uses the original separate export; the two mocks spread their real modules and override only the intended function. Narrow independent review and local lightweight gates passed. Untouched UI tests (chat-details-session and event-log browser selection) also failed; neither failed in the latest completed scheduled-main run. Rebased onto current main at cd3bcc0 without conflicts to obtain fresh-head evidence. git range-diff confirms all 31 commits are patch-identical across that rebase. No unrelated UI test assertions were changed.

On the rebased run, all three UI shards and UI E2E passed, so the two untouched UI failures did not recur. Core typed lint found the auto-reset capture map could return void; its callback is async again and awaits the hook, preserving concurrent invocation and a Promise-valued aggregate. Plain lint/format/diff checks and narrow independent review passed for this correction. Fresh-head CI remains the final gate.

The following CI run required deleting the two obsolete Tlon mock-export baseline entries after their mocks began preserving real exports. Removed exactly those entries, retained the separate SDK media-runtime entry, and added no exceptions. Narrow review passed. The test/support split remains +1884/-3303 LOC (net -1419); the baseline is a further -2 lines, for -1421 total net lines.

The next run reported failures in two untouched main-owned tests: a reply-turn fixture type error and the chat-details renderer case. Both files changed on current main since the prior base (including a new wait in the renderer test). Rebased onto 3d7f8fb without conflicts; range-diff confirms all 33 commits remain patch-identical. No batch helper is imported by the failing chat-details test. Fresh-head CI will determine whether these main changes resolve the failures; no inherited-failure exception is claimed without matching scheduled-main proof.

@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review blocked

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

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

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

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

View the workflow run.

@steipete
steipete enabled auto-merge (squash) October 26, 2026 15:47
@chatgpt-codex-connector

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

Copy link
Copy Markdown
Contributor

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T18:18:00.279668Z fc69ec5 New commits
ℹ️ About Codex in GitHub

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

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

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

@openclaw-barnacle openclaw-barnacle Bot added channel: slack Channel integration: slack channel: telegram Channel integration: telegram channel: tlon Channel integration: tlon app: web-ui App: web-ui gateway Gateway runtime extensions: memory-lancedb Extension: memory-lancedb extensions: parallel size: XL labels Oct 26, 2026
@steipete
steipete disabled auto-merge October 26, 2026 15:52
@steipete

Copy link
Copy Markdown
Contributor Author

Review disposition for this exact head: all eight reported concerns were checked against current source and existing sibling coverage; none requires a code change.

  • Callback classification remains at the actual ingress monitor in telegram-ingress-drain.test.ts: wrapped/deferred callback authority rejections are dead-lettered, and late retryable errors stay pending. The changed callback suite retains real callback-to-processing-frame failure propagation and expired-ack delivery.
  • Browser custody is retained in chat-pending-inputs.test.ts (“transfers accepted %s input to server custody without duplicating display”), including persisted outbox removal and consumed receipts; chat-send.test.ts tests duplicate-ACK reconciliation from a persisted queue.
  • Native protocol floors have executable Swift coverage in GatewayNodeSessionTests.swift (“node connections use the node protocol floor”); apps/macos/Tests/OpenClawIPCTests/GatewayChannelConnectTests.swift asserts encoded min/max handshake fields.
  • There are no remaining vi.resetModules() calls in the thread-binding fixture consumers. Their “reload” cases instantiate a new manager against the same module/store, so the removed dynamic reimport is obsolete.
  • memory-lancedb/index.test.ts still exercises the registered before-prompt hook and its 15-second timeout/cooldown wiring. The reduced deadline test separately drives real provider discovery and cold initialization through the embedding adapter.
  • memory-lancedb/index.test.ts (“memory_forget reports authoritative delete receipts”) drives the real store through zero/one deleted-row results and checks caller-visible not-found/deleted results, with countRows returning 1. The reduced store suite retains native failure propagation.
  • Workshop reset fencing remains in the same suite: “observes a reset during delivery lookup” and “reads notice eligibility off-thread and observes a committed reset” both change lifecycleRevision while retaining session identity.
  • createTestChatPane already registers onTestFinished cleanup that calls disconnectedCallback() and waits for lazy imports to settle. The removed local cleanup was duplicate teardown.

Local formatting/lint/diff checks passed; behavioral validation remains with hosted CI under the assigned CI-only budget.

@steipete
steipete enabled auto-merge (squash) October 26, 2026 15:53
@steipete
steipete disabled auto-merge October 26, 2026 16:26
@steipete
steipete enabled auto-merge (squash) October 26, 2026 16:29
@steipete
steipete disabled auto-merge October 26, 2026 16:50
@steipete
steipete enabled auto-merge (squash) October 26, 2026 16:52
@steipete
steipete disabled auto-merge October 26, 2026 17:13
@steipete
steipete force-pushed the tcr/land-d619-1793029330 branch from 4aa722c to 574a6d2 Compare October 26, 2026 17:16
@steipete
steipete enabled auto-merge (squash) October 26, 2026 17:16
@steipete
steipete disabled auto-merge October 26, 2026 17:42
@steipete
steipete enabled auto-merge (squash) October 26, 2026 17:44
@steipete
steipete disabled auto-merge October 26, 2026 18:00
@steipete
steipete enabled auto-merge (squash) October 26, 2026 18:01
@steipete
steipete disabled auto-merge October 26, 2026 18:13
Keep real callback-to-processing-frame failure propagation and expired-ack delivery. Remove the duplicated hand-wired queue replay: telegram-ingress-drain.test.ts retains 'dead-letters a $name and releases the next same-chat update' and 'preserves retry for a late deferred failure: %s'.

Reuse the fail-closed keyed-store fixture for concurrent worker owners. Keep immediate/deferred offset assertions; update-offset-store.test.ts owns namespace/account storage behavior. Localize cooldown fixture state, remove obsolete module-reset setup and duplicate cleanup, and compact approval/timer fixtures without dropping their distinct assertions.

CI-only validation: plain oxlint, oxfmt, and git diff --check passed. No tests or coverage run. Shard baseline 592 lines; final 473 (-20.1%).
Share export invalidation setup across session, connection, instance and presentation cases; retain all four ownership boundaries. Compact restart queue fixtures and share the visible/persisted queue expectation without removing custody-state or command-ordering proof.
Share the hide/show lifecycle between committed-draft flushing and timer suspension. Keep live retained drafts asserted at the state boundary instead of spying on the internal handler; use createTestChatPane's existing disconnect cleanup. Consolidate work-context alias cases while retaining owner resolution before and after publication. Keep startup admission, persisted outbox custody, and GitHub publication authority fixtures: no equivalent sibling covers those boundaries.
Keep qualified global alias regressions from 0f3e17e. Common work-context projection, file lifecycle and subscription behavior remain covered by assistant-panel.test.ts: prepares current route and pane context when Home opens and the visible work changes.

Remove direct custody replays covered by chat-pending-inputs.test.ts: transfers accepted %s input to server custody without duplicating display, and chat-send.test.ts: reconciles a duplicate ACK into its already loaded collected transcript row. All pending states share acceptedRunIds removal; the latter integration starts with a persisted queue and consumes its receipt.

CI-only validation: plain oxlint, oxfmt and git diff --check passed. No tests or coverage executed. Shard total: 606 to 477 lines.
Keep all remaining cases and authority, persistence, lifecycle and notification assertions. Remove startup logger call-shape checks while retaining failed-commit state and future dispatch checks.

Trim account admission to its driving owner.accountId input; resolveCronRunAdmissionSource short-circuits before the redundant scheduledToolPolicy fields. Use canonical mutation inputs and remove unused schedule fixture fields, spies and wrappers.

Shard total: 635 to 507 lines (20.2% reduction). CI-only: plain oxlint, oxfmt and git diff --check pass; no tests or coverage run.
Consolidate targeted reload assertions into the bounded installed-owner batch case, and preserve consent whitespace in the primary round-trip fixture. Reuse validation and wire-record assertion helpers without dropping protocol edge cases.

Remove duplicate native source checks covered by GatewayNodeSessionTests: node connections use the node protocol floor, and GatewayChannelConnectTests: connect advertises compatible protocol range. Retain Watch, Android, wizard, and generated Swift guards.

CI-only campaign: local oxlint, oxfmt, and diff checks passed; tests and coverage deferred to hosted CI. Shard LOC 557 to 513 (7.9%); retain distinct public protocol boundaries rather than force the 20% target.
Use the existing minimal update-run record builder instead of a full unrelated operational record. Keep optional readiness projection and snapshot capacity evidence assertions through all four wire validators. The ledger persistence/reporting and capture-receipts suites remain the owners of operational record behavior.

Keep one representative per literal, regex, and closed-object rejection path. Keep the transcript list maximum and empty request proof in schema/transcripts.test.ts: validates additive read inputs and rejects unrelated keys. Preserve separate required-field, type, minimum, maximum, uniqueness, consent, and trust boundaries.

Use TypeBox guards for canonical string-literal unions instead of a hand-written schema parser; existing oneOf constraints are object requirements, not named literal unions. Reuse the copies helper for legacy utterance count bounds.

CI-only: no tests or builds run. Oxlint, oxfmt, and diff checks passed. Shard base-to-final LOC: 557 to 445 (20.1% reduction). Additional commit; previous work preserved.
Consolidate first-run receipt security cases into first-run.test.ts and reuse its authenticated context and storage fixture. Preserve every redirect, receipt ownership, tampering, credential redaction, and unavailable-storage assertion. Both files use the same UI unit project glob.

CI-only: oxlint, oxfmt and git diff --check pass; runtime tests deferred to hosted CI. Shard test LOC 538 -> 502 (-6.7%); all 22 expanded cases retained. Remaining RPC and browser cases protect distinct settlement and focus-ordering paths.
Reuse the existing Gateway socket fixture and consolidate receipt mutation setup while retaining all security checks. Keep one verification reply representative; the deadline case still checks the omitted target and the utility reply checks successful settlement.

Remove the agent-picker replay covered by agent-select-opening.browser.test.ts (selected focus, navigation and selection) and menu-navigation.browser.test.ts (queued End/Enter). Preserve provider-specific opening-animation focus and scroll proof. Keep trailing-slash route representatives for both base-path branches.

Shard baseline 538 test lines -> 430 (-20.1%). CI-only: no test runs; plain oxlint, oxfmt and diff checks pass.
Remove eight unreferenced config-suite fixture helpers and their unused imports. Repository-wide reference inspection found no consumers of the removed exports; retain all seven activation and publication-recovery cases and every assertion. Share the identical schema fixture in the activation refresh case.

Reduce shard test/support lines from 472 to 374 (20.8%). Plain oxlint, oxfmt, and git diff --check pass. Tests and coverage intentionally deferred to hosted CI under campaign CI-only mode.
Share picker fixtures, input selection, and exact text assertions across this shard. Exercise both wrapped and multiline previews through the same expansion and recollapse table, retaining both cases and all terminal-safety assertions.
Keep cancellation at the existing returns-to-chat PTY picker test, and keep finalized delayed-prompt ordering in chat-log.test.ts. Retain streaming pruning and selection-reset cases here. Identity decoding remains covered by the prefers-persisted-identity event-handler test; the ChatLog case proves adoption directly. Consolidate BTW RTL and dismiss-hint assertions into the sanitization cases, share terminal attack fixtures, and retain query-cache replay in the clear-and-replace case.
Share paid/free response-bound and cancellation setup while preserving transport-specific assertions. Consolidate keyless search into the handshake case and stateless session checks into the defaults case.

SSE, multiline, JSON-batch and structured-content selection remain covered by parallel-mcp-envelope.test.ts (selects cases and selected initialization response). Rejected FTP endpoint coverage remains in the credential-redaction table.
Reuse the stats child fixture for custody checks and share CLI setup. Keep all distinct deadline, sanitization, error, and lifecycle assertions.

Remove signed-limit replay covered by index.test.ts: normalizes signed decimal CLI limits through the shared parser. Delete receipts remain covered by index.test.ts: memory_forget reports authoritative delete receipts. The retained stale-query case also covers list's direct query delegation.

CI-only: oxfmt, plain oxlint, and diff checks passed. No tests or coverage run. Shard drops 680 to 637 lines (6.3%); remaining distinct boundaries prevent the requested 20% cut.
Retain the cold-start deadline regression at its real embedding adapter owner, including real provider discovery and both expiry branches. Hook plumbing and timeout behavior remain in index.test.ts: runs auto-recall through the registered before_prompt_build hook; shares only embedding timeout cooldown across recall paths.

Combine stats CLI success with child custody proof, and combine concurrent table initialization with close-drain proof. Test the shared stale-table admission guard through deletion; search, list, query and store use that same useTable owner. Keep native delete rejection and recovery.

Consolidate sanitization cases without dropping distinct guards. Group sender stripping remains covered by chronological and reply envelopes; the composite metadata fixture absorbs the basic JSON envelope case; Signal Hill retains the bracketed user-prose guard. Remove duplicated internal call-shape assertions.

CI-only static checks: oxfmt, plain oxlint and git diff --check passed. No tests or coverage run. Original shard 680 lines to 544, a 20 percent reduction. No production or helper edits.
Share notice fixtures and sandbox diagnostic assertions while retaining all 33 expanded cases. Keep reset/delivery races, undo write/refusal behavior, and each tool-policy scope; no redundant owner layer could be safely removed.
Remove the fake live-skill projection: every undo fixture starts with release live, and repeat undo is owned by recorded undo rows. Keep only the archived version the fixture needs. The real worker committed-reset test retains the removed initial-reset row's generation guard; replacement, deletion, and reset-during-lookup cases remain.
Share the panel lifecycle fixture by moving readiness cases into the handoff suite. Preserve timeout, sibling-exit, retry-owner, diagnostic disposal, and staged-input assertions.

Native path quoting remains covered by the apostrophe/space and escaped-metacharacter rows; unsupported WSL insertion remains covered by the drive-path row. Remove only their plain-native and UNC-shaped same-branch replays.

CI-only validation: plain oxlint, oxfmt, and git diff --check passed. No tests or coverage were run. Shard LOC: 650 -> 519; expanded cases: 28 -> 26.
Consolidate catalog destination checks, compact usage fixtures, and remove a duplicate archive pending variant. Keep archive incarnation, permission, and request ownership assertions.

Refresh deadline and request pacing are retained in event-refresh-coordinator.test.ts (simultaneous invalidations and backoff cases); swarm integration retains canonical revision, total refresh count, phase, log, and creation-only attribution proof.
@steipete
steipete force-pushed the tcr/land-d619-1793029330 branch from 340e5dd to fc69ec5 Compare October 26, 2026 18:14
@steipete
steipete enabled auto-merge (squash) October 26, 2026 18:14
@steipete
steipete disabled auto-merge October 26, 2026 18:26
@steipete

Copy link
Copy Markdown
Contributor Author

The only remaining failing check on head fc69ec54b953fb1f81eeea9d3f90081ded93a65a is inherited from main:

The batch changes neither this test nor the reply-turn/session-controller implementation it exercises. A fresh main fetch at c0ffba6e18a33cac1d5f47e47ccef5bbbdc93e2a contains no subsequent change to those files. All selected behavioral test shards, UI tests, lint, baseline ratchets, security checks, and the other typecheck jobs passed on this exact head. The unrelated UI session-controls failure passed its one authorized job-specific rerun; no assertions or timeouts were changed.

The aggregate openclaw/ci-gate remains red solely for this inherited type failure. Landing under the explicitly authorized pre-existing-failure exception; the unrelated main repair remains with the campaign coordinator.

@steipete
steipete merged commit f0f88b2 into main Oct 26, 2026
194 of 200 checks passed
@steipete
steipete deleted the tcr/land-d619-1793029330 branch October 26, 2026 18:54
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 27, 2026
…184769)

* test(telegram): consolidate o0458 fixtures and callback proof

Keep real callback-to-processing-frame failure propagation and expired-ack delivery. Remove the duplicated hand-wired queue replay: telegram-ingress-drain.test.ts retains 'dead-letters a $name and releases the next same-chat update' and 'preserves retry for a late deferred failure: %s'.

Reuse the fail-closed keyed-store fixture for concurrent worker owners. Keep immediate/deferred offset assertions; update-offset-store.test.ts owns namespace/account storage behavior. Localize cooldown fixture state, remove obsolete module-reset setup and duplicate cleanup, and compact approval/timer fixtures without dropping their distinct assertions.

CI-only validation: plain oxlint, oxfmt, and git diff --check passed. No tests or coverage run. Shard baseline 592 lines; final 473 (-20.1%).

* test(ui): deslop o0459 tests

Share export invalidation setup across session, connection, instance and presentation cases; retain all four ownership boundaries. Compact restart queue fixtures and share the visible/persisted queue expectation without removing custody-state or command-ordering proof.

* test(ui): consolidate o0459 lifecycle proof

Share the hide/show lifecycle between committed-draft flushing and timer suspension. Keep live retained drafts asserted at the state boundary instead of spying on the internal handler; use createTestChatPane's existing disconnect cleanup. Consolidate work-context alias cases while retaining owner resolution before and after publication. Keep startup admission, persisted outbox custody, and GitHub publication authority fixtures: no equivalent sibling covers those boundaries.

* test(ui): remove redundant o0459 owner replays

Keep qualified global alias regressions from 1ae5ba2. Common work-context projection, file lifecycle and subscription behavior remain covered by assistant-panel.test.ts: prepares current route and pane context when Home opens and the visible work changes.

Remove direct custody replays covered by chat-pending-inputs.test.ts: transfers accepted %s input to server custody without duplicating display, and chat-send.test.ts: reconciles a duplicate ACK into its already loaded collected transcript row. All pending states share acceptedRunIds removal; the latter integration starts with a persisted queue and consumes its receipt.

CI-only validation: plain oxlint, oxfmt and git diff --check passed. No tests or coverage executed. Shard total: 606 to 477 lines.

* test(ui): deslop o0462 tests

Consolidate external-window safety variants without dropping cases, share speech completion setup, and flatten redundant suite wrappers. Use fake timers for clipboard focus restoration.

Retain distinct URL/redaction security checks, speech cancellation and ownership, system-info authority and subscriber lifecycle, clipboard fallback/focus, and link-preview cache retirement contracts. CI-only campaign: oxfmt, plain oxlint and diff checks pass; runtime proof deferred to hosted CI.

* test(tlon): deslop o0463 tests

Share SSE stream setup, retain distinct framing and lifecycle cases, and consolidate filename fixtures. The stream admission failure now proves both asynchronous rejection without ACK and guard cleanup.

Remove the redundant retained-clone scry status case: fetch clone release and closes unread scry failure bodies retain its production branches. Keep malformed JSON clone cleanup. Drop redundant FTP input and cooldown log wording assertions.

CI-only: oxfmt, plain oxlint, and diff checks pass. No tests or coverage executed. Test LOC 715 to 640; below the 20 percent target to preserve distinct transport, cursor, authority, and bounded-response contracts.

* test(tlon): consolidate o0463 transport proof

Retain poke body bounds in the HTTP cookie-redaction cases, including the existing size, content, error-type, and credential assertions. Use one streamed reflected response instead of a separate poke fixture.

Remove unused assertion scaffolding and nesting, keep explicit ACK cursor checks, and settle the slow admission fixture directly after its simulated 90-second wait. Preserve upload bytes, names, type, cap, timeout, and authority assertions.

CI-only static gates: oxfmt, plain oxlint, and git diff --check pass; no tests or coverage run. Original shard LOC 715 to 571 (20.1 percent reduction).

* test(wizard): deslop o0461 tests

Consolidate finalize mock resets using Vitest's original-implementation reset semantics, preserving clear-only mocks and fresh process handles. Share navigation result capture and assert the complete consent prompt sequence. Keep all distinct security, migration, and navigation cases; this tight shard does not reach the requested 20% line reduction.

* test(wizard): consolidate o0461 fixture and replay layers

Reuse owner types and the existing OpenClaw state fixture; remove unused restart-description payloads and duplicated navigation setup. The replay table retains replacement and forward acceptance, remembered state, output ordering, sensitive answers, and irreversible boundaries.

The occupied-target freshness test now covers the wizard-config rejection, while the first-launch consent test proves both reread preservation and freshness. Non-wizard snapshot config remains covered by setup.migration-snapshot.test.ts (preserves persisted migration fingerprints across filesystem traversal changes).

CI-only: oxlint, formatting, and diff checks passed; no test or coverage runs. Original shard: 680 lines; final: 544 (-20%).

* test(slack): deslop o0464 tests

Remove Home event replays from assistant.test.ts; home.test.ts retains command rendering, Agent View internal_error detection, and mismatch rejection. Consolidate reaction scope rejection cases and join/interaction fixtures while preserving authorization, workspace isolation, and lifecycle assertions.

* test(slack): consolidate o0464 fixtures and assertions

Table the distinct assistant context fallback paths and compact common-event fixtures. Retain canonical prompt delivery in the assistant suite; setup-surface.test.ts 'prints the manifest as plain JSON when Slack is not configured' independently protects the exact default prompt inventory. Remove redundant mock-access scaffolding while preserving interaction destination identity and lifecycle assertions.

* test(hooks): deslop o0467 tests

Consolidate daily/idle content assertions into the overlapping-capture test, retaining file/hash/provenance checks. The transcript retained-tail test now also covers filtering before slicing (openclaw#2681); exact transcript assertions retain escaping and mirror behavior. Keep distinct capture budget/repair, slug safety, and admission cases.

* test(cron): deslop o0465 tests

Share parent-pause setup while retaining both command and agent paths. Inline single-use execution helpers and reuse existing job/input builders. Keep all exec-policy, admission, retry, and commit-failure assertions.

The missing-expression parser contract remains in schedule.test.ts (throws a clear error when cron expr is missing at runtime); schedule-error-isolation retains the maintenance error catch and disabled-job skip assertions. Drop only internal logging detail assertions.

CI-only validation: plain oxlint, oxfmt and diff-check pass. No tests or coverage run. Reduction stops below 20% to retain distinct lifecycle and authority behavior. Existing timer suites import createTimerExecutionState, absent from timer.test-support.ts at the base commit.

* test(cron): finish o0465 structural reduction

Keep all remaining cases and authority, persistence, lifecycle and notification assertions. Remove startup logger call-shape checks while retaining failed-commit state and future dispatch checks.

Trim account admission to its driving owner.accountId input; resolveCronRunAdmissionSource short-circuits before the redundant scheduledToolPolicy fields. Use canonical mutation inputs and remove unused schedule fixture fields, spies and wrappers.

Shard total: 635 to 507 lines (20.2% reduction). CI-only: plain oxlint, oxfmt and git diff --check pass; no tests or coverage run.

* test(protocol): deslop o0466 tests

Consolidate targeted reload assertions into the bounded installed-owner batch case, and preserve consent whitespace in the primary round-trip fixture. Reuse validation and wire-record assertion helpers without dropping protocol edge cases.

Remove duplicate native source checks covered by GatewayNodeSessionTests: node connections use the node protocol floor, and GatewayChannelConnectTests: connect advertises compatible protocol range. Retain Watch, Android, wizard, and generated Swift guards.

CI-only campaign: local oxlint, oxfmt, and diff checks passed; tests and coverage deferred to hosted CI. Shard LOC 557 to 513 (7.9%); retain distinct public protocol boundaries rather than force the 20% target.

* test(protocol): shrink o0466 fixtures and duplicate variants

Use the existing minimal update-run record builder instead of a full unrelated operational record. Keep optional readiness projection and snapshot capacity evidence assertions through all four wire validators. The ledger persistence/reporting and capture-receipts suites remain the owners of operational record behavior.

Keep one representative per literal, regex, and closed-object rejection path. Keep the transcript list maximum and empty request proof in schema/transcripts.test.ts: validates additive read inputs and rejects unrelated keys. Preserve separate required-field, type, minimum, maximum, uniqueness, consent, and trust boundaries.

Use TypeBox guards for canonical string-literal unions instead of a hand-written schema parser; existing oneOf constraints are object requirements, not named literal unions. Reuse the copies helper for legacy utterance count bounds.

CI-only: no tests or builds run. Oxlint, oxfmt, and diff checks passed. Shard base-to-final LOC: 557 to 445 (20.1% reduction). Additional commit; previous work preserved.

* test(model-setup): deslop o0468 tests

Consolidate first-run receipt security cases into first-run.test.ts and reuse its authenticated context and storage fixture. Preserve every redirect, receipt ownership, tampering, credential redaction, and unavailable-storage assertion. Both files use the same UI unit project glob.

CI-only: oxlint, oxfmt and git diff --check pass; runtime tests deferred to hosted CI. Shard test LOC 538 -> 502 (-6.7%); all 22 expanded cases retained. Remaining RPC and browser cases protect distinct settlement and focus-ordering paths.

* test(model-setup): finish o0468 structural reduction

Reuse the existing Gateway socket fixture and consolidate receipt mutation setup while retaining all security checks. Keep one verification reply representative; the deadline case still checks the omitted target and the utility reply checks successful settlement.

Remove the agent-picker replay covered by agent-select-opening.browser.test.ts (selected focus, navigation and selection) and menu-navigation.browser.test.ts (queued End/Enter). Preserve provider-specific opening-animation focus and scroll proof. Keep trailing-slash route representatives for both base-path branches.

Shard baseline 538 test lines -> 430 (-20.1%). CI-only: no test runs; plain oxlint, oxfmt and diff checks pass.

* test(config): deslop o0472 tests

Remove eight unreferenced config-suite fixture helpers and their unused imports. Repository-wide reference inspection found no consumers of the removed exports; retain all seven activation and publication-recovery cases and every assertion. Share the identical schema fixture in the activation refresh case.

Reduce shard test/support lines from 472 to 374 (20.8%). Plain oxlint, oxfmt, and git diff --check pass. Tests and coverage intentionally deferred to hosted CI under campaign CI-only mode.

* test(tui): deslop o0470 tests

Share picker fixtures, input selection, and exact text assertions across this shard. Exercise both wrapped and multiline previews through the same expansion and recollapse table, retaining both cases and all terminal-safety assertions.

* test(tui): consolidate o0470 duplicate boundary coverage

Keep cancellation at the existing returns-to-chat PTY picker test, and keep finalized delayed-prompt ordering in chat-log.test.ts. Retain streaming pruning and selection-reset cases here. Identity decoding remains covered by the prefers-persisted-identity event-handler test; the ChatLog case proves adoption directly. Consolidate BTW RTL and dismiss-hint assertions into the sanitization cases, share terminal attack fixtures, and retain query-cache replay in the clear-and-replace case.

* test(parallel): deslop o0473 tests

Share paid/free response-bound and cancellation setup while preserving transport-specific assertions. Consolidate keyless search into the handshake case and stateless session checks into the defaults case.

SSE, multiline, JSON-batch and structured-content selection remain covered by parallel-mcp-envelope.test.ts (selects cases and selected initialization response). Rejected FTP endpoint coverage remains in the credential-redaction table.

* test(memory-lancedb): deslop o0469 tests

Reuse the stats child fixture for custody checks and share CLI setup. Keep all distinct deadline, sanitization, error, and lifecycle assertions.

Remove signed-limit replay covered by index.test.ts: normalizes signed decimal CLI limits through the shared parser. Delete receipts remain covered by index.test.ts: memory_forget reports authoritative delete receipts. The retained stale-query case also covers list's direct query delegation.

CI-only: oxfmt, plain oxlint, and diff checks passed. No tests or coverage run. Shard drops 680 to 637 lines (6.3%); remaining distinct boundaries prevent the requested 20% cut.

* test(memory-lancedb): consolidate o0469 test layers

Retain the cold-start deadline regression at its real embedding adapter owner, including real provider discovery and both expiry branches. Hook plumbing and timeout behavior remain in index.test.ts: runs auto-recall through the registered before_prompt_build hook; shares only embedding timeout cooldown across recall paths.

Combine stats CLI success with child custody proof, and combine concurrent table initialization with close-drain proof. Test the shared stale-table admission guard through deletion; search, list, query and store use that same useTable owner. Keep native delete rejection and recovery.

Consolidate sanitization cases without dropping distinct guards. Group sender stripping remains covered by chronological and reply envelopes; the composite metadata fixture absorbs the basic JSON envelope case; Signal Hill retains the bracketed user-prose guard. Remove duplicated internal call-shape assertions.

CI-only static checks: oxfmt, plain oxlint and git diff --check passed. No tests or coverage run. Original shard 680 lines to 544, a 20 percent reduction. No production or helper edits.

* test(skills): deslop o0471 tests

Share notice fixtures and sandbox diagnostic assertions while retaining all 33 expanded cases. Keep reset/delivery races, undo write/refusal behavior, and each tool-policy scope; no redundant owner layer could be safely removed.

* test(skills): remove redundant o0471 fixture behavior

Remove the fake live-skill projection: every undo fixture starts with release live, and repeat undo is owned by recorded undo rows. Keep only the archived version the fixture needs. The real worker committed-reset test retains the removed initial-reset row's generation guard; replacement, deletion, and reset-during-lookup cases remain.

* test(terminal): deslop o0477 tests

Share the panel lifecycle fixture by moving readiness cases into the handoff suite. Preserve timeout, sibling-exit, retry-owner, diagnostic disposal, and staged-input assertions.

Native path quoting remains covered by the apostrophe/space and escaped-metacharacter rows; unsupported WSL insertion remains covered by the drive-path row. Remove only their plain-native and UNC-shaped same-branch replays.

CI-only validation: plain oxlint, oxfmt, and git diff --check passed. No tests or coverage were run. Shard LOC: 650 -> 519; expanded cases: 28 -> 26.

* test(sessions): deslop o0474 tests

Consolidate catalog destination checks, compact usage fixtures, and remove a duplicate archive pending variant. Keep archive incarnation, permission, and request ownership assertions.

Refresh deadline and request pacing are retained in event-refresh-coordinator.test.ts (simultaneous invalidations and backoff cases); swarm integration retains canonical revision, total refresh count, phase, log, and creation-only attribution proof.

* test: fix d619 replay imports and fixture types

* test(slack): preserve tuple bounds in pin fixture

* test: preserve mock exports and hoisted fixture initialization

* test(hooks): keep reset capture callbacks promise-valued

* test(tlon): prune repaired mock export baseline entries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui channel: slack Channel integration: slack channel: telegram Channel integration: telegram channel: tlon Channel integration: tlon extensions: memory-lancedb Extension: memory-lancedb extensions: parallel gateway Gateway runtime size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant