Skip to content

test(core): remove low-value tests (batch d538) - #183629

Merged
steipete merged 33 commits into
mainfrom
tcr/land-d538-1792936336
Oct 25, 2026
Merged

steipete merged 33 commits into
mainfrom
tcr/land-d538-1792936336

Conversation

@steipete

@steipete steipete commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Removes duplicate proof layers and repeated fixture setup in the test-reduction campaign, batch d538.

User Impact

No production behavior, public API, configuration, or migration changes. This is test and test-support maintenance only.

Why This Change Was Made

Consolidates repeated setup and assertions at the owning boundary while retaining distinct lifecycle, authorization, failure, and transport contracts. Replayed onto pinned main 9d842aea994e838643d9cc84fb606a9715d6b941.

Evidence

  • Oxfmt: passed on all 78 surviving changed TS/TSX files.
  • Plain oxlint (node_modules/.bin/oxlint -c .oxlintrc.json <changed files>): exit 0.
  • git diff --check 9d842aea994e838643d9cc84fb606a9715d6b941: passed.
  • Runtime tests, coverage, check-changed, tsgo, and Testbox deliberately not run under the operator's CI-only rule. Required openclaw/ci-gate is the runtime proof gate; independent review runs during CI.
  • Production LOC: +0 / -0. Test and test-support LOC: +3312 / -6130 (net -2818); 79 files, including 1 deleted suite. Counts below cover the actual replay, not the source campaign snapshot. Declaration counts are static it/test declaration sites, not expanded or executed case counts.
  • CODEOWNERS: no changed file matches the current explicit CODEOWNERS rules.
Shard files and actual replay deltas

s0419

Test/support LOC 1714 → 1577 (-137); declaration sites 40 → 36.

  • extensions/openai/openai-chatgpt-provider.test.ts: 312 → 296 lines; 9 → 9 declaration sites.
  • extensions/openai/realtime-live-api.test.ts: 297 → 268 lines; 5 → 5 declaration sites.
  • extensions/openai/realtime-quicksilver-peer-worker.test.ts: 299 → 295 lines; 4 → 4 declaration sites.
  • extensions/openai/realtime-quicksilver-public-delegation.test.ts: 220 → 178 lines; 6 → 4 declaration sites.
  • extensions/openai/realtime-voice-response-control.test.ts: 370 → 352 lines; 10 → 10 declaration sites.
  • extensions/openai/usage.test.ts: 216 → 188 lines; 6 → 4 declaration sites.

Source shard coverage totals: unavailable. The source report explicitly states tests and coverage were not run under CI-only instructions; no coverage-retention percentage is claimed.

s0422

Test/support LOC 2472 → 2063 (-409); declaration sites 54 → 44.

  • ui/src/pages/chat/chat-composer-suggestions.test.ts: 288 → 245 lines; 8 → 7 declaration sites.
  • ui/src/pages/chat/chat-input-scroll-ownership.test.ts: 363 → 209 lines; 9 → 4 declaration sites.
  • ui/src/pages/chat/chat-outbox-recovery-owner.test.ts: 283 → 278 lines; 3 → 3 declaration sites.
  • ui/src/pages/chat/chat-pane-reactions.test.ts: 354 → 336 lines; 7 → 7 declaration sites.
  • ui/src/pages/chat/chat-send-access.test.ts: 305 → 293 lines; 5 → 5 declaration sites.
  • ui/src/pages/chat/chat-thread-inline-view.test.ts: 288 → 228 lines; 7 → 6 declaration sites.
  • ui/src/pages/chat/chat-thread-live-final.test.ts: 306 → 223 lines; 6 → 4 declaration sites.
  • ui/src/pages/chat/sidebar-snapshot-store.test.ts: 285 → 251 lines; 9 → 8 declaration sites.

Source shard coverage totals: unavailable. The source report explicitly states tests and coverage were not run under CI-only instructions; no coverage-retention percentage is claimed.

s0423

Test/support LOC 2354 → 2117 (-237); declaration sites 40 → 34.

  • extensions/telegram/src/bot-message-dispatch.recovery.telegram-http.test.ts: 318 → 308 lines; 5 → 5 declaration sites.
  • extensions/telegram/src/bot-native-command-login.test-support.ts: 282 → 269 lines; 0 → 0 declaration sites.
  • extensions/telegram/src/bot-native-commands.registry.test.ts: 243 → 226 lines; 4 → 4 declaration sites.
  • extensions/telegram/src/message-cache.test.ts: 321 → 297 lines; 12 → 11 declaration sites.
  • extensions/telegram/src/outbound-message-context.test.ts: 304 → 194 lines; 7 → 3 declaration sites.
  • extensions/telegram/src/send.telegram-http.test-support.ts: 320 → 318 lines; 0 → 0 declaration sites.
  • extensions/telegram/src/send.transport-close-proof.test.ts: 277 → 268 lines; 5 → 5 declaration sites.
  • extensions/telegram/src/telegram-ingress-worker.runtime.test.ts: 289 → 237 lines; 7 → 6 declaration sites.

Source shard coverage totals: unavailable. The source report explicitly states tests and coverage were not run under CI-only instructions; no coverage-retention percentage is claimed.

s0424

Test/support LOC 2788 → 2413 (-375); declaration sites 73 → 57.

  • ui/src/components/browser/browser-panel-controller.test.ts: 710 → 601 lines; 15 → 13 declaration sites.
  • ui/src/components/browser/browser-panel-native.test.ts: 793 → 656 lines; 25 → 17 declaration sites.
  • ui/src/components/browser/browser-panel-paste.test.ts: 325 → 0 lines; 9 → 0 declaration sites.
  • ui/src/components/browser/browser-panel-route.test.ts: 582 → 521 lines; 12 → 8 declaration sites.
  • ui/src/components/browser/browser-panel.test.ts: 378 → 635 lines; 12 → 19 declaration sites.

Source shard coverage totals: unavailable. The source report explicitly states tests and coverage were not run under CI-only instructions; no coverage-retention percentage is claimed.

s0425

Test/support LOC 1748 → 1665 (-83); declaration sites 52 → 49.

  • src/infra/backup-archive-publication.test.ts: 289 → 283 lines; 11 → 11 declaration sites.
  • src/infra/owned-directory-observation.test.ts: 289 → 284 lines; 11 → 10 declaration sites.
  • src/infra/update-candidate-canary.exit.process.test.ts: 296 → 289 lines; 2 → 2 declaration sites.
  • src/infra/update-candidate-state.diagnostics.test.ts: 291 → 270 lines; 14 → 12 declaration sites.
  • src/infra/update-doctor-migration-attribution.test.ts: 289 → 275 lines; 7 → 7 declaration sites.
  • src/infra/windows-task-restart.test.ts: 294 → 264 lines; 7 → 7 declaration sites.

Source shard coverage totals: unavailable. The source report explicitly states tests and coverage were not run under CI-only instructions; no coverage-retention percentage is claimed.

s0426

Test/support LOC 2662 → 2406 (-256); declaration sites 47 → 41.

  • src/cron/active-jobs.test.ts: 362 → 346 lines; 11 → 10 declaration sites.
  • src/cron/cli-thinking.gateway.test.ts: 270 → 244 lines; 3 → 3 declaration sites.
  • src/cron/execution-context-board-effects.test.ts: 256 → 243 lines; 6 → 4 declaration sites.
  • src/cron/execution-idle.test.ts: 270 → 221 lines; 6 → 5 declaration sites.
  • src/cron/service.provisioning.test.ts: 287 → 275 lines; 5 → 4 declaration sites.
  • src/cron/service.restart-session-event.test.ts: 355 → 330 lines; 2 → 2 declaration sites.
  • src/cron/service.runs-one-shot-main-job-disables-it.test.ts: 313 → 234 lines; 6 → 5 declaration sites.
  • src/cron/service.session-reaper-in-finally.test.ts: 277 → 274 lines; 6 → 6 declaration sites.
  • src/cron/trigger-script.preparation.test.ts: 272 → 239 lines; 2 → 2 declaration sites.

Source shard coverage totals: unavailable. The source report explicitly states tests and coverage were not run under CI-only instructions; no coverage-retention percentage is claimed.

s0427

Test/support LOC 1207 → 1050 (-157); declaration sites 22 → 21.

  • src/commands/agent-exec.state-lock.test.ts: 292 → 281 lines; 5 → 5 declaration sites.
  • src/commands/doctor-auth-source-owner.test.ts: 293 → 252 lines; 4 → 3 declaration sites.
  • src/commands/doctor-gateway-health.output.test.ts: 292 → 252 lines; 5 → 5 declaration sites.
  • src/commands/sandbox-explain.test.ts: 330 → 265 lines; 8 → 8 declaration sites.

Source shard coverage totals: unavailable. The source report explicitly states tests and coverage were not run under CI-only instructions; no coverage-retention percentage is claimed.

s0428

Test/support LOC 1978 → 1755 (-223); declaration sites 44 → 36.

  • extensions/codex/src/app-server/compact.model-policy.test.ts: 293 → 281 lines; 1 → 1 declaration sites.
  • extensions/codex/src/app-server/computer-use-readiness.test.ts: 297 → 258 lines; 7 → 6 declaration sites.
  • extensions/codex/src/app-server/event-projector-snapshot.test.ts: 286 → 248 lines; 8 → 7 declaration sites.
  • extensions/codex/src/app-server/native-subagent-inventory.test-support.ts: 253 → 228 lines; 0 → 0 declaration sites.
  • extensions/codex/src/app-server/rate-limits.test.ts: 294 → 222 lines; 15 → 9 declaration sites.
  • extensions/codex/src/app-server/transport-websocket.test.ts: 274 → 238 lines; 8 → 8 declaration sites.
  • extensions/codex/src/app-server/upstream-fork-import.test.ts: 281 → 280 lines; 5 → 5 declaration sites.

Source shard coverage totals: unavailable. The source report explicitly states tests and coverage were not run under CI-only instructions; no coverage-retention percentage is claimed.

s0429

Test/support LOC 2579 → 1918 (-661); declaration sites 42 → 29.

  • src/state/openclaw-agent-db-registry-listing.settled.test.ts: 290 → 165 lines; 11 → 6 declaration sites.
  • src/state/openclaw-agent-db-session-migrations.test.ts: 295 → 243 lines; 4 → 3 declaration sites.
  • src/state/openclaw-agent-db-write.test.ts: 283 → 219 lines; 6 → 4 declaration sites.
  • src/state/openclaw-agent-db.permissions.test.ts: 294 → 100 lines; 4 → 2 declaration sites.
  • src/state/openclaw-agent-index-retirement-migration.test.ts: 279 → 252 lines; 4 → 4 declaration sites.
  • src/state/openclaw-state-db-prepared-workers.test.ts: 290 → 267 lines; 4 → 4 declaration sites.
  • src/state/openclaw-state-lease-async.timer.test.ts: 281 → 269 lines; 3 → 3 declaration sites.
  • src/state/openclaw-state-lease-heartbeat.diagnostics.test.ts: 288 → 148 lines; 3 → 1 declaration sites.
  • src/state/openclaw-state.worker.summary.test.ts: 279 → 255 lines; 3 → 2 declaration sites.

Source shard coverage totals: unavailable. The source report explicitly states tests and coverage were not run under CI-only instructions; no coverage-retention percentage is claimed.

s0430

Test/support LOC 2016 → 1922 (-94); declaration sites 44 → 41.

  • src/cli/daemon-cli.update-run.test.ts: 286 → 267 lines; 6 → 6 declaration sites.
  • src/cli/doctor-output.process.test.ts: 282 → 280 lines; 4 → 4 declaration sites.
  • src/cli/gateway-backed-exit-health.process.test.ts: 274 → 254 lines; 4 → 4 declaration sites.
  • src/cli/gateway-backed-exit.test-helpers.ts: 290 → 289 lines; 0 → 0 declaration sites.
  • src/cli/logs-cli.shutdown.test.ts: 297 → 293 lines; 3 → 3 declaration sites.
  • src/cli/session-ref.test.ts: 306 → 288 lines; 21 → 18 declaration sites.
  • src/cli/skills-cli.workshop.test.ts: 281 → 251 lines; 6 → 6 declaration sites.

Source shard coverage totals: unavailable. The source report explicitly states tests and coverage were not run under CI-only instructions; no coverage-retention percentage is claimed.

s0431

Test/support LOC 2130 → 2012 (-118); declaration sites 48 → 49.

  • src/sessions/model-overrides.test.ts: 367 → 330 lines; 12 → 14 declaration sites.
  • src/sessions/session-controller.admission.test.ts: 276 → 276 lines; 6 → 6 declaration sites.
  • src/sessions/session-controller.message-join.handoff.test.ts: 377 → 328 lines; 1 → 1 declaration sites.
  • src/sessions/session-controller.rpc-sources.test.ts: 361 → 344 lines; 11 → 10 declaration sites.
  • src/sessions/session-created.test.ts: 292 → 284 lines; 9 → 9 declaration sites.
  • src/sessions/session-diff-baseline-files.test.ts: 237 → 235 lines; 3 → 3 declaration sites.
  • src/sessions/session-diff-baseline.test.ts: 220 → 215 lines; 6 → 6 declaration sites.

Source shard coverage totals: unavailable. The source report explicitly states tests and coverage were not run under CI-only instructions; no coverage-retention percentage is claimed.

s0433

Test/support LOC 861 → 793 (-68); declaration sites 26 → 26.

  • extensions/browser/src/browser/chrome.launch-early-exit.test.ts: 297 → 281 lines; 8 → 8 declaration sites.
  • extensions/browser/src/browser/control-auth.auto-token.test.ts: 281 → 236 lines; 11 → 11 declaration sites.
  • extensions/browser/src/browser/pw-tools-core.interactions.batch.test.ts: 283 → 276 lines; 7 → 7 declaration sites.

Source shard coverage totals: unavailable. The source report explicitly states tests and coverage were not run under CI-only instructions; no coverage-retention percentage is claimed.

Replay decisions

29 listed commits applied in order; skipped 912bfd2ea1f69da00dac4c85bd38766ac9472ef6 because its candidate-model harness repair depends on fixture rewrites omitted during conflict resolution. This is not claimed as a canonical main fix.

For each conflicted file, retained main's complete file and dropped that commit's changes to it; cleanly applicable changes to other files were kept. Later independent changes in the same file can still appear in this diff. This avoids resurrecting older fixture shapes or removing newer main coverage.

Dropped conflict-file changes by shard:

  • s0419: media-understanding-provider.test.ts, openai-provider.responses.test.ts, realtime-quicksilver-socket-worker.test.ts, tts.test.ts.
  • s0423: network-errors.test.ts in all three commits.
  • s0422: chat-outbox-recovery-owner.test.ts in first commit; chat-history-composer.test.ts and chat-pane-frame-updates.browser.test.tsx in second.
  • s0427: agent.session.test.ts, backup-git.test.ts, doctor-config-analysis.test.ts, doctor-config-flow.session-store-owner.test.ts.
  • s0425: exec-approvals-native.test.ts, session-cost-usage-projection.test.ts, sqlite-snapshot.file-id.test.ts, update-candidate-state.diagnostics.test.ts as conflicted; later clean diagnostics changes retained.
  • s0426: delivery.failure-notify.test.ts in both later commits.
  • s0424: browser-client.test.ts and browser-panel-download.test.ts in both later commits.
  • s0428: outcome-fallback-runtime-contract.test.ts, transport-stdio.sandbox.test.ts, transport-stdio.test.ts, upstream-fork-import.test.ts as conflicted; later clean fork fixture changes retained.
  • s0430: config-cli.candidate-model-env.integration.test.ts, run-main.profile-env.test.ts, sessions-import.test.ts as conflicted.
  • s0429: openclaw-state-db-checkonce.test.ts, openclaw-state-db-operator-approval-migration.test.ts.
  • s0431: conversation-turns.test.ts, send-policy.test.ts.
  • s0433: chrome.diagnostics.transport.test.ts.

Review and CI corrections

Initial CI found TS7030 in the browser route fixture and TS2345/TS2353 in the media-persistence corpus refactor. Added an explicit undefined fallback to the route callback and dropped the entire corpus refactor, retaining pinned main's positional bindings and existing fixture.

Independent review accepted three coverage findings: restored the full upstream-fork continuation suite, unsent-draft/no-request assertions, and plugin composer mount-failure coverage by retaining pinned main's complete files. Rejected the proposed Unix WebSocket teardown leak: the test calls createTransport(), which registers it in transports, and afterEach kills tracked transports and terminates server sockets before closing servers. A correction review returned scoped-clean at P0–P2.

Oxfmt, plain oxlint (exit 0), and git diff --check passed after corrections. Runtime/type proof remains exclusively hosted CI; no Testbox leases used.

Further hosted CI fixture repairs: restored explicit finally-close in the WAL migration test, because using captures its disposer before migration installs its close observer; restored the existing authority callback for synthetic native assignment seeds; and restored the legacy-session partial match plus explicit absence-of-capture assertion, allowing owner-normalized metadata. Both additional correction reviews returned scoped-clean at P0–P2. No assertions were skipped, retries added, or timeouts increased. Oxfmt and plain oxlint passed across all surviving changed files before both correction commits; runtime proof remains pending on the next exact-head CI run.

Final OpenAI correction: hosted CI showed the consolidated peer-startup table wrongly expected the synchronous onError/onClose contract for asynchronous createPeer rejection. Dropped this file's cleanup and restored pinned main's separate peer-creation rejection and reentrant/throwing callback tests in full. The restoration review returned scoped-clean at P0–P2. All 78 surviving changed TS/TSX files pass oxfmt and plain oxlint; git diff --check passes.

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

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

View the workflow run.

@steipete
steipete enabled auto-merge (squash) October 25, 2026 13:59
@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-25T15:59:56.853759Z 985e0ae 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: telegram Channel integration: telegram app: web-ui App: web-ui cli CLI command changes commands Command implementations docker Docker and sandbox tooling extensions: openai extensions: codex extensions: browser size: XL labels Oct 25, 2026
@steipete
steipete disabled auto-merge October 25, 2026 14:03
@steipete
steipete enabled auto-merge (squash) October 25, 2026 14:06
@steipete
steipete disabled auto-merge October 25, 2026 14:11
@steipete
steipete enabled auto-merge (squash) October 25, 2026 14:15
@steipete
steipete disabled auto-merge October 25, 2026 14:28
@steipete
steipete enabled auto-merge (squash) October 25, 2026 14:30
@steipete
steipete disabled auto-merge October 25, 2026 14:43
@steipete

Copy link
Copy Markdown
Contributor Author

Landing paused at head 5f6c732d3a226ec0713ea51b0124056e1bb77446; auto-merge is disabled.

CI run https://github.com/openclaw/openclaw/actions/runs/40202572533 fails in checks-ui (1/3): unchanged ui/src/components/menu-surface.browser.test.tsx, platform menu hover > dark mode > matches session menu geometry and theme inside browser cards. The menu remains in phase opening instead of reaching open at the line-94 poll (called from line 365).

All three UI shards passed in each of the three latest scheduled main CI runs inspected: 40202561295, 40197888661, and 40194031161. There is no matching recorded main failure, so this is not proven eligible for the inherited-failure exception. Current main was inspected through 4bbb8154288d9ebeb2d84faa946948820914dcf5. The newer browser-card subscription change in f27b11a73e18 is conditional on application context, which this fixture does not provide; the menu/overlay lifecycle has not changed. No speculative rebase or rerun-for-green was performed.

Changed-file formatting, plain lint, and diff checks passed. Independent review corrections are committed and reviewed. PostgreSQL conformance jobs were still running when landing was paused. No local runtime tests or Testbox jobs were run, honoring the CI-only instruction.

@clawsweeper

clawsweeper Bot commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR consolidates test fixtures and removes duplicate coverage across core, plugins, and the Control UI.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful maintenance with substantial hosted validation, but a distinct regression guard is lost and the UI failure remains unattributed.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR changes only tests and test support; hosted checks exercise retained owners, and no additional live-product demonstration is required.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
Reason: Maintainer authorship establishes direction, and reducing repeated test scaffolding has clear maintenance value while preserving distinct contracts.

Merge readiness

⛔ Needs changes before merge - 2 items remain

Keep this PR open: the maintainer-directed cleanup has value, but removes a distinct schema-admission regression guard; the author has also paused landing on an unattributed UI check failure.

Priority: P2
Reviewed head: 5f6c732d3a226ec0713ea51b0124056e1bb77446

Before merge

  • Restore the per-column schema-admission regression guard (P2) - Deleting covers every installed same-version column in admission facts removes the only test that independently omits each installed column and requires hasPendingAgentStartupColumns to reject that catalog. The retained v26 test checks a whole migration's boolean result, so a detector that overlooks one required column can still pass while another missing column makes rollback report pending. The original fix explicitly added this guard after missing-column session queries failed during upgrades: fix(state): admit same-version columns before session readers #171634. Restore the guard here or preserve its per-column negative cases in an existing schema-admission suite.
  • Explain or restore the original intent of Same-version schema-admission coverage - dcbbcb4: The original fixing PR explicitly added independent per-column admission coverage to prevent missing-column session-read failures; the cited v26 replacement does not retain that contract.

Findings

  • [P2] Restore the per-column schema-admission regression guard — src/state/openclaw-agent-db-session-migrations.test.ts:59-60

Provenance

  • Same-version schema-admission coverage changes intended behavior without addressing why it exists (dcbbcb4: The original fixing PR explicitly added independent per-column admission coverage to prevent missing-column session-read failures; the cited v26 replacement does not retain that contract.)

Tests

  • Missing end-to-end proof: No additional shipped-entry-point demonstration is required for this maintainer-authored, test-only change; hosted validation remains incomplete because the UI gate failed.
Agent review details

How this fits together

The test suites feed synthetic requests, events, and stored state through OpenClaw owners and compare their outputs against expected lifecycle, authorization, transport, and persistence contracts.

flowchart LR
  A[Test fixtures] --> B[Core and plugin owners]
  A --> C[Control UI owners]
  B --> D[Observable results]
  C --> D
  D --> E[Contract assertions]
  E --> F[CI gates]
Loading

Technical review

Best possible solution:

Keep the fixture consolidation, restore the independent per-column admission guard, and resolve the paused UI gate through evidence-based failure attribution.

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

Source comparison establishes the coverage loss: only the deleted guard tests each missing additive column independently; no target code was executed during this read-only review.

Is this the best way to solve the issue?

Consolidating duplicate fixtures is appropriate, but aggregate migration coverage cannot replace the independent installer-to-admission contract.

Full review comments:

  • [P2] Restore the per-column schema-admission regression guard — src/state/openclaw-agent-db-session-migrations.test.ts:59-60
    Deleting covers every installed same-version column in admission facts removes the only test that independently omits each installed column and requires hasPendingAgentStartupColumns to reject that catalog. The retained v26 test checks a whole migration's boolean result, so a detector that overlooks one required column can still pass while another missing column makes rollback report pending. The original fix explicitly added this guard after missing-column session queries failed during upgrades: fix(state): admit same-version columns before session readers #171634. Restore the guard here or preserve its per-column negative cases in an existing schema-admission suite.
    Confidence: 0.94

Overall correctness: patch is incorrect
Overall confidence: 0.91

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Browser lifecycle test consolidation keeps the original intent (5673afc: Browser owner refactoring retained stale-result, navigation, and lifecycle contracts; the reviewed consolidation carries these scenarios into shared tables and fixtures.)
  • Telegram outbound context coverage keeps the original intent (a6b9078: Outbound messages require authenticated self attribution and preserved thread provenance; the rewritten identity and provider-observation tables retain those distinctions.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • Hosted CI: pnpm test src/state/openclaw-agent-db-session-migrations.test.ts src/state/openclaw-agent-json-predicate-schema.test.ts --maxWorkers=1
  • git diff --check
  • Required openclaw/ci-gate on the repaired head; preserve the landing pause until the UI failure is resolved or supported failure attribution is accepted.

What I checked:

PR surface

Tests -2818. Total -2818 across 79 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 79 3292 6110 -2818
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 79 3292 6110 -2818

Review metrics

Metric Value Why it matters
Production versus test LOC Production +0/-0; tests and support +3292/-6110, net -2818 The reduction stays within test maintenance, but the independent schema-admission guard should survive consolidation.

Labels

Label changes:

  • add P2: This is useful test maintenance with a focused regression-coverage defect and no production behavior change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: This is useful test maintenance with a focused regression-coverage defect and no production behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • 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 25, 2026, 10:48 AM ET / 14:48 UTC.

@steipete
steipete force-pushed the tcr/land-d538-1792936336 branch from 5f6c732 to 613bca3 Compare October 25, 2026 14:57
@steipete
steipete enabled auto-merge (squash) October 25, 2026 14:57
Keep terminal response normalization, completed-tool ordering, and throwing-consumer recovery in realtime-voice-terminal-outcomes.test.ts, which exercises real WebSockets instead of duplicating that suite with mocked transport.

Keep public early-notice identity and transcript-eviction proof in realtime-quicksilver-bridge.test.ts: waits for public transcript input and ignores duplicate notices after tool completion; classifies the retained public user request before consuming snapshots. Keep auth-header precedence in src/media-understanding/openai-compatible-auth.test.ts. The public-delegation suite retains the commentary roundtrip; session tests retain broker delegation wiring.

Consolidate startup error branches, TTS request assertions, usage auth rows, and model/request fixtures. Preserve refusal, redaction, accounting, drain, and worker interleaving assertions. Static formatting, plain oxlint, and diff checks pass; runtime proof is deferred to hosted CI under CI-only campaign instructions. Original 3500 lines now 3073, below the requested 25 percent reduction.
Remove repeated media metadata inventory and transcription text validation already exercised against the same requireTranscriptionText implementation by OpenRouter silent/malformed-response cases. Keep multipart/default-model and credential routing proof.

Trim gateway delegation-policy replay covered by realtime-quicksilver-delegation.test.ts control-targeting and standalone-session-context cases; retain WebRTC setup, media routing, and delegation result roundtrip. Preserve independent callback-authority and close tests after checking their distinct production owners.

Consolidate raw TTS errors with bounded streaming-read proof, usage history assertions, fast-mode input forms, and shared event fixtures. Plain oxlint, oxfmt, and diff checks pass. No tests or builds run under CI-only instructions. Shard now 2985 lines from original 3500; 25 percent target remains unmet without further unproved cuts.
Remove duplicate transcript mirror and hidden-text recovery cases covered by bot-message-dispatch.delivery-transcript.test.ts. Retain real HTTP recovery, ACK ordering, transport custody and authorization contracts. Consolidate classifier, sender and polling fixtures without dropping distinct behavior.
Remove duplicate dice formatting covered by bot-message-context.body.test.ts and outbound restart/history replay covered by message-cache.retained.test.ts. Keep producer thread binding and DM General-topic checks. Collapse network enum and wrapper replays to distinct classifier decisions; direct migration delivery remains in send.recovery.telegram-http.test.ts. Drop the repeated login method-menu inventory covered by bot-native-command-login.test.ts and simplify registry invocation and socket fixtures.
Share network classification and outbound identity/thread setup while retaining each safety and provenance assertion. Exercise idle backoff and resumed activity in one continuous polling lifecycle. Leave discovery-order permutations with the shared menu owner tests in command-ui.test.ts while retaining real registry dispatch and exact handler ownership proof.
Share inline-view message fixtures and identity assertions, stream/commit helpers, sidebar corruption writes, and plugin/recovery DOM queries. Preserve all 75 declarations and 139 expanded cases, including distinct authority, recovery, and lifecycle behavior.\n\nCI-only shard: no tests or coverage run. Plain oxlint, oxfmt, and diff checks passed. Net reduction: 3540 to 3471 lines (1.9%); the 25% target is not met because the remaining cases protect distinct branches and interleavings.
Remove duplicate index, publication, picker, and frame wiring proof; retain distinct admission, authorization, recovery, and lifecycle assertions. Reuse the existing ChatView harness and consolidate shared invalidation scenarios.

Retained proof: chat-transcript-message-index retains streamed structure and handoff indexing; chat-thread-reply-attribution attributes live output before future input; chat-state owns frame publication and after-commit lifecycle; scroll owns manual takeover; chat-collaborator-scroll preserves reader intent through queue, stream, and persistence.

Plugin delegation/failure remains in control-ui-surface and control-ui-view. Picker dismissal and attachment placeholders remain in chat-view. Composer persistence owns peer debounce; cross-pane rewind retains replacement fencing; sidebar invalidation retains account/profile isolation in its race table.

CI-only: no tests, coverage, or builds. Oxfmt, plain oxlint, and diff checks pass. Original shard 3540 lines; now 2945 (-16.8%), with 60 declarations and 107 expanded cases. The 25% line target remains unmet.
Factor native panel fixtures, open-message guards and presentation assertions; share mounted-panel and persisted-dock setup. Preserve all 90 declarations and 138 expanded cases, including independent session, document, route, input and download lifecycle boundaries.
Keep native closure coverage in closes native and remote tabs; keep inspect transport success in the stale-document inspection test. Keep session isolation in the popup matrix and pending-open rebound/remount test. Combine async load and refresh success/failure in the rendered panel lifecycle. Table blocked-tab recovery and suppression availability orderings. Trim generic request replays, copied toolbar inventory, and duplicate request-shape assertions.
Merge the paste suite into browser-panel.test.ts in the same unit project. Keep download binding, cancellation signal, transfer deadline and incomplete-reply coverage in the download-owner suite. Share native-open and refresh phase fixtures without removing their distinct ordering rows. Keep remount, raw-alias and queued-input assertions in the route lifecycle flows. Native panel retains occlusion integration; native-overlay-occlusion.test.ts owns the multiple-holder release contract.
Use the production native-subagent submission-store factory instead of duplicating its guarded binding mutations in the inventory fixture. Keep every test case and all authority, sandbox, replay, usage, and lifecycle assertions; this boundary-heavy shard does not admit the requested 25% cut without losing distinct proof.
Reuse projector setup and remove duplicated reasoning mirror assertions covered by transcript-mirror's nonterminal-thinking test. Keep fallback outcomes and replay-safety checks. Replace repeated fork creation in the continuation test with its persisted binding; upstream-fork-import keeps creation, link-before-bind, source preservation and sandbox proof. Consolidate quota-message cases and retain native sandbox enabled/disabled behavior. Static formatting and oxlint passed; runtime proof is deferred to hosted CI.
Keep fork creation in upstream-fork-import, secondary-home recovery in binding-connection's exact-secondary-home test, and native model/config/history materialization in thread-lifecycle's keeps-model-lock-and-questions test. Remove the duplicate continuation composition.

Keep generic RPC and repeated shutdown at client-cancellation/client-exit, unified probing at computer-use-health, reserve reporting at account-usage, and cron replay contracts at tool-mutation plus event-projector.dynamic-tools. Retain completed-turn outcome classification, real sandbox boundaries, and all distinct compaction authority cases. Reuse native HTTP fixtures and consolidate related snapshot/window cases. Static oxlint/format/diff checks only; hosted CI owns runtime proof.
Remove duplicate admission, migration, and worker-lifetime layers; retain permission repair, explicit lease classification, migration rollback, and source-artifact assertions.

Coverage owners: openclaw-agent-db.worker-admission.test.ts: publishes owner revocation before a host grant and rolls back the native write; openclaw-agent-write-admission.test.ts: attributes a reentrant Worker reservation without letting foreground callbacks borrow it; openclaw-state-db-read-connection.test.ts: settles a failure only after releasing native custody; openclaw-state-db-cache.cleanup.test.ts: retains a failed native close for disposal without a cache hit.

Further keepers: openclaw-state-lease-heartbeat.test.ts: preserves native renewal errors through worker and lease rejection, renews through transient contention before expiry, and does not resurrect ownership; openclaw-state-lease-heartbeat.lifetime.test.ts: preserves raw worker errors with received loss diagnostics; openclaw-agent-json-predicate-schema.test.ts: publishes both version markers only with the complete v26 migration; session-reaction-store.test.ts: writes shared reactions through their database owner and clears reactions on node deletion.

Preserve the checkonce receipt, recreated-metadata, and historical-snapshot cases. Header invalidation and rejection remain at sqlite-schema-facts, state schema-version, existing-writer metadata-mutation, and startup checkpoint boundaries. CI-only campaign: plain oxlint, oxfmt, and diff checks pass; no tests or coverage executed. Total shard test LOC 3184 -> 2388 (25 percent). No production changes.
Keep exact reply correlation and transcript metadata assertions in the concurrent uncorrelated-turn test; remove the standalone replay of that same path. Let the creation-burst behavior test fail directly if reminder enqueue throws.

CI-only proof: oxlint, oxfmt and diff-check pass. No runtime or coverage runs. Preserve distinct authority, lifecycle, isolation and persistence cases; this shard remains below the requested line-reduction target.
Remove the independent capability-profile replay from the handoff suite: requester-tool-policy's settled-batch and immutable completion-owner cases own that policy proof. Keep all steering acceptance, revocation and non-transfer assertions.

Fold queued-source clock assertions into FIFO reservation proof. Reuse correlation/model fixtures, consolidate notice variants and remove redundant capture calls. Keep no-scan regression, SQLite safety, admission, durability and authority assertions. Direct and visible no-barrier admission remain covered by cleanup-receipt cases.

CI-only: plain oxlint, oxfmt and diff-check pass; no runtime tests, coverage or builds run. Reduction is below 25 percent; remaining cases protect distinct behaviors.
Keep parent Default-marker resolution once. The existing sync and async no-parent-load cases also prove that a child Default marker blocks inheritance; the parent marker case exercises the shared direct-entry resolver. Remove the duplicate direct wrapper and child input variants.

Inline the single-use automatic-parent fixture while retaining its async in-memory store fallback, which is not covered by the real-store reload path. CI-only validation: oxfmt, plain oxlint and diff-check; no tests or builds run. PASS17 line target remains unmet under the distinct-behavior retention requirement.
Share launch setup and cancellation assertions; consolidate diagnostic cancellation setup while retaining direct HTTP, handshake, and default-profile cases. Simplify auth fixtures and batch guard assertions without removing behaviors. CI-only static validation; retain all 110 expanded cases.
@steipete
steipete force-pushed the tcr/land-d538-1792936336 branch from 613bca3 to 985e0ae Compare October 25, 2026 15:39
@steipete

Copy link
Copy Markdown
Contributor Author

Settlement evidence for head 985e0ae049516cf21732d697481c3b3e9143d8d3:

The only remaining substantive failed check is PostgreSQL conformance (2/3). It reports an unhandled Undeclared PostgreSQL pool self-root: other thread 11 from test/helpers/postgres-pool-roots.ts:46 while src/infra/database-engine/partial-index-ordering.conformance.test.ts runs.

  • Exact-head PR CI: run 40207990234, failed PostgreSQL job 121213429294.
  • PROVEN-ON-MAIN: the same job, test file, error text, and source line fail in the completed PostgreSQL job of scheduled main run 40207264272, job 121210917259, on main c9db73543a42d3e53e23c8b70c3997bc5d4a0fff.
  • The batch does not change this test, its PostgreSQL implementation, or the pool-root helper. Fresh main has no newer changes in those paths.
  • All other selected lanes passed on this PR head, including all UI shards and PostgreSQL shards 1 and 3. The remaining openclaw/ci-gate red is the aggregate of this PostgreSQL failure (gate job).

Two conflict-free, patch-identical rebases brought in current main, including the menu-test repair in #183615. The single authorized failed-job rerun was used on the prior head; no further reruns were used. Plain changed-file oxlint, oxfmt, and whitespace checks passed. CI-only mode: no local tests/typechecks or remote leases. No timeouts, skips, or assertions were weakened.

Landing this exact head under the campaign's explicitly authorized pre-existing-main-failure rule; the PostgreSQL failure remains owned by main.

@steipete
steipete merged commit 475a6d9 into main Oct 25, 2026
128 of 131 checks passed
@steipete
steipete deleted the tcr/land-d538-1792936336 branch October 25, 2026 16:04
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 26, 2026
* test(openai): remove duplicate proof layers in s0419

Keep terminal response normalization, completed-tool ordering, and throwing-consumer recovery in realtime-voice-terminal-outcomes.test.ts, which exercises real WebSockets instead of duplicating that suite with mocked transport.

Keep public early-notice identity and transcript-eviction proof in realtime-quicksilver-bridge.test.ts: waits for public transcript input and ignores duplicate notices after tool completion; classifies the retained public user request before consuming snapshots. Keep auth-header precedence in src/media-understanding/openai-compatible-auth.test.ts. The public-delegation suite retains the commentary roundtrip; session tests retain broker delegation wiring.

Consolidate startup error branches, TTS request assertions, usage auth rows, and model/request fixtures. Preserve refusal, redaction, accounting, drain, and worker interleaving assertions. Static formatting, plain oxlint, and diff checks pass; runtime proof is deferred to hosted CI under CI-only campaign instructions. Original 3500 lines now 3073, below the requested 25 percent reduction.

* test(openai): trim shared-owner replays in s0419

Remove repeated media metadata inventory and transcription text validation already exercised against the same requireTranscriptionText implementation by OpenRouter silent/malformed-response cases. Keep multipart/default-model and credential routing proof.

Trim gateway delegation-policy replay covered by realtime-quicksilver-delegation.test.ts control-targeting and standalone-session-context cases; retain WebRTC setup, media routing, and delegation result roundtrip. Preserve independent callback-authority and close tests after checking their distinct production owners.

Consolidate raw TTS errors with bounded streaming-read proof, usage history assertions, fast-mode input forms, and shared event fixtures. Plain oxlint, oxfmt, and diff checks pass. No tests or builds run under CI-only instructions. Shard now 2985 lines from original 3500; 25 percent target remains unmet without further unproved cuts.

* test(telegram): deslop s0423 tests

Remove duplicate transcript mirror and hidden-text recovery cases covered by bot-message-dispatch.delivery-transcript.test.ts. Retain real HTTP recovery, ACK ordering, transport custody and authorization contracts. Consolidate classifier, sender and polling fixtures without dropping distinct behavior.

* test(telegram): consolidate s0423 branch and owner coverage

Remove duplicate dice formatting covered by bot-message-context.body.test.ts and outbound restart/history replay covered by message-cache.retained.test.ts. Keep producer thread binding and DM General-topic checks. Collapse network enum and wrapper replays to distinct classifier decisions; direct migration delivery remains in send.recovery.telegram-http.test.ts. Drop the repeated login method-menu inventory covered by bot-native-command-login.test.ts and simplify registry invocation and socket fixtures.

* test(telegram): compact s0423 lifecycle and identity fixtures

Share network classification and outbound identity/thread setup while retaining each safety and provenance assertion. Exercise idle backoff and resumed activity in one continuous polling lifecycle. Leave discovery-order permutations with the shared menu owner tests in command-ui.test.ts while retaining real registry dispatch and exact handler ownership proof.

* test(chat): deslop s0422 tests

Share inline-view message fixtures and identity assertions, stream/commit helpers, sidebar corruption writes, and plugin/recovery DOM queries. Preserve all 75 declarations and 139 expanded cases, including distinct authority, recovery, and lifecycle behavior.\n\nCI-only shard: no tests or coverage run. Plain oxlint, oxfmt, and diff checks passed. Net reduction: 3540 to 3471 lines (1.9%); the 25% target is not met because the remaining cases protect distinct branches and interleavings.

* test(chat): deslop s0422 duplicate proof layers

Remove duplicate index, publication, picker, and frame wiring proof; retain distinct admission, authorization, recovery, and lifecycle assertions. Reuse the existing ChatView harness and consolidate shared invalidation scenarios.

Retained proof: chat-transcript-message-index retains streamed structure and handoff indexing; chat-thread-reply-attribution attributes live output before future input; chat-state owns frame publication and after-commit lifecycle; scroll owns manual takeover; chat-collaborator-scroll preserves reader intent through queue, stream, and persistence.

Plugin delegation/failure remains in control-ui-surface and control-ui-view. Picker dismissal and attachment placeholders remain in chat-view. Composer persistence owns peer debounce; cross-pane rewind retains replacement fencing; sidebar invalidation retains account/profile isolation in its race table.

CI-only: no tests, coverage, or builds. Oxfmt, plain oxlint, and diff checks pass. Original shard 3540 lines; now 2945 (-16.8%), with 60 declarations and 107 expanded cases. The 25% line target remains unmet.

* test(commands): deslop s0427 tests

Remove duplicate config-persistence coverage retained in doctor-config-flow.include-refusal.test.ts, inactive-Gateway audit migration coverage retained in doctor-maintenance.stopped-systemd.test.ts, and archive settlement coverage retained in backup.create-verify.test.ts. Keep one generic plugin-store selector case and the existing include-syntax table case.

Consolidate auth ownership, redaction, session-routing fixtures and assertions without dropping distinct authority, durability, cleanup, or resume checks. CI-only: plain oxlint, oxfmt and diff-check pass; tests and coverage intentionally not run.

* test(infra): deslop s0425 tests

Remove duplicate codec cases from usage projections; the same round-trip, corrupt-body, and impossible-length cases remain in session-cost-usage-rollup-codec.test.ts. Remove launcher encoding replays from Windows restart tests; windows-launcher-encoding.test.ts retains the encoding boundaries while restart integration stays covered.

Consolidate canary, diagnostic, migration and native-approval fixtures. Preserve distinct security, durability, lifecycle and accounting assertions. CI-only: plain oxlint, formatting and diff checks passed; no tests or coverage run. Reduction is below 25% because further inspected cuts would drop distinct boundary behavior.

* test(infra): consolidate s0425 boundary fixtures

Reuse the existing SQLite snapshot fixture with data-bearing inputs and retain integrity and replacement assertions. Consolidate media migration child programs and inspect persisted data on the host, preserving child heap limits, query-count bounds and survivor hashes.

Consolidate capacity-suppression checks into the termination classification matrix, existing-target archive checks into one table, and native invalidation into the shared-watcher scenario. Remove single-use usage and Windows fixture scaffolding.

CI-only: plain oxlint, oxfmt and diff checks passed; no test, coverage or build runs. The cumulative 3312-to-2996 line reduction remains below 25%; retained tests exercise distinct approval, privacy, durability, recovery and ordering boundaries.

* test(infra): remove redundant s0425 assertion layers

Keep media conversion-shape and preserved window/identity contracts in state-migrations.media-persistence.test.ts (rewrites every active shape and trajectory snapshot). The large-corpus suite retains heap limits, query bounds, batch-boundary conversion, cardinality and survivor hashes.

Keep general private-prose and permission diagnostic redaction in diagnostic-support-redaction.test.ts (publishes only closed repair facts; hides the complete quoted path suffix) and update-failure-report-prepare.test.ts (publishes only bounded diagnostic facts). Retain real worker-formatting cause, raw detail and credential-redaction assertions in this shard.

Remove repeated Windows emission assertions covered by its executable restart scenarios, retain bounded replacement observation and identity guards, and simplify the native allowlist membership assertion without changing its fields. CI-only: oxlint, oxfmt and diff checks passed; no tests/builds run. Cumulative line reduction remains below 25%; distinct boundary proof was retained.

* test(cron): deslop s0426 tests

Share reply-operation and restart-event fixtures; compact one-shot delivery and board-revocation cases without removing distinct outcomes.

The runner-entry recheck test retains foreground idle blocking and non-cancellation, replacing the duplicate foreground admission case. Keep independent restart, durable delivery, authority and cleanup tests. CI-only: formatting, diff check and plain oxlint passed; runtime tests and coverage intentionally not run. Reduction is 89/3419 lines (2.6%), below the 25% target.

* test(cron): consolidate s0426 duplicate coverage

Move cross-job isolation and repeated-mutation checks from the synchronous 64-marker test into the existing replacement-marker table. Keep every self-removal authority scenario.

Use representative thinking parser paths and drop redundant transport argument assertions. Isolated payload validation remains in service/jobs-validation.test.ts (names the valid payloads for isolated jobs); rollback retention remains in session-reaper.test.ts (resumes retention cleanup after the wall clock moves backward).

CI-only: oxfmt, diff check and plain oxlint passed. No test or coverage runs. Cumulative line reduction is 3419 to 3275 (4.2%); 25% target remains unmet because no further distinct-behavior-preserving structural deletion was substantiated.

* test(cron): share s0426 lifecycle fixtures

Centralize one-shot run/restart/disposal and queued-event gates, fold startup provisioning into its existing table, and reuse admitted-run and board fixtures. Retain all distinct authority, pending/settled, restart and delivery outcomes.

Remove trigger registration tracing and cache-object identity assertions while retaining real built/source tool output, generation reload and policy proof. Notification session fallback remains covered by session-target.test.ts.

CI-only: oxfmt, diff check and plain oxlint passed; no tests or coverage run. Additional reduction: 3275 to 3149 lines. Cumulative: 3419 to 3149 (7.9%); 25% target remains unmet after independent disjoint-file audits found no justified whole-file deletion.

* test(browser): deslop s0424 tests

Factor native panel fixtures, open-message guards and presentation assertions; share mounted-panel and persisted-dock setup. Preserve all 90 declarations and 138 expanded cases, including independent session, document, route, input and download lifecycle boundaries.

* test(browser): consolidate s0424 lifecycle coverage

Keep native closure coverage in closes native and remote tabs; keep inspect transport success in the stale-document inspection test. Keep session isolation in the popup matrix and pending-open rebound/remount test. Combine async load and refresh success/failure in the rendered panel lifecycle. Table blocked-tab recovery and suppression availability orderings. Trim generic request replays, copied toolbar inventory, and duplicate request-shape assertions.

* test(browser): consolidate s0424 owner fixtures

Merge the paste suite into browser-panel.test.ts in the same unit project. Keep download binding, cancellation signal, transfer deadline and incomplete-reply coverage in the download-owner suite. Share native-open and refresh phase fixtures without removing their distinct ordering rows. Keep remount, raw-alias and queued-input assertions in the route lifecycle flows. Native panel retains occlusion integration; native-overlay-occlusion.test.ts owns the multiple-holder release contract.

* test(codex): deslop s0428 tests

Use the production native-subagent submission-store factory instead of duplicating its guarded binding mutations in the inventory fixture. Keep every test case and all authority, sandbox, replay, usage, and lifecycle assertions; this boundary-heavy shard does not admit the requested 25% cut without losing distinct proof.

* test(codex): consolidate s0428 boundary fixtures

Reuse projector setup and remove duplicated reasoning mirror assertions covered by transcript-mirror's nonterminal-thinking test. Keep fallback outcomes and replay-safety checks. Replace repeated fork creation in the continuation test with its persisted binding; upstream-fork-import keeps creation, link-before-bind, source preservation and sandbox proof. Consolidate quota-message cases and retain native sandbox enabled/disabled behavior. Static formatting and oxlint passed; runtime proof is deferred to hosted CI.

* test(codex): remove duplicate s0428 test layers

Keep fork creation in upstream-fork-import, secondary-home recovery in binding-connection's exact-secondary-home test, and native model/config/history materialization in thread-lifecycle's keeps-model-lock-and-questions test. Remove the duplicate continuation composition.

Keep generic RPC and repeated shutdown at client-cancellation/client-exit, unified probing at computer-use-health, reserve reporting at account-usage, and cron replay contracts at tool-mutation plus event-projector.dynamic-tools. Retain completed-turn outcome classification, real sandbox boundaries, and all distinct compaction authority cases. Reuse native HTTP fixtures and consolidate related snapshot/window cases. Static oxlint/format/diff checks only; hosted CI owns runtime proof.

* test(cli): deslop s0430 tests

* test(cli): consolidate s0430 boundary fixtures

* test(cli): share s0430 fixture data and remove dead counters

* test(state): deslop s0429 tests

* test(state): consolidate s0429 owner-boundary coverage

Remove duplicate admission, migration, and worker-lifetime layers; retain permission repair, explicit lease classification, migration rollback, and source-artifact assertions.

Coverage owners: openclaw-agent-db.worker-admission.test.ts: publishes owner revocation before a host grant and rolls back the native write; openclaw-agent-write-admission.test.ts: attributes a reentrant Worker reservation without letting foreground callbacks borrow it; openclaw-state-db-read-connection.test.ts: settles a failure only after releasing native custody; openclaw-state-db-cache.cleanup.test.ts: retains a failed native close for disposal without a cache hit.

Further keepers: openclaw-state-lease-heartbeat.test.ts: preserves native renewal errors through worker and lease rejection, renews through transient contention before expiry, and does not resurrect ownership; openclaw-state-lease-heartbeat.lifetime.test.ts: preserves raw worker errors with received loss diagnostics; openclaw-agent-json-predicate-schema.test.ts: publishes both version markers only with the complete v26 migration; session-reaction-store.test.ts: writes shared reactions through their database owner and clears reactions on node deletion.

Preserve the checkonce receipt, recreated-metadata, and historical-snapshot cases. Header invalidation and rejection remain at sqlite-schema-facts, state schema-version, existing-writer metadata-mutation, and startup checkpoint boundaries. CI-only campaign: plain oxlint, oxfmt, and diff checks pass; no tests or coverage executed. Total shard test LOC 3184 -> 2388 (25 percent). No production changes.

* test(sessions): deslop s0431 tests

Keep exact reply correlation and transcript metadata assertions in the concurrent uncorrelated-turn test; remove the standalone replay of that same path. Let the creation-burst behavior test fail directly if reminder enqueue throws.

CI-only proof: oxlint, oxfmt and diff-check pass. No runtime or coverage runs. Preserve distinct authority, lifecycle, isolation and persistence cases; this shard remains below the requested line-reduction target.

* test(sessions): consolidate s0431 test structure

Remove the independent capability-profile replay from the handoff suite: requester-tool-policy's settled-batch and immutable completion-owner cases own that policy proof. Keep all steering acceptance, revocation and non-transfer assertions.

Fold queued-source clock assertions into FIFO reservation proof. Reuse correlation/model fixtures, consolidate notice variants and remove redundant capture calls. Keep no-scan regression, SQLite safety, admission, durability and authority assertions. Direct and visible no-barrier admission remain covered by cleanup-receipt cases.

CI-only: plain oxlint, oxfmt and diff-check pass; no runtime tests, coverage or builds run. Reduction is below 25 percent; remaining cases protect distinct behaviors.

* test(sessions): consolidate default model selection proof

Keep parent Default-marker resolution once. The existing sync and async no-parent-load cases also prove that a child Default marker blocks inheritance; the parent marker case exercises the shared direct-entry resolver. Remove the duplicate direct wrapper and child input variants.

Inline the single-use automatic-parent fixture while retaining its async in-memory store fallback, which is not covered by the real-store reload path. CI-only validation: oxfmt, plain oxlint and diff-check; no tests or builds run. PASS17 line target remains unmet under the distinct-behavior retention requirement.

* test(browser): deslop s0433 tests

Share launch setup and cancellation assertions; consolidate diagnostic cancellation setup while retaining direct HTTP, handshake, and default-profile cases. Simplify auth fixtures and batch guard assertions without removing behaviors. CI-only static validation; retain all 110 expanded cases.

* test: preserve distinct coverage and repair replay fixtures

* test: preserve migration close observer in WAL fixture

* test: restore authority and normalization fixture contracts

* test(openai): retain distinct peer startup failure contracts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui channel: telegram Channel integration: telegram cli CLI command changes commands Command implementations docker Docker and sandbox tooling extensions: browser extensions: codex extensions: openai size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant