Skip to content

test(core,plugins): remove low-value tests (batch d436) - #180365

Merged
steipete merged 37 commits into
mainfrom
tcr/land-d436-1792649557
Oct 22, 2026
Merged

steipete merged 37 commits into
mainfrom
tcr/land-d436-1792649557

Conversation

@steipete

@steipete steipete commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Removes redundant test setup and owner-covered replay checks in campaign batch d436, while retaining independent behavioral coverage.

User Impact

No intended production behavior changes, migrations, configuration changes, or user actions. This is test/support consolidation plus test-routing inventory maintenance. Runtime behavior is unchanged.

Why This Change Was Made

Replay the supplied campaign commits onto pinned main 22aecb4. Keep shared fixtures and the strongest owner-boundary assertions; merge compatible sibling suites without weakening assertions.

Replay decisions

  • Applied 29 of 30 supplied commits. Skipped b0e3f4dc33a7dc02388c23a6a1f5f29a6c561d98 in full: Claw application/schema consolidation conflicts with a substantially rewritten current-main application suite and coupled migrations.
  • Kept current main's entire src/acp/server.startup.test.ts; dropped its hunk from be363ad1834af74876247d2b2f97f4e0c09f56b5. The current lifecycle/proxy harness and newer cases remain intact.
  • Kept current main's extensions/facetime/tests/talk-driver.test.ts and talk-driver.consult.test.ts; dropped the coupled migration from e6fd532c977d7304a677d7e80b9f0db2c1aec38e and the talk-driver follow-up hunk from ed7e8e7da927c5c991be4cb15584bcdb9a92cf19. Independent helper/RPC changes retained.
  • Also kept current main’s src/gateway/control-ui-session-prs.test.ts in d253c0924dbe2780619ffc94e1fa21a21da1de7b; dropped the coupled retention-suite move and inventory removals from 3f17b33bcca416157d992b974c63915395da9259. Kept the ACP startup suite unchanged again in b64a8039cb3ef89528923e283d05999be9c522f9; resolved the unit-fast inventory by removing only the migrated persistent-bindings lifecycle entry and retaining main’s new manager.turn-results entry. Kept src/trajectory/runtime.test.ts and runtime-store-writer.test.ts plus their inventory entry intact; dropped the coupled runtime migration from eaba1f55eaaa3ffd11cf90bd1facee559e3f9e03. Kept main’s expanded SecretRef fallback authority cases by dropping the resolve-configured-secret-input-string.test.ts hunk from 0f8bc69a722efedde581c20d486e0943259733f2. Kept plugin-state-publication.test.ts, plugin-state-native-binding-facts.test.ts and the native-binding routing entry from main in 696047120dd524932571af531c6a2adac4a1e180. Dropped publication and prepared-query file hunks from 4305810f9f4df2e47b5207d8b2b50bf0050d78a2, and prepared-query hunks from 68446e711a530a10a8526a07bf57bdecfb2d9a80, retaining main’s newer publication and transaction/query tests. Kept main’s queue-notices support file in e14680cb7265cd33ac200ec73a5fea68322037b2 and ACP session-manager fixture in 75d39c3aca60625bc8f2c4caa5a3d6b25ee9354b. Added the missing shared createDispatchGate test helper required by the retained dispatch-scope consolidation; removed the unused worker-spy import after retaining main’s publication suite. Remaining changes replayed normally; no production seam was removed.

Evidence

  • CI-only operator instruction: no local Vitest, check-changed, tsgo, coverage, or Testbox. Hosted openclaw/ci-gate is the behavioral/typecheck proof.
  • Changed-file oxfmt, plain oxlint with .oxlintrc.json, and git diff --check passed.
  • Dependency install passed with task-local Node 26.12.1; host Node 26.12.0 was rejected by the current engine guard. No dependency/lockfile changes.
  • Independent autoreview runs concurrently with hosted CI.
  • The supplied shard reports explicitly say tests and coverage were not run under CI-only mode. No measured coverage totals or <=1% coverage-drop claim is available. Counts below are static, not executed cases.

Actual replay delta by shard

y0459 — Claws: test/support LOC 2350 → 2165 (-185); declarations 62 → 58 (-4)
  • src/claws/gateway-add-plan.test.ts
  • src/claws/packages.boundary.test-support.ts
  • src/claws/packages.capability-consent.test.ts
  • src/claws/packages.preflight-inspection.test.ts
  • src/claws/packages.runtime.test.ts
  • src/claws/packages.test.ts
  • src/claws/schema-conformance.test.ts

Coverage totals: not measured (source shard report: tests/coverage intentionally not run, CI-only).

y0460 — ACP: test/support LOC 1947 → 1704 (-243); declarations 51 → 48 (-3)
  • src/acp/approval-classifier.test.ts
  • src/acp/client.invocation.test.ts
  • src/acp/permission-relay.test.ts
  • src/acp/protocol-schema.test.ts
  • src/acp/translator.bridge-test-helpers.ts
  • src/acp/translator.commentary-producer.test.ts
  • src/acp/translator.disconnects.test.ts
  • src/acp/translator.event-ledger.test.ts
  • src/acp/translator.final-snapshots.test.ts
  • src/acp/translator.prompt-harness.test-support.ts
  • src/acp/translator.scenario.test-support.ts
  • src/acp/translator.session-setup.test.ts
  • src/acp/translator.stop-reason.test.ts
  • src/acp/translator.test-helpers.ts

Coverage totals: not measured (source shard report: tests/coverage intentionally not run, CI-only).

y0461 — FaceTime: test/support LOC 2622 → 2582 (-40); declarations 58 → 58 (0)
  • extensions/facetime/tests/helper-rpc.test.ts
  • extensions/facetime/tests/helper-wire.test-support.ts
  • extensions/facetime/tests/runtime-authority-boundary.test.ts
  • extensions/facetime/tests/runtime-carrier-aliases.test.ts
  • extensions/facetime/tests/runtime-persistence.test.ts
  • extensions/facetime/tests/runtime.test-support.ts
  • extensions/facetime/tests/runtime.test.ts
  • extensions/facetime/tests/setup.test.ts

Coverage totals: not measured (source shard report: tests/coverage intentionally not run, CI-only).

y0462 — CLI: test/support LOC 3721 → 3433 (-288); declarations 108 → 100 (-8)
  • src/cli/program/action-reparse.test.ts
  • src/cli/program/config-guard.test.ts
  • src/cli/program/error-output.test.ts
  • src/cli/program/preaction.test-helpers.ts
  • src/cli/program/preaction.test.ts
  • src/cli/program/register.agent.test.ts
  • src/cli/program/register.backup.offsite.test.ts
  • src/cli/program/register.backup.test.ts
  • src/cli/program/register.maintenance.test.ts
  • src/cli/program/register.migrate.test.ts
  • src/cli/program/register.onboard.test.ts
  • src/cli/program/register.setup.test.ts
  • src/cli/program/register.status-health-sessions.test.ts
  • src/cli/program/root-command-descriptions.test.ts
  • src/cli/program/routes.test.ts

Coverage totals: not measured (source shard report: tests/coverage intentionally not run, CI-only).

y0463 — Gateway UI: test/support LOC 2682 → 2635 (-47); declarations 63 → 60 (-3)
  • src/gateway/control-ui-session-prs-retention.test.ts
  • src/gateway/control-ui-session-prs-staleness.test.ts
  • src/gateway/control-ui-session-prs.test-support.ts
  • src/gateway/control-ui-session-task-prs.test.ts
  • src/gateway/control-ui.http.test.ts

Coverage totals: not measured (source shard report: tests/coverage intentionally not run, CI-only).

y0464 — Trajectory: test/support LOC 2994 → 2438 (-556); declarations 63 → 55 (-8)
  • src/trajectory/command-export.test.ts
  • src/trajectory/export.test-helpers.ts
  • src/trajectory/export.test.ts
  • src/trajectory/metadata.test.ts
  • src/trajectory/runtime-retention.sqlite.test.ts

Coverage totals: not measured (source shard report: tests/coverage intentionally not run, CI-only).

y0465 — Plugin state: test/support LOC 2556 → 2333 (-223); declarations 57 → 53 (-4)
  • src/plugin-state/plugin-state-fixtures.test-support.ts
  • src/plugin-state/plugin-state-operation.test.ts
  • src/plugin-state/plugin-state-store.retained.test.ts
  • src/plugin-state/plugin-state-store.retention.test.ts
  • src/plugin-state/plugin-state-store.test.ts
  • src/plugin-state/plugin-state-worker.test.ts

Coverage totals: not measured (source shard report: tests/coverage intentionally not run, CI-only).

y0466 — Gateway: test/support LOC 1366 → 1170 (-196); declarations 30 → 27 (-3)
  • src/gateway/link-understanding.product.test.ts
  • src/gateway/provider-auth-account-relogin.persistence.integration.test.ts
  • src/gateway/restart-trace.test.ts
  • src/gateway/startup-auth.test.ts
  • src/gateway/system-ca-warmup.test.ts
  • src/gateway/worktree-maintenance.test.ts

Coverage totals: not measured (source shard report: tests/coverage intentionally not run, CI-only).

y0467 — iMessage: test/support LOC 2894 → 2432 (-462); declarations 141 → 108 (-33)
  • extensions/imessage/src/monitor/catchup-bridge.test-support.ts
  • extensions/imessage/src/monitor/catchup.test-support.ts
  • extensions/imessage/src/monitor/coalesce.test-support.ts
  • extensions/imessage/src/monitor/conversation-repair.test-support.ts
  • extensions/imessage/src/monitor/deliver.test.ts
  • extensions/imessage/src/monitor/group-allowlist-warnings.test-support.ts
  • extensions/imessage/src/monitor/inbound-processing.context.test.ts
  • extensions/imessage/src/monitor/inbound-processing.systemPrompt.test-support.ts
  • extensions/imessage/src/monitor/inbound-processing.test.ts
  • extensions/imessage/src/monitor/poll-render.test-support.ts
  • extensions/imessage/src/monitor/recovery-cursor.test-support.ts
  • extensions/imessage/src/monitor/reflection-guard.test-support.ts
  • extensions/imessage/src/monitor/self-chat-cache.test-support.ts
  • extensions/imessage/src/monitor/self-chat-dedupe.test.ts

Coverage totals: not measured (source shard report: tests/coverage intentionally not run, CI-only).

y0468 — Auto-reply: test/support LOC 3767 → 3226 (-541); declarations 53 → 45 (-8)
  • src/auto-reply/reply/dispatch-from-config.pre-run-rejection.test.ts
  • src/auto-reply/reply/dispatch-from-config.question-custody.test.ts
  • src/auto-reply/reply/dispatch-from-config.reply-dispatch-scope.test.ts
  • src/auto-reply/reply/dispatch-from-config.reply-dispatch.test.ts
  • src/auto-reply/reply/dispatch-from-config.restart-tombstone.test.ts
  • src/auto-reply/reply/dispatch-from-config.secrets.test.ts
  • src/auto-reply/reply/dispatch-from-config.terminal-recovery.test.ts
  • src/auto-reply/reply/dispatch-from-config.test-support.ts
  • src/auto-reply/reply/dispatch-from-config.transcript.tool-authored.test.ts
  • src/auto-reply/reply/dispatch-from-config.turn-ledger.test.ts

Coverage totals: not measured (source shard report: tests/coverage intentionally not run, CI-only).

Production versus test/support LOC

Runtime production: +0/-0. Tests/support: +5078/-7859. CI inventories/baselines: +0/-9.

No changed paths match the repository CODEOWNERS rules.

Full numstat against pinned main
0	3	config/test-mock-exports-baseline.txt
19	131	extensions/facetime/tests/helper-rpc.test.ts
123	0	extensions/facetime/tests/helper-wire.test-support.ts
26	72	extensions/facetime/tests/runtime-authority-boundary.test.ts
0	103	extensions/facetime/tests/runtime-carrier-aliases.test.ts
35	38	extensions/facetime/tests/runtime-persistence.test.ts
18	2	extensions/facetime/tests/runtime.test-support.ts
86	0	extensions/facetime/tests/runtime.test.ts
2	3	extensions/facetime/tests/setup.test.ts
0	16	extensions/imessage/src/monitor/catchup-bridge.test-support.ts
77	151	extensions/imessage/src/monitor/catchup.test-support.ts
9	55	extensions/imessage/src/monitor/coalesce.test-support.ts
44	74	extensions/imessage/src/monitor/conversation-repair.test-support.ts
18	25	extensions/imessage/src/monitor/deliver.test.ts
10	30	extensions/imessage/src/monitor/group-allowlist-warnings.test-support.ts
1	12	extensions/imessage/src/monitor/inbound-processing.context.test.ts
74	114	extensions/imessage/src/monitor/inbound-processing.systemPrompt.test-support.ts
30	60	extensions/imessage/src/monitor/inbound-processing.test.ts
42	52	extensions/imessage/src/monitor/poll-render.test-support.ts
0	19	extensions/imessage/src/monitor/recovery-cursor.test-support.ts
38	83	extensions/imessage/src/monitor/reflection-guard.test-support.ts
24	62	extensions/imessage/src/monitor/self-chat-cache.test-support.ts
83	159	extensions/imessage/src/monitor/self-chat-dedupe.test.ts
0	3	scripts/lib/ci-proof-test-inventory.mts
50	65	src/acp/approval-classifier.test.ts
30	35	src/acp/client.invocation.test.ts
5	23	src/acp/permission-relay.test.ts
0	72	src/acp/protocol-schema.test.ts
6	11	src/acp/translator.bridge-test-helpers.ts
11	18	src/acp/translator.commentary-producer.test.ts
0	157	src/acp/translator.disconnects.test.ts
27	40	src/acp/translator.event-ledger.test.ts
7	3	src/acp/translator.final-snapshots.test.ts
4	64	src/acp/translator.prompt-harness.test-support.ts
15	4	src/acp/translator.scenario.test-support.ts
0	12	src/acp/translator.session-setup.test.ts
127	21	src/acp/translator.stop-reason.test.ts
2	2	src/acp/translator.test-helpers.ts
0	296	src/auto-reply/reply/dispatch-from-config.pre-run-rejection.test.ts
623	431	src/auto-reply/reply/dispatch-from-config.question-custody.test.ts
554	6	src/auto-reply/reply/dispatch-from-config.reply-dispatch-scope.test.ts
0	745	src/auto-reply/reply/dispatch-from-config.reply-dispatch.test.ts
0	225	src/auto-reply/reply/dispatch-from-config.restart-tombstone.test.ts
48	100	src/auto-reply/reply/dispatch-from-config.secrets.test.ts
242	43	src/auto-reply/reply/dispatch-from-config.terminal-recovery.test.ts
14	0	src/auto-reply/reply/dispatch-from-config.test-support.ts
0	103	src/auto-reply/reply/dispatch-from-config.transcript.tool-authored.test.ts
43	116	src/auto-reply/reply/dispatch-from-config.turn-ledger.test.ts
24	53	src/claws/gateway-add-plan.test.ts
53	0	src/claws/packages.boundary.test-support.ts
22	59	src/claws/packages.capability-consent.test.ts
9	36	src/claws/packages.preflight-inspection.test.ts
27	68	src/claws/packages.runtime.test.ts
74	167	src/claws/packages.test.ts
0	11	src/claws/schema-conformance.test.ts
34	47	src/cli/program/action-reparse.test.ts
44	64	src/cli/program/config-guard.test.ts
32	34	src/cli/program/error-output.test.ts
0	1	src/cli/program/preaction.test-helpers.ts
7	68	src/cli/program/preaction.test.ts
225	45	src/cli/program/register.agent.test.ts
59	78	src/cli/program/register.backup.offsite.test.ts
0	116	src/cli/program/register.backup.test.ts
32	51	src/cli/program/register.maintenance.test.ts
0	98	src/cli/program/register.migrate.test.ts
143	28	src/cli/program/register.onboard.test.ts
0	152	src/cli/program/register.setup.test.ts
2	4	src/cli/program/register.status-health-sessions.test.ts
57	132	src/cli/program/root-command-descriptions.test.ts
13	18	src/cli/program/routes.test.ts
11	38	src/gateway/control-ui-session-prs-retention.test.ts
20	31	src/gateway/control-ui-session-prs-staleness.test.ts
50	5	src/gateway/control-ui-session-prs.test-support.ts
48	63	src/gateway/control-ui-session-task-prs.test.ts
13	52	src/gateway/control-ui.http.test.ts
48	150	src/gateway/link-understanding.product.test.ts
12	19	src/gateway/provider-auth-account-relogin.persistence.integration.test.ts
86	113	src/gateway/restart-trace.test.ts
23	44	src/gateway/startup-auth.test.ts
25	62	src/gateway/system-ca-warmup.test.ts
14	16	src/gateway/worktree-maintenance.test.ts
29	1	src/plugin-state/plugin-state-fixtures.test-support.ts
254	290	src/plugin-state/plugin-state-operation.test.ts
74	141	src/plugin-state/plugin-state-store.retained.test.ts
0	220	src/plugin-state/plugin-state-store.retention.test.ts
274	120	src/plugin-state/plugin-state-store.test.ts
96	178	src/plugin-state/plugin-state-worker.test.ts
74	91	src/trajectory/command-export.test.ts
11	4	src/trajectory/export.test-helpers.ts
389	840	src/trajectory/export.test.ts
87	172	src/trajectory/metadata.test.ts
16	26	src/trajectory/runtime-retention.sqlite.test.ts
0	2	test/vitest/vitest.database-worker-core-paths.mjs
0	1	test/vitest/vitest.extension-database-workers-paths.mjs

Review follow-up

Independent review reported 13 findings. Accepted 11 by dropping the implicated reductions and restoring pinned-main versions: FaceTime talk-driver consult fixture; iMessage outbound sanitizer and durable ingress; ACP binding lifecycle and its target suite; Gateway remote credential precedence, proxy attribution, boot echo cleanup, disabled models endpoint, origin acceptance, and ticketed-media HEAD/range; ordinary plugin-blob eviction. Restored the ACP lifecycle test-routing entry. These restorations supersede the earlier per-commit decisions for those paths.

Rejected two duplicate-coverage findings with direct retained evidence:

  • Cross-chat catchup ordering: extensions/imessage/src/monitor/catchup-startup.test.ts, "imessagePlugin.gateway.startAccount ... across persisted starts", checks ordered admitted GUIDs for interleaved chats over successive real startup passes.
  • Atomic consume / native-worker visibility: src/plugin-state/plugin-state-publication.test.ts, "installs whole worker receipts before atomic operation replies and write-time expiry", asserts concurrent consume returns [1, undefined]; "preserves native deletions before delayed worker receipt installation" exercises native/worker writes and visibility. src/plugin-state/plugin-state-worker.test.ts also retains "bounds listing bytes without losing sync or worker entries".

A focused follow-up review covers the restoration commit. CI-only policy remains in force.

CI repair

Hosted run 39733925142 exposed replay mismatches: moved FaceTime alias cases referenced an absent namespace; compacted mocks/tuple defaults disagreed with current types; plugin-state runtime consolidation imported an extension into a core type graph and passed an unsupported environment option. Fixed the fixture references and precise mock/tuple types; dropped the plugin-state runtime-file reduction, restoring the main-version boundary and option probe. Dropped the sign-in integration-file cleanup after its startup failed before the changed fixture code; that file now matches pinned main and remains owned by its existing suite. Local oxfmt, plain oxlint, and diff checks pass; fresh-head hosted CI is required. No CI retry or exception is being claimed as proof.

Late results from that same run also exposed a changed ACP mock return type, an intentionally partial Git-operation switch missing an explicit default, a return-only generic JSON reader, and a fake-clock echo-cache fixture regression. Reused the ACP connection’s existing test mock, made the partial switch explicit, removed the generic reader, and restored the echo-cache fixture file to pinned main. All fixes are test-only; fresh-head CI must validate them.

Run 39734955867 narrowed failures to fixture-only lint/types: the exposed ACP mock needed its asynchronous SDK signature, reusable authority callbacks needed lexical binding, and a recovery marker had been spread from an unknown-valued mock field. Corrected the owner mock type, retained explicit text-content assertions in its callers, used a lexical authority callback, and centralized the known recovery-marker fixture. No assertions were weakened. A fresh-head run remains the gate.

Run 39735792023 passed the repaired type and lint lanes. Its mock-export ratchet identified four intentionally isolated factories missing per-call explanations; added narrowly scoped mock-isolation comments for synthetic config, onboarding state, wizard dispatch, and plugin metadata. The remaining planner-owner failure is also present in scheduled main job https://github.com/openclaw/openclaw/actions/runs/39736303636/job/119682867483: test/scripts/ci-changed-node-test-plan.source-owners.test.ts, operator-authority owner expansion unexpectedly includes commands-plugin.scheduled-turns.test.ts. Neither that test nor the planner algorithm changed here; the inventory edits only remove unrelated retired suite paths. This records attribution, not a waived gate.

Final mock-export ratchet cleanup: removed exactly the three obsolete trajectory/metadata entries printed by job https://github.com/openclaw/openclaw/actions/runs/39736861951/job/119685496379. The os-summary and plugin-registry mocks were removed; the plugin-metadata snapshot now has its source-verified isolation explanation. This is shrink-only baseline maintenance, not a new suppression.

@steipete
steipete enabled auto-merge (squash) October 22, 2026 06:36
@steipete
steipete disabled auto-merge October 22, 2026 06:43
@steipete
steipete enabled auto-merge (squash) October 22, 2026 06:44

@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: c2fdee5c81

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

expect(ledger.mayHaveDelivered()).toBe(true);
expect(ledger.hasObservedDelivery()).toBe(false);
expect(ledger.resolveTerminalDelivery()).toBe("pending");
});

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.

P2 Badge Keep the stalled-transport timeout regression

When a transport's delivery promise never settles, this deletion removes the only assertion that createReplyTurnLedger().settleQueued() reaches its 30-second timed-out failsafe; the remaining abort cases exercise a different exit path, and a repository-wide search found no other timeout test for this ledger. Breaking or removing the raceWithTimeout integration could therefore wedge turn finalization without failing the suite, so retain this owner-boundary regression.

AGENTS.md reference: AGENTS.md:L79-L81

Useful? React with 👍 / 👎.

@steipete
steipete disabled auto-merge October 22, 2026 06:53
@steipete
steipete enabled auto-merge (squash) October 22, 2026 06:54
@steipete
steipete disabled auto-merge October 22, 2026 07:06
@steipete
steipete enabled auto-merge (squash) October 22, 2026 07:07
@steipete

Copy link
Copy Markdown
Contributor Author

The remaining planner-test failure is reproduced on scheduled main CI:

The failing test/support, operator-authority helper, scheduled-turns source/test, and planner algorithm are unchanged by this PR. The inventory diff only removes unrelated retired CLI and plugin-state suite paths. A fresh main fetch shows no intervening change to the failing test.

This documents the authorized inherited-failure exception only. The remaining PostgreSQL conformance jobs must still complete before landing; no other failed or pending job is waived.

@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: 8a59b52241

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


it("drops fail-closed when exact-GUID history projections conflict", async () => {
await expectRecoveryDrop(
it.each([

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.

P2 Badge Restore the from-me recovery case to this table

When an anchorless notification matches an authoritative history row with is_from_me: true, repairIMessageConversationAnchor must return null to prevent OpenClaw's own outgoing message from re-entering the inbound pipeline. This consolidation retains the conflict, no-match, and incomplete-row cases but drops the sole assertion for the from-me branch; a repository-wide search found no other test exercising that recovery condition. Add the deleted case to this table so the fail-closed loop-prevention contract remains protected.

AGENTS.md reference: AGENTS.md:L79-L81

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

clawsweeper Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR consolidates test fixtures and suites, removes overlapping cases, and updates test-routing inventories.

Example: A queued reply transport never resolves.

  • Before: A regression test verifies that ledger settlement returns "timed-out" after 30 seconds.
  • After: That check is deleted; the remaining cancellation tests do not exercise deadline expiry.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful test consolidation with harness-based validation, but one unique deadline regression must be retained.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored test-only cleanup does not change shipped runtime behavior; hosted checks support validation, and no new live demonstration is required.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Repeated fixtures and overlapping test cases increase maintenance cost.
Reason: The maintainer-authored direction is approved, and the patch removes repetition without production expansion.

Merge readiness

⛔ Needs changes before merge - 2 items remain

Keep this maintainer-authored cleanup open: the consolidation is useful, but it removes the unique stalled-transport timeout regression.

Priority: P3
Reviewed head: 8a59b52241939c36035272ec4bdd480bc36c695a

Before merge

  • Restore the stalled-transport deadline regression (P2) - Deleting the never-settling transport case removes the only assertion that createReplyTurnLedger().settleQueued() returns "timed-out" after 30 seconds without cancellation. The retained abort cases and other ledger consumers do not exercise this exit path, so removing or breaking the deadline integration would pass those tests while leaving finalization waiting indefinitely. Restore the fake-clock case in this suite; it protects the distinct failure documented in fix(auto-reply): decide no-visible-reply fallback from settled delivery via a turn ledger #114799 and required by the repository's test-retention guidance.
  • Explain or restore the original intent of Turn-ledger deadline regression - e6e0f52: Bound settlement when a transport never resolves, independently of caller cancellation.

Findings

  • [P2] Restore the stalled-transport deadline regression — src/auto-reply/reply/dispatch-from-config.turn-ledger.test.ts:53

Provenance

  • Turn-ledger deadline regression changes intended behavior without addressing why it exists (e6e0f52: Bound settlement when a transport never resolves, independently of caller cancellation.)
Agent review details

How this fits together

These suites exercise core and plugin behavior through shared fixtures; CI inventories select their execution lanes, while production runtime behavior remains unchanged.

flowchart LR
  A[Test scenarios] --> B[Shared fixtures]
  B --> C[Production owners]
  C --> D[Behavior assertions]
  E[CI test inventories] --> A
Loading

Technical review

Best possible solution:

Retain the consolidation while restoring the deadline regression in the existing turn-ledger suite.

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

Source inspection establishes the coverage deletion and the surviving deadline branch; no target code or tests were executed during this read-only review.

Is this the best way to solve the issue?

Consolidating fixtures and overlapping suites is appropriate, provided distinct owner-boundary regressions remain protected.

Full review comments:

  • [P2] Restore the stalled-transport deadline regression — src/auto-reply/reply/dispatch-from-config.turn-ledger.test.ts:53
    Deleting the never-settling transport case removes the only assertion that createReplyTurnLedger().settleQueued() returns "timed-out" after 30 seconds without cancellation. The retained abort cases and other ledger consumers do not exercise this exit path, so removing or breaking the deadline integration would pass those tests while leaving finalization waiting indefinitely. Restore the fake-clock case in this suite; it protects the distinct failure documented in fix(auto-reply): decide no-visible-reply fallback from settled delivery via a turn ledger #114799 and required by the repository's test-retention guidance.
    Confidence: 0.99
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • Hosted CI only: pnpm test src/auto-reply/reply/dispatch-from-config.turn-ledger.test.ts --maxWorkers=1
  • openclaw/ci-gate on the repaired head

What I checked:

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Production versus test/support LOC Production +0/-0; tests/support +5,055/-7,836 Shared fixtures and suite moves reduce test/support code by 2,781 lines without adding runtime machinery.

Labels

Label changes:

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

Label justifications:

  • P3: This is test-maintenance cleanup with no introduced production behavior change.
  • 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 22, 2026, 3:26 AM ET / 07:26 UTC.

@steipete
steipete merged commit 776c8da into main Oct 22, 2026
152 of 157 checks passed
@steipete
steipete deleted the tcr/land-d436-1792649557 branch October 22, 2026 07:31
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 23, 2026
)

* test(claws): deslop y0459 tests

* test(acp): deslop y0460 tests

* test(facetime): restore runtime fixture helpers

* test(facetime): deslop y0461 tests

* test(facetime): consolidate y0461 family fixtures

* test(facetime): simplify y0461 polling and readiness fixtures

* test(cli): deslop y0462 tests

* test(cli): consolidate y0462 registration suites

* test(cli): deduplicate recovery proof and compact y0462 fixtures

* test(gateway): deslop y0463 tests

* test(gateway): consolidate y0463 family fixtures

* test(acp): remove unused y0460 schema replay

* test(trajectory): deslop y0464 tests

* test(trajectory): consolidate y0464 runtime family

* test(trajectory): compact y0464 export and retention fixtures

* test(gateway): deslop y0466 tests

* test(gateway): remove duplicated y0466 owner proofs

* test(gateway): reuse y0466 integration fixtures

* test(plugin-state): restore publication worker spy import

* test(plugin-state): deslop y0465 tests

* test(plugin-state): consolidate y0465 family coverage

* test(plugin-state): share remaining y0465 fixtures

* test(imessage): deslop y0467 tests

* test(imessage): consolidate y0467 family fixtures and duplicate proof

* test(imessage): restore reflection table label expectation

* test(imessage): remove y0467 owner-covered replay checks

* test(auto-reply): deslop y0468 tests

* test(auto-reply): consolidate y0468 owner coverage

* test(auto-reply): merge y0468 dispatch fixtures

* test: repair replayed dispatch helper and stale worker import

* test: retain independent boundary coverage after review

* test: fix replayed fixture types and preserve core boundary

* test: repair shared fixture contracts reported by CI

* test(acp): use existing mock accessor convention

* test: align async mocks and recovery fixture types

* test: document isolated mocks at each boundary

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

Labels

channel: imessage Channel integration: imessage cli CLI command changes gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. plugin: facetime FaceTime plugin rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts 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