Skip to content

test(core,codex,ui): remove low-value tests (batch d058) - #169673

Merged
steipete merged 14 commits into
mainfrom
tcr/land-d058-1791780936
Oct 12, 2026
Merged

steipete merged 14 commits into
mainfrom
tcr/land-d058-1791780936

Conversation

@steipete

@steipete steipete commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Redundant test variants and implementation-mirroring checks add maintenance and execution cost without independently protecting behavior.

User Impact

No production behavior changes. This is one bounded test-reduction batch, preserving meaningful regressions, authority boundaries, and lifecycle/interleaving coverage.

Why This Change Was Made

All ten campaign commits initially applied cleanly at ae34008dbc579db7261410a2d98dbd3cd8332697, with none skipped. The branch was initially rebased onto 70bfdc2b58e42f02af5bdc4d345875a9e6ad3928 and was rebased onto 2c7cc827b309c6a2da1cd6c2aa5cb930eb326030 and then 93e87378063af62b07ca309d8fb48ceb7cb93073 to incorporate the canonical main repair; both settlement rebases were conflict-free. Conflicts in the two update service integration/support files were resolved by preserving main's new clean-refusal regression, JSON response, definition-recovery receipt, running-service and restart assertions, while retaining the equivalent low-value variant deletions. Remove duplicate cases, metadata/wiring replays, and an unused update-command test-only facade; retain direct plugin-payload owner tests. The replay also removes the newly orphaned expectUnsupportedNpmSpec assertion helper from test support (12 lines); the last caller was among the approved hook deletions. Test-only fixture repairs follow current asynchronous auth/search and rendering contracts.

Prior corrected replay before settlement: production LOC +0 / -0, test LOC +2147 / -12920, test-support LOC +93 / -202, total +2240 / -13122, net -10882, across 143 files. These are historical figures; the current settlement total is below. Per-shard measurements are the original in-shard measurements and include unchanged shard members. No test routing, dependencies, timeouts, retries, or production API changed. No CODEOWNERS pattern matched these paths at the original review.

Current status

Settlement head: 99f83ed3585d19789fd81b0450efc6a56e0741aa.

The batch-created lint failure is fixed by removing the unused max-lines directive. Clean-main local execution reproduced the original rewind SQL-count failure exactly (24 passed, 1 failed; 1,076.34s wrapper wall time on the overloaded host). This is local evidence, not a claimed Testbox/admin qualification.

The first settlement CI run, 38227724723, passed lint/types and all other selected jobs but failed one Node-test job with two cases: the same rewind assertion and the optional committed-preview fixture. Auto-merge was explicitly disabled before repair.

The next rebase preserves main's canonical repair 900c5c3079834fdcfe6557d41bbeb21256e73bfa: exact cold-fork transaction-admission and commit authority reads, plus exact resulting session keys, with all editor/media/provenance/sandbox and rewind assertions retained. The batch does not weaken that contract.

The committed-preview fixture now waits for initial target enrichment, then observes the next accepted current-row publication using its existing owner-publication helper. It retains the projection and public list assertions and unchanged test deadlines; no sleeps, polling, timeout increase, or new skips.

Fresh full-batch independent review identified seven independent safety contracts to retain; all seven are restored. The correction delta and the subsequent preview synchronization fix each completed independent review with no actionable P0/P1 findings. Retained contracts: unrelated task-delivery corruption and inbound CASCADE preservation; all effectful passive native item kinds; displaced/replaced/conflicting/unreadable database publication; oversized canonical/legacy memory preservation; warm/cold shared-store deletion scoping; terminal corruption despite close failure; async foreign-key admission refusal.

Formatting, diff checks, and plain lint of all changed TS/JS pass. The eight-file local correction run was stopped before the second rebase; completed cases passed, including both restored warm/cold deletion cases, and hosted CI covered the correction files. The two affected Gateway files are now running locally with --maxWorkers=1; no completed full-file pass is claimed yet.

Testbox capacity gap: the main, candidate, and final admission attempts reported queued before any payload execution. All four created leases, including the unused initial warmup, were stopped. The final admission recheck was stopped immediately upon observing queued state. No provider escalation, Testbox run URL, PROVEN-ON-MAIN ledger entry, or admin exception is claimed. Fresh exact-head hosted CI is required before merge.

Current total diff against the refreshed base: +2,261 / -12,970, net -10,709 lines. Production code remains unchanged.

Review resolution

The completed initial full-diff review returned 14 P2 concerns. Four were accepted, restoring five cases: ledger-admission recovery rollback; archive failure preserves both workspace notes; authoritative remote bytes beat a stale local file (title corrected to avoid an untested timestamp claim); and named-entry plus installed-name hook allowlists. The final correction delta and conflict resolutions also received independent source review with no actionable issues, but that is not represented as a successful isolated follow-up run.

The initial review declined ten concerns after checking their primary proof; the fresh settlement review above supersedes those decisions where it restores stronger boundary coverage: passive protocol items use one deny-by-default path; removed scheduled accounts remain tested across three consumers; configured/persisted node execution remains covered; initial view-only reaction admission remains in the first access table; supported source initialization remains tested while raw foreign SQLite writers are outside the ownership contract; canonical database publication refusal lives in update-run-recovery-admission; shared-store isolation remains in survivor-handle cleanup and cleanup-service.agent-purge; key-addressed queued-only abort remains covered; unsupported/prerelease npm policy is tested by install-from-npm-spec; and negative maintenance schemas remain covered in openclaw-agent-db and sqlite-schema-contract.

Evidence

  • Frozen-lockfile install passed. Local oxfmt --write <changed files>, plain oxlint -c .oxlintrc.json <changed TS files>, and git diff --check passed.
  • Blacksmith Testbox focused run: CI=1 pnpm install --frozen-lockfile --prefer-offline && CI=1 pnpm test <137 changed test files> passed all 14 selected Vitest shards in 626.05s, including both browser files. Source verification pinned 692ab55e194286a1ec85ddc09629b4c7c2a2078c / tree 390f83b29e9c4bb0a073e57a974b8abc8e392eea. Run, lease tbx_01m4q7pypfh292d7q5msfvb7nh, stopped.
  • OPENCLAW_TESTBOX=1 node scripts/check-changed.mjs -- <142 changed paths>: every selected guard, all core-test typecheck partitions, and extension-test typechecking passed. The dead-export step failed on six inherited production exports and their five-entry full-tree subset, plus the newly orphaned helper. Later lint steps were not executed after that failure; plain local lint passed separately. Run, lease tbx_01m4q96axs7v4zczw646fjart9, stopped.
  • The helper is removed in follow-up ff6ef9f155ba0964f6a175b6e70267db93e2e13f; repository-wide reference search confirms no callers, and focused independent review was clean. Existing focused test evidence remains applicable: the follow-up removes only this unreferenced helper.
  • On a clean detached copy of base ae34008dbc579db7261410a2d98dbd3cd8332697 with a frozen install, the same Knip production and full-tree scans reproduced the inherited lists exactly. The initial concurrent local attempt hit the existing 600s timeout; running the same scans serially completed without raising the timeout. Production: agentRunHasVisibleReply, retireOpenClawStateReadConnectionAfterCorruption, ApprovalPage, CustodianPage, QuestionPage, SkillWorkshopViewProps. Full-tree: the same list except QuestionPage. No baseline ignore or scanner guard changed.
  • Validation-tool correction: an initial caller-added HEAD equality preflight stopped before tests because Testbox uses a synthetic carrier commit. Removing that incorrect preflight and relying on the wrapper's source/tree verification produced the passing run above.
  • The initial full-diff review is complete as described above; follow-up isolated attempts produced no report. The required hosted openclaw/ci-gate remains the merge gate, not a substitute claim that the unresolved local failure is repaired. No production behavior, visual output, or update/migration contract changes.

All ten original shard coverage comparisons met the <=1% covered-statement/branch loss gate. Declarations were removed, not folded into unrelated combined tests. Some shards intentionally missed the 30% declaration target to retain independent contracts. These are the original measurement totals; the five restored cases make the final reduction smaller and cannot reduce the measured coverage.

Shard Area Changed files Original shard test LOC Original declarations Covered statements; branches; functions
x1248 media-understanding 11 5433 → 4283 (−1150) 182 → 119 (−63) 1440 → 1440; branches 1191 → 1190; functions 282 → 282
x1247 commands 15 6477 → 5118 (−1359) 186 → 130 (−56) 2872 → 2872; branches 1906 → 1904; functions 593 → 593
x1243 ui 15 5362 → 4773 (−589) 191 → 153 (−38) 4581 → 4581; branches 2587 → 2587; functions 1224 → 1224
x1236 gateway 9 9745 → 9174 (−571) 180 → 163 (−17) 10945 → 10945; branches 8237 → 8231; functions 1988 → 1988
x1238 codex 16 5807 → 4633 (−1174) 189 → 144 (−45) 3088 → 3088; branches 2291 → 2289; functions 638 → 638
x1252 state 16 8273 → 7345 (−928) 190 → 159 (−31) 7995 → 7994; branches 4843 → 4842; functions 1644 → 1644
x1244 agents 13 4452 → 3337 (−1115) 154 → 106 (−48) 7212 → 7212; branches 3634 → 3634; functions 1168 → 1168
x1250 codex 14 7842 → 6850 (−992) 181 → 143 (−38) 4628 → 4627; branches 3324 → 3322; functions 911 → 911
x1256 hooks 15 5623 → 4271 (−1352) 177 → 109 (−68) 943 → 943; branches 733 → 730; functions 166 → 166
x1251 cli 19 10970 → 9275 (−1695) 193 → 135 (−58) 4258 → 4255; branches 3664 → 3657; functions 686 → 686

Prior replay LOC before settlement, including shard-owned support and the initial review restorations:

Shard Added Removed Net
x1248 39 1189 -1150
x1247 174 1513 -1339
x1243 161 729 -568
x1236 113 684 -571
x1238 279 1439 -1160
x1252 770 1698 -928
x1244 46 1128 -1082
x1250 86 1078 -992
x1256 65 1392 -1327
x1251 507 2272 -1765

Coverage qualifications: x1243 compares the non-browser group; both browser files passed separately after the original stale Mermaid fixture was repaired. x1244 and x1238 use a green pre-deletion baseline after repairing stale auth/search fixtures. x1236's per-case instrumenter did not support the nested Gateway group, so those deletions used source-based duplicate review; its aggregate coverage comparison succeeded across all groups. Historic shard changed-check gaps are not asserted to be current-head passes.

Per-shard changed file inventory

test(media-understanding): deslop x1248 tests

  • src/media-understanding/apply.test.ts
  • src/media-understanding/attachments.normalize.test.ts
  • src/media-understanding/defaults.test.ts
  • src/media-understanding/echo-transcript.test.ts
  • src/media-understanding/file-extraction-limits.test.ts
  • src/media-understanding/local-audio.test.ts
  • src/media-understanding/media-understanding-misc.test.ts
  • src/media-understanding/provider-registry.test.ts
  • src/media-understanding/resolve.test.ts
  • src/media-understanding/runner.entries.guards.test.ts
  • src/media-understanding/shared.test.ts

test(commands): deslop x1247 tests

  • src/commands/doctor-tools-md-migration.test.ts
  • src/commands/doctor-ui.repair.test.ts
  • src/commands/doctor-ui.test.ts
  • src/commands/doctor-unconfigured-agent-databases.test.ts
  • src/commands/doctor-update-refusal.test.ts
  • src/commands/doctor-update-run.test.ts
  • src/commands/doctor-update.test.ts
  • src/commands/doctor-volatile-fs.test.ts
  • src/commands/doctor-workspace-status.test.ts
  • src/commands/doctor-workspace.test.ts
  • src/commands/export-trajectory.test.ts
  • src/commands/gateway-auth-token.test.ts
  • src/commands/gateway-install-token.test.ts
  • src/commands/gateway-readiness.test.ts
  • src/commands/gateway-status.test.ts

test(ui): deslop x1243 tests

  • ui/src/components/config-form.constraints.test.ts
  • ui/src/components/config-form.search.node.test.ts
  • ui/src/components/confirm-dialog.test.ts
  • ui/src/components/dock-panel-layout.test.ts
  • ui/src/components/exec-approval-card.test.ts
  • ui/src/components/exec-approval.test.ts
  • ui/src/components/file-preview-modal.browser.test.ts
  • ui/src/components/file-preview-modal.test.ts
  • ui/src/components/identity-avatar-view.test.ts
  • ui/src/components/input-dialog.test.ts
  • ui/src/components/link-reader-content.test.ts
  • ui/src/components/lobster-dex.test.ts
  • ui/src/components/login-gate.test.ts
  • ui/src/components/markdown-cjk-html.test.ts
  • ui/src/components/markdown-clipboard.browser.test.ts

test(gateway): deslop x1236 tests

  • src/gateway/server-methods/sessions-github.test.ts
  • src/gateway/server-methods/sessions-reactions.test.ts
  • src/gateway/server-methods/sessions-read-cache.test.ts
  • src/gateway/server-methods/sessions-read-diagnostics.test.ts
  • src/gateway/server-methods/sessions-reset-subagent-cleanup.test.ts
  • src/gateway/server-methods/sessions-rewind.storage.test.ts
  • src/gateway/server-methods/sessions-rewind.test.ts
  • src/gateway/server-methods/sessions-search.test.ts
  • src/gateway/server-methods/sessions.abort-agent-scope.test.ts

test(codex): deslop x1238 tests

  • extensions/codex/src/app-server/model-catalog.test.ts
  • extensions/codex/src/app-server/models.test.ts
  • extensions/codex/src/app-server/native-auth.test.ts
  • extensions/codex/src/app-server/native-execution-policy.test.ts
  • extensions/codex/src/app-server/native-skill-isolation.test.ts
  • extensions/codex/src/app-server/native-subagent-notification.test.ts
  • extensions/codex/src/app-server/native-subagent-submission-store.test.ts
  • extensions/codex/src/app-server/openclaw-owned-tool-runtime-contract.test.ts
  • extensions/codex/src/app-server/plugin-activation.test.ts
  • extensions/codex/src/app-server/plugin-metadata-cache.test.ts
  • extensions/codex/src/app-server/plugin-thread-attestation.test.ts
  • extensions/codex/src/app-server/protocol-validators.test.ts
  • extensions/codex/src/app-server/provider-capabilities.test.ts
  • extensions/codex/src/app-server/rate-limits.test.ts
  • extensions/codex/src/app-server/remote-workspace-media.test.ts
  • extensions/codex/src/app-server/remote-workspace-path.test.ts

test(state): deslop x1252 tests

  • src/state/agent-database-admission.test.ts
  • src/state/agent-deletion-cleanup.test.ts
  • src/state/agent-deletion-journal-initialization.test.ts
  • src/state/claw-package-adoption.test.ts
  • src/state/local-onboarding-state.test.ts
  • src/state/onboarding-recommendations.test.ts
  • src/state/openclaw-agent-admission-order.diagnostic.test.ts
  • src/state/openclaw-agent-db-disposal.test.ts
  • src/state/openclaw-agent-db-maintenance.test.ts
  • src/state/openclaw-agent-db-open-authority.test.ts
  • src/state/openclaw-agent-db-write.test.ts
  • src/state/openclaw-agent-participants-migration.test.ts
  • src/state/openclaw-agent-worker-store.test.ts
  • src/state/openclaw-database-maintenance.test.ts
  • src/state/openclaw-database-preflight-agent-scheduler.test.ts
  • src/state/openclaw-database-verify.process.test.ts

test(agents): deslop x1244 tests

  • src/agents/code-mode-swarm.test.ts
  • src/agents/codex-app-server.extensions.test.ts
  • src/agents/codex-mcp-config.test.ts
  • src/agents/codex-native-web-search.test.ts
  • src/agents/command-poll-backoff.test.ts
  • src/agents/compaction-real-conversation.test.ts
  • src/agents/configured-provider-fallback.test.ts
  • src/agents/context-window-guard.test.ts
  • src/agents/conversation-capability-profile.test.ts
  • src/agents/copilot-routing.test.ts
  • src/agents/current-time.test.ts
  • src/agents/date-time.test.ts
  • src/agents/delegation-capability.test.ts

test(codex): deslop x1250 tests

  • extensions/codex/src/session-catalog-archive.test.ts
  • extensions/codex/src/session-catalog-cold-start.test.ts
  • extensions/codex/src/session-catalog-create.test.ts
  • extensions/codex/src/session-catalog-diagnostics.test.ts
  • extensions/codex/src/session-catalog-events.test.ts
  • extensions/codex/src/session-catalog-index.test.ts
  • extensions/codex/src/session-catalog-listing-cache.test.ts
  • extensions/codex/src/session-catalog-listing.test.ts
  • extensions/codex/src/session-catalog-node-continue.test.ts
  • extensions/codex/src/session-catalog-node-listing.test.ts
  • extensions/codex/src/session-catalog-provenance.test.ts
  • extensions/codex/src/session-cli.test.ts
  • extensions/codex/src/session-rollout-snapshot.test.ts
  • extensions/codex/src/session-upstream-activity.test.ts

test(hooks): deslop x1256 tests

  • src/hooks/configured.test.ts
  • src/hooks/frontmatter.test.ts
  • src/hooks/gmail-ops.test.ts
  • src/hooks/gmail-setup-utils.test.ts
  • src/hooks/gmail-watcher-lifecycle.test.ts
  • src/hooks/gmail-watcher.test.ts
  • src/hooks/gmail.test.ts
  • src/hooks/import-url.test.ts
  • src/hooks/install.test.ts
  • src/hooks/internal-hooks.test.ts
  • src/hooks/llm-slug-generator.test.ts
  • src/hooks/loader.test.ts
  • src/hooks/message-hook-mappers.test.ts
  • src/hooks/workspace.test.ts

Replay cleanup for x1256: src/test-utils/npm-spec-install-test-helpers.ts.

test(cli): deslop x1251 tests

  • src/cli/update-cli/update-command-generation.test-support.ts
  • src/cli/update-cli/update-command-plugins.test-support.ts
  • src/cli/update-cli/update-command-restart-outcome.test-support.ts
  • src/cli/update-cli/update-command-rollback-report.test.ts
  • src/cli/update-cli/update-command-rollback.test.ts
  • src/cli/update-cli/update-command-run.test.ts
  • src/cli/update-cli/update-command-service-maintenance.test.ts
  • src/cli/update-cli/update-command-service-publication.test.ts
  • src/cli/update-cli/update-command-service-recovery.test-support.ts
  • src/cli/update-cli/update-command-service-transition.test-support.ts
  • src/cli/update-cli/update-command-service.integration.test.ts
  • src/cli/update-cli/update-command-task-delivery.test.ts
  • src/cli/update-cli/update-command-terminal-outcome.test.ts
  • src/cli/update-cli/update-command-triage.test.ts
  • src/cli/update-cli/update-command-verification.test.ts
  • src/cli/update-cli/update-command.test.ts
  • src/cli/update-cli/update-finalization-lifecycle.test.ts
  • src/cli/update-cli/update-recovery-guidance.test.ts
  • src/cli/update-cli/update-repair-package-activation.test.ts

@clawsweeper

clawsweeper Bot commented Oct 12, 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.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime cli CLI command changes commands Command implementations agents Agent runtime and tooling extensions: codex size: XL labels Oct 12, 2026
@steipete
steipete enabled auto-merge (squash) October 12, 2026 06:34
@steipete
steipete disabled auto-merge October 12, 2026 06:40
@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR removes redundant tests and unused test support across core, Codex, and the Control UI.

Example: A test reduction removes both incomplete-snapshot recovery controls from Codex plugin metadata caching.

  • Before: A cache regression that settles a local-only snapshot for one hour causes a recovery test to fail.
  • After: The remaining tests do not detect that regression; production behavior itself is unchanged.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful cleanup supported by harness evidence, but two independent contract controls are still lost.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored test-only reduction changes no shipped behavior; historical test evidence supports validation, and current-head CI remains pending.
Patch quality 🦪 silver shellfish (2/6) 2 actionable review findings remain.

Product

Kind: Test only · Worth it: Yes
Reason: The maintainer-authored direction reduces test maintenance without changing product behavior; the implementation must retain independent safety and recovery coverage.

Merge readiness

⛔ Needs changes before merge - 4 items remain

Keep open: the maintainer-approved test reduction is useful, but both previously reported P2 coverage regressions remain.

Priority: P3
Reviewed head: 99f83ed3585d19789fd81b0450efc6a56e0741aa

Before merge

  • Retain the incomplete-snapshot recovery regression (P2) - Both successful-but-incomplete response controls remain deleted. A local-only plugin/list response can contain empty marketplaceLoadErrors while the caller's cacheable predicate rejects it; bypassing that predicate would settle the response for one hour and suppress recovery on the next request. The retained partial-catalog test uses different catalog scopes, and thrown-error, expiry, and invalidation cases do not detect this regression. Restore focused incomplete-response, uncached-state, and next-request recovery coverage, including the marketplaceLoadErrors admission path.
  • Keep rejection coverage at the maintenance admission boundary (P2) - This deletion leaves only acceptance assertions for assertOpenClawStateDatabaseForMaintenance and assertOpenClawAgentDatabaseForMaintenance. Removing their canonical-schema validation call would then permit a current-version database with a missing delivery_queue_entries table or a drifted memory trigger through offline maintenance while these remaining tests still pass. Startup/migration tests and sqlite-schema-contract tests exercise separate calls and cannot catch that bypass. Retain a compact negative table through both maintenance admission owners covering missing canonical objects and schema drift.
  • Explain or restore the original intent of Codex incomplete-snapshot cache recovery - 9d4610c: Prevent local-only successful responses after remote discovery failure from settling configured-plugin negatives; the deletion supplies no equivalent recovery control.
  • Explain or restore the original intent of Offline maintenance schema rejection - f11b17d: Reject structurally incomplete current-version databases before maintenance; the stated startup and low-level replacement coverage does not protect this admission boundary.

Findings

  • [P2] Retain the incomplete-snapshot recovery regression — extensions/codex/src/app-server/plugin-metadata-cache.test.ts:68-69
  • [P2] Keep rejection coverage at the maintenance admission boundary — src/state/openclaw-database-maintenance.test.ts:120-121

Provenance

  • Codex incomplete-snapshot cache recovery changes intended behavior without addressing why it exists (9d4610c: Prevent local-only successful responses after remote discovery failure from settling configured-plugin negatives; the deletion supplies no equivalent recovery control.)
  • Offline maintenance schema rejection changes intended behavior without addressing why it exists (f11b17d: Reject structurally incomplete current-version databases before maintenance; the stated startup and low-level replacement coverage does not protect this admission boundary.)
Agent review details

How this fits together

Vitest suites feed synthetic requests, databases, and UI fixtures through OpenClaw owners and compare their results with independent expectations.

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

Technical review

Best possible solution:

Keep the useful test reductions while restoring compact, independent recovery and maintenance-rejection controls at their existing owners.

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

The pinned diff and remaining tests establish both coverage losses by source inspection; no failing test run or current runtime regression is claimed.

Is this the best way to solve the issue?

Reducing duplicate proof is appropriate, but aggregate coverage similarity does not replace independent controls for successful incomplete responses or malformed databases at maintenance admission.

Full review comments:

  • [P2] Retain the incomplete-snapshot recovery regression — extensions/codex/src/app-server/plugin-metadata-cache.test.ts:68-69
    Both successful-but-incomplete response controls remain deleted. A local-only plugin/list response can contain empty marketplaceLoadErrors while the caller's cacheable predicate rejects it; bypassing that predicate would settle the response for one hour and suppress recovery on the next request. The retained partial-catalog test uses different catalog scopes, and thrown-error, expiry, and invalidation cases do not detect this regression. Restore focused incomplete-response, uncached-state, and next-request recovery coverage, including the marketplaceLoadErrors admission path.
    Confidence: 0.99
  • [P2] Keep rejection coverage at the maintenance admission boundary — src/state/openclaw-database-maintenance.test.ts:120-121
    This deletion leaves only acceptance assertions for assertOpenClawStateDatabaseForMaintenance and assertOpenClawAgentDatabaseForMaintenance. Removing their canonical-schema validation call would then permit a current-version database with a missing delivery_queue_entries table or a drifted memory trigger through offline maintenance while these remaining tests still pass. Startup/migration tests and sqlite-schema-contract tests exercise separate calls and cannot catch that bypass. Retain a compact negative table through both maintenance admission owners covering missing canonical objects and schema drift.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

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

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test extensions/codex/src/app-server/plugin-metadata-cache.test.ts --maxWorkers=1
  • pnpm test src/state/openclaw-database-maintenance.test.ts --maxWorkers=1
  • git diff --check

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 9d4610c adds extensions/codex/src/app-server/plugin-metadata-cache.test.ts:6 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 9d4610cbd102; files: extensions/codex/src/app-server/plugin-metadata-cache.test.ts)
  • Vincent Koc: Raw commit f11b17d adds src/state/openclaw-database-maintenance.test.ts:14 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f11b17d937cc; files: src/state/openclaw-database-maintenance.test.ts)

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Production versus test LOC Production +0/-0; tests +2152/-12752; test support +93/-202. The reduction stays outside production, but deletion volume does not justify losing independent contract coverage.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is test-maintenance cleanup with unchanged production behavior; its coverage defects should be corrected before merge.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rating scale

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

Workflow

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

History

Review history (3 earlier review cycles)
  • reviewed 2026-10-12T06:41:57.976Z sha ff6ef9f :: needs changes before merge. :: [P2] Retain the incomplete-snapshot recovery regression | [P2] Keep rejection coverage at the maintenance admission boundary
  • reviewed 2026-10-12T08:03:07.968Z sha d0c7947f32a1a02a5372ccc9ed09ab568375ad53 :: needs changes before merge. :: [P2] Retain the incomplete-snapshot recovery regression | [P2] Keep rejection coverage at the maintenance admission boundary
  • reviewed 2026-10-12T09:15:07.403Z sha 4b2aecc :: needs changes before merge. :: [P2] Retain the incomplete-snapshot recovery regression | [P2] Keep rejection coverage at the maintenance admission boundary

Reviewed October 12, 2026, 5:38 AM ET / 09:38 UTC (Revision 4).

@steipete
steipete force-pushed the tcr/land-d058-1791780936 branch from ff6ef9f to d0c7947 Compare October 12, 2026 07:53
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 12, 2026
@steipete
steipete force-pushed the tcr/land-d058-1791780936 branch from d0c7947 to 4b2aecc Compare October 12, 2026 09:06
@steipete
steipete enabled auto-merge (squash) October 12, 2026 09:06
@steipete
steipete disabled auto-merge October 12, 2026 09:17
Port f670574ef5c onto campaign lane 612424730c41 while retaining the newer Solid glyph test, avatar rendering helper, and Mermaid light-DOM behavior.

Validation: Testbox tbx_01m4pw6bbqnvhc2jxmtpf1f57c, fresh main 05287ac plus all 15 resolved files: 131 UI tests and 34 Chromium tests passed, zero skipped (12.32s across two Vitest shards). Oxlint exit 0, oxfmt --check, git diff --check, and independent P0-P2 review passed. Lease stopped.
Restore fail-closed recovery, passive-tool rejection, shared-store scoping, and corruption classification cases identified during landing review. Keep the batch reduction while preserving these distinct contracts.
Wait for initial transcript enrichment and the next accepted row backfill before asserting the committed preview. Preserve the projection and public list assertions without changing timeouts or polling for elapsed time.
@steipete
steipete force-pushed the tcr/land-d058-1791780936 branch from 4b2aecc to 99f83ed Compare October 12, 2026 09:29
@steipete
steipete enabled auto-merge (squash) October 12, 2026 09:30
@steipete
steipete merged commit 8155863 into main Oct 12, 2026
127 checks passed
@steipete
steipete deleted the tcr/land-d058-1791780936 branch October 12, 2026 09:46
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
…9673)

* test(media-understanding): deslop x1248 tests

* test(commands): deslop x1247 tests

* test(ui): deslop x1243 tests

Port f670574ef5c onto campaign lane 612424730c41 while retaining the newer Solid glyph test, avatar rendering helper, and Mermaid light-DOM behavior.

Validation: Testbox tbx_01m4pw6bbqnvhc2jxmtpf1f57c, fresh main e6a6155 plus all 15 resolved files: 131 UI tests and 34 Chromium tests passed, zero skipped (12.32s across two Vitest shards). Oxlint exit 0, oxfmt --check, git diff --check, and independent P0-P2 review passed. Lease stopped.

* test(gateway): deslop x1236 tests

* test(codex): deslop x1238 tests

* test(state): deslop x1252 tests

* test(agents): deslop x1244 tests

* test(codex): deslop x1250 tests

* test(hooks): deslop x1256 tests

* test(cli): deslop x1251 tests

* test(hooks): remove orphaned npm spec assertion helper

* test: retain independent safety regressions

* test: retain independent safety coverage and remove stale lint directive

Restore fail-closed recovery, passive-tool rejection, shared-store scoping, and corruption classification cases identified during landing review. Keep the batch reduction while preserving these distinct contracts.

* test(gateway): await committed preview publication

Wait for initial transcript enrichment and the next accepted row backfill before asserting the committed preview. Preserve the projection and public list assertions without changing timeouts or polling for elapsed time.
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 cli CLI command changes commands Command implementations extensions: codex gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant