Skip to content

test(core,ui): remove low-value tests (batch d175) - #174351

Merged
steipete merged 34 commits into
mainfrom
tcr/land-d175-1792161796
Oct 16, 2026
Merged

steipete merged 34 commits into
mainfrom
tcr/land-d175-1792161796

Conversation

@steipete

@steipete steipete commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Batch d175 reduces repeated fixtures, redundant assertions, and implementation-shaped scaffolding across twelve previously audited shards. Distinct authority, recovery, security, lifecycle, and ordering scenarios are retained. This is test maintenance, not a product behavior change.

Evidence

Current-main diff: test/support +13542/-19421 LOC (net -5879); production +0/-0 LOC.

Local validation follows the operator's CI-only rule: plain oxfmt, plain oxlint, and git diff --check only. No local Vitest, check-changed, typecheck, or Testbox execution. Hosted openclaw/ci-gate is the runtime and typecheck gate. Independent autoreview runs during CI.

Coverage totals were not measured in these source shards under the same CI-only rule; no measured coverage-drop claim is made. The source reports below provide static declarations/cases and reduction totals, not runtime coverage. Per-file 25% targets were generally not reached because distinct proof was retained.

Replay

All 30 listed source commits applied in order. Conflict resolution in test/scripts/pr-worktree-provision-error.test.ts: preserved current-main SQLite provenance, busy/lifecycle classification, cyclic-cause, hostile-property, and two-row ordinary-error coverage. Kept the reason-capable storage helper because new main cases use it. Retained equivalent held/aborted table consolidation and mock factoring; dropped the obsolete singleton ordinary-error collapse and reason-helper narrowing.

Shard details

x7176

Replayed diff: +2529/-3235 test/support LOC (net -706); lexical test declarations 40 → 39. Expanded cases are documented in the source report below; lexical counts do not expand tables.

Changed files after replay:

  • ui/src/e2e/chat-flow-fixtures.test-support.ts
  • ui/src/e2e/chat-flow.active-run-follow-ups.e2e.test.ts
  • ui/src/e2e/chat-flow.messaging.e2e.test.ts
  • ui/src/e2e/chat-flow.navigation-presentation.e2e.test.ts
  • ui/src/e2e/chat-flow.streaming.e2e.test.ts

Source shard report (pre-replay totals, not fresh coverage):

Committed x7176 as 56434e3062a3b516bda85e899b7e7f995bbb6fde. Clean worktree; not pushed.

File LOC before → after Reduction
active-run-follow-ups 1,014 → 942 7.1%
messaging 1,005 → 853 15.1%
streaming 940 → 819 12.9%
navigation-presentation 919 → 817 11.1%
Total 3,878 → 3,431 447 lines / 11.5%

All 40 declarations / 46 expanded cases remain; none deleted or folded. Consolidated fixture data, repeated ordering/footer assertions, and cleanup already owned by the suite’s awaited afterEach. Distinct reconnect, steering, identity, geometry, and mobile-input behavior remains covered by its original cases.

Plain oxlint exited 0; formatting and git diff --check passed. Tests, coverage, and check-changed were not run under CI-only instructions. No production/shared-support files changed; no bug or flake fixes.

The 25% per-file target was not met. Coordinator review and hosted CI remain pending.

x7178

Replayed diff: +721/-1211 test/support LOC (net -490); lexical test declarations 34 → 31. Expanded cases are documented in the source report below; lexical counts do not expand tables.

Changed files after replay:

  • test/scripts/pr-worktree-evidence.test.ts
  • test/scripts/pr-worktree-provision-error.test.ts
  • test/scripts/pr-wrappers.test.ts

Source shard report (pre-replay totals, not fresh coverage):

Committed shard x7178 as 8ed751ace6f. Worktree is clean; nothing pushed.

File LOC before → after
pr-worktree-evidence.test.ts 530 → 517
pr-worktree-provision.test.ts 446 → 439
pr-worktree-provision.test-support.ts 279 → 279
pr-worktree-provision-error.test.ts 164 → 164
pr-wrappers.test.ts 2,360 → 2,187
Total 3,779 → 3,586 (−5.1%)

Factored repeated process, repository, and hook setup; removed unreachable fixture branches. All existing scenarios remain; supplied counter unchanged at 40 declarations / 62 expanded cases. No production changes or bug fixes.

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

25% target not reached. Kept distinct trust/recovery assertions and the deadline helper used by the out-of-shard interruption suite. Coordinator review and hosted CI remain pending.

x7183

Replayed diff: +806/-1023 test/support LOC (net -217); lexical test declarations 49 → 48. Expanded cases are documented in the source report below; lexical counts do not expand tables.

Changed files after replay:

  • src/transcripts/auto-start-retry.test.ts
  • src/transcripts/capture-append-drain.test.ts
  • src/transcripts/capture-stop.test.ts
  • src/transcripts/library.query-budget.test.ts
  • src/transcripts/library.test.ts
  • src/transcripts/live-summary.test.ts

Source shard report (pre-replay totals, not fresh coverage):

Committed 05eb6b26c0e — shard x7183. Worktree clean; nothing pushed.

File Lines before → after
auto-start-retry.test.ts 356 → 356
capture-append-drain.test.ts 365 → 354
capture-stop.test.ts 491 → 491
library.test.ts 626 → 568
library.query-budget.test.ts 560 → 542
live-summary.test.ts 504 → 501
status.producer.test.ts 918 → 878
Total 3,820 → 3,690 (−3.4%)

Declarations remain 65 → 65; expanded cases 96 → 96. No cases deleted or folded. Compacted repeated library calls, export decoding, summary setup, diagnostics, and settlement tracking. All distinct assertions and lifecycle scenarios remain.

The 25%-per-file target was not met. Retry and stop suites were already tight; further cuts would obscure interleavings or remove distinct proof.

Formatting, plain oxlint, and diff checks passed. Tests and coverage were not run under CI-only mode. No production/support changes or bug fixes. Coordinator decision: accept this smaller preservation-first reduction.

x7181

Replayed diff: +760/-999 test/support LOC (net -239); lexical test declarations 41 → 41. Expanded cases are documented in the source report below; lexical counts do not expand tables.

Changed files after replay:

  • src/gateway/worker-environments/store-node-enrollment.test.ts
  • src/gateway/worker-environments/store-projection.test.ts
  • src/gateway/worker-environments/store-recovery.worker.test.ts
  • src/gateway/worker-environments/store-retention.test.ts
  • src/gateway/worker-environments/store-runtime-refresh.test.ts
  • src/gateway/worker-environments/store-worker.test.ts
  • src/gateway/worker-environments/store.test-support.ts
  • src/gateway/worker-environments/transcript-commit.delivery-mirror.test.ts
  • src/gateway/worker-environments/transcript-commit.fixture.test-support.ts

Source shard report (pre-replay totals, not fresh coverage):

Committed shard x7181 as 457c295f734. Worktree clean; no push.

Net LOC: 3,836 → 3,576 (−260, 6.8%), including the new shared fixture. The 25% target was not reached; further cuts risked obscuring distinct authority, recovery, and ordering checks.

File LOC before → after
store-node-enrollment.test.ts 533 → 499
store-projection.test.ts 402 → 383
store-recovery.worker.test.ts 292 → 286
store-retention.test.ts 221 → 201
store-runtime-refresh.test.ts 290 → 279
store-worker.test.ts 805 → 768
transcript-commit.test.ts 1,012 → 861
transcript-commit.delivery-mirror.test.ts 281 → 225

Declarations 53 → 53; expanded cases 73 → 73. No cases deleted or folded. Consolidated repeated setup, message literals, consumption helpers, and assertion blocks. Added only transcript-commit.fixture.test-support.ts (74 lines), shared exclusively by the two transcript files. No production changes or bug/flake fixes.

Plain oxlint exited 0; formatting and git diff --check passed. Tests, coverage, and check-changed were not run under CI-only mode. Hosted CI validation remains pending.

x7182

Replayed diff: +1761/-2418 test/support LOC (net -657); lexical test declarations 88 → 78. Expanded cases are documented in the source report below; lexical counts do not expand tables.

Changed files after replay:

  • src/plugins/official-external-plugin-catalog-envelope.test.ts
  • src/plugins/one-shot-diagnostics.test.ts
  • src/plugins/openai-compatible-embedding-provider.integration.test.ts
  • src/plugins/openai-compatible-embedding-provider.test.ts
  • src/plugins/path-safety.test.ts
  • src/plugins/payload-verification.test.ts
  • src/plugins/plugin-cache.test.ts

Source shard report (pre-replay totals, not fresh coverage):

Committed x7182 as e17aac224cc. Worktree clean; nothing pushed.

Test LOC: 3,842 → 3,536, down 306 (8.0%). The 25%-per-file target was not met.

File Lines before → after
official-external-plugin-catalog-envelope.test.ts 252 → 209
one-shot-diagnostics.resources.test.ts 425 → 384
one-shot-diagnostics.test.ts 260 → 241
openai-compatible-embedding-provider.test.ts 670 → 597
openai-compatible-embedding-provider.integration.test.ts 568 → 555
path-safety.test.ts 243 → 235
payload-verification.test.ts 614 → 548
plugin-cache.test.ts 810 → 767

Declarations: 93 → 90. Statically counted expanded cases: 150 → 150. No cases deleted; six cases share three tables.

Consolidated repeated server lifecycle code, package fixtures, registry setup, and precise assertions. Retained all security, credential-ownership, and cleanup-ordering scenarios. No production/support changes or bug fixes.

Plain oxlint exited 0; formatting and diff checks passed. Tests, coverage, and check-changed were not run under CI-only instructions. Coordinator review and hosted CI remain pending.

x7184

Replayed diff: +883/-1368 test/support LOC (net -485); lexical test declarations 78 → 73. Expanded cases are documented in the source report below; lexical counts do not expand tables.

Changed files after replay:

  • src/meeting-bot/browser-audio-capture-source.test.ts
  • src/meeting-bot/browser-controller.test.ts
  • src/meeting-bot/browser-session-control.test.ts
  • src/meeting-bot/chrome-transport.test.ts
  • src/meeting-bot/node-host.audio.test.ts
  • src/meeting-bot/participation-browser.test.ts
  • src/meeting-bot/participation.test.ts

Source shard report (pre-replay totals, not fresh coverage):

Committed x7184 as 458a2835b74. Clean worktree; not pushed.

Test file Lines before → after Reduction
browser-audio-capture-source 294 → 280 4.8%
browser-controller 205 → 161 21.5%
browser-session-control 206 → 159 22.8%
chrome-transport 559 → 528 5.5%
node-host.audio 713 → 587 17.7%
participation 886 → 809 8.7%
participation-browser 292 → 283 3.1%
realtime-engine 653 → 486 25.6%
Total 3,808 → 3,293 13.5%

Consolidated repeated fixtures, payloads, assertions, and cleanup. All 132 expanded cases remain by static inspection; declarations fell 88 → 87 through one two-row table. No cases or distinct assertions were deleted. The counter reports 120 expanded cases because it undercounts Chrome’s computed tables.

Plain oxlint exited 0; formatting and diff-check passed. Tests, coverage, builds, and Testbox were not run under CI-only mode. No production/support files changed; no bug fixes.

The 25%-per-file target was missed in seven files. Further reductions were held to preserve distinct authority, recovery, and lifecycle-interleaving proof. Hosted CI remains pending.

x7188

Replayed diff: +1363/-2318 test/support LOC (net -955); lexical test declarations 69 → 67. Expanded cases are documented in the source report below; lexical counts do not expand tables.

Changed files after replay:

  • src/auto-reply/reply/commands-session-lifecycle.test.ts
  • src/auto-reply/reply/commands-session-params.test-support.ts
  • src/auto-reply/reply/commands-session-restart.test.ts
  • src/auto-reply/reply/commands-session-store.test.ts
  • src/auto-reply/reply/commands-session-usage.test.ts
  • src/auto-reply/reply/commands-status-subagents.test.ts
  • src/auto-reply/reply/commands-status.test.ts
  • src/auto-reply/reply/commands-stop-target.test.ts
  • src/auto-reply/reply/commands-subagents.test.ts

Source shard report (pre-replay totals, not fresh coverage):

Committed x7188 as 8305891e79f114d457ca6b5d8ac2b5cb628b0dcd. Worktree is clean; nothing pushed.

Test LOC: 3,864 → 3,541, down 323 lines (8.4%).

File Before → after
commands-session-lifecycle 636 → 591
commands-session-restart 362 → 347
commands-session-store 357 → 301
commands-session-usage 400 → 367
commands-status 671 → 591
commands-status-subagents 272 → 233
commands-stop-target 335 → 322
commands-subagents 831 → 789

All 69 declarations / 92 statically expanded cases remain. Removed repeated fixtures, argument inspection, event-emission scaffolding, singleton-table machinery, and unused scenario branches. No cases were deleted or folded; no production or external support files changed.

Formatting, git diff --check, and plain oxlint passed. Tests, coverage, and check-changed were not run, per CI-only instructions. No bug fixes.

Coordinator decision: this falls below the 25% target. Remaining reductions were not sufficiently clear-cut to justify risking distinct behavior; hosted CI proof remains pending.

x7185

Replayed diff: +1084/-1440 test/support LOC (net -356); lexical test declarations 21 → 20. Expanded cases are documented in the source report below; lexical counts do not expand tables.

Changed files after replay:

  • extensions/codex/src/app-server/run-attempt.steering.test.ts
  • extensions/codex/src/app-server/run-attempt.turn-watches.test.ts

Source shard report (pre-replay totals, not fresh coverage):

Committed shard x7185 as 38bf1006000. Worktree clean; nothing pushed.

File suffix Lines before → after Reduction
native-hook-relay-retention 886 → 852 3.8%
steering 817 → 649 20.6%
turn-watches 793 → 751 5.3%
settlement 688 → 637 7.4%
steering-media 685 → 677 1.2%
Total 3,869 → 3,566 7.8%

Declarations remain 37 → 37; expanded cases 46 → 46. Consolidated protocol fixtures, registration lookups, deferred gates, and repeated assertions. Removed unreachable steering-table alternatives; both retained rows exercise unfinished-answer behavior.

The 25%-per-file target was not reached. Distinct authority, cancellation, persistence, and ordering cases were retained. No production or shared-support files changed; no bug fixes.

Plain oxlint exited 0; formatting and git diff --check passed. Tests, coverage, and typechecks were not run under CI-only instructions. Coordinator review and hosted CI remain pending.

x7177

Replayed diff: +661/-1129 test/support LOC (net -468); lexical test declarations 64 → 56. Expanded cases are documented in the source report below; lexical counts do not expand tables.

Changed files after replay:

  • extensions/slack/src/outbound-payload.test.ts
  • extensions/slack/src/probe.transport.test.ts
  • extensions/slack/src/progress-blocks.card.test.ts
  • extensions/slack/src/question-finalization.test.ts
  • extensions/slack/src/send.enterprise.test.ts
  • extensions/slack/src/send.reconcile.test.ts
  • extensions/slack/src/send.upload.test.ts

Source shard report (pre-replay totals, not fresh coverage):

Committed shard x7177 as 76586d66460. Not pushed; worktree clean.

LOC: 3,102 → 2,794, down 308 (9.9%). The 25%-per-file target was not met; this is a partial reduction.

File Lines before → after
outbound-payload.test.ts 442 → 370
probe.transport.test.ts 273 → 244
progress-blocks.card.test.ts 304 → 288
question-finalization.test.ts 444 → 355
reply-blocks.test.ts 399 → 334
send.upload.test.ts 592 → 562
send.reconcile.test.ts 364 → 357
send.enterprise.test.ts 284 → 284

Static counts: declarations 65 → 64 (−1.5%); expanded cases 79 → 78 (−1.3%). No cases folded.

Factored repeated payloads, controls, upload-failure setup, and assertions. Removed one duplicate question-delivery case: removes action blocks and appends terminal context retains action-ID selection, while carries the real WebClient question-card identity through upload and chunk progress retains upload/chunk/card identity proof. Distinct deadline, SSRF, signature, and ordering cases remain; Enterprise was left unchanged.

Plain oxlint exited 0; formatting and diff checks passed. Tests, coverage, and check-changed were not run under CI-only mode. No production/support changes or bug/flake fixes. Coordinator review and hosted CI remain pending, including acceptance of the target shortfall.

x7180

Replayed diff: +1553/-1949 test/support LOC (net -396); lexical test declarations 58 → 55. Expanded cases are documented in the source report below; lexical counts do not expand tables.

Changed files after replay:

  • src/gateway/server-methods/update-unexpected-error.test.ts
  • src/gateway/server-methods/usage.cost-checkpoint-memo.integration.test.ts
  • src/gateway/server-methods/usage.sessions-usage-cache.test.ts
  • src/gateway/server-methods/usage.sessions-usage-owner-attribution.integration.test.ts
  • src/gateway/server-methods/usage.sessions-usage.test.ts
  • src/gateway/server-methods/usage.status-cache.test.ts
  • src/gateway/server-methods/usage.test-support.ts
  • src/gateway/server-methods/usage.test.ts

Source shard report (pre-replay totals, not fresh coverage):

Committed x7180 as 9b211a449aaf3fcbf414a580acc0ecae71576ceb. Worktree clean; not pushed.

File LOC before → after
update-unexpected-error 357 → 325
usage.sessions-usage 1,020 → 961
usage.sessions-usage-owner-attribution 839 → 813
usage.sessions-usage-cache 563 → 524
usage 320 → 303
usage.sessions-usage-context-lifecycle 314 → 314
usage.status-cache 261 → 246
usage.cost-checkpoint-memo 201 → 201
Total 3,875 → 3,687 (−4.9%)

Declarations: 59 → 58. Expanded cases: 87 → 87; none deleted. Consolidated repeated fixtures/request plumbing and tabled the two skipped-date cases, retaining both timezone branches and their assertions.

The 25% target was not reached. Lifecycle/revocation, physical-owner attribution, redaction, and checkpoint-decoding scenarios were retained; the two unchanged files were already tight.

Formatting, git diff --check, and plain oxlint passed (exit 0). Tests, coverage, and check-changed were not run, per CI-only mode. No production or test-support files changed; no bug/flake fixes. Hosted CI remains the runtime gate.

x7186

Replayed diff: +1156/-1904 test/support LOC (net -748); lexical test declarations 69 → 63. Expanded cases are documented in the source report below; lexical counts do not expand tables.

Changed files after replay:

  • src/commands/status-overview-rows.test.ts
  • src/commands/status-runtime-shared.test.ts
  • src/commands/system-agent-with-inference.test.ts
  • src/commands/triage-prompt.test.ts
  • src/commands/triage-recovery.test.ts
  • src/commands/triage-run.test.ts
  • src/commands/triage-target.test.ts

Source shard report (pre-replay totals, not fresh coverage):

Committed shard x7186 as a0053f07b19703ce773250eb802223a1a60c2555. Worktree clean; nothing pushed.

File LOC before → after Reduction
status-overview-rows.test.ts 263 → 242 8.0%
status-runtime-shared.test.ts 505 → 407 19.4%
system-agent-with-inference.test.ts 293 → 210 28.3%
triage.test.ts 539 → 519 3.7%
triage-prompt.test.ts 215 → 188 12.6%
triage-recovery.test.ts 637 → 556 12.7%
triage-run.test.ts 768 → 720 6.3%
triage-target.test.ts 646 → 605 6.3%
Total 3,866 → 3,447 10.8%

Declarations 79 → 79; statically counted expanded cases 128 → 128. No cases deleted or folded. Consolidated fixtures, direct inference mock setup, and repeated assertions; removed unreachable alternatives from singleton tables. All reachable assertions remain.

The per-file 25% target was missed except for inference. Remaining triage code largely protects distinct consent, cancellation, authority, redaction, installation-target, child-process, and cleanup behavior.

Formatting, plain oxlint (exit 0), and diff-check passed. Tests, coverage, and check-changed were not run under CI-only mode. No production/support changes or bug fixes. Coordinator follow-up: review the target shortfall and run affected tests in hosted CI.

x7187

Replayed diff: +265/-427 test/support LOC (net -162); lexical test declarations 64 → 64. Expanded cases are documented in the source report below; lexical counts do not expand tables.

Changed files after replay:

  • src/agents/harness/gateway-question-dispatch.test.ts
  • src/agents/harness/host-capability.annotation.test.ts
  • src/agents/harness/host-capability.node-authority.test.ts
  • src/agents/harness/host-capability.reply-media.test.ts
  • src/agents/harness/host-capability.shard.test-support.ts
  • src/agents/harness/host-capability.test.ts
  • src/agents/harness/host-capability.workspace-readiness.test.ts

Source shard report (pre-replay totals, not fresh coverage):

x7187 committed as 217baf7c5f101355895fdb0917fe510632de0c68. Clean worktree; not pushed.

File Lines before → after
gateway-question-dispatch.test.ts 716 → 675
host-capability.test.ts 958 → 886
host-capability.annotation.test.ts 748 → 744
host-capability.workspace-readiness.test.ts 446 → 373
host-capability.node-authority.test.ts 269 → 232
host-capability.source-lifetime.test.ts 254 → 254
host-capability.reply-media.test.ts 252 → 245
host-capability.delegation.test.ts 237 → 237
New shard-only test-support 0 → 72
Total 3,880 → 3,718 (−4.2%)

Declarations remain 71 → 71; statically expanded cases 118 → 118. No cases deleted or folded. Consolidated admission/tool fixtures, workspace-wait setup, question-result assertions, and media cleanup. No production changes or bug/flake fixes.

Formatting, plain oxlint (exit 0), and git diff --check passed. Tests, coverage, and check-changed were not run, per CI-only instructions.

The 25%-per-file target was not met. Distinct authority, lifecycle, transcript, and media assertions remain intact; source-lifetime and delegation were left unchanged. Hosted CI validation remains pending.

Transcript conflict: kept current-main reorder/title table and identity-based assertions in status.producer.test.ts instead of the old title-only/positional rewrite. Other disjoint fixture reductions remain. The later PR-diagnostics deindent/helper-only rewrite was dropped for that file to preserve the reviewed resolution and all newer cases.

Worker-enrollment conflict: retained both newer closed-invocation/fresh-manager first-device-redemption tests, used the shared beforeEach provisioning setup, and kept the incoming held-result/ensure-observation helpers for the existing concurrency cases. Transcript same-date/next-date ID-reconciliation cases were also retained.

Embedding-provider import conflict: retained the newer Agent/Dispatcher observation imports and added the Server type needed by the shared listener helper; removed only the now-unused Socket import.

The subsequent broad embedding-provider deindent/fixture rewrite was dropped for that file because it overlaps newer caller-owned HTTP-deadline and provider behavior cases. The earlier listener cleanup remains; other files in the commit remain applied.

Meeting-bot conflict: preserved all four native-outcome retry-rejection cases (succeeded, failed, uncertain, unsupported), rather than reverting to the old success-only case. Other fixture reductions were retained.

Dropped the subsequent node-host.audio.test.ts and participation.test.ts rewrite hunks: their old helper shapes overlap newer bounded-input-byte tests and the four-state correction table. The first-pass cleanup in both files remains, as do all disjoint second-pass changes.

Slack conflicts: dropped the old outbound-payload.test.ts and reply-blocks.test.ts cleanup hunks, preserving the substantially expanded current-main fallback/accessibility/authored-text/message-boundary contracts and helpers. Other Slack files remain in the batch.

Fresh-main rebase after initial publication: dropped the overlapping realtime-engine.test.ts cleanup hunk to preserve main's removal of an obsolete logging expectation. Hosted CI and review are restarted on the replacement head; the original head is not runtime proof.

Review and CI repair

The first completed CI run (38922835809) exposed stale fixture identifiers, an unbound matcher alias, an inverted Slack expectation, incomplete fixture types, and lost mock-isolation explanations. Corrections restore the missing runId, call current fixture helpers, retain matcher receivers, preserve expected ordering, build directives through the parser, use lexical fixture functions, and explain isolated mocks. Ambiguous protocol, native-resource, transcript-commit, and transcript-status rewrites were dropped rather than widened or cast around. No assertions were weakened and no timeouts, retries, or baseline allowances were added. The replacement head requires fresh hosted CI.

Independent four-pass review: accepted the absent-plugin fixture finding and corrected the registry ownership identity. Rejected the unused-timeout finding: probe.transport.test.ts asserts the timeout spy at line 111. Rejected the browser-context leak finding: createChatFlowE2eSuite enables trackBrowserContexts, and the canonical suite awaits closeOpenBrowserContexts in afterEach. A correction-only review follows the repair commit.

The original CI also reported failures in untouched chat-pane-tool-icons and node-worker-launch-wire tests. These are not claimed as proven pre-existing or waived; the new head must receive an acceptable result before merge. The usage-context integration test was incorrectly grouped with untouched paths in the earlier report; its batch-owned cleanup is now dropped as described below.

Second completed CI run (38927371969): dropped the cleanup of test/scripts/pr-worktree-provision.test.ts and its test-support file because the consolidated checkout-hook receipt assumed a zero previous SHA for relative and branch policies. Restored both files exactly to the branch main baseline. Also dropped src/commands/triage.test.ts cleanup after its updater-decline fixture failed; retained the original main assertions instead of adapting them for green. All 30 source commits remain represented, with these file-level hunks removed.

The correction-only independent review of 9b170f61 completed scoped-clean at P0-P2. Subsequent corrections restore main-baseline files rather than add new behavior. Local plain formatting, lint and diff checks passed.

The fresh run (38930508743) repeated the duplicate guard and unexplained mock export failure in untouched src/flows/doctor-plugin-source-captures.test.ts. Those are not proven pre-existing under the required waiver and are not waived. Source verification also corrected the earlier classification of usage.sessions-usage-context-lifecycle.integration.test.ts: it WAS batch-owned. Its new table supplied session metadata where SessionAccessScope was contextually inferred, causing TS2353 at line 107. Dropped that entire file cleanup and restored the branch main baseline. Fresh CI remains the merge gate. Earlier untouched UI-icon and worker-wire tests passed on the second completed run; their earlier failures are not claimed fixed.

Final fresh-main integration: rebased without conflicts onto ecdf8d3, which includes cb196c3 and its exact doctor mock-isolation correction. All 33 branch commits replayed. The four restored files no longer contribute batch changes. The duplicate guard remains a hosted-CI decision; no baseline proof or merge waiver is claimed.

Final ratchet maintenance: config/test-mock-exports-baseline.txt +0/-18 lines, separate from production and test-code LOC. Removed exactly the 18 obsolete entries printed by run 38932355958 after verifying the corresponding removed mocks or explicit mock-isolation explanations. This only shrinks the allowance; no new exemptions. The same run reports an unrelated terminal-panel-restore.test.ts pointerdown/selection failure (expected one restored session, received zero). That file and its production owner are unchanged by this batch; no pre-existing-failure waiver is claimed.

Ownership

No changed paths match the checked-in CODEOWNERS rules. This batch changes UI, agents, Gateway, plugin, Slack, transcript, worker-environment, and maintainer-tooling tests and a shrink-only test-mock baseline; it makes no product or public API ownership changes.

@clawsweeper

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

chatgpt-codex-connector Bot commented Oct 16, 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-16T16:47:21.024102Z f0882f1 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: slack Channel integration: slack app: web-ui App: web-ui gateway Gateway runtime commands Command implementations agents Agent runtime and tooling extensions: codex size: XL labels Oct 16, 2026
@steipete
steipete disabled auto-merge October 16, 2026 15:11
@steipete
steipete force-pushed the tcr/land-d175-1792161796 branch from 91c2ff9 to e24ad2d Compare October 16, 2026 15:18
@steipete
steipete enabled auto-merge (squash) October 16, 2026 15:18
@steipete
steipete disabled auto-merge October 16, 2026 15:20
@steipete
steipete enabled auto-merge (squash) October 16, 2026 15:21
@steipete
steipete disabled auto-merge October 16, 2026 15:22
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. 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 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR consolidates repeated fixtures and assertions across core, plugin, tooling, and Control UI tests.

Example: Slack progress cards exercise detailed and quiet layouts in working, success, and error states.

  • Before: Separate tests repeat card setup and expected blocks.
  • After: One table shares setup across the six combinations.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful maintenance direction, but deterministic test failures prevent accepting the cleanup as behavior-preserving.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored test-only cleanup requires test validation rather than a new product demonstration; hosted annotations expose concrete fixture failures.
Patch quality 🦪 silver shellfish (2/6) 8 actionable review findings remain.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Repeated test setup and assertions increase maintenance cost.
Reason: The maintainer-authored direction is established and the patch stays within test maintenance.

Merge readiness

⛔ Needs changes before merge - 8 items remain

Keep open: this maintainer-directed cleanup has value, but eight introduced test defects block merge.

Priority: P3
Reviewed head: e24ad2d1c224258a038c9abee5dae5fc39b776ad

Before merge

  • Preserve the receiver when sharing objectContaining (P2) - Extracting expect.objectContaining into a bare function loses the receiver required by this Vitest matcher. The rollback, output-generation, and custom-node-input cases now throw while constructing their matchers, with CI reporting undefined __flags. Keep the qualified call or use a forwarding function.
  • Migrate the remaining audio bridge helper calls (P2) - Renaming invokeBridge to rpc leaves five invokeBridge calls in the two bounded-input-byte regressions. Both cases now throw ReferenceError before verifying their contracts, as exact-head CI confirms. Update all retained callers or retain the original helper name.
  • Update every caller of the renamed transcript status import (P2) - The import is renamed to readStatus, but four retained calls still reference readTranscriptLibraryStatus. The reorder/title and changed-invitation scenarios consequently throw ReferenceError instead of testing status provenance. Complete the caller migration.
  • Update the retained embedding deadline test after renaming its helper (P2) - The helper is renamed to createProvider, while the caller-owned HTTP-deadline table still calls createOpenAICompatibleEmbeddingProvider at line 330. Both signal variants now fail with ReferenceError before sending an embedding request. Migrate that retained caller.
  • Extract runId from the restored steering fixture (P2) - The extracted fixture replaces the local runId declaration, but this destructuring omits runId while the test still uses it in chat.history.inFlightRun. Both history-order variants throw ReferenceError at line 432 before reconnect reconciliation is exercised. Include the fixture's runId in the destructuring.
  • Keep the existing attention-row order in the Slack expectation (P2) - For detailed working cards, the supplied failed-tool line precedes the approval line, and production preserves that order. The new attention array expects approval first, so the consolidated layout case fails against unchanged production behavior. Build the expected rows in their established order.
  • Retain policy-specific checkout-hook old-head expectations (P2) - The consolidated receipt assertion requires an all-zero old HEAD for every policy. Relative and branch-only hook policies activate after entering the seeded checkout and report f.main as the old HEAD; CI records exactly that mismatch. Preserve the distinction instead of applying the cold-checkout receipt to every row.
  • Restore the interactive action selection fixture (P2) - Removing the select mock makes the updater-failure test enter the real action prompt before reaching triage confirmation. runInteractiveUpdateFailureAction still requires selecting triage, so mocks.confirm is never called and CI fails the decline scenario. Restore the selection fixture returning triage.

Findings

  • [P2] Preserve the receiver when sharing objectContaining — src/meeting-bot/chrome-transport.test.ts:190
  • [P2] Migrate the remaining audio bridge helper calls — src/meeting-bot/node-host.audio.test.ts:152-156
  • [P2] Update every caller of the renamed transcript status import — src/transcripts/status.producer.test.ts:21
Agent review details

How this fits together

The changed tests feed synthetic inputs through OpenClaw owners and transport fixtures, then check outputs, lifecycle behavior, and authorization contracts.

flowchart LR
  A[Test cases] --> B[Shared fixtures]
  B --> C[OpenClaw owners]
  C --> D[Transport and storage fixtures]
  D --> E[Contract assertions]
Loading

Technical review

Best possible solution:

Repair the test fixtures and expectations while preserving their existing contracts, then validate the repaired head through hosted CI.

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

Source inspection establishes the introduced failures, and exact-head hosted CI annotations corroborate them; no target code was executed during this review.

Is this the best way to solve the issue?

Sharing repeated fixtures is appropriate, but incomplete renames and changed expectations must be repaired without altering production behavior to accommodate the tests.

Full review comments:

  • [P2] Preserve the receiver when sharing objectContaining — src/meeting-bot/chrome-transport.test.ts:190
    Extracting expect.objectContaining into a bare function loses the receiver required by this Vitest matcher. The rollback, output-generation, and custom-node-input cases now throw while constructing their matchers, with CI reporting undefined __flags. Keep the qualified call or use a forwarding function.
    Confidence: 0.99
  • [P2] Migrate the remaining audio bridge helper calls — src/meeting-bot/node-host.audio.test.ts:152-156
    Renaming invokeBridge to rpc leaves five invokeBridge calls in the two bounded-input-byte regressions. Both cases now throw ReferenceError before verifying their contracts, as exact-head CI confirms. Update all retained callers or retain the original helper name.
    Confidence: 1
  • [P2] Update every caller of the renamed transcript status import — src/transcripts/status.producer.test.ts:21
    The import is renamed to readStatus, but four retained calls still reference readTranscriptLibraryStatus. The reorder/title and changed-invitation scenarios consequently throw ReferenceError instead of testing status provenance. Complete the caller migration.
    Confidence: 1
  • [P2] Update the retained embedding deadline test after renaming its helper — src/plugins/openai-compatible-embedding-provider.test.ts:16
    The helper is renamed to createProvider, while the caller-owned HTTP-deadline table still calls createOpenAICompatibleEmbeddingProvider at line 330. Both signal variants now fail with ReferenceError before sending an embedding request. Migrate that retained caller.
    Confidence: 1
  • [P2] Extract runId from the restored steering fixture — ui/src/e2e/chat-flow.active-run-follow-ups.e2e.test.ts:405-408
    The extracted fixture replaces the local runId declaration, but this destructuring omits runId while the test still uses it in chat.history.inFlightRun. Both history-order variants throw ReferenceError at line 432 before reconnect reconciliation is exercised. Include the fixture's runId in the destructuring.
    Confidence: 1
  • [P2] Keep the existing attention-row order in the Slack expectation — extensions/slack/src/progress-blocks.card.test.ts:67-70
    For detailed working cards, the supplied failed-tool line precedes the approval line, and production preserves that order. The new attention array expects approval first, so the consolidated layout case fails against unchanged production behavior. Build the expected rows in their established order.
    Confidence: 1
  • [P2] Retain policy-specific checkout-hook old-head expectations — test/scripts/pr-worktree-provision.test.ts:234-236
    The consolidated receipt assertion requires an all-zero old HEAD for every policy. Relative and branch-only hook policies activate after entering the seeded checkout and report f.main as the old HEAD; CI records exactly that mismatch. Preserve the distinction instead of applying the cold-checkout receipt to every row.
    Confidence: 0.99
  • [P2] Restore the interactive action selection fixture — src/commands/triage.test.ts:45-48
    Removing the select mock makes the updater-failure test enter the real action prompt before reaching triage confirmation. runInteractiveUpdateFailureAction still requires selecting triage, so mocks.confirm is never called and CI fails the decline scenario. Restore the selection fixture returning triage.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.99

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 8079cb87aefe.

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test src/meeting-bot/chrome-transport.test.ts src/meeting-bot/node-host.audio.test.ts src/transcripts/status.producer.test.ts src/plugins/openai-compatible-embedding-provider.test.ts src/commands/triage.test.ts test/scripts/pr-worktree-provision.test.ts
  • pnpm test:extensions extensions/slack/src/progress-blocks.card.test.ts
  • pnpm test:ui:e2e ui/src/e2e/chat-flow.active-run-follow-ups.e2e.test.ts
  • Hosted openclaw/ci-gate on the repaired head

What I checked:

  • Introduced scope: The pinned introduction changes test and test-support files only: production +0/-0, tests/support +15759/-22599. (e24ad2d1c224)
  • Hosted failures corroborate fixture defects: Exact-head CI annotations report undefined invokeBridge, readTranscriptLibraryStatus, createOpenAICompatibleEmbeddingProvider, and runId references, plus Chrome matcher, Slack ordering, checkout-hook, and triage assertion failures. (e24ad2d1c224)
  • Incomplete helper renames: The renamed definitions/imports leave existing callers using their former names; source inspection independently establishes the reported ReferenceErrors. (src/transcripts/status.producer.test.ts:21, e24ad2d1c224)
  • Retained production ordering: Slack builds attention rows in input order; the new expected array instead places approval before the preceding failed tool. (extensions/slack/src/progress-blocks.ts:434, e24ad2d1c224)
  • Interactive selection remains required: The update failure flow still asks the operator to select triage before entering the confirmation tested here. (src/cli/update-cli/update-command-report.ts:60, e24ad2d1c224)
  • Policy and ownership: Root and applicable ancestor AGENTS.md files were read; no maintainer-notes directory exists, and changed paths match no checked-in CODEOWNERS rule. (AGENTS.md, e24ad2d1c224)

Likely related people:

  • Peter Steinberger: Raw commit e7b868b adds src/meeting-bot/chrome-transport.test.ts:5 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e7b868bbabfc; files: src/meeting-bot/chrome-transport.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/support +15759/-22599; net -6840 The reduction stays within tests and fixtures, although the introduced failures currently prevent accepting it as behavior-preserving maintenance.

Labels

Label changes:

  • add P3: This is developer-facing test maintenance with no production behavior change.
  • add merge-risk: 🚨 automation: Introduced fixture defects deterministically fail hosted test lanes and prevent the CI gate from passing.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🌊 off-meta tidepool 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 developer-facing test maintenance with no production behavior change.
  • merge-risk: 🚨 automation: Introduced fixture defects deterministically fail hosted test lanes and prevent the CI gate from passing.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🌊 off-meta tidepool 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 16, 2026, 11:37 AM ET / 15:37 UTC.

@steipete
steipete force-pushed the tcr/land-d175-1792161796 branch from e24ad2d to 9b170f6 Compare October 16, 2026 15:51
@steipete
steipete enabled auto-merge (squash) October 16, 2026 15:52
@steipete
steipete disabled auto-merge October 16, 2026 15:57
@steipete
steipete enabled auto-merge (squash) October 16, 2026 16:15
@steipete
steipete disabled auto-merge October 16, 2026 16:22
@steipete
steipete force-pushed the tcr/land-d175-1792161796 branch from c232c1c to d181965 Compare October 16, 2026 16:29
@steipete
steipete enabled auto-merge (squash) October 16, 2026 16:29
@steipete
steipete disabled auto-merge October 16, 2026 16:40
@steipete
steipete enabled auto-merge (squash) October 16, 2026 16:43
@steipete
steipete merged commit 9d1d2ed into main Oct 16, 2026
135 checks passed
@steipete
steipete deleted the tcr/land-d175-1792161796 branch October 16, 2026 16:54
steipete added a commit that referenced this pull request Oct 16, 2026
The fixture extraction in 9d1d2ed (#174351) introduced
ORIGINAL_REVISION as an unused export. History has no later removal of an
importer: the constant was private fixture state from the start.

Keep the constant for lifecycle revision setup and remove only its export.
The sole importing suite retains all six delivery-mirror cases.

Proof: pnpm test src/gateway/worker-environments/transcript-commit.delivery-mirror.test.ts --maxWorkers=1
passed 6/6 (82.22s before, 35.59s after command wall; warmed worker cache).
Gateway-other tsgo, targeted lint, formatting, and P2 review passed.
The deadcode:exports before/after scan removes this finding; remaining
Discord namespace and transcriptReadOperations findings are inherited.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
* test(ui): deslop x7176 tests

* test(ui): deslop x7176 tests

* test(pr): deslop x7178 tests

* test(pr): deslop x7178 tests

* test(pr): deslop x7178 tests

* test(transcripts): deslop x7183 tests

* test(transcripts): deslop x7183 tests

* test(transcripts): deslop x7183 tests

* test(worker-environments): deslop x7181 tests

* test(worker-environments): deslop x7181 tests

* test(worker-environments): deslop x7181 tests

* test(plugins): deslop x7182 tests

* test(plugins): deslop x7182 tests

* test(plugins): deslop x7182 tests

* test(meeting-bot): deslop x7184 tests

* test(meeting-bot): deslop x7184 tests

* test(auto-reply): deslop x7188 tests

* test(auto-reply): deslop x7188 tests

* test(codex): deslop x7185 tests

* test(codex): deslop x7185 tests

* test(codex): deslop x7185 tests

* test(slack): deslop x7177 tests

* test(slack): deslop x7177 tests

* test(slack): deslop x7177 tests

* test(gateway): deslop x7180 tests

* test(gateway): deslop x7180 tests

* test(gateway): deslop x7180 tests

* test(commands): deslop x7186 tests

* test(commands): deslop x7186 tests

* test(agents): deslop x7187 tests

* test: repair replayed fixture contracts

* test: drop failing hook and triage cleanup hunks

* test(gateway): drop invalid usage context fixture cleanup

* test: prune obsolete mock export baseline entries
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
The fixture extraction in 94adc21 (openclaw#174351) introduced
ORIGINAL_REVISION as an unused export. History has no later removal of an
importer: the constant was private fixture state from the start.

Keep the constant for lifecycle revision setup and remove only its export.
The sole importing suite retains all six delivery-mirror cases.

Proof: pnpm test src/gateway/worker-environments/transcript-commit.delivery-mirror.test.ts --maxWorkers=1
passed 6/6 (82.22s before, 35.59s after command wall; warmed worker cache).
Gateway-other tsgo, targeted lint, formatting, and P2 review passed.
The deadcode:exports before/after scan removes this finding; remaining
Discord namespace and transcriptReadOperations findings are inherited.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui channel: slack Channel integration: slack commands Command implementations extensions: codex gateway Gateway runtime merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. 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