Skip to content

test(plugins,cron,ui): remove low-value tests (batch d671) - #185707

Open
steipete wants to merge 18 commits into
mainfrom
tcr/land-d671-1793091294
Open

steipete wants to merge 18 commits into
mainfrom
tcr/land-d671-1793091294

Conversation

@steipete

@steipete steipete commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The test-reduction campaign identified repeated fixture setup and duplicate proof layers. This batch consolidates the portions that still fit current main, retaining the newer regression coverage where the original campaign patches no longer apply.

User Impact

Test-only maintenance; no production behavior, dependencies, configuration, or public contracts change. The retained diff removes 975 net test lines across 8 files (943 added / 1,918 deleted). Production: +0 / -0. No test-runtime or coverage improvement is claimed without hosted evidence.

Why This Change Was Made

Initially replayed onto pinned main 863839d032939ec1ef582ce3b991df77e35e7aaf, then rebased without conflicts onto 3be098dc00d77970a6d1cc665ca0034ff9b99150 after an unrelated QA failure and a newer subagent fix. Consolidate session-catalog, migration, and cron fixtures while preserving the owning boundary tests. Sixteen source commits were applied, some partially; fourteen were skipped. Both Nextcloud commits and all three menu commits were subsequently reverted in full after CI, so eleven source commits contribute to the final diff. No CODEOWNERS-owned paths are changed under the current ownership file.

Retained shard inventory

Counts below are physical file lines and static it/test/itWithCli declarations, not expanded parameterized cases. They compare the final candidate against the pinned base.

Shard Files Test LOC before → after Declarations before → after
j0348 extensions/opencode/session-catalog.test.ts 1,001 → 845 19 → 18
j0351 extensions/matrix/src/cli.test.ts 989 → 970 25 → 25
j0352 ui/src/pages/cron/cron-page.lifecycle.test.ts, cron-page.test.ts 1,577 → 1,371 33 → 28
j0354 src/cron/store/plugin-command-schedule.worker.test.ts, run-receipt-store.test.ts 1,529 → 1,240 27 → 22
j0356 extensions/memory-core/doctor-contract-api.test.ts 1,497 → 1,197 32 → 30
j0360 extensions/acpx/src/runtime.test.ts 709 → 704 20 → 20

All supplied shard reports explicitly state that tests and coverage were not run under CI-only instructions. Consequently there is no in-shard covered-statements/branches total to quote for j0346–j0357, j0360, or j0362. Historical report counts precede later consolidation commits and are not presented as final-candidate results.

Replay decisions

  • Skipped 67570048ca7c (j0346): current TTS resource ownership and persona-secret tests have materially changed; retain current main's coverage.
  • Partially retained 97fbc613572e: keep session-catalog consolidation; drop conflicting extensions/opencode/index.test.ts changes to preserve current catalog metadata, routing, and refresh regressions.
  • Skipped 4eca596aab06, 354fcaf6489a, 5bc280cef4ea (j0347): current Mattermost callback and inbound ownership fixtures differ substantially; retain main's security, ingress, and lifecycle proof.
  • Initially partially retained 1deb0e6893c8, 875965f5081e: dropped outbound-media hunks to retain current native-share, cancellation, and transport assertions. Subsequently restored inbound.behavior.test.ts verbatim from main after all 30 cases failed fixture parsing. No j0349 changes remain.
  • Skipped d5dc8fd2ce53, 048065436fba (j0350): retain current SOCKS constructor cleanup, deadline, routing, and SSRF coverage.
  • Partially retained 6d5b214ba110: keep Matrix CLI consolidation; retain current outbound-currentness fixture and distinct retirement cases.
  • Resolved 7b64657d35e6, feca569f4d68 in favor of current cron semantics: retain started-event no-refetch assertion, edit-versus-clone regression, recurring-input focus regression, and main's removal of obsolete saving assertions. Keep compatible fixture/consolidation changes.
  • Initially retained 365468a17682, 2c146342d004, 4f65e0b5082e (j0353), then restored both menu files after Chromium and WebKit exposed a changed context-menu event boundary in the combined link fixture. No j0353 changes remain.
  • Skipped a7e7c24147b9, 68b527be47d1, e94453c01697 (j0355): retain current Codex SQLite-backed reset, migration, predecessor, and ownership proof.
  • Skipped 0c58e9d5aae6, b6e5fbfdb026, 4fee109465ff (j0357): retain current Talk control identities, close/cancellation cases, and broadcaster-backed transcription tests.
  • Skipped 965693fd8936: current ACPX helper already uses the correct cleanup parameter position and current service tests retain real runtime coverage. Partially retained ebac41609b6a: only the equivalent runtime diagnostic table simplification, not conflicting service setup.
  • Skipped 694acf460c17 (j0362): duplicate suites were already absent; preserve newer credential database imports and missing-session link/reaction cases. Resolution was empty.
  • Other listed commits applied without conflicts. No production seam was removed.

Evidence

  • pnpm install --frozen-lockfile --prefer-offline: passed.
  • node_modules/.bin/oxfmt --write <changed files>: passed after repairs and rebase.
  • node_modules/.bin/oxlint -c .oxlintrc.json <changed files>: exited 0 after repairs and rebase.
  • git diff --check 3be098dc00d77970a6d1cc665ca0034ff9b99150: passed.
  • Per maintainer CI-only direction: no local Vitest, check-changed, typecheck, or Crabbox/Testbox execution. No leases created.
  • First CI run: https://github.com/openclaw/openclaw/actions/runs/40477936184. Repaired the cron capacity fixture, which had recorded the previous process ID rather than the supplied schedule's host. Restored Nextcloud rather than retain a fixture-parser regression. No assertions weakened and no timeouts raised.
  • Independent review: restored admission-close authority coverage, malformed paired-node/cursor validation, and full linked-run UI integration. Rejected two unsupported findings: the current file has no PATHEXT assignment; menu items still synchronously call agentItems(), which reads revision(). Corrective-delta review completed clean at P0–P2. The subsequent rebase was conflict-free.
  • Second run: https://github.com/openclaw/openclaw/actions/runs/40479250878. Changed-node and extension test lanes passed. Repaired the memory fixture table's TS2345 by using the concrete ArrayBuffer-backed Uint8Array type supplied by the encoder. Restored the menu suites after their combined link test failed in both browsers. The final corrective-delta review completed clean at P0–P2; no tests were run locally.
  • The unrelated subagent-empty-completion-recovery QA failure matches scheduled main: https://github.com/openclaw/openclaw/actions/runs/40475262163/job/122092193220 (missing exactly one system failure notice). Fresh-head CI decides whether it persists after the rebase.
  • Required openclaw/ci-gate is the execution proof and merge gate.

No visual implementation changes; browser-test edits retain native menu behavior rather than alter rendering.

@clawsweeper

clawsweeper Bot commented Oct 27, 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 27, 2026 09:03
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 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-27T09:31:37.965479Z 0ce39e8 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: matrix Channel integration: matrix channel: nextcloud-talk Channel integration: nextcloud-talk app: web-ui App: web-ui extensions: memory-core Extension: memory-core extensions: acpx extensions: opencode size: XL labels Oct 27, 2026
@steipete
steipete disabled auto-merge October 27, 2026 09:09
Share session locators, cursor encoding and capability assertions; simplify fake CLI JSON serialization while retaining both versioned payloads and every existing case.

Keep distinct credential, isolation, cursor validation, ACP adoption, terminal policy and lifecycle assertions. This already-reduced shard falls short of the 20 percent line target rather than deleting independent boundary proof.
Retain OpenCode routing, credential, isolation, continuation and terminal contracts while removing repeated shared-owner matrices and redundant fixture setup.

Shared cursor and node validation remains in extensions/acpx/src/pi-session-catalog.test.ts (lists named sessions and reads the active JSONL branch) and pi-session-catalog-node.test.ts (bridges list and read requests without undefined transport fields). Both use the same paging implementation and session ID pattern.

Node fanout remains in src/plugin-sdk/session-catalog.test.ts (joins all started node work before rejecting). Account-scoped discovery and snapshot eviction remain in extensions/opencode-go/index.test.ts (never resolves another account's upstream-only Go model outside its authenticated catalog; evicts withdrawn or unsafe upstream models while retaining trusted offline seeds), with unsupported transports covered by src/plugin-sdk/provider-catalog-live-upstream.test.ts.

Keep filtered lifecycle coverage in the listed chat model test, fold adoption projection into the adoption flow, and preserve both CLI schemas from one fixture. CI-only: plain oxlint, oxfmt and diff-check pass; no tests run. Original shard: 1445 lines; now 1154 (-20.1%).
Consolidate quote visibility setup and native reply caption/target cases. The native reply matrix and warning-only delivery test retain sanitation coverage through real delivery; keep every pairing, cancellation, upload cleanup, signature, and quote-policy boundary case.

CI-only shard: oxlint, oxfmt and diff-check passed. Static cases 80 -> 78; test lines 1365 -> 1248 (8.6%). Below the 20% target: remaining cases cover distinct authorization, lifecycle, recovery and channel contracts; runtime proof is deferred to hosted CI.
Reuse lazy native reply fixtures; use the real group-policy resolver; remove unobserved pairing-runtime mocks and duplicate dispatch/log assertions. Combine filename and voice upload cases at the native boundary. The settles dispatch before HTTP table now retains the no-byte-read URL cancellation contract as well.

Preserve all credential, signature, quote authorization, cleanup ownership and delivery receipt behaviors. CI-only: oxlint, oxfmt and diff-check passed; no tests run. Shard lines 1365 -> 1190 (12.8%), still below the requested 20% reduction.
Reuse the existing async gate for CLI publication barriers and consolidate identical verification and device fixture setup. Preserve every case, assertion, and distinct lifecycle interleaving; leave outbound currentness unchanged.

CI-only: plain oxlint, oxfmt, and diff-check pass. CLI 961 to 951 lines; shard 1530 to 1520. Below the 20 percent target because remaining setup supports distinct security, config publication, error, receipt, and FIFO contracts, including prior review restorations.
Assert config publication directly against the existing writer mock instead of maintaining a duplicate activation ledger. Share the cancellation rendezvous across media preparation and post-dispatch handoff, preserving one table row per boundary and every pre-effect assertion. Reuse pendingText for the fresh DM repair send and flatten the rate-limit fixture branch.

No cases or distinct contracts removed. Config forwarding retains regression proof for 37d5c34. Device-action and verification-manager siblings do not replace CLI-specific projections or the real SDK interleavings. CI-only static gates: oxfmt, plain oxlint, and git diff --check pass; no tests run. Original shard 1530 to 1501 lines, below the 20 percent target.
Reuse control-input and flush helpers, compact control fixtures, and share native visibility assertions. Preserve all keyboard, lazy-load, hover, native-link, geometry, and modal-focus cases.

CI-only: oxfmt, git diff --check, and plain oxlint passed. No tests or coverage run. Shard reduced from 1563 to 1536 lines (1.7%); the 20% target remains unmet because retained cases cover distinct native and lifecycle paths. No production or shared-support files changed.
Consolidate native gesture, selection-veto, and nested navigation assertions into one link flow. Share checkbox/radio state with custom-trigger navigation; fold live RTL direction into sibling navigation and disabled-trigger entry into disabled-leaf coverage.

Keep repeated controlled rejection in lazy admission. Successful transitions and rejected-hide rollback remain covered by popover.browser.test.tsx: returns vetoed controlled values to the accepted native state, and keeps a pinned popover open outside and closes once with Escape. Both use the same useOverlayControl owner.

Preserve restored cold-load, hover lifetime, geometry and modal focus cases. Remove unused padded fixture path and redundant visibility/data-attribute assertions. CI-only: plain oxlint, oxfmt, and diff-check pass; no tests or coverage run. PASS20 target remains unmet rather than deleting distinct retained behavior.
Share synchronous cold-menu admission, selection recording, and row lookup without yielding before queued-input assertions. Use the standard menu fixture for link-context propagation and retain each native control kind.

Reuse exact submenu-side geometry assertions and reactive fixture updates. Remove unused theme/style restoration and the repeated final ArrowUp/Escape sequence already asserted in the selected-item navigation test. Preserve restored cold-load, hover, modal, and geometry cases.

CI-only: plain oxlint, oxfmt, and git diff --check pass; no tests or coverage run. Original shard 1563 lines, now 1412. The 20 percent target remains unmet; no further duplicate-layer coverage was found for the retained behavior.
Share command mutations, charged-state expectations and rollback refusal checks; reuse receipt-service dependencies and paired retirement reads. Preserve all 27 declarations and 46 expanded cases.

CI-only: plain oxlint, oxfmt and diff checks passed. No runtime tests or coverage run. Total 1529 to 1469 lines (3.92%); below the 20% target because remaining cases guard distinct restart, frozen-reader compatibility, authority revocation, transaction rollback, receipt cursor and retention behavior.
Reduce the shard from 1529 original lines to 1223 (20.01%). Reuse restart binding fixtures and one cap scenario for live peers, restartable peers, independent parents and disabled peer replacement. Seed one stale peer per exclusion branch instead of eight copies. Keep all five invalid-budget paths, plugin build checks, charged recovery, frozen-reader rollback, revocation, atomic retirement, cursor and pending receipt retention assertions.

Remaining proof: service/ops.run-admission.test.ts keeps queued force runs for jobs disabled before reservation through maintenance, rechecks a queued if-enabled run after disable, and uses current queued definitions while cancelling replaced or removed schedules. service.run-queue.test.ts shares capacity across sibling services for timer, manual, stream and consumed exit requests; service.on-exit-terminal-disposition.test.ts preserves operator force runs of disabled on-exit jobs.

service/run-recovery.test.ts records interrupted at/every runs without replay, retains timed queued work while skipping lost transient context, and preserves acknowledged public IDs. service.execution-identity.test.ts retains only the first trigger/payload execution link. Superseded cancellation still asserts no history in the retained budget claim case. store.worker.test.ts reloads durable mutations after reply loss; retained delivery admission tests separately protect committed, refused and unknown settlement publication.

active-jobs.test.ts retains admission closure revocation through the shared message/source guard; the retained disabled tool-policy row proves service-bound access before revocation. service.restart-delivery.test.ts exercises legacy-unknown recovery across repeated real service startups; keep terminal and receiptless variants here. Keep one missing-table lookup through shared activeRow schema admission rather than single/batch replays. Successful completion remains covered by pending-terminal receipt reconciliation after an owner edit.

CI-only validation: plain oxlint exited 0, oxfmt and git diff --check passed. No tests, coverage, builds, typechecks, Testbox or check-changed runs. No production/support changes or file deletions. Additional commit; preserve the previous shard commit.
Reuse typed DOM lookups and cron RPC fixtures; factor repeated runtime-event payloads without dropping behavior cases. Preserve authority downgrades, pending-link retirement, create-and-run settlement, catalog identity, hidden refresh ownership, and legacy job-table event patches.

CI-only: plain oxlint, oxfmt, and diff-check pass. No test or coverage runs. Shard lines 1544 to 1513 (2.01 percent); below the 20 percent target because the remaining cases exercise distinct branches and lifecycle interleavings. No production or shared-support changes.
Combine selected-agent catalog identity and all-agent task creation into one user flow; share the distinct burst/manual refresh orderings. Keep all authority downgrade, scope retirement, hidden write settlement, and pacing regressions retained by prior review.

Off-page link/highlight proof remains in cron-page.run-scroll.test.ts (scrolls to a linked run again after its history rows unmount) and cron-page.reconnect.test.ts (reconnect respects the current automation selection after show all runs). Keep linked/unlinked filter serialization at its owning boundary here. Focus/validation retention remains in view-reactivity.test.ts; interval validity remains in cron-trigger-authoring.e2e.test.ts. Periodic visibility/disposal remain in lib/reactive/visible-poll.test.ts, with cron hidden catch-up retained here. Partial catalog warnings remain in cron-page.catalog-notifications.test.ts. Live invalid-spec outcomes remain in lib/cron/action-feedback.test.ts; stale outcomes share the preceding ownership guard.

CI-only: plain oxlint, oxfmt, and diff-check pass. No tests, builds, coverage, or typechecks run. Original shard 1544 to 1270 lines (17.75 percent), below the 20 percent target; 32 to 26 declarations and 58 to 48 expanded cases. No production, shared-support, config, or inventory edits.
Keep both vector failure branches in shared tables and all 39 expanded cases. Trim duplicate migration-report checks and cache/index dumps: archive and event assertions retain host-event outcomes; cache-collision and FTS search cases retain the copied-row and rollback contracts. Reuse minimal sidecar and workspace fixtures. No production changes or test runs; CI-only static gates passed.
Remove six duplicate probe cases from runtime.test.ts; runtime-probe.test.ts retains portable pre-spawn leasing, live-root cleanup, uncertain failures, serialized cleanup, live policy updates and bounded lease coalescing. Consolidate service fixture setup and log assertions without dropping service cases. Preserve all ownership, migration, redaction and lifecycle assertions.

CI-only campaign: plain oxlint, oxfmt and diff checks pass; tests and coverage intentionally deferred to hosted CI. Shard lines 1561 -> 1303 (16.5%, below 20% target); remaining service paths have distinct migration/recovery and ownership contracts.
Restore admission teardown, paired-node validation and linked-run UI proof after review. Drop the Nextcloud fixture rewrite after CI fixture parsing failed. Bind the cron cap fixture to its supplied schedule host identity.
@steipete
steipete force-pushed the tcr/land-d671-1793091294 branch from 8ef7a5f to b7d9a15 Compare October 27, 2026 09:14
@steipete steipete changed the title test: remove low-value tests (batch d671) test(plugins,cron,ui): remove low-value tests (batch d671) Oct 27, 2026
@steipete
steipete enabled auto-merge (squash) October 27, 2026 09:14
@steipete
steipete disabled auto-merge October 27, 2026 09:23
Restore the original menu suites after the combined link fixture changed the context-menu event boundary. Match embedding table values to the encoder return type without casts or wider helper inputs.
@steipete
steipete enabled auto-merge (squash) October 27, 2026 09:28
@openclaw-barnacle openclaw-barnacle Bot removed the channel: nextcloud-talk Channel integration: nextcloud-talk label Oct 27, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0ce39e89a0

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +645 to +648
it("rejects a plan made before its definition changed", async () => {
const { current, queue, request } = await scheduledQueue("changed");
await queue.update(current.id, { enabled: false });
expect((await queue.request([request])).rejected).toEqual(rejected(request, "job-ineligible"));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Retain the queue mutations' lost-worker-reply coverage

The removed recovers a committed %s after losing its worker reply without replay cases exercise a distinct durability boundary: cron.requestRuns or cron.cancelRequests commits, but the worker exits before acknowledging it. Repository-wide searches at this commit found no remaining reply-loss injection for either operation; the retained delivery-admission, job-mutation, and manual-acknowledgement tests exercise different operations or kill the process after acknowledgement. Removing these cases therefore loses the checks that a committed request launches exactly once and a committed cancellation cannot launch after worker recovery. Retain these two cases, or move their assertions into equivalent worker-boundary coverage rather than treating them as duplicate proof. The boundary-proof guidance required by AGENTS.md explicitly calls for preserving distinct contracts during consolidation.

AGENTS.md reference: AGENTS.md:L80-L80

Useful? React with 👍 / 👎.

@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 27, 2026
@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR consolidates plugin, cron storage, and Automations UI test fixtures and removes overlapping cases.

Example: Testing malformed legacy memory vectors and an unavailable sqlite-vec extension.

  • Before: Separate tests repeat migration setup and retryability assertions.
  • After: A shared table exercises both failures while retaining source preservation and keyword-search checks.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful consolidation with passing changed-test lanes, but a verified loss of independent durability coverage blocks acceptance; the required CI gate also failed on unattributed QA smoke failures.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored test-only change leaves shipped behavior unchanged; hosted changed-test lanes provide execution evidence for its fixtures.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
Reason: Maintainer-directed consolidation reduces repeated setup without requiring a product change; its value depends on preserving independent failure boundaries.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this maintainer-authored PR open: the test cleanup is useful, but it removes distinct queue recovery coverage that should remain.

Priority: P3
Reviewed head: 0ce39e89a0b313b0b682441cae7023831b51d375

Before merge

  • Restore the queue mutations' lost-worker-reply cases (P2) - Deleting the request/cancellation table removes the distinct case where cron.requestRuns or cron.cancelRequests commits and its worker exits before acknowledging success. The retained reply-loss tests target cron.mutateJobs and cron.markDeliveryStarted; ordinary recovery tests receive their queue acknowledgement first. Consequently, the remaining suite can pass without checking that a committed request launches exactly once or a committed cancellation stays cancelled after worker replacement. Restore these two cases or move equivalent assertions into the same production worker boundary, as required by the repository's distinct-contract retention policy. This confirms the existing discussion at test(plugins,cron,ui): remove low-value tests (batch d671) #185707 (comment).

Findings

  • [P2] Restore the queue mutations' lost-worker-reply cases — src/cron/store/plugin-command-schedule.worker.test.ts:645-648
Agent review details

How this fits together

These test suites exercise plugin CLI adapters, Memory Core migrations, the cron SQLite worker, and the Automations page using synthetic inputs and observable results.

flowchart LR
  A[Synthetic fixtures] --> B[Plugin adapters]
  A --> C[Memory migrations]
  A --> D[Cron SQLite worker]
  A --> E[Automations page]
  B --> F[Behavior assertions]
  C --> F
  D --> F
  E --> F
Loading

Technical review

Best possible solution:

Keep the fixture consolidation and restore the two committed queue-mutation reply-loss cases in the existing worker suite.

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

The coverage loss is directly visible in the pinned diff and retained test callers; no target code or tests were executed during this read-only review.

Is this the best way to solve the issue?

Sharing fixtures and removing shared-owner replays is appropriate, but tests for different mutations cannot replace queue-specific recovery after a committed reply is lost.

Full review comments:

  • [P2] Restore the queue mutations' lost-worker-reply cases — src/cron/store/plugin-command-schedule.worker.test.ts:645-648
    Deleting the request/cancellation table removes the distinct case where cron.requestRuns or cron.cancelRequests commits and its worker exits before acknowledging success. The retained reply-loss tests target cron.mutateJobs and cron.markDeliveryStarted; ordinary recovery tests receive their queue acknowledgement first. Consequently, the remaining suite can pass without checking that a committed request launches exactly once or a committed cancellation stays cancelled after worker replacement. Restore these two cases or move equivalent assertions into the same production worker boundary, as required by the repository's distinct-contract retention policy. This confirms the existing discussion at test(plugins,cron,ui): remove low-value tests (batch d671) #185707 (comment).
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Cron queue reply-loss coverage changes intended behavior with a stated reason (7145e70: The prior consolidation carried these recovery checks into this suite and explicitly retained persistence boundaries. This is verified relocation history, not a confirmed original introduction. The current commit cites other mutation tests as replacements, but they exercise different operations.)
  • Memory Core migration fixtures keeps the original intent (414c250: Migration coverage protects legacy index import and recoverable sidecars; the consolidated tables retain vector failure, cache collision, archive, and retryability outcomes.)
  • OpenCode catalog fixtures keeps the original intent (beadb8c: The v2 repair preserves versioned CLI contracts; both payload generations remain exercised, with shared cursor and fanout contracts retained by their common owners.)
  • Automations model identity and lifecycle keeps the original intent (7e18441: The provider-identity repair requires qualified choices to survive selection and saving; the combined selected-agent flow still checks that beta/shared-model is submitted.)
  • Matrix publication and ACPX diagnostics keeps the original intent (fd2d6bb: Matrix setup must retire before publishing encryption configuration; direct writer assertions preserve that ordering, while the ACPX table retains redaction and UTF-16 checks.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test src/cron/store/plugin-command-schedule.worker.test.ts --maxWorkers=1
  • git diff --check
  • Require the repaired head's changed-test, test-type, lint, and openclaw/ci-gate checks; separately establish the cause of the QA smoke failures.

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 3b1bfb4 adds ui/src/pages/cron/cron-page.lifecycle.test.ts:87 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 3b1bfb491a54; files: ui/src/pages/cron/cron-page.lifecycle.test.ts)
  • Jason (Json): Raw commit ad40743 adds src/cron/store/plugin-command-schedule.worker.test.ts:67 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ad407430c464; files: src/cron/store/plugin-command-schedule.worker.test.ts)
  • Ayaan Zaidi: Raw commit beadb8c adds extensions/opencode/session-catalog.test.ts:600 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: beadb8c83a24; files: extensions/opencode/session-catalog.test.ts)

PR surface

Tests -975. Total -975 across 8 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 8 942 1917 -975
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 8 942 1917 -975

Review metrics

Metric Value Why it matters
Production versus test LOC Production +0/-0; tests +942/-1917 The reduction comes from fixture sharing and test consolidation, but the distinct recovery cases identified below must be retained.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is test maintenance with no production behavior change or demonstrated urgent user-facing regression.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rating scale

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

Workflow

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

Reviewed October 27, 2026, 5:45 AM ET / 09:45 UTC.

roboclaw-bot added a commit that referenced this pull request Nov 3, 2026
…age (#192003)

* refactor(tests): consolidate repeated fixtures without dropping coverage

Consolidate file-local setup and repeated case bodies while retaining caller,
security, lifecycle, migration, and evidence-integrity assertions.

Adapt reviewed portions of #185705, #185748, and #185707 with lost contracts
restored. Keep the shared budget and existing allocations unchanged.

Co-authored-by: galiniliev <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>

* test: prune documented Wiki mock isolation allowance

Regenerate the shrink-only mock-export baseline after the Wiki fixture consolidation added its explicit isolation rationale. Remove exactly the retired gateway-runtime entry; test-line budgets and allocations remain unchanged.

Co-authored-by: galiniliev <[email protected]>

---------

Co-authored-by: galiniliev <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 4, 2026
…age (openclaw#192003)

* refactor(tests): consolidate repeated fixtures without dropping coverage

Consolidate file-local setup and repeated case bodies while retaining caller,
security, lifecycle, migration, and evidence-integrity assertions.

Adapt reviewed portions of openclaw#185705, openclaw#185748, and openclaw#185707 with lost contracts
restored. Keep the shared budget and existing allocations unchanged.

Co-authored-by: galiniliev <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>

* test: prune documented Wiki mock isolation allowance

Regenerate the shrink-only mock-export baseline after the Wiki fixture consolidation added its explicit isolation rationale. Remove exactly the retired gateway-runtime entry; test-line budgets and allocations remain unchanged.

Co-authored-by: galiniliev <[email protected]>

---------

Co-authored-by: galiniliev <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>

This branch has not been deployed

No deployments
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: matrix Channel integration: matrix extensions: acpx extensions: memory-core Extension: memory-core extensions: opencode 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