Skip to content

test(core,plugins): remove low-value tests (batch d600) - #184375

Merged
steipete merged 33 commits into
mainfrom
tcr/land-d600-1793001174
Oct 26, 2026
Merged

steipete merged 33 commits into
mainfrom
tcr/land-d600-1793001174

Conversation

@steipete

@steipete steipete commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Reduces duplicated test layers and repeated fixtures in batch d600 while retaining owner-boundary checks.

User Impact

No production-runtime behavior change. This is test/support maintenance; CI inventory edits remove only deleted test paths. No visual change, migration, or operator action.

Why This Change Was Made

Replayed 27 of the 30 supplied commits onto pinned main f5eb9570aac03eccd09bf38d8a155d4039fc768f. Consolidations keep observable authority, cancellation, recovery, transport, persistence, and lifecycle assertions at their owning boundary.

Rebased onto pinned main 6f94c2a27fbac10784eec09676b4357dcfde5671, incorporating #184427's requester-wake ordering and session-entry equality repair. Restored the complete shared registry-state fixture to its merge-base version after tracing all six failing tests' transitive local imports: requester-wake directly imports this changed support file; the other five have no changed support dependency (the only shared changed runtime import is package.json, whose sole change removes a deleted Windows test from its script). No vitest/setup/harness configuration is changed. The rebase had no conflicts; all 33 replay/correction patches were unchanged in git range-diff. Changed-file formatting, plain lint, and diff-check were repeated. Fresh-head CI is required; prior-head results are not substituted.

Replay decisions

  • Skipped 92cf754b21e3c: main already removed the duplicate config metadata/SecretRef section (current file history includes 49a092d67f339, batch d220); do not resurrect it.
  • Skipped 06fa23da86b2e entirely: Gateway browser/recovery fixtures diverged on main; deleting the old test family without porting every replacement would risk losing current proof.
  • Skipped 7f115abc858f0 entirely: identity-admission fixture changed on main (fed1c12d0d4ee); preserve current boundary tests rather than merge an obsolete fixture family.
  • Kept main versions of conflicted Copilot auth/catalog/replay files, CLI install-preflight and initial update-authority hunks, config schema regressions, Bun SQLite capability publication, Node recovery shutdown, plugin reload-readonly, session keybindings, secret-input delivery, and Codex plugin metadata cache. Independent hunks in those commits remain. This preserves newer main contracts and avoids reintroducing retired fixtures.
  • Resolved package.json by removing only the deleted Windows census test path from main's current command; all newer main test entries remain.

Evidence

  • Frozen/offline-preferred dependency installation passed.
  • Changed-file node_modules/.bin/oxfmt --write: passed.
  • Changed TS/JS node_modules/.bin/oxlint -c .oxlintrc.json: exit 0.
  • git diff --check f5eb9570aac03eccd09bf38d8a155d4039fc768f: passed.
  • CI-only operator instruction: no local Vitest, typecheck, check-changed, coverage, or Testbox execution. Hosted openclaw/ci-gate is the merge proof. Independent review completed: two accepted findings restored to pinned-main tests; the correction review is scoped-clean (P0–P2).
  • Coverage limitation: every supplied shard report says tests and coverage were not run under CI-only mode; no measured in-shard coverage totals exist to quote. This PR makes no coverage-percent or runtime-speed claim.
  • Production runtime LOC: +0 / -0. Test/support LOC: +2095 / -3941. Test inventory/configuration LOC: +1 / -2. Total: +2096 / -3943 across 85 files.
  • No changed path matches the current CODEOWNERS rules. No admin bypass requested.
Per-shard final replay inventory

LOC below is actual added/deleted lines against the pinned main. Declaration counts are textual it/test(...) / it.each(...) declarations in retained changed test/support files, not expanded or executed cases. Supplied reports predate additional consolidation commits, so their initial LOC figures are not substituted for this replay.

Shard Test/support LOC + / - Declarations before → after Coverage totals
o0209 +76 / -191 35 → 33 Not run (CI-only report)
o0210 +95 / -227 19 → 16 Not run (CI-only report)
o0211 +508 / -859 43 → 30 Not run (CI-only report)
o0215 +39 / -195 18 → 16 Not run (CI-only report)
o0212 +295 / -435 26 → 18 Not run (CI-only report)
o0214 +133 / -245 10 → 7 Not run (CI-only report)
o0213 +198 / -313 43 → 38 Not run (CI-only report)
o0216 +92 / -181 12 → 11 Not run (CI-only report)
o0218 +198 / -269 9 → 9 Not run (CI-only report)
o0217 +57 / -323 32 → 26 Not run (CI-only report)
o0219 +17 / -40 1 → 1 Not run (CI-only report)
o0221 +194 / -349 19 → 17 Not run (CI-only report)
o0220 +193 / -314 14 → 11 Not run (CI-only report)
o0208 0 / 0 unchanged Entire commit skipped

o0209

  • extensions/copilot/src/attempt-transcript-memory.test.ts
  • extensions/copilot/src/auth-bridge.test.ts
  • extensions/copilot/src/runtime-artifact.test.ts
  • extensions/copilot/src/attempt-cleanup.test-support.ts
  • extensions/copilot/src/attempt-prompt.test-support.ts
  • extensions/copilot/src/tool-bridge.host-surface.test.ts

o0210

  • src/cli/plugin-registry-loader.test.ts
  • src/cli/plugins-search-command.test.ts
  • src/cli/gateway-rpc.runtime.test.ts
  • src/cli/logs-cli.port.test.ts
  • src/cli/plugins-update-command.authority.integration.test.ts
  • src/cli/profile.test.ts

o0211

  • extensions/xai/doctor-contract-api.test.ts
  • extensions/xai/responses-tool-policy.test.ts
  • extensions/xai/server-compaction.test.ts
  • extensions/xai/stream.test.ts
  • extensions/xai/video-generation-provider.test.ts
  • extensions/xai/video-generation-provider.transport.test.ts
  • extensions/xai/image-generation-provider.test.ts
  • extensions/xai/lazy-capability-providers.test-support.ts
  • extensions/xai/lazy-capability-providers.test.ts
  • extensions/xai/realtime-voice-socket.test-support.ts

o0215

  • src/config/config-corpus.test-support.ts
  • src/config/config.web-search-provider.test.ts
  • src/config/io.cli-validation.integration.test.ts
  • src/config/io.write-preflight.test-support.ts
  • src/config/plugin-auto-enable.test-helpers.ts
  • src/config/schema.hints.test.ts

o0212

  • src/infra/client-credential-lifecycle.test.ts
  • src/infra/sqlite-worker-store.compile-cache-parent.test-support.ts
  • src/infra/windows-process-start.test.ts
  • src/infra/windows-process-census.test.ts
  • package.json
  • src/infra/package-update-permission-drift.test.ts

o0214

  • src/agents/subagents/registry/subagent-registry-lifecycle-delivery-mirror.test-support.ts
  • src/agents/subagents/registry/subagent-requester-settle-identity.test.ts
  • src/agents/subagents/registry/subagent-registry-run-wait.test.ts
  • src/agents/subagents/registry/subagent-registry-running-registration.native.test.ts
  • src/agents/subagents/registry/subagent-registry-sweeper.test-support.ts

o0213

  • src/agents/agent-tools.turn-authority.test.ts
  • src/agents/mcp-oauth-fetch.test.ts
  • src/agents/prepared-tool-surface.test.ts
  • src/agents/sandbox-media-paths.test.ts
  • src/agents/code-mode-state.test.ts
  • src/agents/code-mode.bridge.test.ts
  • src/agents/code-mode.bridge.tts-delivery.test.ts
  • src/agents/core-coding-tools.linked-worktrees.test.ts
  • src/agents/mcp-oauth-provider.preparation.test.ts
  • src/agents/mcp-oauth-writes.test.ts
  • src/agents/model-fallback.overflow-recovery.test.ts

o0216

  • src/gateway/server-methods/agent-session-patch.test.ts
  • src/gateway/server-methods/backup.test.ts
  • src/gateway/server-methods/cron.list-plugin-command.test.ts
  • src/gateway/server-methods/cron.scratch-read.test.ts
  • src/gateway/server-methods/devices.test-support.ts
  • src/gateway/server-methods/session-catalog-provider-diagnostics.test.ts

o0218

  • src/agents/sessions/agent-session.context-usage.test.ts
  • src/agents/sessions/session-manager-async-message-custody.test.ts
  • src/agents/sessions/session-manager-code-mode-store.test.ts
  • src/agents/sessions/system-prompt-pool.retention.test-support.ts
  • src/agents/sessions/agent-session-compaction-boundary.test.ts
  • src/agents/sessions/agent-session-compaction.provider-boundary.test.ts
  • src/agents/sessions/session-manager-target-capture.test.ts

o0217

  • src/process/child-memory.test.ts
  • src/process/darwin-process-inspection.test.ts
  • src/process/decoded-output.test.ts
  • src/process/exec-termination.liveness.test.ts
  • src/process/gateway-work-admission.continuation.test.ts
  • src/process/command-process-custody.process.test.ts
  • src/process/exec-adopted-reaping.test.ts
  • src/process/respawn-child-runner.test.ts

o0219

  • ui/src/e2e/chat-flow-fixtures.test-support.ts
  • ui/src/e2e/sidebar-assertions.test-support.ts
  • ui/src/e2e/typography-module-boundaries.test-support.ts

o0221

  • ui/src/pages/agents/file-status.test.tsx
  • ui/src/pages/agents/identity-status.test.tsx
  • ui/src/pages/agents/panel-channels.test.tsx
  • ui/src/pages/agents/panels-skills.browser.test.ts
  • ui/src/pages/agents/skills.test.ts

o0220

  • extensions/codex/src/app-server/attempt-steering.confirmation.test-support.ts
  • extensions/codex/src/app-server/shared-client-compaction-retention.test-support.ts
  • extensions/codex/src/app-server/rate-limit-cache.test.ts
  • extensions/codex/src/app-server/settled-turn-prior-context.test.ts
  • extensions/codex/src/app-server/transport-spawn.test.ts

Review resolution

Restored the entire ClawHub Claw trust and tool-schema projection files to pinned main, retaining suspicious-package consent and malformed-schema/sibling isolation cases. These files are no longer part of the final diff. The table above is recomputed from the final retained diff.

The original provenance consolidation was subsequently dropped after its moved budget test failed CI. Four other findings rejected with current-source evidence: OAuth one-time consume remains in mcp-oauth-store.test.ts:118-120; busy-owner loss and custody remain in update-command-doctor-delegation.test.ts; unrelated-child isolation remains in child-process-tree.reaping.test.ts and service-child-subreaper.real.test.ts; pre-ack abort and pending-entry cleanup remain in attempt-steering.test.ts:400-418.

CI repair

Run 40289629581 exposed batch-caused failures. Restored the route table, session write-hold, tool-result replay, native provenance/observation, and reconciliation/metadata-read families to pinned main rather than weaken their assertions. Kept the supported separate export for the XAI hoisted fixture and documented the credential/network isolation of two mocks. Restored the provenance inventory entries. Every corrective delta passed plain oxlint where applicable, formatting, diff-check, and isolated review. The mock annotation additionally made one exact baseline tuple stale; removed only the tuple printed by CI (shrink-only). Fresh-head core test-type jobs passed on 3d193a0.

Run 40292433487 exposed two more batch-caused lint failures: an async native HTTP callback violated the void handler contract, and a method shorthand changed the inferred binding contract of existing destructured update helpers. Restored both complete files to pinned main. The correction passed format, plain oxlint, diff-check, and isolated P0–P2 review; no local tests or typechecks ran.

Run 40297145653 reported Telegram recovered-artifact setup timeout, requester-wake ordering, native-hook CLI version mismatch, Codex compaction ownership, catalog first-page delivery, and command-ownership SQLite conflict. Read each failed job log once. Restored the shared registry-state fixture without changing any failing test, timeout, assertion, or skip. Isolated P0–P2 correction review is scoped-clean. Scheduled main run 40294882381's failed test logs contain no matching signature, so none of those failures is waived. Rebased to incorporate #184427; fresh-head CI remains the proof and any remaining failures require reclassification.

Settlement result

Head a87a5e2df886f3970e90d032c8cac316b6fc9ac0 completed CI run 40304203935 and one failed-job rerun. Requester-wake, catalog first-page delivery, command ownership, native-hook pressure, dispatch, and PR-context checks now pass. Two test jobs remain red:

  • Telegram recovered artifact: setup now succeeds, but line 379 expects the text-only recovery request's tool list to be empty and receives an apply_patch custom tool. The same assertion fails on both attempts. The test is identical on old base, PR head, and refreshed main 92415c1e5fe71a311d6a3f72cf66b139d6d2df26. Failed test logs from the three recent scheduled main CI runs (40302156926, 40294882381, 40288296632) contain no matching signature. This is not waived; no clean-main reproduction is claimed.
  • Codex compaction ownership: exact assertion reproduced on scheduled main's Hourly Extension Tests, run 40295671954/job 121481620643 and run 40289128414/job 121460465781. This failure is pre-existing. Command ownership's prior SQLite conflict also matches main job 121481625211, but passed on the rebased head.

Auto-merge is disabled because the Telegram failure is not proven pre-existing. No admin merge, second rerun, local tests/typechecks, or leases. No assertion, timeout, skip, or unrelated failing test was changed. Landing remains blocked on a repair or matching scheduled-main proof for the Telegram assertion.

@clawsweeper

clawsweeper Bot commented Oct 26, 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 26, 2026 07:57
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 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-26T10:05:11.664886Z a87a5e2 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 app: web-ui App: web-ui gateway Gateway runtime cli CLI command changes scripts Repository scripts docker Docker and sandbox tooling agents Agent runtime and tooling extensions: codex extensions: xai extensions: copilot size: XL labels Oct 26, 2026
@steipete
steipete disabled auto-merge October 26, 2026 08:00
@steipete
steipete enabled auto-merge (squash) October 26, 2026 08:03
@steipete
steipete disabled auto-merge October 26, 2026 08:10
@steipete
steipete enabled auto-merge (squash) October 26, 2026 08:16
@openclaw-barnacle openclaw-barnacle Bot removed the scripts Repository scripts label Oct 26, 2026
@steipete
steipete disabled auto-merge October 26, 2026 08:26
@steipete
steipete enabled auto-merge (squash) October 26, 2026 08:27
@steipete
steipete disabled auto-merge October 26, 2026 08:41
@steipete
steipete enabled auto-merge (squash) October 26, 2026 08:44
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR consolidates test fixtures and overlapping coverage across core, plugins, and the Control UI.

Example: xAI video generation uses an opted-in private endpoint.

  • Before: A separate transport suite checks submission, polling, downloads, and credential isolation.
  • After: The shared image/video transport suite retains those checks with one HTTP server fixture.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful consolidation with no concrete introduced defect found; incomplete CI attribution limits validation confidence.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-directed test/support cleanup changes no shipped behavior; contributor live demonstrations are not required.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Repeated fixtures and overlapping test layers increase maintenance effort.
Reason: The maintainer-directed cleanup reduces duplication while retaining inspected cancellation, ownership, persistence, transport, and UI recovery contracts.

Merge readiness

✅ Ready for maintainer review

Keep open as useful maintainer-directed test maintenance; no actionable introduced defect was found, but current-head CI remains unresolved.

Priority: P3
Reviewed head: 239d2593701934809eb4ccdc55ae7846adbe67f4

Before merge

None.

Findings

None.

Agent review details

How this fits together

The test suites exercise production owners using synthetic inputs, local transports, and isolated state, then report assertions through CI.

flowchart LR
  A[Test fixtures] --> B[Core and plugin owners]
  B --> C[Local transports and isolated state]
  C --> D[Boundary assertions]
  D --> E[CI gate]
Loading

Technical review

Best possible solution:

Retain the consolidation and existing boundary assertions, then complete the normal CI landing gate.

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

This PR addresses duplicated test maintenance rather than a reported runtime bug; source inspection confirms its test-only scope.

Is this the best way to solve the issue?

Reusing existing fixtures and keeping assertions at their owning boundaries is appropriate; inspected replacement suites preserve the central contracts.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Production versus test/support LOC Production +0/-0; test/support +2084/-3952 The reduction comes from fixture reuse and consolidation without production growth; inventory changes are excluded.

Labels

Label changes:

  • add P3: This is test maintenance without a production behavior change or demonstrated urgent user regression.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is test maintenance without a production behavior change or demonstrated urgent user regression.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Classify the remaining current-head failures using matching baseline evidence or a demonstrated diff-caused repair.

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 26, 2026, 5:02 AM ET / 09:02 UTC.

@steipete
steipete force-pushed the tcr/land-d600-1793001174 branch from 239d259 to d2b1b6f Compare October 26, 2026 09:07
@steipete
steipete disabled auto-merge October 26, 2026 09:59
Remove the unused cleanup registrar from attempt.test-support; attempt.test retains the same pre-session failures, cancellation, and callback drain cases through attempt-cleanup.test-support. Share the caller-owned transcript fixture without dropping ownership or serialization checks. Trim same-branch auth variants and consolidate runtime artifact fixture writes.
Keep real SDK catalog cancellation ordering; retained source and SDK post-close rejection stays in tool-bridge.test.ts: binds retained code-mode source and SDK controls exactly once. Merge host-prepared reader execution and SDK metadata into the memory-surface cases.

Consolidate auth precedence setup and same-branch replay variants. Token rotation retains credential invalidation; attempt.test.ts replay session selection and consolidated mutating tool metadata retain replay outcomes. The final appended developer instructions test absorbs positive delegation normalization and conversation context; delegation-guidance.test.ts owns no-usable-tool omission.

Shrink runtime artifact fixtures and share existing attempt gates while retaining transcript rebinding, detached cleanup, and transport checks. CI-only: formatting, diff check, and plain oxlint passed; no tests or coverage run. Shard lines: 1716 to 1372.
Keep one provider row per fallback/cancellation branch: timeout degraded, provider AbortError recovered, and caller cancellation. Remove repeated internal return-shape assertions while retaining persisted outcomes, authority, usage accounting, and replay normalization. Consolidate keybinding creation/reload setup and reuse session-state setup for compaction. No production changes; CI-only mode, oxfmt and plain oxlint passed. Cumulative shard reduction remains below the requested 20% because remaining cases protect distinct owner boundaries.
Share Linux timer setup, procfs file reads, and watcher callbacks across child-memory scenarios. Preserve every case and assertion, including sampling cadence, descendant accounting, retry cancellation, and memory limits. The remaining shard fixtures protect distinct process lifecycle and security boundaries; no unsafe deletion to meet the line target.
Keep native Darwin selected-PID and UTC identity proof in darwin-process-inspection.native.test.ts. Retain one representative census mapping instead of replaying its enum inventory.

Keep post-admission cancellation completion in gateway-work-admission.test.ts (retains resumed independent work until its original completion after admission cancellation). Keep active-source closure and blocked-consumer disposal in service-child-relay-host.awaited-output.test.ts (rejects premature stdout close after root exit through the actual caller; joins accepted stdout after identity loss while preserving an observed root).

Keep real secret-byte delivery and zeroing in spawn-secret-input.test.ts POSIX and Windows pipe cases; narrow the controlled stream to late-error settlement. Keep forced Windows helper command checks in exec.windows.test.ts and retain graceful settlement liveness with both successful and failed helpers.
Delete command-process-custody.process.test.ts: update-command-doctor-delegation.test.ts covers CPU-bound owner loss, retained writer identities, actual custody publication, and native cleanup in its settles a CPU-bound Doctor at its deadline or records unresolved writer identity cases.

Keep the scoped-spawn adopted-zombie regression from 0316fd1, while removing its runner replay and extra unrelated-child fixture. Runner cleanup is covered by exec.test.ts (joins owned descendants even when a successful root closes its output) and scoped-child-reaper.test.ts (settles a cooperative descendant throughout a longer command grace period). Isolation remains covered by child-process-tree.reaping.test.ts and the native active-root-orphan case in service-child-subreaper.real.test.ts.

Drop the synchronous spawn-throw passthrough probe. Drop the composed live-parent closing-scope replay: gateway-work-admission.test.ts retains continuation ownership under suspension, and async-work-scope.test.ts joins synchronous descendants during drain and fences late work. No production changes or test runs; local formatting, oxlint and diff checks passed.
Reuse session-page polling assertions and the config snapshot fixture. Read shortcut labels, fonts, and ink alignment in one browser pass while preserving all assertions and both platform cases.

CI-only validation: plain oxlint, oxfmt, and git diff --check pass. No runtime tests or coverage executed. The shard retains lifecycle, durable-state, payload, layout, and explicit failure-diagnostic contracts rather than deleting them for the line target.
Port o0213 onto the campaign lane, retaining the lane's newer schema regression cases, modified adapter test, and request-shape assertion. Reuse Git and registry fixtures and preserve the compaction-to-fallback integration regression. CI-only validation: oxlint and oxfmt --check on all ten changed files, plus git diff --check; runtime tests deferred to landing CI.
Share skills reset fixtures, panel queries and status assertions; table route normalization without removing URL branches. Keep deferred-write, scope retirement, authority, retry and DOM identity checks.

Retain Workshop allowlist assertions in the reset/retry case and one-of-binary diagnostics in the refreshed-row case. Remove the direct-callback retry replay in favor of the Refresh-button case. Skills library view.test.tsx also retains the one-of-binary install diagnostic.

CI-only campaign: oxfmt, plain oxlint and diff-check pass; no local tests or coverage. Test LOC 1691 to 1513 (10.5%); below 20% because remaining lifecycle, authority and distinct UI paths are retained.
Reuse steering and compaction fixtures and simplify provenance setup and effort expectations. Keep distinct lifecycle and provenance assertions.

Remove pre-acknowledgement abort variants: attempt-steering.test.ts already proves in-flight request cancellation and pending-entry removal; waitForTranscriptCommit is read only after acknowledgement.
Keep provenance budgeting with the native observation attempt suite in its existing database-worker project. Projection-owner tests retain historical sender attribution; the continuity-projection test retains inert sender escaping.

Remove missing-executable replay covered by attempt-startup-retry preserves spawn failure without retrying. Keep cache module identity in the expiry test; client-runtime installs shared handlers once per physical client and same-build retained-owner tests retain notification routing and runtime sharing.

Replace observation cleanup-only interruption replay with the terminal fixture; attempt-client-cleanup retains exact-turn interruption proof. Consolidate cache invalidation scenarios and fixtures; preserve custody, redaction, prior-history validation and native effort branches.
@steipete
steipete force-pushed the tcr/land-d600-1793001174 branch from d2b1b6f to a87a5e2 Compare October 26, 2026 10:02
@steipete
steipete enabled auto-merge (squash) October 26, 2026 10:02
@steipete
steipete disabled auto-merge October 26, 2026 10:36
@steipete

Copy link
Copy Markdown
Contributor Author

Settlement: remaining failures are inherited

Landing head a87a5e2df886f3970e90d032c8cac316b6fc9ac0 under the maintainer-authorized pre-existing-failure exception. CI remains red; this is not a claim that the tests passed. No assertions, timeouts, skips, or Telegram test bytes were changed, and no further CI rerun was requested.

Check Classification Exact evidence
checks-node-changed-7 PRE-EXISTING — clean-main local reproduction explicitly authorized by the coordinator PR CI attempt 2 fails telegram-recovered-artifact.e2e.test.ts, delivers a recovered artifact once while preserving its inter-session transcript, line 379: the text-only recovery request contains the apply_patch custom tool instead of []. The same assertion fails locally on the PR merge base and fresh clean main, as detailed below.
checks-node-changed-extensions-bundle-23-1 PRE-EXISTING — scheduled-main reproduction PR CI attempt 2: compact.client-ownership.test.ts:496, fences replacement resume after compaction success (late final release: during-resume, subscription: idle), receives [0,0,0,1,1] instead of [0,0,0]. Exact same case and assertion on scheduled main run 40295671954 / job 121481620643, main 239852acc9195a3c5e724630e1221b812266bb81; also run 40289128414 / job 121460465781.
openclaw/ci-gate AGGREGATE of the two inherited test failures Gate job reports checks-node-core-test-nondist-shard finished with failure. Its automatic classification timed out; the direct evidence above supplies attribution.

Telegram PR / base / clean-main results

Revision / route Result
PR head a87a5e2df886f3970e90d032c8cac316b6fc9ac0, existing pinned-Bun CI FAIL, exact line-379 apply_patch versus [] assertion, on both CI attempts; attempt 2 linked above.
Same PR head, initial local Node 24.22.1 run SETUP FAILURE, unchanged 180000ms beforeAll timeout; 230.85s total. Did not reach line 379 and is not used as inherited-assertion evidence.
Merge base 6f94c2a27fbac10784eec09676b4357dcfde5671, local pinned Bun FAIL, one file / one test, exact line-379 apply_patch versus [] assertion; 250.35s total.
Fresh clean main 197cb48d9083ea9d56f12d70b0b41daecfd58180, local pinned Bun FAIL, one file / one test, exact line-379 apply_patch versus [] assertion; 254.14s total. This is the coordinator-authorized clean-main evidence.

The local comparison used the repository wrapper, one worker, an empty inherited environment, and a fresh isolated HOME, OpenClaw config/state/OAuth location, XDG directories, and module-cache path for each run. No operator Gateway or real credentials were used. The repository-pinned Bun revision was 1.4.4-canary.1+807211511; its executable SHA-256 matched scripts/lib/openclaw-bun.json. Node 24.22.1 handled orchestration. Command shape after selecting that verified binary:

CI=1 OPENCLAW_VITEST_RUNTIME=bun OPENCLAW_BUN_PATH="$PINNED_BUN" \
  node scripts/run-vitest.mjs run \
  --config test/vitest/vitest.e2e.config.ts \
  test/e2e/qa-lab/runtime/telegram-recovered-artifact.e2e.test.ts \
  --maxWorkers=1

The test has identical Git blob e46b26f5b26eb625118ba7afaa77e798c4f9dd63 on the PR head, merge base, and tested clean main. Runtime artifacts were prepared by the native runner for each source state. Shared dependency links and stale copied plugin dependencies initially prevented setup; a task-private clean frozen-lockfile install resolved those setup failures. They are not counted as test results. The Node setup timeout was kept distinct from the matching Bun assertion failures.

No new batch source fixes were needed in this attribution pass. The earlier fixture restoration and main repair incorporation remain intact; the retained batch has no production-runtime changes. Existing independent correction reviews and the completed exact-head code review are reused because the submitted patch is unchanged. git diff --check passes. No Testbox/AWS leases were created.

@steipete
steipete merged commit 7b95dbd into main Oct 26, 2026
399 of 407 checks passed
@steipete
steipete deleted the tcr/land-d600-1793001174 branch October 26, 2026 11:18
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 27, 2026
)

* test(copilot): deslop o0209 tests

Remove the unused cleanup registrar from attempt.test-support; attempt.test retains the same pre-session failures, cancellation, and callback drain cases through attempt-cleanup.test-support. Share the caller-owned transcript fixture without dropping ownership or serialization checks. Trim same-branch auth variants and consolidate runtime artifact fixture writes.

* test(copilot): consolidate o0209 boundary fixtures

Keep real SDK catalog cancellation ordering; retained source and SDK post-close rejection stays in tool-bridge.test.ts: binds retained code-mode source and SDK controls exactly once. Merge host-prepared reader execution and SDK metadata into the memory-surface cases.

Consolidate auth precedence setup and same-branch replay variants. Token rotation retains credential invalidation; attempt.test.ts replay session selection and consolidated mutating tool metadata retain replay outcomes. The final appended developer instructions test absorbs positive delegation normalization and conversation context; delegation-guidance.test.ts owns no-usable-tool omission.

Shrink runtime artifact fixtures and share existing attempt gates while retaining transcript rebinding, detached cleanup, and transport checks. CI-only: formatting, diff check, and plain oxlint passed; no tests or coverage run. Shard lines: 1716 to 1372.

* test(cli): deslop o0210 tests

Consolidate update result fixtures and runtime captures, retain every registry routing interleaving, and trim duplicate search/recovery variants. Version-format variants remain covered by skills-search-cli.test.ts. Scoped recovery denial remains covered for both unversioned and versioned requests with recovery metadata enabled.

* test(cli): consolidate o0210 duplicate proof layers

Keep generation and host-cohort proof in plugins-update-command.generation.integration.test.ts. Keep stderr interleaving in json-output-mode.test.ts, timing serialization in command-startup-timing.test.ts and diagnostics-timeline.test.ts, classifier behavior in gateway/call.test.ts, and package/version parsing in plugins-cli.install.test.ts. Preserve authority, recovery, signal ordering, and transport cases; consolidate service fixtures and reuse the canonical Nix error.

* test(xai): deslop o0211 tests

Consolidate video request and tool-policy fixtures without dropping their cases. Keep source-based image replay in the cross-turn prefix test, replacing the narrower replay duplicate. Share catalog fixtures while preserving migration exclusions, and retain all SSRF, header isolation, compaction, and lazy lifecycle checks.

* test(xai): consolidate o0211 test layers

Merge image and video private-endpoint transport fixtures, retaining credential isolation and direct/redirected SSRF checks in image-generation-provider.test.ts. Combine video release/poll lifecycle proof and OAuth header proof without duplicating setup. Reuse configuration builders, replace unused mock bookkeeping with result assertions, and remove the unreferenced deferred WebSocket-close fixture. Grok 4.7 represents the shared post-4.6 tool-effort branch; runtime-model-compat.test.ts retains the Grok 4.8 model mapping proof.

* test(config): consolidate o0215 fixtures and schema cases

Use the on-disk startup corpus rather than regenerating model and disabled-skill inventories. Keep the historical hamverbot source-preservation case on the identical operator shape, and retain the JSON-schema compatibility field at the schema validation boundary.

Consolidate schema inputs by validation path, combine case and whitespace provider normalization, retain unavailable and unknown-provider branches, and remove CLI validator call-count assertions plus the root documentation inventory. Reuse the empty metadata fixture index without rebuilding it.

Original baseline: 1748 lines; final: 1483 lines (-15.2%). The 20% target remains unmet: preserve distinct authority/revocation, preflight ordering, durable write/rollback, migration, and credential checks rather than deleting their only proof. The six metadata cases removed in the prior commit remain in validation.allowed-values.test.ts. CI-only mode: oxfmt, plain oxlint, and git diff --check pass; no tests, builds, or coverage run.

* test(infra): deslop o0212 tests

Consolidate repeated Windows fallback and credential-lifecycle setup while retaining all 92 expanded cases. Keep PID validation in the existing rejects PID table, preserve exact shell environment and timeout assertions, and share the compile-cache enable call across fixture modes.

* test(infra): consolidate o0212 branch and fixture coverage

Remove unused compile-cache fixture modes: sqlite-worker-store.compile-cache.test.ts only calls openclaw/foreign with unset overrides. Keep both worker generations and bytecode flush assertions.

Deduplicate ClawHub consent against src/plugins/clawhub.test.ts (cancels before download when confirmation is declined); keep all artifact binding controls. Windows diagnostic environments remain covered by windows-diagnostic-env.test.ts and process-env.test.ts. Standalone invocation and parent binding remain covered by entry.compile-cache.test.ts and the real recovery gateway-drain test.

Bun selection failure, immutable inherited capabilities and retained callable ownership remain covered by bun-sqlite-library.worker.test.ts. Keep deferred publication, early topology and missing-parent admission here. Preserve credential rejection with the stronger newer-layout case and share child database cleanup.

* test(subagents): deslop o0214 tests

Consolidate initial dispatch identity assertions into the retained persisted-retry custody matrix. Preserve every custody, generation, and retry transition.

Keep mirror delivery outcomes and scope checks; remove repeated expiry callback and log assertions covered by subagent-registry-lifecycle.test.ts: preserves the concrete delivery error through retries. Inline the fixture publication wrapper and simplify metadata payload assertions without dropping invalid-row readers.

CI-only campaign: oxfmt, diff check, and plain oxlint pass; no tests or coverage run. This already-consolidated shard remains below the requested 20% line reduction.

* test(subagents): consolidate o0214 reconciliation and mirror proof

Merge metadata-read proof into the same routed reconciliation suite and share lifecycle fixtures. Keep every owning-agent, opaque-peer, incognito, cold-payload, and malformed-row check.

Cover current delivery, long replies, and explicit requester ownership together; preserve distinct key-prefix and stale/sibling rejection branches. Payload and attempt clearing remain covered by the late-mirror ownership matrix in subagent-registry-lifecycle.test.ts. Remove a duplicate dispatching identity row, reuse the real queued-registration SQLite reader, and shrink generic store fixtures and observer cleanup.

CI-only: plain oxlint, oxfmt, and diff check pass. No tests or coverage run. This additional safe cut remains below the campaign line target; retain distinct recovery, ordering, and durability proof rather than deleting unique paths.

* test(subagents): remove redundant o0214 boundary fixtures

Keep one unrelated cold row at the reconciliation boundary; snapshot field selection remains covered by session-entry-read.worker.test.ts: hydrates only requested snapshots while retaining exact-read lifecycle and authorization facts.

Drop narrow identity replays covered by restart-recovery.test.ts: keeps the dispatched surviving cohort owned after a member retires, and subagent-control.worker.test.ts: recovers a known missing required result through periodic admission. Retain every requester binding and custody branch.

Use local injected collector lookup in the sweeper fixture and preserve cleanup guards with less callback scaffolding. CI-only: oxfmt, diff check, and plain oxlint pass; no tests or coverage run. Cumulative line reduction remains short of 20 percent because remaining cases protect distinct boundaries.

* test(agents): deslop o0213 tests

Consolidate OAuth body replay into the retained bootstrap challenge case; the second-rejection case retains existing-token retry coverage. Fold schema-map keyword names into the exact traversal diagnostic case. Share sandbox containment setup without dropping positive or negative boundary assertions.

CI-only shard: retain distinct authorization, persistence, recovery, and lifecycle cases. No runtime tests or coverage run; local formatting, diff check, and plain oxlint passed. Reduction is intentionally below target because additional inspected cases protect distinct behavior.

* test(gateway): deslop o0216 tests

* test(gateway): consolidate o0216 owner-boundary proof

Keep backup.status as an RPC integration case; target grouping, namespace separation and latest-success selection remain covered by src/state/backup-run-records.test.ts (reads legacy manifests and round trips offsite details and external command outcomes; does not count namespace successes toward another namespace schedule; retains target attempts and successes beyond the 200-row window).

Keep provider cancellation diagnostics while leaving successor admission ordering to session-catalog-provider-access.test.ts: releases retired queued work before active providers settle. Reuse the read-only cron fixture without scheduler startup, as in cron.list-scoped.test.ts. Preserve all redaction, consent-write, release, and lifecycle assertions.

* test(gateway): trim o0216 fixtures and naming cases

Consolidate existing-session naming into the display-name decision table, keep the merged-name assertion and new-session absence guards, and remove unrelated cron fixture metadata. Keep the readonly plugin response and runtime identity while leaving restart/plugin-id response shape to plugins-mutations.test.ts: returns reload restart requirement and deduplicated warnings.

* test(sessions): deslop o0218 tests

Reuse the existing session-state fixture for custody and prepared-write proof, factor repeated Code Mode value assertions, and share prompt checkpoint envelopes. Preserve all authority, persistence, replay, and lifecycle cases and assertions. CI-only validation: plain oxlint, oxfmt, and diff checks; runtime proof deferred to hosted CI.

* test(sessions): consolidate o0218 boundary proof

Keep one provider row per fallback/cancellation branch: timeout degraded, provider AbortError recovered, and caller cancellation. Remove repeated internal return-shape assertions while retaining persisted outcomes, authority, usage accounting, and replay normalization. Consolidate keybinding creation/reload setup and reuse session-state setup for compaction. No production changes; CI-only mode, oxfmt and plain oxlint passed. Cumulative shard reduction remains below the requested 20% because remaining cases protect distinct owner boundaries.

* test(process): deslop o0217 tests

Share Linux timer setup, procfs file reads, and watcher callbacks across child-memory scenarios. Preserve every case and assertion, including sampling cadence, descendant accounting, retry cancellation, and memory limits. The remaining shard fixtures protect distinct process lifecycle and security boundaries; no unsafe deletion to meet the line target.

* test(process): remove duplicated o0217 boundary proofs

Keep native Darwin selected-PID and UTC identity proof in darwin-process-inspection.native.test.ts. Retain one representative census mapping instead of replaying its enum inventory.

Keep post-admission cancellation completion in gateway-work-admission.test.ts (retains resumed independent work until its original completion after admission cancellation). Keep active-source closure and blocked-consumer disposal in service-child-relay-host.awaited-output.test.ts (rejects premature stdout close after root exit through the actual caller; joins accepted stdout after identity loss while preserving an observed root).

Keep real secret-byte delivery and zeroing in spawn-secret-input.test.ts POSIX and Windows pipe cases; narrow the controlled stream to late-error settlement. Keep forced Windows helper command checks in exec.windows.test.ts and retain graceful settlement liveness with both successful and failed helpers.

* test(process): consolidate o0217 lifecycle fixtures

Delete command-process-custody.process.test.ts: update-command-doctor-delegation.test.ts covers CPU-bound owner loss, retained writer identities, actual custody publication, and native cleanup in its settles a CPU-bound Doctor at its deadline or records unresolved writer identity cases.

Keep the scoped-spawn adopted-zombie regression from cc301b6, while removing its runner replay and extra unrelated-child fixture. Runner cleanup is covered by exec.test.ts (joins owned descendants even when a successful root closes its output) and scoped-child-reaper.test.ts (settles a cooperative descendant throughout a longer command grace period). Isolation remains covered by child-process-tree.reaping.test.ts and the native active-root-orphan case in service-child-subreaper.real.test.ts.

Drop the synchronous spawn-throw passthrough probe. Drop the composed live-parent closing-scope replay: gateway-work-admission.test.ts retains continuation ownership under suspension, and async-work-scope.test.ts joins synchronous descendants during drain and fences late work. No production changes or test runs; local formatting, oxlint and diff checks passed.

* test(ui): deslop o0219 tests

Reuse session-page polling assertions and the config snapshot fixture. Read shortcut labels, fonts, and ink alignment in one browser pass while preserving all assertions and both platform cases.

CI-only validation: plain oxlint, oxfmt, and git diff --check pass. No runtime tests or coverage executed. The shard retains lifecycle, durable-state, payload, layout, and explicit failure-diagnostic contracts rather than deleting them for the line target.

* test(agents): consolidate o0213 fixture setup

Port o0213 onto the campaign lane, retaining the lane's newer schema regression cases, modified adapter test, and request-shape assertion. Reuse Git and registry fixtures and preserve the compaction-to-fallback integration regression. CI-only validation: oxlint and oxfmt --check on all ten changed files, plus git diff --check; runtime tests deferred to landing CI.

* test(agents): deslop o0221 tests

Share skills reset fixtures, panel queries and status assertions; table route normalization without removing URL branches. Keep deferred-write, scope retirement, authority, retry and DOM identity checks.

Retain Workshop allowlist assertions in the reset/retry case and one-of-binary diagnostics in the refreshed-row case. Remove the direct-callback retry replay in favor of the Refresh-button case. Skills library view.test.tsx also retains the one-of-binary install diagnostic.

CI-only campaign: oxfmt, plain oxlint and diff-check pass; no local tests or coverage. Test LOC 1691 to 1513 (10.5%); below 20% because remaining lifecycle, authority and distinct UI paths are retained.

* test(infra): factor repeated o0212 census assertions

* test(codex): deslop o0220 tests

Reuse steering and compaction fixtures and simplify provenance setup and effort expectations. Keep distinct lifecycle and provenance assertions.

Remove pre-acknowledgement abort variants: attempt-steering.test.ts already proves in-flight request cancellation and pending-entry removal; waitForTranscriptCommit is read only after acknowledgement.

* test(codex): consolidate o0220 test layers

Keep provenance budgeting with the native observation attempt suite in its existing database-worker project. Projection-owner tests retain historical sender attribution; the continuity-projection test retains inert sender escaping.

Remove missing-executable replay covered by attempt-startup-retry preserves spawn failure without retrying. Keep cache module identity in the expiry test; client-runtime installs shared handlers once per physical client and same-build retained-owner tests retain notification routing and runtime sharing.

Replace observation cleanup-only interruption replay with the terminal fixture; attempt-client-cleanup retains exact-turn interruption proof. Consolidate cache invalidation scenarios and fixtures; preserve custody, redaction, prior-history validation and native effort branches.

* test: retain consent and schema isolation regressions

* test: drop incompatible fixture reductions exposed by CI

* test: preserve metadata fixture boundary and mock isolation

* test: shrink annotated Gateway mock export baseline

* test: restore lint-safe request and update fixtures

* test: restore shared requester-wake registry fixture
vincentkoc added a commit that referenced this pull request Nov 24, 2026
Keep source-config preservation assertions on the operator-container case. The removed alias has loaded byte-identical operator-container input since #184375, so it repeats one config startup and two prior-release state startup cases.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 25, 2026
Keep source-config preservation assertions on the operator-container case. The removed alias has loaded byte-identical operator-container input since openclaw#184375, so it repeats one config startup and two prior-release state startup cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui cli CLI command changes docker Docker and sandbox tooling extensions: codex extensions: copilot extensions: xai gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant