Skip to content

test(ui,plugins,core): remove low-value tests (batch d638) - #185152

Merged
steipete merged 32 commits into
mainfrom
tcr/land-d638-1793056440
Oct 26, 2026
Merged

steipete merged 32 commits into
mainfrom
tcr/land-d638-1793056440

Conversation

@steipete

@steipete steipete commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Maintainers must keep repeated fixture scaffolding and duplicate assertions in sync across these test suites, increasing test maintenance without protecting additional behavior.

User Impact

No user-visible change. This is test-only maintenance; production behavior and public interfaces are unchanged.

Why This Change Was Made

Reduce repeated test setup, redundant assertions, and fixture scaffolding across 19 campaign shards while retaining owning behavioral scenarios. No production files or runtime behavior change.

Replayed all 30 supplied commits in order onto main at 35e8421b9ad85cbe7f8a28029d96d44ac340f1bf. All applied cleanly; no conflicts or skipped commits. Review restored three removed contracts: final maintenance execution-policy propagation, exactly-once billable video submission, and successful root-result IPC delivery. The remaining cleanup is retained.

Scope and accounting

Counts are measured from the actual replayed base-to-head diff, not copied from older shard reports. Declarations include parameterized/chained it declarations, not expanded cases. Test-only subprocess/helper files have no test declarations.

Shard File LOC before → after Declarations before → after
o0794 src/shared/immutable-data.test.ts 135 → 108 7 → 7
o0795 src/image-generation/image-assets.test.ts 107 → 85 9 → 9
o0796 ui/src/lib/cron/action-feedback.test.ts 107 → 84 2 → 2
o0797 extensions/venice/usage.test.ts 105 → 84 5 → 4
o0798 src/agents/session-maintenance/run.test.ts 105 → 98 2 → 2
o0799 src/secrets/store/secret-store.redaction.test.ts 105 → 84 5 → 3
o0800 extensions/vault/src/cli.test.ts 104 → 83 4 → 4
o0801 extensions/abliteration/index.test.ts 103 → 82 3 → 3
o0803 src/process/supervisor/service-child-group-anchor.input-lifetime.test.ts 103 → 87 1 → 1
o0804 extensions/test-support/video-generation-deadline.test-support.ts 102 → 82 1 → 1
o0805 src/commands/promos/list.test.ts 102 → 81 6 → 5
o0807 extensions/meta/muse-login.test.ts 101 → 80 4 → 3
o0808 extensions/qa-lab/src/live-transports/matrix/matrix-scenario-flows.test.ts 101 → 80 3 → 3
o0809 extensions/workboard/browser/components/toast.test.ts 101 → 80 2 → 2
o0810 packages/sdk/src/event-hub.retention.test-support.ts 101 → 80 0 → 0
o0811 src/channels/allowlists/resolve-utils.test.ts 101 → 80 10 → 8
o0812 src/media-understanding/image.selected-model.test.ts 101 → 82 1 → 1
o0813 ui/src/pages/chat/test-helpers/chat-scroll-input.tsx 101 → 80 0 → 0
o0815 extensions/llm-task/doctor-contract-api.test.ts 100 → 80 8 → 7

Production LOC: +0 / -0. Test and test-helper LOC: +685 / -1070 (net -385), across 19 files; no files deleted. No changed paths match current CODEOWNERS rules.

Evidence

  • pnpm install --frozen-lockfile --prefer-offline: passed.
  • node_modules/.bin/oxfmt --write <19 changed files>: passed.
  • node_modules/.bin/oxlint -c .oxlintrc.json <19 changed files>: exited 0.
  • git diff --check 35e8421b9ad85cbe7f8a28029d96d44ac340f1bf: passed.
  • Per operator CI-only instruction, no local Vitest, check-changed, typecheck, or Testbox execution. Hosted openclaw/ci-gate is runtime proof and the merge gate. No local runtime/timing claim is made.
  • Coverage totals are unavailable for every listed shard: each supplied report explicitly states tests/coverage were not run under CI-only mode. Some reports describe earlier revisions, so their LOC/case claims are not evidence for this final diff. No measured coverage-loss claim is made.
  • CI found TS2322 in the changed image-model fixture because removing its explicit contextWindow left that field optional in the fixture return type. Restored the original typed Object.assign fixture, without casts. Failed-job evidence: https://github.com/openclaw/openclaw/actions/runs/40419101181/job/121910054642. Fresh-head CI must validate the repair.
  • The initial PR-context check required the exact template heading; the authored problem statement now uses What Problem This Solves.

Review

Independent review identified five P2 concerns. Three were accepted and repaired: maintenance execution-policy propagation, exactly-once submission, and root-result IPC.

Two were rejected after source inspection: removed native-media fixture rows were already excluded by both consuming suites (chat-pane-keyboard-focus.test.tsx and chat-transcript-scroll-ownership.test.tsx); the full static catalog inventory duplicated catalog constants, while credential-free discovery and specific model transport behavior remain covered. No production catalog change is made. A focused follow-up review of the three restorations completed clean through P2.

Keep all eight action-feedback cases and their outcome, attribution, busy-state, and history-refresh assertions. Trim fixture overrides and repeated table data.

Remove redundant RPC-shape checks: index.test.ts covers authoritative toggle revision updates, while action-feedback retains explicit run-mode checks. Preserve queued-notice regression coverage from #177543.
Compact response fixtures and exact asset expectations without removing cases. The data URL round-trip and malformed-input tests retain parser success and rejection coverage through generatedImageAssetFromDataUrl.
Trim duplicate frozen-state and mutation checks while preserving all seven test declarations and ten expanded cases. The shared-cycle test retains mutation rejection; the shared-tail test retains identity, queue-work, and deep-freeze checks with one representative retained entry. Keep oversized-cycle eviction and opaque/accessor safety coverage.
Use one shallow-frozen cycle row per freezer. Mutable root freezing remains covered by oversized cycles and the shared snapshot tail test; memoized descendant reuse remains covered by republishing child and snapshot objects. Consolidate forbidden accessor/proxy invocation checks and inline the mutable-cycle fixture. Reduce the shard from its original 135 lines to 108 without removing distinct safety or cycle behavior.
Reuse the plan fixture for existing-file and symlink refusal checks, simplify CLI helpers, and remove redundant suite nesting. Keep all six cases and their distinct behavior assertions.
Trim async wrapper and event-recording boilerplate while retaining all authority and lifecycle assertions. Keep both queued-read paths: scheduling directly and waiting for foreground owner settlement exercise distinct admission paths. The suite was already consolidated; retain all three cases rather than cut distinct behavior for the line target.
Assert prepared facts and authority isolation at createSessionMaintenanceFollowup, without replaying the embedded-run adapter. Adapter vision remains covered by agent-runner-vision.test.ts (prepared vision); policy propagation by agent-runner-utils.test.ts (uses the queued conversation policy snapshot). Keep both scheduling paths and all lifecycle-ordering assertions. Remove the initial operation-defined assertion subsumed by the completed-owner result assertion. Total shard LOC: 105 to 84. Static checks only under CI-only campaign mode.
Share the corrupted-row fixture across resolution, audit, and exec checks while retaining repair rollback and stale-write assertions. Reference identity fields remain covered by resolve.mixed-failures.test.ts: retains every ref failure from one provider batch.
Keep credential-free default-model discovery and every reasoning/privacy assertion. Remove the copied four-model inventory; manifest row conversion is covered by src/plugin-sdk/provider-catalog-shared.test.ts in converts manifest rows and reads the default model reference. Use direct payload field assertions without changing expected values.
Share promotion rendering setup and JSON-mode assertions. Remove the test-owned JSON serialization layer and assert the payload at the runtime writer boundary instead. Keep all seven cases, including JSON success and 404 fallback, both countdown branches, empty and unavailable text output, and terminal-control sanitization.
Reuse the hostile-text promotion across list-output cases and remove the override/render helper. Keep all seven expanded cases and their distinct list-command branches. Assert JSON payloads without repeating writer call-count and formatting-argument details covered by src/runtime.test.ts (writes JSON).
Simplify deadline setup and reuse the pending response fixture while retaining all three cases and every assertion for both providers. The explicit long budget, original deadline after slow submission, and default polling budget regressions remain covered by testVideoGenerationDeadlines in the Runway and Together provider suites.
Assert the generation promise directly while checking settlement at the fake-clock deadline. Keep all three timing branches, Error/message assertions, downloaded bytes and MIME type, no download after timeout, and submission release.

Remove duplicated submission call-count proof: runway's submits/polls/downloads table asserts exactly one create request, and together's creates/polls/downloads test verifies the single submission through requireFirstPostJsonRequest. Preserve both provider suites unchanged.
Keep all four input-lifetime regression cases from #171016. Replace deferred readiness and EOF scaffolding with the readiness callback and native event promise, and register group cleanup with the test lifecycle. Preserve exact output, exit status, closing receipt, and root-result assertions.
Successful root-result delivery remains covered by service-child-group-anchor.retirement.test.ts in 'retires gracefully only after the closing receipt is acknowledged', including matching and legacy-host cases. Keep all four input-lifetime cases, exact exit/output checks, and explicit parent-lost versus lineage-lost closing reasons.
Use catalog module-flow metadata and consolidate Matrix binding and voice configuration assertions. Keep all three scenario cases and their canary, isolation, provider, and media contracts.

Remove the redundant plugin collector assertion covered by suite-planning.test.ts: collects unique scenario-declared bundled plugins in encounter order. Execution config accessor remains covered by scenario-catalog.test.ts: keeps the pinned gateway restart scenario owned by the OpenClaw runtime.

CI-only validation: plain oxlint, oxfmt, and git diff --check passed. Test file reduced from 101 to 80 lines; no test or coverage execution.
Remove the repeated absence assertion after a no-op hidden=false write. The preceding assertion in pauses lifetime while hidden already proves expiration for both initial visibility states. Preserve all four distinct lifecycle cases; further case removal would lose initial-hidden, paused-lifetime, dialog-dismissal, or error-recovery proof.
Replace separate result, error, and visibility signals with a single reactive props fixture. Keep both initial-hidden and partial-lifetime paths plus manual dismissal, shared-dialog suppression, expiry, error recovery, and new-result behavior. Preserve the DOM assertions and both two-case tables. CI-only validation: oxfmt, plain oxlint, and git diff --check.
Remove subprocess invocation bookkeeping and the duplicate backend fixture guard; the successful browser-approval test still asserts the exact credential environment and one browser handoff. Simplify approval and authority-revocation setup while retaining all four behavior cases.
Share cancellation setup across separate signal-cancellation and authority-revocation rows. Preserve child termination, pending presentation, un-aborted signal, browser handoff, and credential absence assertions. Simplify the executable fixture to one temporary root while retaining exact managed credential environment checks.
Remove redundant cleanup-error aggregation from the disposable retention probe. Uncaught assertion and cleanup failures are already checked through the child exit status by event-hub.test.ts: releases retired payloads but lets a closed hub drain. Preserve all four retirement scenarios, GC controls, drain identity checks, and success-path cleanup.
Remove generated Linux, audio, modified-video and unused video-key rows filtered out by both consumers. Preserve the rows used by loads older history only when %s yields navigation and resolves pending restoration ownership for %s. Share Mac fixtures and compact DOM fixture construction without changing assertions.
Keep the selected-model alias regression and both assertions. Reuse provider fixture defaults and replace manual resource cleanup with an async disposable stack. No distinct behavior or test case removed.
Reuse the existing identical model-alias metadata builder. Drop the unused snapshot agentId: image runtime resolution uses the supplied agentDir and workspaceDir. Preserve the selected-model case, catalog rows, competing metadata, and both assertions.
Consolidate allowlist migration cases and repeated policy fixtures while retaining all nine cases. Replace diagnostic prose snapshots with resulting config and change-count assertions; preserve permission, precedence, empty-policy, fail-closed and idempotence contracts. CI-only validation: oxlint, oxfmt and diff checks.
@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-26T23:22:59.828320Z 1875f71 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.

@steipete steipete changed the title test: remove low-value tests (batch d638) test(ui,plugins,core): remove low-value tests (batch d638) Oct 26, 2026
@steipete
steipete enabled auto-merge (squash) October 26, 2026 23:20
@steipete
steipete disabled auto-merge October 26, 2026 23:26
@steipete
steipete enabled auto-merge (squash) October 26, 2026 23:29
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR consolidates test fixtures and assertions across plugin, core, SDK, and UI suites.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful test reduction with successful focused CI signals, but an independent cancellation regression must remain detectable.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored, test-only PR changes no shipped behavior; current-head CI supports the fixture changes, while the aggregate gate remains pending.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
Reason: The maintainer-authored direction reduces repeated fixture maintenance without changing public behavior; repository policy requires preserving independent lifecycle regressions.

Merge readiness

⛔ Needs changes before merge - 2 items remain

Keep this maintainer-authored PR open: the cleanup is useful, but one Muse test consolidation loses independent signal-cancellation coverage.

Priority: P3
Reviewed head: 404ad7eb35ac11f3e0ab8495a41f1c6674eb086a

Before merge

  • [P2] Keep signal cancellation independent of authority revocation (P2) - For cancel=true, ctx.signal and ctx.assertCurrent now read the same controller. Aborting during the permanently pending device-code presentation therefore also makes the production authority interval throw and stop the child. If loginAttempt loses its signal abort listener, this row can still pass after the authority interval fires, whereas the original row had no assertCurrent callback and detected that regression. Leave assertCurrent unset or nonthrowing for the signal row, and install the revocation callback only for the authority row.
  • Explain or restore the original intent of Muse cancellation tests - 525a7cd: The original feature separately protected cancellation during pending presentation and authority revocation without signal abortion; the consolidation claims to retain both but couples their failure paths.

Findings

  • [P2] [P2] Keep signal cancellation independent of authority revocation — extensions/meta/muse-login.test.ts:54-55

Provenance

  • Muse cancellation tests changes intended behavior without addressing why it exists (525a7cd: The original feature separately protected cancellation during pending presentation and authority revocation without signal abortion; the consolidation claims to retain both but couples their failure paths.)
Agent review details

How this fits together

These suites feed synthetic inputs through existing production owners and check outputs, lifecycle behavior, and rejection paths.

flowchart LR
  A[Synthetic inputs] --> B[Test fixtures]
  B --> C[Production owners]
  C --> D[Outputs and lifecycle events]
  D --> E[Regression assertions]
Loading

Technical review

Best possible solution:

Retain the consolidation while leaving assertCurrent unset or nonthrowing in the signal-cancellation row and preserving the separate authority-revocation row.

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

Source establishes the lost isolation: aborting the signal also makes assertCurrent throw, allowing the authority interval to terminate the child if the signal listener regresses; no target code was executed.

Is this the best way to solve the issue?

Most reductions preserve distinct scenarios through existing owners, but the Muse table must keep its two cancellation mechanisms independently testable.

Full review comments:

  • [P2] [P2] Keep signal cancellation independent of authority revocation — extensions/meta/muse-login.test.ts:54-55
    For cancel=true, ctx.signal and ctx.assertCurrent now read the same controller. Aborting during the permanently pending device-code presentation therefore also makes the production authority interval throw and stop the child. If loginAttempt loses its signal abort listener, this row can still pass after the authority interval fires, whereas the original row had no assertCurrent callback and detected that regression. Leave assertCurrent unset or nonthrowing for the signal row, and install the revocation callback only for the authority row.
    Confidence: 0.99
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against d990291edf5a.

Provenance checked

  • Abliteration catalog and transport tests changes intended behavior with a stated reason (c68f41a: The provider feature established credential-free discovery, onboarding, native reasoning, and privacy behavior; the PR explains why the copied catalog inventory is redundant.)
  • llm-task Doctor policy tests keeps the original intent (ce67ffb: Isolated completion required explicit model/profile policy and preservation of shipped allowlist semantics; precedence, malformed input, empty policy, and idempotence remain asserted.)
  • Matrix scenario-flow tests keeps the original intent (ad34552: Matrix scenario coverage protects canary preparation, isolation, and provider/media setup; those assertions remain while shared accessor and plugin-collector checks move to their existing owners.)
  • Video deadline test support keeps the original intent (c1aff54: The timeout repair protected longer request budgets and original deadlines after slow submission; all timing branches, downloaded bytes, release, and exactly-once submission remain asserted.)
  • Vault CLI tests keeps the original intent (481d826: Plan creation must preserve private permissions and refuse existing files and symlinks; the consolidated fixture still exercises these boundaries.)
  • Venice usage tests keeps the original intent (07e2d63: Provider usage coverage established balances, allocation, unavailable status, sanitized HTTP errors, malformed responses, and transport failure behavior; all remain represented.)
  • Workboard toast tests keeps the original intent (d41341f: Prior cleanup retained hidden-time accounting, dismissal, shared-dialog suppression, expiry, recovery, and new-result behavior; the unified reactive fixture retains those scenarios.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test extensions/meta/muse-login.test.ts --maxWorkers=1
  • node_modules/.bin/oxlint -c .oxlintrc.json extensions/meta/muse-login.test.ts
  • node_modules/.bin/oxfmt --check extensions/meta/muse-login.test.ts
  • git diff --check
  • In an isolated checkout, disabling only the signal abort listener must fail the signal-cancellation row while leaving the authority-revocation row effective.

What I checked:

  • Pinned introduction: The introduced diff changes only tests and test-support files; production code, configuration, dependencies, and stored formats are unchanged. (404ad7eb35ac)
  • Cancellation mechanisms become coupled: The signal-cancellation row now supplies assertCurrent backed by the same aborted controller, enabling the independent authority timer to satisfy the cancellation assertions. (extensions/meta/muse-login.test.ts:55, 404ad7eb35ac)
  • Production cancellation owner: loginAttempt separately installs a signal abort listener and an authority-check interval; the latter calls stop when assertCurrent throws. (extensions/meta/muse-login.ts:46, 404ad7eb35ac)
  • Original independent cancellation contract: The original signal-cancellation test supplied no assertCurrent callback, while a separate test exercised authority revocation without aborting the signal; the feature history and feat(muse): sign in to Muse Code from Model Setup #171526 explicitly distinguish these paths. (extensions/meta/muse-login.test.ts:61, 35e8421b9ad8)
  • Chat fixture removal is supported: Both consumers filter out the removed Linux, audio, modified-video, and unused video-key rows; the retained restoration cases also include independent native video and audio boundaries. (ui/src/pages/chat/components/chat-transcript-scroll-ownership.test.tsx:410, 404ad7eb35ac)
  • Current-head validation: Current-head lint, production types, test types, and changed-node lanes report success; the aggregate CI gate remains pending, so this is not a completed merge-gate verdict. (404ad7eb35ac)

PR surface

Tests -385. Total -385 across 19 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 19 664 1049 -385
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 19 664 1049 -385

Review metrics

Metric Value Why it matters
Production versus test LOC Production +0/-0; tests and test support +664/-1049, net -385. The pinned diff reduces test maintenance without adding production machinery; the independent cancellation contract still needs preservation.

Labels

Label changes:

  • add P3: This is test-maintenance work with no shipped behavior change; the identified coverage defect has a focused repair.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: This is test-maintenance work with no shipped behavior change; the identified coverage defect has a focused repair.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 26, 2026, 7:46 PM ET / 23:46 UTC.

@steipete
steipete merged commit b4e7ddf into main Oct 26, 2026
132 of 134 checks passed
@steipete
steipete deleted the tcr/land-d638-1793056440 branch October 26, 2026 23:52
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 27, 2026
…185152)

* test(ui): deslop o0796 tests

Keep all eight action-feedback cases and their outcome, attribution, busy-state, and history-refresh assertions. Trim fixture overrides and repeated table data.

Remove redundant RPC-shape checks: index.test.ts covers authoritative toggle revision updates, while action-feedback retains explicit run-mode checks. Preserve queued-notice regression coverage from openclaw#177543.

* test(ui): inline o0796 feedback fixtures

* test(image-generation): deslop o0795 tests

Compact response fixtures and exact asset expectations without removing cases. The data URL round-trip and malformed-input tests retain parser success and rejection coverage through generatedImageAssetFromDataUrl.

* test(shared): deslop o0794 tests

Trim duplicate frozen-state and mutation checks while preserving all seven test declarations and ten expanded cases. The shared-cycle test retains mutation rejection; the shared-tail test retains identity, queue-work, and deep-freeze checks with one representative retained entry. Keep oversized-cycle eviction and opaque/accessor safety coverage.

* test(shared): consolidate o0794 immutable graph coverage

Use one shallow-frozen cycle row per freezer. Mutable root freezing remains covered by oversized cycles and the shared snapshot tail test; memoized descendant reuse remains covered by republishing child and snapshot objects. Consolidate forbidden accessor/proxy invocation checks and inline the mutable-cycle fixture. Reduce the shard from its original 135 lines to 108 without removing distinct safety or cycle behavior.

* test(vault): deslop o0800 tests

Reuse the plan fixture for existing-file and symlink refusal checks, simplify CLI helpers, and remove redundant suite nesting. Keep all six cases and their distinct behavior assertions.

* test(venice): deslop o0797 tests

* test(session-maintenance): deslop o0798 tests

Trim async wrapper and event-recording boilerplate while retaining all authority and lifecycle assertions. Keep both queued-read paths: scheduling directly and waiting for foreground owner settlement exercise distinct admission paths. The suite was already consolidated; retain all three cases rather than cut distinct behavior for the line target.

* test(session-maintenance): remove duplicate adapter layer for o0798

Assert prepared facts and authority isolation at createSessionMaintenanceFollowup, without replaying the embedded-run adapter. Adapter vision remains covered by agent-runner-vision.test.ts (prepared vision); policy propagation by agent-runner-utils.test.ts (uses the queued conversation policy snapshot). Keep both scheduling paths and all lifecycle-ordering assertions. Remove the initial operation-defined assertion subsumed by the completed-owner result assertion. Total shard LOC: 105 to 84. Static checks only under CI-only campaign mode.

* test(secrets): deslop o0799 tests

* test(secrets): consolidate o0799 redaction scenarios

Share the corrupted-row fixture across resolution, audit, and exec checks while retaining repair rollback and stale-write assertions. Reference identity fields remain covered by resolve.mixed-failures.test.ts: retains every ref failure from one provider batch.

* test(abliteration): deslop o0801 tests

* test(abliteration): trim o0801 catalog inventory assertions

Keep credential-free default-model discovery and every reasoning/privacy assertion. Remove the copied four-model inventory; manifest row conversion is covered by src/plugin-sdk/provider-catalog-shared.test.ts in converts manifest rows and reads the default model reference. Use direct payload field assertions without changing expected values.

* test(promos): deslop o0805 tests

Share promotion rendering setup and JSON-mode assertions. Remove the test-owned JSON serialization layer and assert the payload at the runtime writer boundary instead. Keep all seven cases, including JSON success and 404 fallback, both countdown branches, empty and unavailable text output, and terminal-control sanitization.

* test(promos): consolidate o0805 output fixtures

Reuse the hostile-text promotion across list-output cases and remove the override/render helper. Keep all seven expanded cases and their distinct list-command branches. Assert JSON payloads without repeating writer call-count and formatting-argument details covered by src/runtime.test.ts (writes JSON).

* test(video): deslop o0804 tests

Simplify deadline setup and reuse the pending response fixture while retaining all three cases and every assertion for both providers. The explicit long budget, original deadline after slow submission, and default polling budget regressions remain covered by testVideoGenerationDeadlines in the Runway and Together provider suites.

* test(video): further reduce o0804 deadline harness

Assert the generation promise directly while checking settlement at the fake-clock deadline. Keep all three timing branches, Error/message assertions, downloaded bytes and MIME type, no download after timeout, and submission release.

Remove duplicated submission call-count proof: runway's submits/polls/downloads table asserts exactly one create request, and together's creates/polls/downloads test verifies the single submission through requireFirstPostJsonRequest. Preserve both provider suites unchanged.

* test(process): deslop o0803 tests

Keep all four input-lifetime regression cases from openclaw#171016. Replace deferred readiness and EOF scaffolding with the readiness callback and native event promise, and register group cleanup with the test lifecycle. Preserve exact output, exit status, closing receipt, and root-result assertions.

* test(process): deduplicate o0803 retirement assertions

Successful root-result delivery remains covered by service-child-group-anchor.retirement.test.ts in 'retires gracefully only after the closing receipt is acknowledged', including matching and legacy-host cases. Keep all four input-lifetime cases, exact exit/output checks, and explicit parent-lost versus lineage-lost closing reasons.

* test(qa-lab): deslop o0808 tests

Use catalog module-flow metadata and consolidate Matrix binding and voice configuration assertions. Keep all three scenario cases and their canary, isolation, provider, and media contracts.

Remove the redundant plugin collector assertion covered by suite-planning.test.ts: collects unique scenario-declared bundled plugins in encounter order. Execution config accessor remains covered by scenario-catalog.test.ts: keeps the pinned gateway restart scenario owned by the OpenClaw runtime.

CI-only validation: plain oxlint, oxfmt, and git diff --check passed. Test file reduced from 101 to 80 lines; no test or coverage execution.

* test(workboard): deslop o0809 tests

Remove the repeated absence assertion after a no-op hidden=false write. The preceding assertion in pauses lifetime while hidden already proves expiration for both initial visibility states. Preserve all four distinct lifecycle cases; further case removal would lose initial-hidden, paused-lifetime, dialog-dismissal, or error-recovery proof.

* test(workboard): consolidate o0809 toast fixtures

Replace separate result, error, and visibility signals with a single reactive props fixture. Keep both initial-hidden and partial-lifetime paths plus manual dismissal, shared-dialog suppression, expiry, error recovery, and new-result behavior. Preserve the DOM assertions and both two-case tables. CI-only validation: oxfmt, plain oxlint, and git diff --check.

* test(meta): deslop o0807 tests

Remove subprocess invocation bookkeeping and the duplicate backend fixture guard; the successful browser-approval test still asserts the exact credential environment and one browser handoff. Simplify approval and authority-revocation setup while retaining all four behavior cases.

* test(meta): consolidate o0807 login lifecycle cases

Share cancellation setup across separate signal-cancellation and authority-revocation rows. Preserve child termination, pending presentation, un-aborted signal, browser handoff, and credential absence assertions. Simplify the executable fixture to one temporary root while retaining exact managed credential environment checks.

* test(channels): deslop o0811 tests

* test(sdk): deslop o0810 tests

Remove redundant cleanup-error aggregation from the disposable retention probe. Uncaught assertion and cleanup failures are already checked through the child exit status by event-hub.test.ts: releases retired payloads but lets a closed hub drain. Preserve all four retirement scenarios, GC controls, drain identity checks, and success-path cleanup.

* test(ui): deslop o0813 tests

Remove generated Linux, audio, modified-video and unused video-key rows filtered out by both consumers. Preserve the rows used by loads older history only when %s yields navigation and resolves pending restoration ownership for %s. Share Mac fixtures and compact DOM fixture construction without changing assertions.

* test(media-understanding): deslop o0812 tests

Keep the selected-model alias regression and both assertions. Reuse provider fixture defaults and replace manual resource cleanup with an async disposable stack. No distinct behavior or test case removed.

* test(media-understanding): reuse alias fixture in o0812

Reuse the existing identical model-alias metadata builder. Drop the unused snapshot agentId: image runtime resolution uses the supplied agentDir and workspaceDir. Preserve the selected-model case, catalog rows, competing metadata, and both assertions.

* test(llm-task): deslop o0815 tests

Consolidate allowlist migration cases and repeated policy fixtures while retaining all nine cases. Replace diagnostic prose snapshots with resulting config and change-count assertions; preserve permission, precedence, empty-policy, fail-closed and idempotence contracts. CI-only validation: oxlint, oxfmt and diff checks.

* test: retain boundary assertions in cleanup batch d638

* test(media-understanding): retain required context window fixture
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 commands Command implementations extensions: abliteration extensions: llm-task Extension: llm-task extensions: meta Extension: meta extensions: qa-lab extensions: test-support extensions: vault Extension: vault extensions: venice P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. plugin: workboard rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant