Skip to content

test(runtime): remove low-value tests (batch d190) - #174897

Merged
steipete merged 34 commits into
mainfrom
tcr/land-d190-1792195727
Oct 17, 2026
Merged

steipete merged 34 commits into
mainfrom
tcr/land-d190-1792195727

Conversation

@steipete

@steipete steipete commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Repeated test setup and assertion scaffolding makes these suites harder to maintain. This is the requested d190 campaign replay.

User Impact

No production behavior change. Consolidates test fixtures and removes low-value duplication while retaining distinct security, authority, recovery, and ordering scenarios.

Why This Change Was Made

Replayed the 30 selected commits onto pinned main 9285ef2. Conflict resolutions keep current-main auth ordering cases (including omitted pending-refresh options and model-scoped cooldown/block ordering) and all three memory-wiki symlink-swap routes. In the second memory-wiki commit, the query.reads.test.ts hunk was dropped entirely because its old basename-only rewrite conflicted with current-main security coverage; the first commit's independent cleanup remains. No entire commit was skipped.

Evidence

Local validation passed: dependency install, oxfmt and plain oxlint (exit 0); after final settlement rebase, lint/format passed on all 53 changed TypeScript files, and git diff --check. The additional changed file is an exact 15-row shrink of the mock-export baseline. Per the operator's CI-only rule, no local Vitest, check-changed, typecheck, coverage, or Testbox runs. Hosted openclaw/ci-gate is the runtime proof and merge gate. Local test wall time: not run; CI timings are recorded by Actions. Independent review completed during CI; findings and disposition are below.

The source reports explicitly state that coverage was not run under CI-only mode; no coverage percentage or <=1% coverage-loss claim is made here. Source report totals describe their earlier shard snapshot, not necessarily these final replayed commits. The table below is measured from this PR's pinned base and final tree. Declaration counts are static it/test call counts, not expanded runtime case counts.

Production LOC: +0/-0. Final settlement test/support LOC: +8273/-12421 (net -4148). Ratchet metadata: +0/-15. The original per-shard tables below describe the earlier replay; the final settlement withdrawals are recorded at the end.

CI follow-up

Initial run 38987401821 identified replay defects. Restored the base versions of elicitation-bridge.test.ts, loader.capability-factory.test.ts, providers.runtime.owner-completeness.test.ts, providers.test.ts, inference-store.test.ts, inference-runtime.test.ts and its test-support, live-events.test.ts, and queue.collect.test.ts. These file-level reversions supersede the earlier conflict-resolution notes for those files and retain the independently passing parts of each shard. Fixed the iMessage mock callable types and stdin return type, removed redundant void type arguments, and documented the existing mock-isolation boundaries required by the export ratchet. No assertions, retries, or timeouts were weakened.

A later main conflict required rebasing from the original f76d912 base onto 9285ef2. Kept current-main message-tool.internal-source-reply.integration.test.ts in both overlapping agent commits, preserving its newer source-reply scenarios; that file now has no diff. The other nine dropped files also remain identical to the new base.

The initial run also reported a runtime-llm.prepared-owner.test.ts LRU assertion and broad max-lines warnings outside this diff; these are not claimed fixed or proven pre-existing. All head checks must be resolved before merge. Earlier independent reviews were interrupted during snapshot preparation when CI repairs or a main conflict required a new head; neither produced an assessment.

x7338: files and measured deltas
File LOC before → after Declarations before → after
src/auto-reply/reply/prompt-prelude.test.ts 364 → 269 9 → 8
src/auto-reply/reply/queue.drain-restart.test.ts 646 → 543 14 → 12
src/auto-reply/reply/queue.media-carrier.test.ts 441 → 359 5 → 5
src/auto-reply/reply/queue.pending-inputs.test.ts 334 → 313 3 → 3
src/auto-reply/reply/reply-media-paths.test.ts 514 → 376 9 → 12
Total 2299 → 1860 (-439) 40 → 40 (0)

Source report coverage statement (verbatim):

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

x7340: files and measured deltas
File LOC before → after Declarations before → after
src/state/openclaw-agent-db.checkonce.test.ts 331 → 291 10 → 10
src/state/openclaw-agent-db.integrity-lease.test.ts 623 → 590 12 → 12
src/state/openclaw-agent-db.lease-owner.test.ts 516 → 495 14 → 14
src/state/openclaw-agent-db.permissions.test.ts 311 → 298 4 → 4
src/state/openclaw-agent-db.registration-commit.test.ts 317 → 230 7 → 7
src/state/openclaw-agent-db.registration-settlement.test.ts 378 → 275 2 → 2
src/state/openclaw-agent-db.worker-admission.test.ts 850 → 793 12 → 12
src/state/openclaw-agent-registration.test-support.ts 0 → 108 0 → 0
Total 3326 → 3080 (-246) 61 → 61 (0)

Source report coverage statement (verbatim):

Plain oxlint exited 0; formatting and diff-check passed. Tests, coverage, and check-changed were not run, per CI-only instructions.

x7341: files and measured deltas
File LOC before → after Declarations before → after
src/agents/auth-profiles/oauth-identity.test.ts 214 → 141 10 → 8
src/agents/auth-profiles/oauth-manager.settlement-validation.test.ts 516 → 384 4 → 4
src/agents/auth-profiles/oauth-manager.test.ts 937 → 702 15 → 10
src/agents/auth-profiles/oauth-personal.worker.test.ts 717 → 646 17 → 10
src/agents/auth-profiles/oauth-refresh-failure.test.ts 289 → 216 5 → 6
src/agents/auth-profiles/oauth-shared.test.ts 247 → 184 6 → 5
src/agents/auth-profiles/oauth.test.ts 298 → 223 9 → 8
src/agents/auth-profiles/order.test.ts 530 → 443 13 → 13
Total 3748 → 2939 (-809) 79 → 64 (-15)

Source report coverage statement (verbatim):

Formatting, plain oxlint (exit 0), whitespace checks, and commit hooks passed. Tests, coverage, and typechecking were not run, per CI-only instructions. No production or support files changed.

x7343: files and measured deltas
File LOC before → after Declarations before → after
extensions/memory-wiki/src/okf.test.ts 516 → 360 8 → 8
extensions/memory-wiki/src/query.provider-runtime.test-support.ts 245 → 181 5 → 4
extensions/memory-wiki/src/query.reads.test.ts 214 → 183 6 → 6
extensions/memory-wiki/src/query.test.ts 1332 → 996 26 → 25
extensions/memory-wiki/src/source-sync-state.test.ts 613 → 470 15 → 15
extensions/memory-wiki/src/source-sync.test.ts 272 → 207 10 → 9
extensions/memory-wiki/src/status.test.ts 341 → 234 8 → 8
extensions/memory-wiki/src/test-helpers.ts 275 → 200 0 → 0
Total 3808 → 2831 (-977) 78 → 75 (-3)

Source report coverage statement (verbatim):

Formatting, plain oxlint (exit 0), and diff-check passed. Tests, coverage, and check-changed were not run, per CI-only mode. No bug/flake fixes.

x7339: files and measured deltas
File LOC before → after Declarations before → after
No retained file changes; shard dropped after CI investigation 0 → 0 0 → 0
Total 0 → 0 (0) 0 → 0 (0)

Source report coverage statement (verbatim):

Formatting, git diff --check, and plain oxlint passed. Tests and coverage were not run, per CI-only instructions; hosted CI remains the runtime gate.

x7335: files and measured deltas
File LOC before → after Declarations before → after
packages/ai/src/transports/anthropic-transport-stream.compaction.test.ts 304 → 228 3 → 3
packages/ai/src/transports/anthropic-transport-stream.test.ts 2318 → 2198 38 → 38
packages/ai/src/transports/openai-completions-context-budget.test.ts 226 → 190 7 → 6
packages/ai/src/transports/openai-completions-dsml.test.ts 368 → 273 9 → 9
packages/ai/src/transports/openai-completions.test-support.ts 344 → 280 0 → 1
Total 3560 → 3169 (-391) 57 → 57 (0)

Source report coverage statement (verbatim):

Plain oxlint exited 0; formatting and diff-check passed. Tests, coverage, and typechecks were not run under CI-only instructions.

x7337: files and measured deltas
File LOC before → after Declarations before → after
extensions/imessage/src/actions.runtime.test.ts 527 → 439 13 → 13
extensions/imessage/src/approval-handler.runtime.test.ts 660 → 491 14 → 11
extensions/imessage/src/approval-polls.test.ts 515 → 375 22 → 17
extensions/imessage/src/approval-reaction-poller.test.ts 354 → 240 6 → 6
extensions/imessage/src/approval-reactions.persistence.test.ts 282 → 235 4 → 4
extensions/imessage/src/approval-reactions.test.ts 452 → 325 12 → 9
extensions/imessage/src/channel.runtime.test.ts 294 → 242 6 → 5
extensions/imessage/src/client.test.ts 677 → 567 18 → 17
extensions/imessage/src/test-support/approval.ts 0 → 22 0 → 0
extensions/imessage/src/test-support/authority.ts 0 → 21 0 → 0
Total 3761 → 2957 (-804) 95 → 82 (-13)

Source report coverage statement (verbatim):

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

x7336: files and measured deltas
File LOC before → after Declarations before → after
src/agents/tools/media-generate-tool.donor-resources.test.ts 402 → 300 1 → 1
src/agents/tools/media-generate-tool.resources.test.ts 671 → 496 3 → 3
src/agents/tools/media-generation-lifecycle.test-support.ts 232 → 199 4 → 4
src/agents/tools/media-resource-fixtures.test-support.ts 0 → 87 0 → 0
src/agents/tools/message-tool.current-prompt-reaction.test.ts 627 → 556 14 → 13
src/agents/tools/message-tool.scheduled-lifetime.test.ts 564 → 423 1 → 1
Total 2496 → 2061 (-435) 23 → 22 (-1)

Source report coverage statement (verbatim):

Formatting, git diff --check, and plain oxlint passed. Tests, coverage, and typechecks were not run under CI-only mode. No production changes or bug fixes.

x7334: files and measured deltas
File LOC before → after Declarations before → after
extensions/codex/src/app-server/event-projector-projection.test-support.ts 0 → 38 0 → 0
extensions/codex/src/app-server/event-projector.dynamic-tools.test.ts 534 → 437 9 → 9
extensions/codex/src/app-server/event-projector.media.test.ts 531 → 396 10 → 9
extensions/codex/src/app-server/event-projector.native-audit.test.ts 779 → 571 15 → 14
extensions/codex/src/app-server/event-projector.replay-safety.test.ts 583 → 449 13 → 12
Total 2427 → 1891 (-536) 47 → 44 (-3)

Source report coverage statement (verbatim):

No production/shared-support changes or bug fixes. Oxfmt, plain oxlint (exit 0), and git diff --check passed. Tests, coverage, and check-changed were not run, per CI-only mode.

x7346: files and measured deltas
File LOC before → after Declarations before → after
No retained file changes; shard dropped after CI investigation 0 → 0 0 → 0
Total 0 → 0 (0) 0 → 0 (0)

Source report coverage statement (verbatim):

Formatting, plain oxlint, and git diff --check passed. Tests, coverage, and check-changed were not run, per CI-only instructions. No bugs or flakes diagnosed.

x7348: files and measured deltas
File LOC before → after Declarations before → after
src/gateway/worker-environments/live-events-settlement.test.ts 218 → 191 1 → 1
src/gateway/worker-environments/local-workspace-cancellation.test-support.ts 301 → 250 0 → 0
Total 519 → 441 (-78) 1 → 1 (0)

Source report coverage statement (verbatim):

The 25% target was not met: further reduction risked obscuring distinct authority and lifecycle-ordering checks. Formatting, plain oxlint, and git diff --check passed. Tests, coverage, and typechecks were not run, per CI-only mode; hosted CI remains pending.

Final conflict/CI disposition: all src/plugins cleanup was removed after the unexplained sibling LRU failure, so x7339 and x7346 retain no changes; no pre-existing-failure waiver is claimed. Current-main integrity-cache and internal-source-reply tests also remain unchanged after later rebase conflicts. The cache-marker file was restored to retain its long-cache matrix. OIDC rotation now uses distinct access/refresh bytes again. CI-driven repairs preserve tuple inference, quota literal types, and method receivers; 15 exact stale mock-baseline rows reported by CI were removed without adding any allowance.

Independent review completed all three passes. Accepted: missing long-cache matrix and lost OIDC rotation coverage, both restored. Rejected: alleged donor double-close; Node 24 documents DatabaseSync Symbol.dispose as a no-op after the connection is closed (https://nodejs.org/docs/latest-v24.x/api/sqlite.html#databasesymboldispose). No runtime tests were executed locally.

CODEOWNERS visibility: none of the changed test/support/ratchet paths match an explicit ownership rule in the pinned-base CODEOWNERS file.

Final settlement rebase

Rebased onto pinned main 024d58f to inherit the prepared-owner LRU fix from c23b09a (#174747): captured model rows flow into the existing store factory, avoiding a redundant registry fork. The original shard failed runtime-llm.prepared-owner.test.ts:923, keeps completion ownership coherent: lru (expected 2 forks, received 3); the gate failed solely from that shard. This is a stale-base repair, not a pre-existing-failure waiver. Exact-head PR CI is required.

All 33 branch commits replayed. To preserve newer main fixes, withdrew every batch change to openclaw-agent-db.integrity-lease.test.ts, openclaw-agent-db.lease-owner.test.ts, openclaw-agent-db.registration-settlement.test.ts, and media-generate-tool.resources.test.ts. loader.lazy-alias.test.ts also remains identical to main. These full-file withdrawals supersede earlier shard tables; no main coverage or behavior was removed to resolve conflicts. No entire commit skipped, no timeout increase, retry change, assertion weakening, or allowance added. Final local plain oxlint, oxfmt --check (53 files), and git diff --check passed. No local tests, typechecks, or remote leases.

Fresh CI on 68d382cc7348645845d0af3dff496f5013fd6a65 found two defects. The OAuth manager cleanup changed the fixture failure boundary in keeps invalid_grant primary when owner cleanup and recovery reload both fail (expected OAuthManagerRefreshError, received AggregateError). Withdrew the entire oauth-manager.test.ts refactor and restored main's complete test suite and assertions. The unrelated config typecheck failed at io.health-state-scope.test.ts:71,78 (ConfigHealthStateStore lacks Symbol.dispose); rebased again onto pinned main 75454c2, inheriting 7b727f0, which removes the invalid disposal declarations. No pre-existing-failure waiver claimed. All 34 commits replayed without conflicts in this round. Final permitted checks cover 52 TypeScript files; exact-head CI remains the runtime proof. Independent P1 review completed all three passes with no actionable findings; the reviewed remaining changes are unchanged, while the CI-failing OAuth file was withdrawn in full. Review is not a substitute for CI.

@clawsweeper

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 17, 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-17T07:01:15.287228Z 34be07b 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.

@steipete
steipete enabled auto-merge (squash) October 17, 2026 00:40
@openclaw-barnacle openclaw-barnacle Bot added channel: imessage Channel integration: imessage gateway Gateway runtime agents Agent runtime and tooling extensions: memory-wiki extensions: codex size: XL labels Oct 17, 2026
@steipete
steipete disabled auto-merge October 17, 2026 00:48
@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 17, 2026
@clawsweeper

clawsweeper Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR consolidates runtime and plugin test fixtures and assertions without changing production code.

Example: Testing iMessage approval votes from +15551230000.

  • Before: Separate cases repeat the poll envelope and approval setup.
  • After: Shared fixtures construct the envelope while distinct authorization and replay cases remain.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful test consolidation, but the known baseline inconsistency blocks a required gate and final-head runtime validation is unfinished.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored test-only cleanup requires no separate user-facing demonstration; its current-head runtime CI remains pending.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Repeated fixture and assertion scaffolding increases maintenance effort across runtime regression suites.
Reason: The maintainer-authored direction is approved, and the introduced changes remain confined to tests, support, and shrinking ratchet metadata.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this maintainer-authored cleanup open: one earlier finding remains actionable because removing a suppression without pruning its baseline entry makes the required max-lines ratchet fail.

Priority: P3
Reviewed head: 34be07b764fd5ef979c1d299660ea8534361b90c

Before merge

  • Remove the stale Memory Wiki max-lines baseline entry (P2) - The PR removes the max-lines suppression from extensions/memory-wiki/src/query.test.ts but retains this baseline row. scripts/check-max-lines-ratchet.mts compares the baseline with actual suppressions and returns 1 for this stale entry, so checks-fast-baseline-ratchets cannot pass this tree. Delete this row alongside the suppression removal. This repeats the earlier baseline-pruning finding.

Findings

  • [P2] Remove the stale Memory Wiki max-lines baseline entry — config/max-lines-baseline.txt:101
Agent review details

How this fits together

These suites feed synthetic messages, credentials, transport events, and database operations through OpenClaw owners and assert their outputs, authority boundaries, and cleanup.

flowchart LR
  A[Synthetic inputs] --> B[Shared test fixtures]
  B --> C[Runtime and plugin owners]
  C --> D[Behavior assertions]
  E[Baseline metadata] --> F[CI ratchets]
  D --> G[PR CI gate]
  F --> G
Loading

Technical review

Best possible solution:

Retain the behavior-neutral cleanup with consistent baseline metadata and passing CI for the final head.

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

Source establishes the failure: query.test.ts has no max-lines suppression, its baseline row remains, and the checker rejects stale rows; no repository code was executed.

Is this the best way to solve the issue?

Shared fixtures are a reasonable maintainer-approved cleanup, but the suppression removal must include its corresponding baseline deletion.

Full review comments:

  • [P2] Remove the stale Memory Wiki max-lines baseline entry — config/max-lines-baseline.txt:101
    The PR removes the max-lines suppression from extensions/memory-wiki/src/query.test.ts but retains this baseline row. scripts/check-max-lines-ratchet.mts compares the baseline with actual suppressions and returns 1 for this stale entry, so checks-fast-baseline-ratchets cannot pass this tree. Delete this row alongside the suppression removal. This repeats the earlier baseline-pruning finding.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.92

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • OAuth settlement and personal credential tests keeps the original intent (f48c19d: Protect worker-owned refresh settlement and credential authority across awaited preparation and worker failures.)
  • iMessage approval fixtures keeps the original intent (ff9955f: Consolidate fixture construction while preserving authorization, GUID, retry, and lifecycle cases.)
  • Memory Wiki visibility tests keeps the original intent (cb684c2: Share repeated visibility callbacks while retaining independent expected paths and per-test state.)
  • Codex projector suites keeps the original intent (968f9ad: Split projector coverage into cohesive suites with a shared lifecycle-aware harness.)
  • Transport test ownership keeps the original intent (b4e27f8: Move provider transports into packages/ai behind the typed host boundary.)
  • Media donor lifetime tests keeps the original intent (fb9addf: Keep copied plugin resources available through accepted media work and cleanup.)
  • Queue restart coverage keeps the original intent (1311ba9: Prevent restart hangs caused by follow-up drains retrying a draining error.)

Testing

Proof path: none.

Security

None.

Evidence

Acceptance criteria:

  • pnpm check:max-lines-ratchet --base 75454c2 --no-merge-base
  • git diff --check
  • Verify checks-fast-baseline-ratchets and openclaw/ci-gate pass for the repaired head.

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit f48c19d adds src/agents/auth-profiles/oauth-personal.worker.test.ts:151 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f48c19db0939; files: src/agents/auth-profiles/oauth-personal.worker.test.ts)

PR surface

Tests -3401, Other -15. Total -3416 across 53 files. Added test files: 5.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 52 5933 9334 -3401
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 0 15 -15
Total 53 5933 9349 -3416

Review metrics

Metric Value Why it matters
Production versus test/support LOC Production +0/-0; tests/support +8142/-12290, net -4148. The reduction stays within test infrastructure; the separate mock-export baseline shrinks without adding allowances.

Labels

Label changes:

  • 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 a narrow CI metadata defect and no demonstrated user-facing runtime 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-17T00:56:18.114Z sha 5cd55bbe0c965b4b960dd6f48c81147582751eb3 :: needs changes before merge. :: [P2] Restore the initializer used after reopening encoded databases | [P2] Preserve the activation fixture's provider trigger parameter | [P2] Keep absence checks equivalent when consolidating queue assertions | [P2] Construct the reasoning test's tool call from canonical fields | [P2] Prune baseline entries for the removed max-lines suppressions | [P2] Preserve exports when rewriting grandfathered mock factories

Reviewed October 17, 2026, 3:05 AM ET / 07:05 UTC (Revision 2).

@steipete
steipete enabled auto-merge (squash) October 17, 2026 00:59
@steipete
steipete disabled auto-merge October 17, 2026 01:06
@steipete
steipete force-pushed the tcr/land-d190-1792195727 branch from 7e616a9 to 3e94bcf Compare October 17, 2026 01:12
@steipete
steipete enabled auto-merge (squash) October 17, 2026 01:13
@steipete
steipete disabled auto-merge October 17, 2026 01:24
@steipete
steipete force-pushed the tcr/land-d190-1792195727 branch from 3e94bcf to 3141a09 Compare October 17, 2026 01:59
@steipete
steipete enabled auto-merge (squash) October 17, 2026 01:59
@steipete
steipete disabled auto-merge October 17, 2026 02:06
@steipete

Copy link
Copy Markdown
Contributor Author

Batch d190 is blocked; auto-merge is disabled on head 3141a092d3a024ebf0b7b0762987d75f66e1850a.

The replay-caused failures were repaired or the affected cleanup was removed. The remaining reported failures are:

  • checks-fast-baseline-ratchets: src/cli/update-cli/update-command-service-maintenance-native.test-support.ts:52 mocks ./update-command-database-context.js without export preservation/isolation metadata. The same failure appears in scheduled main run 38991549274, job 117275051710. This batch does not touch that file or its baseline entry. Current PR evidence: 117279913428.
  • checks-node-changed-compact-large-21: runtime-llm.prepared-owner.test.ts > keeps completion ownership coherent: lru, expected 2 fork calls but received 3 at line 923. Current PR evidence. This test and all src/plugins/ cleanup are unchanged from the pinned base, but a matching failed scheduled-main test was not established. It is not claimed pre-existing and no merge exception is requested.

No local tests, typechecks, check-changed, or Testbox runs were performed under the CI-only instruction. All 57 changed TypeScript files passed plain oxlint and oxfmt; git diff --check passed. The independent review's two accepted coverage findings were repaired; its donor double-close finding was rejected against Node's documented idempotent Symbol.dispose contract. The branch and reused slot worktree are clean. Coordinator repair or permitted baseline proof is needed before landing; no unrelated main fix was attempted in this batch.

@steipete
steipete force-pushed the tcr/land-d190-1792195727 branch from 3141a09 to cefcba1 Compare October 17, 2026 02:49
@steipete
steipete enabled auto-merge (squash) October 17, 2026 02:49
@clawsweeper clawsweeper Bot removed 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 17, 2026
@steipete
steipete force-pushed the tcr/land-d190-1792195727 branch from cefcba1 to 68d382c Compare October 17, 2026 06:38
@steipete
steipete disabled auto-merge October 17, 2026 06:45
@steipete
steipete force-pushed the tcr/land-d190-1792195727 branch from 68d382c to 34be07b Compare October 17, 2026 06:58
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@steipete
steipete enabled auto-merge (squash) October 17, 2026 06:58
@clawsweeper

clawsweeper Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@steipete
steipete merged commit 513e6bf into main Oct 17, 2026
224 of 226 checks passed
@steipete
steipete deleted the tcr/land-d190-1792195727 branch October 17, 2026 07:32
steipete added a commit that referenced this pull request Oct 17, 2026
* refactor(control-ui): give sidebar menus Solid ownership

* refactor(ui): simplify sidebar menu dependencies

* fix(ui): dismiss sidebar filter after viewer reconciliation commits

* fix(ui): publish sidebar status-filter transitions at the owner

* test(ui): use owned sidebar menu fixtures for rail actions

* fix(ui): retain pending menu work across provider replacement

* test(runtime): remove low-value tests (batch d190) (#174897)

* test(auto-reply): deslop x7338 tests

* test(auto-reply): deslop x7338 tests

* test(auto-reply): deslop x7338 tests

* test(state): deslop x7340 tests

* test(state): deslop x7340 tests

* test(state): deslop x7340 tests

* test(auth-profiles): deslop x7341 tests

* test(auth-profiles): deslop x7341 tests

* test(auth-profiles): deslop x7341 tests

* test(memory-wiki): deslop x7343 tests

* test(memory-wiki): deslop x7343 tests

* test(plugins): deslop x7339 tests

* test(plugins): further deslop x7339 tests

* test(plugins): further consolidate x7339 test fixtures

* test(ai): deslop x7335 tests

* test(ai): deslop x7335 tests

* test(ai): deslop x7335 tests

* test(imessage): deslop x7337 tests

* test(imessage): deslop x7337 tests

* test(agents): deslop x7336 tests

* test(agents): deslop x7336 tests

* test(agents): deslop x7336 tests

* test(codex): deslop x7334 tests

* test(codex): deslop x7334 tests

* test(plugins): deslop x7346 tests

* test(plugins): deslop x7346 tests

* test(plugins): deslop x7346 tests

* test(gateway): deslop x7348 tests

* test(gateway): deslop x7348 tests

* test(gateway): deslop x7348 tests

* test(memory-wiki): avoid shadowing prune fixture

* test: preserve current contracts in cleanup replay

* test: retain coverage and narrow unstable cleanup

* test(auth): withdraw failing OAuth fixture consolidation

Restore the complete main OAuth manager suite after hosted CI exposed a changed failure boundary in the consolidated root fixture. Preserve the original invalid_grant, owner cleanup, and recovery-reload assertions. No production changes; runtime verification stays in PR CI under the campaign CI-only directive.

* test(process): isolate synthetic scope reaping

The scope settlement fixture mocked process killing and termination but let
exec-spawn start the real Linux reaper for synthetic PID 424242. Fake-clock
restoration could strand SIGCHLD work in the shared worker; the subsequent
reaper test then failed when that inherited listener retired.

Mock the missing native cleanup boundary beside the existing termination
mocks. Exercise the existing uncertain-group case with Linux semantics and
assert that it preserves the exact SIGCHLD listener inventory. Keep every
original scope/custody assertion and all dedicated reaper tests unchanged.

Before: the strengthened producer case fails with an unexpected onExit
listener (14.41s wrapper). After: producer and reaper files pass 35/35 via
pnpm test <files> --maxWorkers=1 (57.29s wrapper, 45.57s Vitest).
Full owning process config: 857 pass, 60 existing platform skips across
92 files; 160.31s Vitest after the required 137.4s runtime build.
Targeted services test types (12.6s), lint, boundary lint, formatting,
git diff --check, and independent P0-P2 autoreview pass.

No production changes, assertion weakening, retries, added skips, timeout
changes, or CI dispatches/reruns.

* fix(ui): reload open session menu work after reconnect

* fix(ai): recover DeepSeek DSML tool calls when routed through OpenRouter (#175058)

* fix(ai): recover DeepSeek DSML tool calls when routed through OpenRouter

DeepSeek models sometimes emit tool calls as DSML markup in the reply
text. The recoverer was gated on thinkingFormat === "deepseek", which
only the native direct route produces; every OpenRouter route gets
thinkingFormat "openrouter", so a DeepSeek model reached through
OpenRouter leaked the raw markup as reply text and the tool call never
ran. Enable the recoverer when the model id matches the DeepSeek family,
mirroring the gemma recoverer, without changing request-side compat.

* fix(ai): make native tool calls authoritative over recovered DSML calls

When a DeepSeek response carries both DSML markup in the text channel and
a native tool_calls entry, both execution paths would run: the recovered
DSML call executed first and the native call executed again, producing a
duplicate tool invocation. Mirror the gemma recoverer's contract - native
tool calls own mixed streams - in three steps:

- a native tool-call delta flushes the recoverer with recovery disabled,
  so buffered markup is handed back as plain text instead of a call
- the final flush only authorizes recovery when no native delta arrived
- recovered blocks are recorded and dropped from the output whenever a
  native delta owns the response

Addresses the P1 finding raised in the review of #175058.

* fix(ai): restore typed recovery-part contract on DSML flush

ClawSweeper review on 6e4f32f flagged the unannotated flush return:
the plain-text branch widened kind to string, so appendRecoveredParts
rejected the union at openai-completions-stream.ts:348. Annotate
flush(allowRecovery = true): TextToolCallRecoveryPart[] to match the
gemma recoverer contract.

Also type the native-ownership filter set as Set<ToolCall> and narrow
the content-block predicate; Set<ToolCallBlock>.has() rejected the
TextContent | ThinkingContent | ToolCall union elements.

Verified: tsgo core clean, tsgo:test:packages + extension-declarations
pass, 59/59 tests across openai-completions-dsml.recovery and
openai-completions-stream, oxfmt/oxlint clean.

* fix(ai): own routed DSML recovery in model compatibility

Recover and filter DeepSeek DSML across OpenAI-compatible routes without changing OpenRouter thinking requests. Keep native calls authoritative at terminal finalization, remove the redundant flush API, and cover markup leakage and call ordering. Fixes #174909.

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

---------

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

* refactor(skills): use the concrete upload store singleton (#175287)
steipete added a commit that referenced this pull request Oct 17, 2026
The fault worker delegated iteration with yield*, which does not close the
native iterator when next() throws. Its completed wrapper then hid the
native return() from Kysely cleanup. On Node 24.19 the cached statement
reported the old injected error on its next use after faults were disabled.

Explicitly close the native iterator before restoring the TEMP triggers.
Production queue and database behavior is unchanged. Preserve every
committed-prefix, pending-input and exactly-once assertion.

The scalar INSERT ... RETURNING path added by #175193 exposed this latent
fixture defect. #174897 did not remove a required predecessor, and #175295
is not the cause. Reproduced the same failure on hourly ab37bc6 and
current main 9c12710 using CI's Node 24.19.0; Node 24.22 used all()
and passed without the change.

Focused full-file proof: 5/5 pass in normal order with --maxWorkers=1,
28.45 s Vitest / 49.62 s command wall. Independent P2 review is clean.
All 22 affected consumer files pass: 337 tests using Node 24.19 and
--maxWorkers=1. The other 21 files take 509.14 s wall across five native
configs. Owning test-helper types, boundary lint, syntax, formatting and
whitespace checks pass. Root-test type-aware lint reports the same
pre-existing no-map-spread violation at this file's unchanged line 22 on
both base and candidate; no new diagnostic or suppression is introduced.
No CI dispatch or rerun.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 18, 2026
* test(auto-reply): deslop x7338 tests

* test(auto-reply): deslop x7338 tests

* test(auto-reply): deslop x7338 tests

* test(state): deslop x7340 tests

* test(state): deslop x7340 tests

* test(state): deslop x7340 tests

* test(auth-profiles): deslop x7341 tests

* test(auth-profiles): deslop x7341 tests

* test(auth-profiles): deslop x7341 tests

* test(memory-wiki): deslop x7343 tests

* test(memory-wiki): deslop x7343 tests

* test(plugins): deslop x7339 tests

* test(plugins): further deslop x7339 tests

* test(plugins): further consolidate x7339 test fixtures

* test(ai): deslop x7335 tests

* test(ai): deslop x7335 tests

* test(ai): deslop x7335 tests

* test(imessage): deslop x7337 tests

* test(imessage): deslop x7337 tests

* test(agents): deslop x7336 tests

* test(agents): deslop x7336 tests

* test(agents): deslop x7336 tests

* test(codex): deslop x7334 tests

* test(codex): deslop x7334 tests

* test(plugins): deslop x7346 tests

* test(plugins): deslop x7346 tests

* test(plugins): deslop x7346 tests

* test(gateway): deslop x7348 tests

* test(gateway): deslop x7348 tests

* test(gateway): deslop x7348 tests

* test(memory-wiki): avoid shadowing prune fixture

* test: preserve current contracts in cleanup replay

* test: retain coverage and narrow unstable cleanup

* test(auth): withdraw failing OAuth fixture consolidation

Restore the complete main OAuth manager suite after hosted CI exposed a changed failure boundary in the consolidated root fixture. Preserve the original invalid_grant, owner cleanup, and recovery-reload assertions. No production changes; runtime verification stays in PR CI under the campaign CI-only directive.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 18, 2026
…law#175213)

* refactor(control-ui): give sidebar menus Solid ownership

* refactor(ui): simplify sidebar menu dependencies

* fix(ui): dismiss sidebar filter after viewer reconciliation commits

* fix(ui): publish sidebar status-filter transitions at the owner

* test(ui): use owned sidebar menu fixtures for rail actions

* fix(ui): retain pending menu work across provider replacement

* test(runtime): remove low-value tests (batch d190) (openclaw#174897)

* test(auto-reply): deslop x7338 tests

* test(auto-reply): deslop x7338 tests

* test(auto-reply): deslop x7338 tests

* test(state): deslop x7340 tests

* test(state): deslop x7340 tests

* test(state): deslop x7340 tests

* test(auth-profiles): deslop x7341 tests

* test(auth-profiles): deslop x7341 tests

* test(auth-profiles): deslop x7341 tests

* test(memory-wiki): deslop x7343 tests

* test(memory-wiki): deslop x7343 tests

* test(plugins): deslop x7339 tests

* test(plugins): further deslop x7339 tests

* test(plugins): further consolidate x7339 test fixtures

* test(ai): deslop x7335 tests

* test(ai): deslop x7335 tests

* test(ai): deslop x7335 tests

* test(imessage): deslop x7337 tests

* test(imessage): deslop x7337 tests

* test(agents): deslop x7336 tests

* test(agents): deslop x7336 tests

* test(agents): deslop x7336 tests

* test(codex): deslop x7334 tests

* test(codex): deslop x7334 tests

* test(plugins): deslop x7346 tests

* test(plugins): deslop x7346 tests

* test(plugins): deslop x7346 tests

* test(gateway): deslop x7348 tests

* test(gateway): deslop x7348 tests

* test(gateway): deslop x7348 tests

* test(memory-wiki): avoid shadowing prune fixture

* test: preserve current contracts in cleanup replay

* test: retain coverage and narrow unstable cleanup

* test(auth): withdraw failing OAuth fixture consolidation

Restore the complete main OAuth manager suite after hosted CI exposed a changed failure boundary in the consolidated root fixture. Preserve the original invalid_grant, owner cleanup, and recovery-reload assertions. No production changes; runtime verification stays in PR CI under the campaign CI-only directive.

* test(process): isolate synthetic scope reaping

The scope settlement fixture mocked process killing and termination but let
exec-spawn start the real Linux reaper for synthetic PID 424242. Fake-clock
restoration could strand SIGCHLD work in the shared worker; the subsequent
reaper test then failed when that inherited listener retired.

Mock the missing native cleanup boundary beside the existing termination
mocks. Exercise the existing uncertain-group case with Linux semantics and
assert that it preserves the exact SIGCHLD listener inventory. Keep every
original scope/custody assertion and all dedicated reaper tests unchanged.

Before: the strengthened producer case fails with an unexpected onExit
listener (14.41s wrapper). After: producer and reaper files pass 35/35 via
pnpm test <files> --maxWorkers=1 (57.29s wrapper, 45.57s Vitest).
Full owning process config: 857 pass, 60 existing platform skips across
92 files; 160.31s Vitest after the required 137.4s runtime build.
Targeted services test types (12.6s), lint, boundary lint, formatting,
git diff --check, and independent P0-P2 autoreview pass.

No production changes, assertion weakening, retries, added skips, timeout
changes, or CI dispatches/reruns.

* fix(ui): reload open session menu work after reconnect

* fix(ai): recover DeepSeek DSML tool calls when routed through OpenRouter (openclaw#175058)

* fix(ai): recover DeepSeek DSML tool calls when routed through OpenRouter

DeepSeek models sometimes emit tool calls as DSML markup in the reply
text. The recoverer was gated on thinkingFormat === "deepseek", which
only the native direct route produces; every OpenRouter route gets
thinkingFormat "openrouter", so a DeepSeek model reached through
OpenRouter leaked the raw markup as reply text and the tool call never
ran. Enable the recoverer when the model id matches the DeepSeek family,
mirroring the gemma recoverer, without changing request-side compat.

* fix(ai): make native tool calls authoritative over recovered DSML calls

When a DeepSeek response carries both DSML markup in the text channel and
a native tool_calls entry, both execution paths would run: the recovered
DSML call executed first and the native call executed again, producing a
duplicate tool invocation. Mirror the gemma recoverer's contract - native
tool calls own mixed streams - in three steps:

- a native tool-call delta flushes the recoverer with recovery disabled,
  so buffered markup is handed back as plain text instead of a call
- the final flush only authorizes recovery when no native delta arrived
- recovered blocks are recorded and dropped from the output whenever a
  native delta owns the response

Addresses the P1 finding raised in the review of openclaw#175058.

* fix(ai): restore typed recovery-part contract on DSML flush

ClawSweeper review on 6e4f32f flagged the unannotated flush return:
the plain-text branch widened kind to string, so appendRecoveredParts
rejected the union at openai-completions-stream.ts:348. Annotate
flush(allowRecovery = true): TextToolCallRecoveryPart[] to match the
gemma recoverer contract.

Also type the native-ownership filter set as Set<ToolCall> and narrow
the content-block predicate; Set<ToolCallBlock>.has() rejected the
TextContent | ThinkingContent | ToolCall union elements.

Verified: tsgo core clean, tsgo:test:packages + extension-declarations
pass, 59/59 tests across openai-completions-dsml.recovery and
openai-completions-stream, oxfmt/oxlint clean.

* fix(ai): own routed DSML recovery in model compatibility

Recover and filter DeepSeek DSML across OpenAI-compatible routes without changing OpenRouter thinking requests. Keep native calls authoritative at terminal finalization, remove the redundant flush API, and cover markup leakage and call ordering. Fixes openclaw#174909.

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

---------

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

* refactor(skills): use the concrete upload store singleton (openclaw#175287)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 18, 2026
The fault worker delegated iteration with yield*, which does not close the
native iterator when next() throws. Its completed wrapper then hid the
native return() from Kysely cleanup. On Node 24.19 the cached statement
reported the old injected error on its next use after faults were disabled.

Explicitly close the native iterator before restoring the TEMP triggers.
Production queue and database behavior is unchanged. Preserve every
committed-prefix, pending-input and exactly-once assertion.

The scalar INSERT ... RETURNING path added by openclaw#175193 exposed this latent
fixture defect. openclaw#174897 did not remove a required predecessor, and openclaw#175295
is not the cause. Reproduced the same failure on hourly ea5c031 and
current main 6b9b192 using CI's Node 24.19.0; Node 24.22 used all()
and passed without the change.

Focused full-file proof: 5/5 pass in normal order with --maxWorkers=1,
28.45 s Vitest / 49.62 s command wall. Independent P2 review is clean.
All 22 affected consumer files pass: 337 tests using Node 24.19 and
--maxWorkers=1. The other 21 files take 509.14 s wall across five native
configs. Owning test-helper types, boundary lint, syntax, formatting and
whitespace checks pass. Root-test type-aware lint reports the same
pre-existing no-map-spread violation at this file's unchanged line 22 on
both base and candidate; no new diagnostic or suppression is introduced.
No CI dispatch or rerun.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling channel: imessage Channel integration: imessage extensions: codex extensions: memory-wiki gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant