Skip to content

test(core,plugins,ui): remove low-value tests (batch d531) - #183573

Merged
steipete merged 32 commits into
mainfrom
tcr/land-d531-1792929026
Oct 25, 2026
Merged

steipete merged 32 commits into
mainfrom
tcr/land-d531-1792929026

Conversation

@steipete

@steipete steipete commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Batch d531 removes duplicate proof layers and consolidates fixtures around their existing owners. This is test-only maintenance; runtime behavior, public contracts, and dependencies are unchanged. Replayed onto pinned main b3ba4d622638ac23f64c0cec415bf5bfe81f5cf5.

Replay decisions

29 of 30 requested commits applied in order. Skipped 9163f00c6a151150691f38874502e750ad1d0de5 (s0341): Slack conflicts depend on earlier campaign-only helper refactors absent from this batch. No campaign prerequisite commits were imported.

For conflicting files below, retained the pre-pick current-main version in full and omitted that commit’s file hunk; cleanly applicable files were retained. This preserves newer regression cases, fixture ownership, and imports rather than guessing at missing prerequisites.

  • 8de5632e1d97: src/gateway/server-channels.account-lifetime.test.ts.
  • e8fd9f5da92a: src/infra/device-pairing-prune.test.ts.
  • 5210c7b5e0f5: src/infra/update-run-capture-receipts.test.ts.
  • 43da03b9c3ac: src/agents/prepared-model-runtime.reply-fallback.test.ts.
  • ad562198203b: src/agents/embedded-agent-helpers.sanitizeuserfacingtext.test.ts, src/agents/prepared-model-catalog-worker.reuse.integration.test.ts, src/agents/workspace.bootstrap-read-diagnostics.test.ts.
  • 89b40f242505: src/commands/doctor-session-sqlite.restore-paths.test.ts.
  • 215269247f29: src/commands/onboard-guided.custodian.test-support.ts, src/commands/onboard-inference.test.ts.
  • 86f0ddb3b4e9: src/agents/tools/gateway-tool.test.ts.
  • 41191ee5e479: src/gateway/server-methods.authorization.test.ts, src/gateway/server-runtime-state.tailscale.test.ts, src/gateway/server.chat.cli-history.test.ts.
  • b2a5c84c2971: ui/src/components/config-form-composition-integrity.browser.test.ts, ui/src/components/mcp-app-resources.test.tsx.
  • b7edf19eff30: ui/src/components/config-form-map-integrity.browser.test.ts, ui/src/components/mcp-app-resources.test.tsx.
  • 89e4601eccf0, fe9cc62fac4e: src/gateway/worker-environments/worker-turn-launcher-initial-setup.test.ts.
  • d44793716595: src/gateway/worker-environments/portal-node-carrier.test.ts, src/gateway/worker-environments/service-prepare.test.ts.
  • 2cc9096c94d7: ui/src/pages/usage/view.test.ts.

Evidence

  • Frozen-lockfile install passed.
  • node_modules/.bin/oxfmt --write <106 changed files> passed.
  • node_modules/.bin/oxlint -c .oxlintrc.json <106 changed files> passed, exit 0.
  • git diff --check b3ba4d622638ac23f64c0cec415bf5bfe81f5cf5 passed, exit 0.
  • Per operator CI-only instruction, no local Vitest, check-changed, tsgo, coverage, or Testbox/Crabbox run. Required openclaw/ci-gate is the execution and broad proof gate. No leases created.
  • Independent autoreview completed two passes and raised 18 coverage-loss findings; each was checked against retained owner suites and declined as duplicate proof or implementation-only assertions. A separate review of CI repairs completed scoped-clean; the final repair delta is reviewed before push.
  • No CODEOWNERS patterns match these test/test-support paths. No visual production changes.

Production LOC: +0 / -0. Test and test-support LOC: +3275 / -6468 (net -3193), across 103 files.

CI repair follow-up

Initial CI found replay-only fixture errors. Restored pinned-main versions of extensions/zalouser/src/send.handoff.test.ts (missing gate helper), ui/src/pages/usage/usage-page-query-ownership.test.ts (readonly context fixture), and src/agents/subagents/registry/subagent-registry-read.scoped.test.ts (combined terminal/live snapshot fixture). Restored the original tokenizer-aware ranking assertions. Fixed the remaining type errors by keeping the attachment cleanup callback void, requiring a defined failed cron response, and placing bundled plugin origin in the fixture’s existing record override. No production changes, test retries, timeouts, weakened assertions, or local test/typecheck runs.

The initial PR-context check required canonical section headings; fixed, and its replacement run passed. Initial CI run: https://github.com/openclaw/openclaw/actions/runs/40190843752 . Auto-merge was disabled for repair and will be pinned to the new head after push.

The second CI run passed the repaired typechecks and selected Node tests, but identified a redundant typed error conversion and four mock factories needing explicit isolation explanations. Removed the conversion and documented why those existing factories intentionally avoid real Gateway/sandbox initialization. Its untouched chat-send picker test also failed; recent scheduled-main runs do not establish that exact failure as inherited, so no admin exception is claimed and fresh-head UI proof remains mandatory. Second run: https://github.com/openclaw/openclaw/actions/runs/40191518125 .

The third CI run passed the repaired core lint and formerly failing UI lane. The mock ratchet then requested exactly two obsolete baseline tuples be removed (the now-annotated Signal resolver and the deleted requester-repair mock). Removed those exact entries only from config/test-mock-exports-baseline.txt; the shrink-only delta passed independent P2 review. Configuration-baseline LOC: +0/-2, in addition to the 103 test/support files above. Third run: https://github.com/openclaw/openclaw/actions/runs/40192407637 .

Per-shard replay inventory

Counts below are for the actual replay against pinned main (not the older campaign tree). Declaration counts are static it/test call counts, not executed or expanded-case counts. Source report excerpts are historical campaign evidence and do not imply coverage was measured. Every report states coverage was not run under CI-only instructions; no coverage totals are available.

s0342

LOC 3108 → 2769 (-339); declarations 24 → 24 (0).

Source report: Formatting, plain oxlint exit 0, and git diff --check passed. Tests, coverage, and check-changed were not run, per CI-only mode.

Files: src/gateway/server-maintenance.telemetry.test.ts, src/gateway/server-model-catalog.test.ts, src/gateway/server-worker-placement-cancel.test.ts, src/gateway/server.agent-execution-shutdown.test.ts, src/gateway/server.chat-first-turn-binding.test.ts, src/gateway/server.delegated-creator.product.test.ts, src/gateway/server.heartbeat-store-lifecycle.product-proof.test.ts, src/gateway/server.subagent-stop-settlement.product.test-support.ts, src/gateway/tools-invoke.policy.test-support.ts.

s0343

LOC 2776 → 2448 (-328); declarations 51 → 47 (-4).

Source report: Plain oxlint exited 0; formatting and git diff --check passed. Tests, coverage and check-changed were not run, per CI-only mode.

Files: src/infra/archive.test.ts, src/infra/provider-usage.load.test.ts, src/infra/sqlite-readonly-location.cancellation.test.ts, src/infra/sqlite-worker-transcript-export.test.ts, src/infra/update-immutable-inspection.test.ts, src/infra/update-repair-agent.runtime.test.ts, src/infra/update-requester-authority.test.ts, src/infra/watch-node-observation.test.ts.

s0344

LOC 4195 → 3631 (-564); declarations 160 → 141 (-19).

Source report: Oxfmt, plain oxlint exit 0, and diff-check passed. Tests, coverage, and check-changed were not run under CI-only instructions. No production/support files changed, files deleted, or bugs/flakes fixed. Coordinator decision: accept the documented shortfall or retain these suites unchanged.

Files: extensions/signal/src/approval-reactions.test.ts, extensions/signal/src/client-container.test.ts, extensions/signal/src/client-unix.test.ts, extensions/signal/src/client.test-support.ts, extensions/signal/src/client.test.ts, extensions/signal/src/daemon.test.ts, extensions/signal/src/install-signal-cli.test.ts, extensions/signal/src/media-access.test.ts, extensions/signal/src/message-actions.test.ts, extensions/signal/src/monitor.tool-result.autostart.test.ts, extensions/signal/src/send.test.ts, extensions/signal/src/setup-core.test.ts, extensions/signal/src/signal-ingress.test.ts.

s0345

LOC 3144 → 2850 (-294); declarations 96 → 84 (-12).

Source report: Formatting, git diff --check, and plain oxlint passed. Tests, coverage, and typechecks were not run under CI-only instructions. No production/shared-support changes or bug fixes. Nothing pushed; worktree clean.

Files: src/agents/agent-bundle-mcp-start-backoff.test.ts, src/agents/agent-bundle-mcp-stdio.test-support.ts, src/agents/agent-harness-completion-authority.test.ts, src/agents/agent-tool-availability.test.ts, src/agents/bash-tools.exec-foreground-failures.test.ts, src/agents/embedded-agent-helpers.sanitizeuserfacingtext.test.ts, src/agents/model-selection-manifest-workspace.test.ts, src/agents/plugin-tool-execution.test.ts, src/agents/tool-search-ranking.test.ts.

s0346

LOC 1373 → 1328 (-45); declarations 17 → 17 (0).

Source report: Plain oxlint exited 0; formatting and git diff --check passed. Tests, coverage, and check-changed were not run, per CI-only mode. No production/support files changed and no bug fixes were attempted.

Files: src/agents/subagents/registry/subagent-control.test-support.ts, src/agents/subagents/registry/subagent-registry-completion-runtime.test.ts, src/agents/subagents/registry/subagent-registry-maintenance.test.ts, src/agents/subagents/registry/subagent-registry-terminal-effects.test.ts.

s0347

LOC 2103 → 2008 (-95); declarations 48 → 45 (-3).

Source report: Formatting, git diff --check, and plain oxlint pass. Tests, coverage, and check-changed were not run, per CI-only mode. No production/support changes, whole-file deletions, or bug fixes.

Files: src/commands/doctor-post-upgrade.test.ts, src/commands/doctor-rehearsal-capture.test.ts, src/commands/doctor-session-sqlite.manifests.test.ts, src/commands/onboard-inference.test.ts, src/commands/setup.test.ts, src/commands/status.scan.test.ts.

s0348

LOC 1632 → 1576 (-56); declarations 48 → 48 (0).

Source report: Oxlint exited 0; formatting and diff-check passed. Tests and coverage were not run, per CI-only mode.

Files: extensions/zalouser/src/ingress.test.ts, extensions/zalouser/src/monitor.group-gating.test.ts, extensions/zalouser/src/text-styles-blocks.test.ts, extensions/zalouser/src/zalo-quote-metadata.test.ts.

s0349

LOC 3232 → 2947 (-285); declarations 62 → 52 (-10).

Source report: Formatting, plain oxlint, and diff checks passed. No production/support files changed, files deleted, or bugs fixed. Tests, coverage, and check-changed were not run, per CI-only mode.

Files: src/agents/tools/gateway-tool.test.ts, src/agents/tools/image-tool.custom-provider-auth.regression.test.ts, src/agents/tools/message-tool.hosted-transport.test.ts, src/agents/tools/message-tool.scheduled-writes.test.ts, src/agents/tools/model-config.helpers.test.ts, src/agents/tools/sessions-list-tool.test.ts, src/agents/tools/sessions-send-reply-flow.requester.test.ts, src/agents/tools/sessions-spawn-outcome.test.ts, src/agents/tools/transcripts-tool.occupancy.test.ts.

s0351

LOC 3372 → 2767 (-605); declarations 72 → 64 (-8).

Source report: Plain oxlint exited 0; oxfmt and git diff --check passed. Tests, coverage, and check-changed were not run, per CI-only instructions. No production changes, case removals, or bug fixes.

Files: src/gateway/server-methods/agents-files.test.ts, src/gateway/server-methods/chat-history-worker.test.ts, src/gateway/server-methods/chat-send-request.test.ts, src/gateway/server-methods/cron.webchat-delivery.test.ts, src/gateway/server-methods/models-auth-status.logout.test-support.ts, src/gateway/server-methods/nodes.event.test.ts, src/gateway/server-methods/sessions-files.worktree.test.ts, src/gateway/server-methods/sessions-public-share.test.ts, src/gateway/server-methods/sessions-read-owner-counts.test.ts, src/gateway/server-methods/sessions.abort-queue-authority.test.ts.

s0352

LOC 3030 → 2740 (-290); declarations 72 → 68 (-4).

Source report: Plain oxlint, formatting, and diff checks passed. Tests, coverage, and check-changed were not run, per CI-only instructions. No production/support files changed, files deleted, or bugs fixed.

Files: ui/src/components/app-sidebar-agent-menu.browser.test.ts, ui/src/components/app-sidebar-session-projection.test.ts, ui/src/components/config-form-array-drafts.browser.test.ts, ui/src/components/config-form-composition-integrity.browser.test.ts, ui/src/components/config-form-rejection-integrity.browser.test.ts, ui/src/components/file-preview-modal.test.ts, ui/src/components/markdown-tables.test.ts, ui/src/components/mcp-app-context-strip.test.tsx, ui/src/components/session-group-defaults-dialog.test.ts.

s0353

LOC 2680 → 2571 (-109); declarations 31 → 31 (0).

Source report: Formatting, git diff --check, and plain oxlint passed (exit 0). Tests, coverage and typechecks were not run, as required by CI-only mode. No bugs or flakes were fixed or verified. The supplied declaration counter failed on its TypeScript-5 lookup; a static source count confirmed 55 → 55.

Files: src/gateway/control-ui-link-preview.test.ts, src/gateway/server-startup-projection-warm.test.ts, src/gateway/server.message-buffer-caption.test.ts, src/gateway/session-memory-gateway-adapters.test.ts, src/gateway/session-row-projection.selection-progress.test.ts, src/gateway/tools-invoke-authorization.test.ts, src/gateway/user-background-http.authority.test.ts, src/gateway/watch-node-http.test-helpers.ts.

s0354

LOC 3368 → 3239 (-129); declarations 50 → 48 (-2).

Source report: Plain oxlint, formatting, and git diff --check passed. Tests, coverage, and check-changed were not run, per CI-only mode. No bugs or flakes fixed. Coordinator decision: accept this below-target shard or explicitly revise its retention scope.

Files: src/gateway/worker-environments/credential-attachment-authority.test.ts, src/gateway/worker-environments/local-workspace-cancellation.test-support.ts, src/gateway/worker-environments/placement-disk-space.test.ts, src/gateway/worker-environments/placement-dispatch-coordinator-admission.test.ts, src/gateway/worker-environments/service-prepare.test.ts, src/gateway/worker-environments/worker-turn-launcher.lazy.test.ts, src/gateway/worker-environments/worker-turn-payload.test.ts, src/gateway/worker-environments/worker-turn-rpc.transcript.test.ts, src/gateway/worker-environments/workspace-local-reconciliation.test.ts, src/gateway/worker-environments/workspace-mutation-remote-script.test.ts.

s0356

LOC 986 → 949 (-37); declarations 23 → 23 (0).

Source report: Plain oxlint exited 0; oxfmt and git diff --check passed. Tests, coverage, and check-changed were not run, per CI-only mode. No bug/flake fixes were claimed.

Files: ui/src/pages/usage/usage-page-detail-identity.test.ts, ui/src/pages/usage/view-chart.test.ts, ui/src/pages/usage/view-overview.test.ts.

Reuse existing product provider/model fixtures and factor repeated RPC and upload setup. Preserve every test case and security, recovery, persistence, and lifecycle assertion; these suites are already consolidated, so retain their distinct boundary proof rather than force the line target.
Keep Gateway-specific lifecycle and authorization effects while removing duplicate owner-layer checks and fixture encoders. No test execution: CI-only campaign.

Remaining owner proof: server-channels.test.ts retains pending-start cleanup ownership after a strict stop timeout; session-lifecycle-state.persistence.test.ts settles native child cancellation through success/failed-write; server-close.test.ts marks current sources before cancelling and clearing timed-out restart replies; hosted-lifecycle-dispatch.test.ts keeps transferred cleanup independent of expired tool authority and checks its owner before commit.

RPC registry cancellation remains in session-controller.rpc-sources.test.ts; display-buffer delivery remains in server-chat.wire.test.ts. Assignee sharing and archive/restore remain in sessions-public-share.test.ts and server.sessions.archive-permissions.test.ts. The product creator test retains model-selected identity, causal publication and live role revocation. Reuse provider/SSE helpers and inline the single-use subagent config wrapper.
Keep the real Gateway stopped-partial resume and shutdown finalizer flows. Remove synthetic recovery-residue replay already proved by main-session-recovery-state.terminal-residue.test.ts (ownerless killed fence and all-terminal foreground retirement) and agent-command-recovery-owner.test.ts (execution after terminal residue).

Remove duplicate restart-marker spy instrumentation. server-close-cancellation.test-support.ts retains held-marker-before-cancel ordering; server-rpc-restart-owner.test.ts retains actual durable RPC recovery marking. Keep direct late-entry rejection and finalizer-before-dependency-shutdown assertions. CI-only: no test execution.
Reuse local fixtures and preserve transport, approval, cancellation, recovery, and cleanup assertions. Keep UNIX, approval-reaction, and monitor suites unchanged where further cuts would remove distinct boundaries.

Retain NETWORK_FAILURE in rejects real per-recipient failures and preserves successful send receipts as the representative non-success type branch; remove four equivalent failure-label replays. Retain SIGNAL_CLI_CONFIG and SIGNAL_CLI_USER_AGENT assertions in starts signal-cli with process essentials but without Gateway secrets.

CI-only shard: oxfmt, plain oxlint, and diff-check passed; no runtime tests or coverage run. Test LOC 4094 to 3912 (4.45% reduction), below the 25% target to preserve distinct behavior.
Replace recipient replay state with one table row per outcome branch and full approval-renderer fixtures with the metadata this owner consumes. Renderer proof stays in exec-approval-reply and approval-renderers tests; generic receipt aggregation stays in channels/message/receipt.test.ts.

Shared prepared handoff now aborts after wire arrival, covering the removed container accepted-send replay. Its revoked UNIX case covers the older socket-preparation cancellation replay. Native HTTP lifecycle table covers the removed standalone 503 and monitor reconnect replays. The IPv6 partial-update case covers the removed standalone setup case.

Remove the obsolete raw-send approval registration probe: registration left send.ts in a0f4d54 and monitor.approval-reply-delivery.test.ts retains the ordinary-reply non-binding contract.

CI-only: plain oxlint, oxfmt and diff-check passed. No test/build/coverage runs. Original shard test LOC 4094 to 3601, a 12.0% reduction; no files deleted or production changes. Remaining distinct transport, authority and recovery paths prevent an honest 25% cut.
Share registration rejection and identity checks, daemon stop modes, transport updates, reaction validation, and installer capture setup without dropping their distinct outcomes. Combine direct/group raw-event lane assertions with restart recovery so one scenario proves both independent claims survive and dispatch exactly once.

Preserve the monitor pending/completed abort distinction with microtask ordering rather than an external deferred gate. Keep all error, authority, redaction, path-boundary, and recovery assertions.

CI-only: oxfmt, plain oxlint and diff-check passed; no tests/builds run. Shard test LOC 3601 to 3527 this pass, 4094 to 3527 cumulatively (13.8%). Target remains unmet; no files deleted or production changes.
Consolidate archive fixture construction and extraction plumbing, provider usage fixtures, and pairing provenance setup. Retain every expanded case and all authority, durability, redaction, and ordering checks.
Drop redundant receipt size proof covered by update-run-ledger.test.ts: keeps full-capacity recovery receipts exact while evicting admission and routing. Remove mock-authored credential lookup; real repair auth remains in update-repair-agent.handoff.test.ts and update-repair-inference.oauth.test.ts.

Consolidate window and balance snapshot retention into the deadline sibling test. Retain reset-plus-append artifact isolation; append isolation also remains in src/transcripts/store.test.ts: isolates export snapshots from rewrite and appends. Remove unrelated historical ledger fixtures and internal observation inventories; preserve authority and lifecycle outcomes.
Remove requester repair-loop replay covered by update-repair-turn-worker.test.ts (checks changed policy before effects) and update-repair.worker.test.ts (emits a stopped event and result message when the delegated turn fails). Keep exact requester authority decisions.

Trim immutable inspection discovery fixtures covered by update-candidate-state.test.ts (copies registered databases without source artifact changes; keeps absent stores explicit). Keep adapter coverage classification, plugin resources, unknown target isolation and source preservation. Reuse the directory walker.

Keep runtime environment behavior at update-repair-agent.e2e.test.ts and credential ownership at update-repair-agent.handoff.test.ts. Consolidate ignored-provider filtering into the same completed-sibling deadline flow; retain all cancellation paths and strict cleanup regression.
Consolidate model selection fixtures, reply dispatch setup, MCP runtime construction, and repeated text inputs. Keep every distinct case and authority assertion; replace single-row tables with ordinary cases. No production or shared-support changes.
Remove the cache suite duplicated in workspace.bootstrap-cache.test.ts and the workspace heap case duplicated in prepared-model-catalog-worker.workspace-heap.integration.test.ts. Keep catalog scope/auth assertions while leaving native payload retention to the dedicated heap suites.

Remove foreground workdir replays covered by bash-tools.exec-workdir.test.ts and bash-tools.exec.resolve-env-hook.test.ts, and installer alias replays covered by plugin-tool-execution.skills.test.ts. Consolidate shared branch fixtures while retaining authority, cleanup, and privacy assertions. Remove an unused stdio fixture notification mode after repository-wide reference inspection.

CI-only validation: formatting, plain oxlint, and diff-check. No tests or coverage runs. Combined shard reduction is 4254 to 3585 lines; the 25 percent target remains unmet.
Move requester metadata and live selection assertions into the generation case. Drop the broad descendant replay: subagent-registry-queries.test.ts covers cycle traversal, requester ownership and pending descendants; subagent-liveness.owner-integration.test.ts covers countPendingDescendantRuns and isSubagentSessionRunActive through real owners.

Remove repeated diagnostic wording assertions and share native worker fault interception without changing lifecycle or authority checks.
The retained stable-operator-cancellation late-completion case already verifies retirement with suppressTaskDelivery and no announcement. Keep the separate capture-race and expired-deadline cases: source inspection confirms they traverse sweep-owner checks that lifecycle-controller tests bypass.
Remove the exact historical restore-publication duplicate from restore-paths; doctor-session-sqlite.restore-publication.test.ts retains all device-change, publication race, metadata adoption, directory sync, and interrupted retry cases in the same command project.

Consolidate passive Gemini absence assertions into native discovery and share the Codex failure fixture while retaining timeout, PATH failure, and macOS app failure branches. No production changes. CI-only validation: formatting, diff check and plain oxlint pass. Shard reduction is 476 lines (10.7%); remaining distinct authority and durability behavior prevents an honest 25% cut.
Remove unused guided-custodian assertion helpers and redundant setup/status call-shape and probe-inventory checks. Keep foreign-write refusal, source credential separation, budgets, migration receipts and permission checks.

Share model-selection assertions, remove an auth-mode replay from stat-only passive discovery, and consolidate plugin fixture overrides, hashing, warning data and SQLite disposal. No production changes or test runs; plain oxlint, formatting and diff checks pass. Additional reduction 98 lines; cumulative 4454 to 3880 (12.9%), below the 25% target because no further equivalent proof was found for retained authority and durability cases.
Factor persisted ingress and group-cache fixtures, reuse handoff gates, and derive reply argument types from the runtime contract. Preserve every existing case and assertion; the remaining credential, lifecycle, authority, and parser paths are distinct. CI-only validation: oxfmt, oxlint, and diff-check; no test or coverage execution.
Share repeated tool, catalog, credential, and requester-authority fixtures while preserving distinct authority and lifecycle assertions. Keep media auth decisions as distinct table rows.

Remove duplicate custom-provider and AWS SDK auth smoke cases: image-tool.custom-provider-auth.regression.test.ts retains executes deferred fallback discovery with config-backed auth and runtime key resolution, and registers config-only AWS SDK Bedrock image models.

CI-only campaign: formatting, plain oxlint, and diff checks passed; no runtime tests or coverage run. Net reduction is 146 lines (3.2 percent); retained security and lifecycle cases prevent an honest 25 percent cut in this shard.
Remove copied inventory query and projection suites from sessions-list-tool.test.ts. Their identically named cases remain in sessions-list-query.test.ts and sessions-list-projection.test.ts, including pagination, privacy, authorization and schema coverage.

Keep scheduled account discovery in the discovery owner and iMessage recovery cases. Keep sandbox cwd denial in sessions-spawn-tool.test.ts: enforces sandbox workspace containment. Keep image publication reuse in agent-tools.finalize.test.ts while retaining image-specific native-vision schema checks. Remove the retired synchronous auth-source probe test after producer cleanup 39b7d76.

Reuse message fixture helpers, consolidate missing-Gateway action rows, and drop assertions already implied by observable results. Continuous retry status/count proof remains in auto-start-retry.test.ts; retain the occupancy test for stable startedAt and generated identity.

CI-only: formatting, plain oxlint, and diff checks pass; no tests or coverage run. Additional reduction 618 lines; cumulative 4544 to 3780 (16.8 percent). Independent reviews found no safe further whole-layer deletion to reach 25 percent without losing distinct authority or lifecycle coverage.
Consolidate repeated request fixtures, response checks and cleanup while retaining every case and authority/lifecycle assertion. CI-only validation: plain oxlint, oxfmt and diff checks. No production changes.
Replace agent-file UI replay with direct Gateway CAS and workspace guards. UI keepers: files.test.ts conflict reload/overwrite cases and agent-file-lifecycle.e2e.test.ts replacement-workspace recovery.

Logout profile selection, unavailable-profile rejection, API-key preservation and refreshed status remain in models-auth-removal.integration.test.ts: publishes removal before returning when config reload is enabled. Alias cancellation stays in the retained refresh-failure cases.

History visibility keepers: session-history.subagent-visibility.test.ts ACP lineage and hidden-run cursor/human-steer cases. Serialization stays in serialized-json.test.ts; request budgets and diagnostics stay in chat-history-request-budget.test.ts and chat-history-omission-request.test.ts. Keep positive Gateway serialization and adapter-object assertions.

Causal-creator publication stays in server.delegated-creator.product.test.ts: enforces causal creator final effects and revocation with default configuration. Cold reopen remains in the retained publication lifecycle case. Node presence replacement/clear stays in node-registry.test.ts; real stale host stats stays in server-node-events.test.ts. Cron generation replay stays in service.declarative-jobs.test.ts, replacement routes in delivery-preview.test.ts, and output shape in cron.validation.test.ts.

CI-only: plain oxlint, oxfmt and git diff --check pass. No tests or builds run. No production changes.
Reuse provider and HTTP fixtures, share background authority barriers and byte assertions, and remove duplicated Watch connection types. Preserve all cases and authority assertions; shard remains below the reduction target because the other suites cover distinct lifecycle, privacy, and authorization behaviors.
Keep bounded selection completion and returned model/automation rows instead of inspecting private retained-fact records. Inline the single-use CLI history fixture and retain delivery/audio/provenance assertions.

Probe aliases and pre-route proxy rejection remain covered by server-http.probe.test.ts: serves liveness probes before loading gateway config or resolving auth; serves unauthenticated probes before stalled stages, Control UI, and catch-all plugins; rejects untrusted proxy ingress before probes, hooks, and watch-node handlers. Keep actual managed-listener binding, upgrade attribution, and startup gates here.
Consolidate repeated config and MCP fixtures, collection cleanup, and sidebar assertions. Retain rejected edits, redacted keys, focus ordering, and stale-result authority checks.

The markdown copy lifecycle case now also owns the former status-region assertions, including success, failure, and reset. All distinct behavior stays in the shard. CI-only campaign: plain oxlint and formatting checked; runtime proof deferred to hosted CI.
Keep redacted rename rejection in config-form-map-keys, and Raw-only sibling preservation in the model Code Mode roundtrip. Keep table rendering, progress sanitization, and session links in their markdown owner suites; remove copied icon geometry and menu inventories.

File-preview browser coverage owns relative Markdown navigation and footer placement. Shared CopyButton tests own pending-label lifetime and feedback reset; retain preview locale and copy-result integration assertions. Collapse empty-group status variants through the same filtering branch.

CI-only: plain oxlint, formatting and diff checks pass. No tests run. Cumulative reduction is 381 lines (9.9%); remaining distinct authority, lifecycle, focus and schema behaviors prevent the requested 25% without dropping proof.
Remove the initial-setup copy of five claim-admission scenarios. The same compaction lifecycle, pending-result wait, restart-cleared retry, reclaimed redispatch and exact cancellation scenarios remain in worker-turn-launcher-claim-admission.test.ts. Same-session active compaction adoption also remains in worker-turn-launcher-computer.test.ts.

Keep transcript fencing and publication interleavings, but remove their repeated successor admission and replay tails: worker-turn-rpc.test.ts binds credentials and reconnect identities to the exact replacement claim; transcript-commit.test.ts releases unused reservations and replays the same tuple without duplicates. The publication-race successor commit remains in this shard.

Keep payload boundary parsing and local dynamic-load guards. Opaque replay image refusal remains in inference-stream.runtime.test.ts (preserves opaque replay and its image history when the mandatory replay cannot fit), plus the retained launch cap/no-mint cases. Ordinary workspace edit replay remains in local-workspace-projection.test.ts; the shared remote preapply fence remains in workspace-finalize.test.ts. Remove internal wiring assertions and reuse existing gates.

CI-only validation: plain oxlint, oxfmt and git diff --check passed. No test, coverage or build runs. Cumulative shard LOC 4247 to 3816; the 25 percent target remains unmet rather than deleting distinct authority, lifecycle or durability behavior.
Share the queue, caller closure, service closure and native-commit attachment rejection harness while retaining each interleaving and its durable-state, minting and rejection assertions. Share portal revocation setup across discovery, dispatch and activity recording.

Move the duplicate direct preparation happy path into the authenticated environments.prepare success case, preserving sessionless HEAD, profile, expiry, recipe, list and provider assertions under the same held-provider gate. Use async file-handle disposal and remove redundant internal wiring assertions. Preserve the only generated-script bavail guard and both changed/unchanged workspace publication assertions.

CI-only: plain oxlint, oxfmt and git diff --check passed; no tests or builds run. This pass removes 52 lines. Cumulative shard LOC is 4247 to 3764, below the requested 25 percent reduction; remaining distinct authority and lifecycle behavior was retained.
Remove duplicated query-ownership and detail-identity suites from usage-page.test.ts; their dedicated sibling files retain the query fencing, replacement, recovery, and context identity assertions.

Remove duplicated overview, session-card, and daily-chart suites from view.test.ts. view-overview.test.ts and view-chart.test.ts retain those behaviors with current APIs. Reuse existing reactive harnesses and compact the query fixtures without folding cases.

CI-only campaign: oxlint, oxfmt, and diff checks pass. Tests and coverage intentionally not run. Shard test/support LOC: 4989 to 3873 (22.4%); static cases: 144 to 111. Below the 25% LOC target; distinct remaining lifecycle and accounting behaviors are retained.
@clawsweeper

clawsweeper Bot commented Oct 25, 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 25, 2026 11:54
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 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-25T12:20:34.732849Z 4300960 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: signal Channel integration: signal channel: zalouser Channel integration: zalouser app: web-ui App: web-ui gateway Gateway runtime commands Command implementations agents Agent runtime and tooling size: XL labels Oct 25, 2026
@steipete
steipete disabled auto-merge October 25, 2026 12:00
@steipete
steipete enabled auto-merge (squash) October 25, 2026 12:04
@steipete
steipete disabled auto-merge October 25, 2026 12:13
@steipete
steipete enabled auto-merge (squash) October 25, 2026 12:16
@steipete
steipete disabled auto-merge October 25, 2026 12:25
@steipete
steipete enabled auto-merge (squash) October 25, 2026 12:27
@steipete
steipete merged commit 84168d3 into main Oct 25, 2026
146 of 148 checks passed
@steipete
steipete deleted the tcr/land-d531-1792929026 branch October 25, 2026 12:50
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 26, 2026
…183573)

* test(gateway): deslop s0342 tests

Reuse existing product provider/model fixtures and factor repeated RPC and upload setup. Preserve every test case and security, recovery, persistence, and lifecycle assertion; these suites are already consolidated, so retain their distinct boundary proof rather than force the line target.

* test(gateway): remove duplicated s0342 proof layers

Keep Gateway-specific lifecycle and authorization effects while removing duplicate owner-layer checks and fixture encoders. No test execution: CI-only campaign.

Remaining owner proof: server-channels.test.ts retains pending-start cleanup ownership after a strict stop timeout; session-lifecycle-state.persistence.test.ts settles native child cancellation through success/failed-write; server-close.test.ts marks current sources before cancelling and clearing timed-out restart replies; hosted-lifecycle-dispatch.test.ts keeps transferred cleanup independent of expired tool authority and checks its owner before commit.

RPC registry cancellation remains in session-controller.rpc-sources.test.ts; display-buffer delivery remains in server-chat.wire.test.ts. Assignee sharing and archive/restore remain in sessions-public-share.test.ts and server.sessions.archive-permissions.test.ts. The product creator test retains model-selected identity, causal publication and live role revocation. Reuse provider/SSE helpers and inline the single-use subagent config wrapper.

* test(gateway): consolidate s0342 recovery owner proof

Keep the real Gateway stopped-partial resume and shutdown finalizer flows. Remove synthetic recovery-residue replay already proved by main-session-recovery-state.terminal-residue.test.ts (ownerless killed fence and all-terminal foreground retirement) and agent-command-recovery-owner.test.ts (execution after terminal residue).

Remove duplicate restart-marker spy instrumentation. server-close-cancellation.test-support.ts retains held-marker-before-cancel ordering; server-rpc-restart-owner.test.ts retains actual durable RPC recovery marking. Keep direct late-entry rejection and finalizer-before-dependency-shutdown assertions. CI-only: no test execution.

* test(signal): deslop s0344 tests

Reuse local fixtures and preserve transport, approval, cancellation, recovery, and cleanup assertions. Keep UNIX, approval-reaction, and monitor suites unchanged where further cuts would remove distinct boundaries.

Retain NETWORK_FAILURE in rejects real per-recipient failures and preserves successful send receipts as the representative non-success type branch; remove four equivalent failure-label replays. Retain SIGNAL_CLI_CONFIG and SIGNAL_CLI_USER_AGENT assertions in starts signal-cli with process essentials but without Gateway secrets.

CI-only shard: oxfmt, plain oxlint, and diff-check passed; no runtime tests or coverage run. Test LOC 4094 to 3912 (4.45% reduction), below the 25% target to preserve distinct behavior.

* test(signal): consolidate s0344 boundary fixtures

Replace recipient replay state with one table row per outcome branch and full approval-renderer fixtures with the metadata this owner consumes. Renderer proof stays in exec-approval-reply and approval-renderers tests; generic receipt aggregation stays in channels/message/receipt.test.ts.

Shared prepared handoff now aborts after wire arrival, covering the removed container accepted-send replay. Its revoked UNIX case covers the older socket-preparation cancellation replay. Native HTTP lifecycle table covers the removed standalone 503 and monitor reconnect replays. The IPv6 partial-update case covers the removed standalone setup case.

Remove the obsolete raw-send approval registration probe: registration left send.ts in 7b4ead4 and monitor.approval-reply-delivery.test.ts retains the ordinary-reply non-binding contract.

CI-only: plain oxlint, oxfmt and diff-check passed. No test/build/coverage runs. Original shard test LOC 4094 to 3601, a 12.0% reduction; no files deleted or production changes. Remaining distinct transport, authority and recovery paths prevent an honest 25% cut.

* test(signal): consolidate s0344 branch harnesses

Share registration rejection and identity checks, daemon stop modes, transport updates, reaction validation, and installer capture setup without dropping their distinct outcomes. Combine direct/group raw-event lane assertions with restart recovery so one scenario proves both independent claims survive and dispatch exactly once.

Preserve the monitor pending/completed abort distinction with microtask ordering rather than an external deferred gate. Keep all error, authority, redaction, path-boundary, and recovery assertions.

CI-only: oxfmt, plain oxlint and diff-check passed; no tests/builds run. Shard test LOC 3601 to 3527 this pass, 4094 to 3527 cumulatively (13.8%). Target remains unmet; no files deleted or production changes.

* test(infra): deslop s0343 tests

Consolidate archive fixture construction and extraction plumbing, provider usage fixtures, and pairing provenance setup. Retain every expanded case and all authority, durability, redaction, and ordering checks.

* test(infra): remove duplicate s0343 proof layers

Drop redundant receipt size proof covered by update-run-ledger.test.ts: keeps full-capacity recovery receipts exact while evicting admission and routing. Remove mock-authored credential lookup; real repair auth remains in update-repair-agent.handoff.test.ts and update-repair-inference.oauth.test.ts.

Consolidate window and balance snapshot retention into the deadline sibling test. Retain reset-plus-append artifact isolation; append isolation also remains in src/transcripts/store.test.ts: isolates export snapshots from rewrite and appends. Remove unrelated historical ledger fixtures and internal observation inventories; preserve authority and lifecycle outcomes.

* test(infra): consolidate s0343 owner-boundary coverage

Remove requester repair-loop replay covered by update-repair-turn-worker.test.ts (checks changed policy before effects) and update-repair.worker.test.ts (emits a stopped event and result message when the delegated turn fails). Keep exact requester authority decisions.

Trim immutable inspection discovery fixtures covered by update-candidate-state.test.ts (copies registered databases without source artifact changes; keeps absent stores explicit). Keep adapter coverage classification, plugin resources, unknown target isolation and source preservation. Reuse the directory walker.

Keep runtime environment behavior at update-repair-agent.e2e.test.ts and credential ownership at update-repair-agent.handoff.test.ts. Consolidate ignored-provider filtering into the same completed-sibling deadline flow; retain all cancellation paths and strict cleanup regression.

* test(agents): deslop s0345 tests

Consolidate model selection fixtures, reply dispatch setup, MCP runtime construction, and repeated text inputs. Keep every distinct case and authority assertion; replace single-row tables with ordinary cases. No production or shared-support changes.

* test(agents): consolidate s0345 owner coverage

Remove the cache suite duplicated in workspace.bootstrap-cache.test.ts and the workspace heap case duplicated in prepared-model-catalog-worker.workspace-heap.integration.test.ts. Keep catalog scope/auth assertions while leaving native payload retention to the dedicated heap suites.

Remove foreground workdir replays covered by bash-tools.exec-workdir.test.ts and bash-tools.exec.resolve-env-hook.test.ts, and installer alias replays covered by plugin-tool-execution.skills.test.ts. Consolidate shared branch fixtures while retaining authority, cleanup, and privacy assertions. Remove an unused stdio fixture notification mode after repository-wide reference inspection.

CI-only validation: formatting, plain oxlint, and diff-check. No tests or coverage runs. Combined shard reduction is 4254 to 3585 lines; the 25 percent target remains unmet.

* test(subagents): deslop s0346 tests

* test(subagents): consolidate s0346 scoped-read proof

Move requester metadata and live selection assertions into the generation case. Drop the broad descendant replay: subagent-registry-queries.test.ts covers cycle traversal, requester ownership and pending descendants; subagent-liveness.owner-integration.test.ts covers countPendingDescendantRuns and isSubagentSessionRunActive through real owners.

Remove repeated diagnostic wording assertions and share native worker fault interception without changing lifecycle or authority checks.

* test(subagents): remove duplicate suppressed tombstone case

The retained stable-operator-cancellation late-completion case already verifies retirement with suppressTaskDelivery and no announcement. Keep the separate capture-race and expired-deadline cases: source inspection confirms they traverse sweep-owner checks that lifecycle-controller tests bypass.

* test(commands): deslop s0347 tests

Remove the exact historical restore-publication duplicate from restore-paths; doctor-session-sqlite.restore-publication.test.ts retains all device-change, publication race, metadata adoption, directory sync, and interrupted retry cases in the same command project.

Consolidate passive Gemini absence assertions into native discovery and share the Codex failure fixture while retaining timeout, PATH failure, and macOS app failure branches. No production changes. CI-only validation: formatting, diff check and plain oxlint pass. Shard reduction is 476 lines (10.7%); remaining distinct authority and durability behavior prevents an honest 25% cut.

* test(commands): consolidate s0347 fixtures and assertions

Remove unused guided-custodian assertion helpers and redundant setup/status call-shape and probe-inventory checks. Keep foreign-write refusal, source credential separation, budgets, migration receipts and permission checks.

Share model-selection assertions, remove an auth-mode replay from stat-only passive discovery, and consolidate plugin fixture overrides, hashing, warning data and SQLite disposal. No production changes or test runs; plain oxlint, formatting and diff checks pass. Additional reduction 98 lines; cumulative 4454 to 3880 (12.9%), below the 25% target because no further equivalent proof was found for retained authority and durability cases.

* test(zalouser): deslop s0348 tests

Factor persisted ingress and group-cache fixtures, reuse handoff gates, and derive reply argument types from the runtime contract. Preserve every existing case and assertion; the remaining credential, lifecycle, authority, and parser paths are distinct. CI-only validation: oxfmt, oxlint, and diff-check; no test or coverage execution.

* test(agents): deslop s0349 tests

Share repeated tool, catalog, credential, and requester-authority fixtures while preserving distinct authority and lifecycle assertions. Keep media auth decisions as distinct table rows.

Remove duplicate custom-provider and AWS SDK auth smoke cases: image-tool.custom-provider-auth.regression.test.ts retains executes deferred fallback discovery with config-backed auth and runtime key resolution, and registers config-only AWS SDK Bedrock image models.

CI-only campaign: formatting, plain oxlint, and diff checks passed; no runtime tests or coverage run. Net reduction is 146 lines (3.2 percent); retained security and lifecycle cases prevent an honest 25 percent cut in this shard.

* test(agents): remove duplicate s0349 test layers

Remove copied inventory query and projection suites from sessions-list-tool.test.ts. Their identically named cases remain in sessions-list-query.test.ts and sessions-list-projection.test.ts, including pagination, privacy, authorization and schema coverage.

Keep scheduled account discovery in the discovery owner and iMessage recovery cases. Keep sandbox cwd denial in sessions-spawn-tool.test.ts: enforces sandbox workspace containment. Keep image publication reuse in agent-tools.finalize.test.ts while retaining image-specific native-vision schema checks. Remove the retired synchronous auth-source probe test after producer cleanup 41ab718.

Reuse message fixture helpers, consolidate missing-Gateway action rows, and drop assertions already implied by observable results. Continuous retry status/count proof remains in auto-start-retry.test.ts; retain the occupancy test for stable startedAt and generated identity.

CI-only: formatting, plain oxlint, and diff checks pass; no tests or coverage run. Additional reduction 618 lines; cumulative 4544 to 3780 (16.8 percent). Independent reviews found no safe further whole-layer deletion to reach 25 percent without losing distinct authority or lifecycle coverage.

* test(gateway): deslop s0351 tests

Consolidate repeated request fixtures, response checks and cleanup while retaining every case and authority/lifecycle assertion. CI-only validation: plain oxlint, oxfmt and diff checks. No production changes.

* test(gateway): remove duplicate s0351 proof layers

Replace agent-file UI replay with direct Gateway CAS and workspace guards. UI keepers: files.test.ts conflict reload/overwrite cases and agent-file-lifecycle.e2e.test.ts replacement-workspace recovery.

Logout profile selection, unavailable-profile rejection, API-key preservation and refreshed status remain in models-auth-removal.integration.test.ts: publishes removal before returning when config reload is enabled. Alias cancellation stays in the retained refresh-failure cases.

History visibility keepers: session-history.subagent-visibility.test.ts ACP lineage and hidden-run cursor/human-steer cases. Serialization stays in serialized-json.test.ts; request budgets and diagnostics stay in chat-history-request-budget.test.ts and chat-history-omission-request.test.ts. Keep positive Gateway serialization and adapter-object assertions.

Causal-creator publication stays in server.delegated-creator.product.test.ts: enforces causal creator final effects and revocation with default configuration. Cold reopen remains in the retained publication lifecycle case. Node presence replacement/clear stays in node-registry.test.ts; real stale host stats stays in server-node-events.test.ts. Cron generation replay stays in service.declarative-jobs.test.ts, replacement routes in delivery-preview.test.ts, and output shape in cron.validation.test.ts.

CI-only: plain oxlint, oxfmt and git diff --check pass. No tests or builds run. No production changes.

* test(gateway): deslop s0353 tests

Reuse provider and HTTP fixtures, share background authority barriers and byte assertions, and remove duplicated Watch connection types. Preserve all cases and authority assertions; shard remains below the reduction target because the other suites cover distinct lifecycle, privacy, and authorization behaviors.

* test(gateway): remove redundant s0353 proof layers

Keep bounded selection completion and returned model/automation rows instead of inspecting private retained-fact records. Inline the single-use CLI history fixture and retain delivery/audio/provenance assertions.

Probe aliases and pre-route proxy rejection remain covered by server-http.probe.test.ts: serves liveness probes before loading gateway config or resolving auth; serves unauthenticated probes before stalled stages, Control UI, and catch-all plugins; rejects untrusted proxy ingress before probes, hooks, and watch-node handlers. Keep actual managed-listener binding, upgrade attribution, and startup gates here.

* test(ui): deslop s0352 tests

Consolidate repeated config and MCP fixtures, collection cleanup, and sidebar assertions. Retain rejected edits, redacted keys, focus ordering, and stale-result authority checks.

The markdown copy lifecycle case now also owns the former status-region assertions, including success, failure, and reset. All distinct behavior stays in the shard. CI-only campaign: plain oxlint and formatting checked; runtime proof deferred to hosted CI.

* test(ui): remove duplicate s0352 boundary proof

Keep redacted rename rejection in config-form-map-keys, and Raw-only sibling preservation in the model Code Mode roundtrip. Keep table rendering, progress sanitization, and session links in their markdown owner suites; remove copied icon geometry and menu inventories.

File-preview browser coverage owns relative Markdown navigation and footer placement. Shared CopyButton tests own pending-label lifetime and feedback reset; retain preview locale and copy-result integration assertions. Collapse empty-group status variants through the same filtering branch.

CI-only: plain oxlint, formatting and diff checks pass. No tests run. Cumulative reduction is 381 lines (9.9%); remaining distinct authority, lifecycle, focus and schema behaviors prevent the requested 25% without dropping proof.

* test(gateway): deslop s0354 tests

* test(gateway): deslop s0354 duplicate test layers

Remove the initial-setup copy of five claim-admission scenarios. The same compaction lifecycle, pending-result wait, restart-cleared retry, reclaimed redispatch and exact cancellation scenarios remain in worker-turn-launcher-claim-admission.test.ts. Same-session active compaction adoption also remains in worker-turn-launcher-computer.test.ts.

Keep transcript fencing and publication interleavings, but remove their repeated successor admission and replay tails: worker-turn-rpc.test.ts binds credentials and reconnect identities to the exact replacement claim; transcript-commit.test.ts releases unused reservations and replays the same tuple without duplicates. The publication-race successor commit remains in this shard.

Keep payload boundary parsing and local dynamic-load guards. Opaque replay image refusal remains in inference-stream.runtime.test.ts (preserves opaque replay and its image history when the mandatory replay cannot fit), plus the retained launch cap/no-mint cases. Ordinary workspace edit replay remains in local-workspace-projection.test.ts; the shared remote preapply fence remains in workspace-finalize.test.ts. Remove internal wiring assertions and reuse existing gates.

CI-only validation: plain oxlint, oxfmt and git diff --check passed. No test, coverage or build runs. Cumulative shard LOC 4247 to 3816; the 25 percent target remains unmet rather than deleting distinct authority, lifecycle or durability behavior.

* test(gateway): consolidate s0354 authority fixtures

Share the queue, caller closure, service closure and native-commit attachment rejection harness while retaining each interleaving and its durable-state, minting and rejection assertions. Share portal revocation setup across discovery, dispatch and activity recording.

Move the duplicate direct preparation happy path into the authenticated environments.prepare success case, preserving sessionless HEAD, profile, expiry, recipe, list and provider assertions under the same held-provider gate. Use async file-handle disposal and remove redundant internal wiring assertions. Preserve the only generated-script bavail guard and both changed/unchanged workspace publication assertions.

CI-only: plain oxlint, oxfmt and git diff --check passed; no tests or builds run. This pass removes 52 lines. Cumulative shard LOC is 4247 to 3764, below the requested 25 percent reduction; remaining distinct authority and lifecycle behavior was retained.

* test(usage): deslop s0356 tests

Remove duplicated query-ownership and detail-identity suites from usage-page.test.ts; their dedicated sibling files retain the query fencing, replacement, recovery, and context identity assertions.

Remove duplicated overview, session-card, and daily-chart suites from view.test.ts. view-overview.test.ts and view-chart.test.ts retain those behaviors with current APIs. Reuse existing reactive harnesses and compact the query fixtures without folding cases.

CI-only campaign: oxlint, oxfmt, and diff checks pass. Tests and coverage intentionally not run. Shard test/support LOC: 4989 to 3873 (22.4%); static cases: 144 to 111. Below the 25% LOC target; distinct remaining lifecycle and accounting behaviors are retained.

* test: repair d531 replay fixtures for current main

* test: clarify d531 mock isolation and typed errors

* test: prune obsolete d531 mock baseline entries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui channel: signal Channel integration: signal channel: zalouser Channel integration: zalouser commands Command implementations gateway Gateway runtime size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant