Repository navigation
test: remove low-value tests (batch d507) - #183135
Conversation
Consolidate narration/final lifecycle, public versus gated reasoning, quiet commentary, and duplicate-after-completion into their retained behavior sequences. Trim internal call inventories and repeated fixtures without changing production code. Remove claimed-row recovery replay covered by ingress-drain.test.ts: crash-window: lost claim is recovered and dispatched exactly once. Remove deploy abort formatting replay covered by provider.deploy.test.ts: logs the failed PATCH deployment request diagnostic context without replacing its error. Keep malformed retry formatting at RateLimitError; internal/rest.test.ts owns unsafe retry-delay parsing. CI-only static checks: plain oxlint, oxfmt, git diff --check. No test runs. Additional reduction: 403 lines; cumulative shard reduction 5269 to 4709 (10.6%), below the requested 25%. Retain the remaining distinct authority, privacy, durability, lifecycle, and raw interaction cases.
Share drive fixtures and table the four reply compatibility paths without removing behavior cases. Consolidate repeated error, no-dispatch, transcript, and comment-context scaffolding; preserve authority, durability, privacy, and lifecycle checks. Remove internal drive log-wording assertions; retained request/result assertions cover each path. Duplicate lifecycle counts remain covered by expectFeishuSingleEffectAcrossReplay and expectFeishuReplyPipelineDedupedAfterPostSendFailure. CI-only campaign: oxfmt, plain oxlint, and diff-check passed. Tests and coverage intentionally not run. Reduce shard LOC 5699 to 5464 (4.1%); larger cuts would remove distinct protected behaviors.
Replace Drive happy-path replay with focused quote, alternate-text and anchor contracts; drive-comments-loopback.test.ts owns comment wire formats and normalized results. Reuse the existing tool factory harness. Remove PDF-specific trace plumbing: media routing retains explicit/inferred voice degradation; outbound.test.ts consumes an implicit reply on degraded voice media before sending skipped text; reply-dispatcher.test.ts keeps TTS caption visibility. Retain five wire goldens, missing receipts, media duration bounds and a topic-video reply. Remove monitor broadcast replay covered by bot.broadcast.test.ts cross-account broadcast dedup and active broadcast failed-final fallback. Keep Feishu abandonment/restart/backoff integration; ingress-retry-policy.test.ts owns the generic retry schedule and threshold. Remove Chat policy matrix replay covered by channel.test.ts and read-policy.test.ts, retaining the actual tool-boundary sender denial and context mapping. Merge Doctor preview/repair and the binding lifecycle, preserving credential, WAL-backup and ownership assertions. CI-only: oxfmt, plain oxlint and diff-check pass; no tests or coverage run. Shard LOC 5699 to 4893, cumulative reduction 14.1 percent; 25 percent target remains unmet without removing distinct retained contracts.
Restore the declared reply mock, transport method and receipt used by the retained topic-video routing case. This repairs fixture wiring omitted during the previous reduction; no production change. CI-only instructions prohibit running the test; plain lint, formatting and diff checks pass.
Delete duplicate bot-menu fallback and committed failure replay cases retained by monitor.vc-meeting-invited-handler.test.ts. Delete the receipt-free trace replay retained by streaming-card.test.ts accepted-card tests; preserve all five lifecycle goldens. Reuse production reply types, consolidate comment queue variants without replacing per-claim cancellation with monitor cancellation, share retry restart fixtures, and remove duplicated binding projections. Retain authority, WAL backup, privacy, ordering and durable settlement checks. Shrink Docx conversion/tree fixtures to representative branch-driving inputs and use isolated temporary-directory cleanup. Remove one-use Drive fixture/introspection wrappers and the Chat diagnostic-formatter replay retained by send.reply-fallback.test.ts and tool-result.test.ts. CI-only: no tests, builds or coverage run. Formatting, plain oxlint and diff-check pass. Shard 5699 to 4637 lines (18.6 percent cumulative); the 25 percent target remains unmet at the distinct-behavior preservation boundary.
Keep approval recovery in operator-approval-store.test.ts: cancels pending rows from older runtime epochs after reopen. Shared nested-rollback publication remains in state-domain-publication.test.ts: captures only committed postimages across nested rollback and waits for the outer commit. Native expiration and retention publication stays in this shard. Keep runtime projection in placement-session-runtime.test.ts and automatic runtime selection in server.sessions.placement-selection.test.ts: sessions.list searches the displayed automatic runtime before applying pagination. environments.node-command-authority.test.ts covers each command-authorization state; device-placement.test.ts covers picker eligibility and remediation. Drop their composed replay and copied placement-field dumps. Keep Side chat happy-path policy/history in session-companion-runtime.test.ts: preserves registered ask history and read-only policy across success hydration. Retain hostile prompt checks, active cancellation and rate admission here. Bare-key isolation remains in server.sessions.delete-state-lifecycle.test.ts; completed reset remains in session-companion-context.test.ts. Consolidate image acceptance with prepared-model reuse. Keep TLS and bind rejection in server-kernel.test.ts and server/http-listen.test.ts; move trace disposal checks into retained kernel and post-ready failure cases. Keep pending plugin delta/callback checks in retained drain/revert cases, transcript commits in config-reload.transcripts.test.ts, and explicit lifecycle metadata in config-reload.test.ts. No runtime tests run: CI-only campaign.
Remove generic embedded and CLI failure progression replays covered by model-fallback.context-overflow.test.ts: retains configured order for non-overflow failures. Companion denied-primary selection and both cleanup-failure paths remain. Remove usage-zero fixture fields overwritten by seedCompletedSessionTranscript and dashboard serialization assertions covered by session-list-serialization.test.ts: keeps dashboard display facts while bounding the wire payload. Preserve parent linkage, persisted usage, cost, and model-selection assertions. Use startup state native async disposal, capture the existing kernel from finishGatewayStartup instead of a second spy, and inline the single-use hook transform writer. No cases or lifecycle assertions removed from these suites. Static lint/format/diff gates only; no runtime tests under CI-only instructions.
Remove duplicated array draft-survival and removal-focus suites; config-form-array-drafts.browser.test.ts retains those owner-boundary cases, including current key-qualified map removal labels. Keep capability claim invalidation in the nearest-provider prefetch case. Keep prompt resumption in command-palette-lifecycle.test.ts, catalog navigation in command-palette.test.ts, and plugin icon rendering in command-palette-plugin-icons.test.ts. Preserve distinct authority, error, focus, and lifecycle assertions while sharing fixture and browser setup. CI-only campaign: formatting, plain oxlint, relative-import inspection, and diff-check passed. No tests or coverage executed. Shard cut remains below 25 percent because remaining cases protect distinct behaviors.
Narrow picker layout proof to geometry; retain filtering, disabled traversal, and native group activation in select-picker.behavior.browser.test.ts and decision-model-picker.browser.test.ts. Shared neutral Menu hover covers library items. Keep mention token reconciliation and retry at human-mentions.test.ts and chat-composer-mentions.test.ts. Keep normalized title matching in command-palette-search.real-gateway.e2e.test.ts. Merge deferred transcript settlement into source-merging proof, and retain explicit sidebar selection after queued automatic selection. Remove prefetch helper-call inventories; retain link and ancestor exclusion outcomes and normalized request-key deduplication. Link-reader-page-preview.test.ts owns real sign-in prefetch refusal and detail-only claims. Identity-avatar.test.ts owns cross-origin rejection and trusted routes; keep avatar rendering and current-self revisions here. Consolidate facepile filtering and link-update flows. CI-only: plain oxlint, formatting, relative imports, and diff-check passed. No tests, coverage, or typechecks run. Original shard 5820 to 4814 lines; still below 25 percent because remaining independent authority, schema, race, and browser geometry contracts have no duplicate keeper.
Keep cron cleanup lifecycle proof in service.remove-session-cleanup.test.ts (removes a base session recreated by an already-admitted run) and pending-result validation in the retained Code Mode composition. Tool Search result serialization remains covered by tool-search.test.ts (keeps structured call content compact while preserving complete result details and termination). Remove repeated compact-hint inventories covered by tool-schema-hints.test.ts, and the duplicate gateway credential proposal case covered by stages the exact config_set_ref proposal without executing it. Retain authority, privacy, lifecycle and generated declaration assertions. CI-only: formatting, plain oxlint and diff checks; no test execution.
Sandbox archive restrictions remain covered by local-request-context.session-rename.test.ts: respects required-sandbox default and explicit tool policy. Detached transcript durability remains here; escaping stays in summary.test.ts and stop artifact export stays in transcripts-tool.lifecycle.test.ts. Conflicting search filters remain covered by Google provider validation before fetch; the no-unsupported-filter path stays covered by successful Kimi structured searches. Mirror transitions are asserted against real proposal, conflict and approval handshakes; retain the separate legacy marker fallback. Shrink peer flow and publication fixtures without changing admission routes. CI-only validation: plain oxlint, oxfmt, content guards and diff checks. No test, coverage or build execution.
Remove singleton table scaffolding and consolidate fixture and cancellation checks while retaining every distinct recovery, authority, and durability case. The suite is already tightly factored; the safe reduction is below the campaign target.
Remove the exact legacy-parent suite copy retained in update-command-executor-legacy.test.ts. Keep native option and byte-fragment tests on the real worker entry point. Retain concurrent schema-writer proof in openclaw-database-preflight.artifacts.test.ts; retain package remount and rollback phase refusal in package-update-activation-remount.test.ts. Trim repeated report and captured-success proof already owned by report and terminal-record/outcome suites.
Keep guidance, recovery admission, mutable promotion, and timeout behavior with their existing owner suites instead of repeating each layer. Preserve cancellation ordering, native identity checks, current-worker byte framing, and pending-state refusal. Readonly system and dueling-install refusal remains in update-managed-service-handoff-command.test.ts and update-managed-service-handoff-single-flight.test.ts. Deferred finalization remains in update-command-post-update.test.ts; ordinary terminal publication and timeout remain in terminal-record, terminal-outcome, and activation suites.
Remove duplicate Gateway routing proof retained in computer-tool.gateway.test.ts and detached-context proof retained in media-generate-background-shared.async-scope.test.ts. Keep delivery identity in the owned-task fallback=false case; share remaining fixture and dispatch setup without dropping authority checks. CI-only validation: plain oxlint, oxfmt and diff check.
Retain shared music persistence and accepted-cancellation proof in image-generate-tool.test.ts and media-generation-lifecycle.test-support.ts. Retain ordinary reload and failure in the real owner continuation table, run-ID-free handoff in server-plugin-reload.prepared-borrow.test.ts, and stopped handoff in github-publish-tool.handoff.test.ts. Preserve the distinct same-ID ownership, provider isolation, approval, and lifecycle cases. Consolidate reply and watch tables and remove redundant internal fixture and call-shape assertions. CI-only: plain oxlint, oxfmt, and git diff --check.
Keep music capacity selection in music-generation/runtime.test.ts, capability eligibility in capabilities.test.ts, and duration output in video-generate-tool.test.ts plus the music runtime normalization test. Preserve tool reference projection in the SSRF case. Fold retry caps into real cron lifecycle proof. Route capture remains in media-generate-background.test.ts provenance cases and retention peer ownership; actual plugin consumer draining remains in server-plugin-reload.prepared-borrow.test.ts. Keep the cross-agent archived-ancestor integration while registry owners cover direct-child and cron-key variants. No production changes or test runs; plain oxlint, formatting, and diff checks passed.
Remove duplicate coverage-command cases already owned by coverage-report.commands.test.ts and isolated runtime cases owned by suite-run-isolated.runtime.test.ts. Consolidate CLI routing fixtures, confidence report setup and unknown-evidence assertions, and bootstrap lifetime setup without dropping distinct failure paths.
Table CLI validation/routing and confidence accounting branches, consolidate runtime transcript captures, and reuse nested-tool fixtures. Remove duplicated inventories and internal collaborator assertions while retaining lifecycle, redaction, receipt, and cursor checks. Coverage command selection remains owned by coverage-report.commands.test.ts; native trajectory and failed-cell precedence remain in runtime-parity heartbeat/merge and execution-order cases. CI-only: plain oxlint, formatting, and diff checks; no test runs.
Group CLI mocks by their existing module shapes, unify confidence artifacts with manifest fixtures, share evidence callbacks, and consolidate correlated direct/nested transcript accounting setup. Retain all distinct lifecycle, redaction, cursor, receipt, persistence, and validation paths. No retired subjects or further redundant whole sibling suites were found. CI-only static validation: plain oxlint, oxfmt, git diff --check; no tests or builds.
Reuse the repository builder, per-case session checkout, custody assertions, and unlock fault injection. Retain SQL-free admission and release checks in the overlapping acquisition/refcount test. Drop duplicate live-removal proof covered by retains the selected nested-workspace identity through lease admission; removal-claim admission is covered by does not let a superseded remover clear a newer removal claim. Exclusive second-remover rejection and release are covered by settles snapshot chunks and exclusive removal claims without caller-thread SQL in run-end.worker.test.ts. CI-only: oxlint, oxfmt, and diff checks only. Preserve distinct settlement, lifecycle, recovery, and dependency-custody scenarios; shard reduction remains below the requested target.
Delete the copied nested eviction suite and its harness. The same-named ancestor, chained object lookup, late live owner, relocated backing metadata, external live checkout, and incoming linked source cases remain in service.eviction-nesting.test.ts. Delete copied persistence/migration tests from registry-read. Eight identical named cases remain in registry.test.ts, including checks every captured removal claim in the current database generation, explicit-state rollback, bounded manifests, and provisioned-path migration. The identical Gateway custody and offline/inherited maintenance cases remain in registry-migration.test.ts. All three registry files retain the same database-worker project routing. Reuse the provisioning repository fixture and child receipt gate, consolidate release failure setup into retryable/unknown rows, and trim duplicated allocation fixture/assertion plumbing. Retain the fleet process budget while removing redundant per-command-shape assertions. No production or helper changes. CI-only: formatting, plain oxlint, and diff checks; no test runs. Total shard cut is 954 of 5589 lines; distinct authority/recovery proof prevents the requested 25 percent target.
Share requester publication and pending-wake assertions, and derive paired restored-run fixtures from their identities. Preserve every receipt, authority, durability, and lifecycle interleaving assertion; no cases removed. CI-only static validation: oxlint, oxfmt, and diff check. Shard reduction: 5708 to 5686 lines (0.39%); below the 25% target because no safe duplicate behavior layer was identified.
Merge restored newer-run routing and completed-session read exclusion into one restore scenario. Remove cancellation-capture replay covered by subagent-registry-lifecycle.test.ts: keeps cancellation that becomes durable during completion capture. Replace redundant internal counts and callback inventories with existing persisted-state, SQL replay, and observable lifecycle assertions. Reuse announcement and legacy-state fixtures. Preserve all distinct authority and durability cases, including suppressed receipt timestamps. CI-only static gates: oxlint, oxfmt, diff check; no tests run. Total shard 5708 to 5495 lines; 25 percent target remains unmet.
Remove SQL observer layers from quiet completion cleanup and deferred-parent continuation tests; durable cleanup, delete identity, descendant ordering and final-delivery assertions remain. Remove duplicate logger and worker call probes from store-replacement recovery while retaining real failed-write propagation, persisted rows and retry/restart proof. No cases removed. Static gates: plain oxlint, oxfmt, diff check. No tests run under CI-only instruction. Shard now 5708 to 5392 lines; target remains unmet under distinct-behavior retention.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 04b1e4c39f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| pass: hasBackfill, | ||
| globalPass: hasBackfill, | ||
| zeroUnknowns: true, | ||
| lanes: [{ status: "pass", skippedCount: 1 }], |
There was a problem hiding this comment.
Match the report lane separately from the backfill lane
When hasBackfill is true, buildStrictSuiteReport adds a second lane, and buildQaConfidenceReport preserves both lanes. Vitest's toMatchObject requires matching array lengths, so this one-element lanes expectation fails on the second iteration of all five table cases even when production behavior is correct. Assert report.lanes[0] separately or include the backfill lane in the expectation.
Useful? React with 👍 / 👎.
|
Codex review: needs changes before merge. What this changesThis PR consolidates test fixtures and removes overlapping assertions across agent, Gateway, channel, update, QA, and UI suites. Review scores
ProductKind: Test only · Worth it: Yes Merge readiness⛔ Needs changes before merge - 2 items remain Keep this PR open: the maintainer-directed cleanup is useful, but two removals discard distinct, history-backed performance regression checks. Priority: P3 Before merge
Findings
Agent review detailsHow this fits togetherThese test suites feed synthetic inputs through existing production owners and check their delivery, lifecycle, authorization, recovery, and performance contracts. flowchart LR
A[Test fixtures] --> B[Production owners]
B --> C[Controlled external I O]
C --> B
B --> D[Contract assertions]
D --> E[Hosted CI gate]
Technical reviewBest possible solution: Keep the fixture consolidation while retaining compact checks for worker-only descendant reads and bounded link-prefetch work. Do we have a high-confidence way to reproduce the issue? This is test-only cleanup; the coverage losses are established by the pinned diff, retained assertions, and original regression history without executing target code. Is this the best way to solve the issue? Consolidation within existing suites is appropriate, but output assertions cannot replace independent checks that production work stays off the Gateway thread or avoids repeated transcript scanning. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9629838ec1aa. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceTests -3608. Total -3608 across 63 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 24, 2026, 10:36 PM ET / October 25, 2026, 02:36 UTC. |
* test(discord): consolidate s0074 boundary proof Consolidate narration/final lifecycle, public versus gated reasoning, quiet commentary, and duplicate-after-completion into their retained behavior sequences. Trim internal call inventories and repeated fixtures without changing production code. Remove claimed-row recovery replay covered by ingress-drain.test.ts: crash-window: lost claim is recovered and dispatched exactly once. Remove deploy abort formatting replay covered by provider.deploy.test.ts: logs the failed PATCH deployment request diagnostic context without replacing its error. Keep malformed retry formatting at RateLimitError; internal/rest.test.ts owns unsafe retry-delay parsing. CI-only static checks: plain oxlint, oxfmt, git diff --check. No test runs. Additional reduction: 403 lines; cumulative shard reduction 5269 to 4709 (10.6%), below the requested 25%. Retain the remaining distinct authority, privacy, durability, lifecycle, and raw interaction cases. * test(feishu): deslop s0076 tests Share drive fixtures and table the four reply compatibility paths without removing behavior cases. Consolidate repeated error, no-dispatch, transcript, and comment-context scaffolding; preserve authority, durability, privacy, and lifecycle checks. Remove internal drive log-wording assertions; retained request/result assertions cover each path. Duplicate lifecycle counts remain covered by expectFeishuSingleEffectAcrossReplay and expectFeishuReplyPipelineDedupedAfterPostSendFailure. CI-only campaign: oxfmt, plain oxlint, and diff-check passed. Tests and coverage intentionally not run. Reduce shard LOC 5699 to 5464 (4.1%); larger cuts would remove distinct protected behaviors. * test(feishu): remove duplicate s0076 test layers Replace Drive happy-path replay with focused quote, alternate-text and anchor contracts; drive-comments-loopback.test.ts owns comment wire formats and normalized results. Reuse the existing tool factory harness. Remove PDF-specific trace plumbing: media routing retains explicit/inferred voice degradation; outbound.test.ts consumes an implicit reply on degraded voice media before sending skipped text; reply-dispatcher.test.ts keeps TTS caption visibility. Retain five wire goldens, missing receipts, media duration bounds and a topic-video reply. Remove monitor broadcast replay covered by bot.broadcast.test.ts cross-account broadcast dedup and active broadcast failed-final fallback. Keep Feishu abandonment/restart/backoff integration; ingress-retry-policy.test.ts owns the generic retry schedule and threshold. Remove Chat policy matrix replay covered by channel.test.ts and read-policy.test.ts, retaining the actual tool-boundary sender denial and context mapping. Merge Doctor preview/repair and the binding lifecycle, preserving credential, WAL-backup and ownership assertions. CI-only: oxfmt, plain oxlint and diff-check pass; no tests or coverage run. Shard LOC 5699 to 4893, cumulative reduction 14.1 percent; 25 percent target remains unmet without removing distinct retained contracts. * test(feishu): fix topic-video reply fixture Restore the declared reply mock, transport method and receipt used by the retained topic-video routing case. This repairs fixture wiring omitted during the previous reduction; no production change. CI-only instructions prohibit running the test; plain lint, formatting and diff checks pass. * test(feishu): consolidate remaining s0076 fixture layers Delete duplicate bot-menu fallback and committed failure replay cases retained by monitor.vc-meeting-invited-handler.test.ts. Delete the receipt-free trace replay retained by streaming-card.test.ts accepted-card tests; preserve all five lifecycle goldens. Reuse production reply types, consolidate comment queue variants without replacing per-claim cancellation with monitor cancellation, share retry restart fixtures, and remove duplicated binding projections. Retain authority, WAL backup, privacy, ordering and durable settlement checks. Shrink Docx conversion/tree fixtures to representative branch-driving inputs and use isolated temporary-directory cleanup. Remove one-use Drive fixture/introspection wrappers and the Chat diagnostic-formatter replay retained by send.reply-fallback.test.ts and tool-result.test.ts. CI-only: no tests, builds or coverage run. Formatting, plain oxlint and diff-check pass. Shard 5699 to 4637 lines (18.6 percent cumulative); the 25 percent target remains unmet at the distinct-behavior preservation boundary. * test(gateway): deslop s0077 tests * test(gateway): remove redundant s0077 test layers Keep approval recovery in operator-approval-store.test.ts: cancels pending rows from older runtime epochs after reopen. Shared nested-rollback publication remains in state-domain-publication.test.ts: captures only committed postimages across nested rollback and waits for the outer commit. Native expiration and retention publication stays in this shard. Keep runtime projection in placement-session-runtime.test.ts and automatic runtime selection in server.sessions.placement-selection.test.ts: sessions.list searches the displayed automatic runtime before applying pagination. environments.node-command-authority.test.ts covers each command-authorization state; device-placement.test.ts covers picker eligibility and remediation. Drop their composed replay and copied placement-field dumps. Keep Side chat happy-path policy/history in session-companion-runtime.test.ts: preserves registered ask history and read-only policy across success hydration. Retain hostile prompt checks, active cancellation and rate admission here. Bare-key isolation remains in server.sessions.delete-state-lifecycle.test.ts; completed reset remains in session-companion-context.test.ts. Consolidate image acceptance with prepared-model reuse. Keep TLS and bind rejection in server-kernel.test.ts and server/http-listen.test.ts; move trace disposal checks into retained kernel and post-ready failure cases. Keep pending plugin delta/callback checks in retained drain/revert cases, transcript commits in config-reload.transcripts.test.ts, and explicit lifecycle metadata in config-reload.test.ts. No runtime tests run: CI-only campaign. * test(gateway): deduplicate s0077 fixtures and fallback proof Remove generic embedded and CLI failure progression replays covered by model-fallback.context-overflow.test.ts: retains configured order for non-overflow failures. Companion denied-primary selection and both cleanup-failure paths remain. Remove usage-zero fixture fields overwritten by seedCompletedSessionTranscript and dashboard serialization assertions covered by session-list-serialization.test.ts: keeps dashboard display facts while bounding the wire payload. Preserve parent linkage, persisted usage, cost, and model-selection assertions. Use startup state native async disposal, capture the existing kernel from finishGatewayStartup instead of a second spy, and inline the single-use hook transform writer. No cases or lifecycle assertions removed from these suites. Static lint/format/diff gates only; no runtime tests under CI-only instructions. * test(ui): deslop s0075 tests Remove duplicated array draft-survival and removal-focus suites; config-form-array-drafts.browser.test.ts retains those owner-boundary cases, including current key-qualified map removal labels. Keep capability claim invalidation in the nearest-provider prefetch case. Keep prompt resumption in command-palette-lifecycle.test.ts, catalog navigation in command-palette.test.ts, and plugin icon rendering in command-palette-plugin-icons.test.ts. Preserve distinct authority, error, focus, and lifecycle assertions while sharing fixture and browser setup. CI-only campaign: formatting, plain oxlint, relative-import inspection, and diff-check passed. No tests or coverage executed. Shard cut remains below 25 percent because remaining cases protect distinct behaviors. * test(ui): remove overlapping s0075 test layers Narrow picker layout proof to geometry; retain filtering, disabled traversal, and native group activation in select-picker.behavior.browser.test.ts and decision-model-picker.browser.test.ts. Shared neutral Menu hover covers library items. Keep mention token reconciliation and retry at human-mentions.test.ts and chat-composer-mentions.test.ts. Keep normalized title matching in command-palette-search.real-gateway.e2e.test.ts. Merge deferred transcript settlement into source-merging proof, and retain explicit sidebar selection after queued automatic selection. Remove prefetch helper-call inventories; retain link and ancestor exclusion outcomes and normalized request-key deduplication. Link-reader-page-preview.test.ts owns real sign-in prefetch refusal and detail-only claims. Identity-avatar.test.ts owns cross-origin rejection and trusted routes; keep avatar rendering and current-self revisions here. Consolidate facepile filtering and link-update flows. CI-only: plain oxlint, formatting, relative imports, and diff-check passed. No tests, coverage, or typechecks run. Original shard 5820 to 4814 lines; still below 25 percent because remaining independent authority, schema, race, and browser geometry contracts have no duplicate keeper. * test(agents): deslop s0078 tests * test(agents): consolidate s0078 boundary scaffolding Keep cron cleanup lifecycle proof in service.remove-session-cleanup.test.ts (removes a base session recreated by an already-admitted run) and pending-result validation in the retained Code Mode composition. Tool Search result serialization remains covered by tool-search.test.ts (keeps structured call content compact while preserving complete result details and termination). Remove repeated compact-hint inventories covered by tool-schema-hints.test.ts, and the duplicate gateway credential proposal case covered by stages the exact config_set_ref proposal without executing it. Retain authority, privacy, lifecycle and generated declaration assertions. CI-only: formatting, plain oxlint and diff checks; no test execution. * test(agents): remove s0078 duplicate boundary layers Sandbox archive restrictions remain covered by local-request-context.session-rename.test.ts: respects required-sandbox default and explicit tool policy. Detached transcript durability remains here; escaping stays in summary.test.ts and stop artifact export stays in transcripts-tool.lifecycle.test.ts. Conflicting search filters remain covered by Google provider validation before fetch; the no-unsupported-filter path stays covered by successful Kimi structured searches. Mirror transitions are asserted against real proposal, conflict and approval handshakes; retain the separate legacy marker fallback. Shrink peer flow and publication fixtures without changing admission routes. CI-only validation: plain oxlint, oxfmt, content guards and diff checks. No test, coverage or build execution. * test(update-cli): deslop s0079 tests Remove singleton table scaffolding and consolidate fixture and cancellation checks while retaining every distinct recovery, authority, and durability case. The suite is already tightly factored; the safe reduction is below the campaign target. * test(update-cli): consolidate s0079 duplicate proof layers Remove the exact legacy-parent suite copy retained in update-command-executor-legacy.test.ts. Keep native option and byte-fragment tests on the real worker entry point. Retain concurrent schema-writer proof in openclaw-database-preflight.artifacts.test.ts; retain package remount and rollback phase refusal in package-update-activation-remount.test.ts. Trim repeated report and captured-success proof already owned by report and terminal-record/outcome suites. * test(update-cli): reduce s0079 repeated recovery layers Keep guidance, recovery admission, mutable promotion, and timeout behavior with their existing owner suites instead of repeating each layer. Preserve cancellation ordering, native identity checks, current-worker byte framing, and pending-state refusal. Readonly system and dueling-install refusal remains in update-managed-service-handoff-command.test.ts and update-managed-service-handoff-single-flight.test.ts. Deferred finalization remains in update-command-post-update.test.ts; ordinary terminal publication and timeout remain in terminal-record, terminal-outcome, and activation suites. * test(agents): deslop s0081 tests Remove duplicate Gateway routing proof retained in computer-tool.gateway.test.ts and detached-context proof retained in media-generate-background-shared.async-scope.test.ts. Keep delivery identity in the owned-task fallback=false case; share remaining fixture and dispatch setup without dropping authority checks. CI-only validation: plain oxlint, oxfmt and diff check. * test(agents): reduce s0081 duplicate boundary proof Retain shared music persistence and accepted-cancellation proof in image-generate-tool.test.ts and media-generation-lifecycle.test-support.ts. Retain ordinary reload and failure in the real owner continuation table, run-ID-free handoff in server-plugin-reload.prepared-borrow.test.ts, and stopped handoff in github-publish-tool.handoff.test.ts. Preserve the distinct same-ID ownership, provider isolation, approval, and lifecycle cases. Consolidate reply and watch tables and remove redundant internal fixture and call-shape assertions. CI-only: plain oxlint, oxfmt, and git diff --check. * test(agents): consolidate s0081 shared-owner coverage Keep music capacity selection in music-generation/runtime.test.ts, capability eligibility in capabilities.test.ts, and duration output in video-generate-tool.test.ts plus the music runtime normalization test. Preserve tool reference projection in the SSRF case. Fold retry caps into real cron lifecycle proof. Route capture remains in media-generate-background.test.ts provenance cases and retention peer ownership; actual plugin consumer draining remains in server-plugin-reload.prepared-borrow.test.ts. Keep the cross-agent archived-ancestor integration while registry owners cover direct-child and cron-key variants. No production changes or test runs; plain oxlint, formatting, and diff checks passed. * test(qa-lab): deslop s0080 tests Remove duplicate coverage-command cases already owned by coverage-report.commands.test.ts and isolated runtime cases owned by suite-run-isolated.runtime.test.ts. Consolidate CLI routing fixtures, confidence report setup and unknown-evidence assertions, and bootstrap lifetime setup without dropping distinct failure paths. * test(qa-lab): consolidate s0080 branch and fixture coverage Table CLI validation/routing and confidence accounting branches, consolidate runtime transcript captures, and reuse nested-tool fixtures. Remove duplicated inventories and internal collaborator assertions while retaining lifecycle, redaction, receipt, and cursor checks. Coverage command selection remains owned by coverage-report.commands.test.ts; native trajectory and failed-cell precedence remain in runtime-parity heartbeat/merge and execution-order cases. CI-only: plain oxlint, formatting, and diff checks; no test runs. * test(qa-lab): simplify s0080 fixture layers Group CLI mocks by their existing module shapes, unify confidence artifacts with manifest fixtures, share evidence callbacks, and consolidate correlated direct/nested transcript accounting setup. Retain all distinct lifecycle, redaction, cursor, receipt, persistence, and validation paths. No retired subjects or further redundant whole sibling suites were found. CI-only static validation: plain oxlint, oxfmt, git diff --check; no tests or builds. * test(worktrees): deslop s0082 tests Reuse the repository builder, per-case session checkout, custody assertions, and unlock fault injection. Retain SQL-free admission and release checks in the overlapping acquisition/refcount test. Drop duplicate live-removal proof covered by retains the selected nested-workspace identity through lease admission; removal-claim admission is covered by does not let a superseded remover clear a newer removal claim. Exclusive second-remover rejection and release are covered by settles snapshot chunks and exclusive removal claims without caller-thread SQL in run-end.worker.test.ts. CI-only: oxlint, oxfmt, and diff checks only. Preserve distinct settlement, lifecycle, recovery, and dependency-custody scenarios; shard reduction remains below the requested target. * test(worktrees): remove duplicated s0082 suite layers Delete the copied nested eviction suite and its harness. The same-named ancestor, chained object lookup, late live owner, relocated backing metadata, external live checkout, and incoming linked source cases remain in service.eviction-nesting.test.ts. Delete copied persistence/migration tests from registry-read. Eight identical named cases remain in registry.test.ts, including checks every captured removal claim in the current database generation, explicit-state rollback, bounded manifests, and provisioned-path migration. The identical Gateway custody and offline/inherited maintenance cases remain in registry-migration.test.ts. All three registry files retain the same database-worker project routing. Reuse the provisioning repository fixture and child receipt gate, consolidate release failure setup into retryable/unknown rows, and trim duplicated allocation fixture/assertion plumbing. Retain the fleet process budget while removing redundant per-command-shape assertions. No production or helper changes. CI-only: formatting, plain oxlint, and diff checks; no test runs. Total shard cut is 954 of 5589 lines; distinct authority/recovery proof prevents the requested 25 percent target. * test(subagents): deslop s0083 tests Share requester publication and pending-wake assertions, and derive paired restored-run fixtures from their identities. Preserve every receipt, authority, durability, and lifecycle interleaving assertion; no cases removed. CI-only static validation: oxlint, oxfmt, and diff check. Shard reduction: 5708 to 5686 lines (0.39%); below the 25% target because no safe duplicate behavior layer was identified. * test(subagents): consolidate s0083 lifecycle proof Merge restored newer-run routing and completed-session read exclusion into one restore scenario. Remove cancellation-capture replay covered by subagent-registry-lifecycle.test.ts: keeps cancellation that becomes durable during completion capture. Replace redundant internal counts and callback inventories with existing persisted-state, SQL replay, and observable lifecycle assertions. Reuse announcement and legacy-state fixtures. Preserve all distinct authority and durability cases, including suppressed receipt timestamps. CI-only static gates: oxlint, oxfmt, diff check; no tests run. Total shard 5708 to 5495 lines; 25 percent target remains unmet. * test(subagents): remove s0083 instrumentation layers Remove SQL observer layers from quiet completion cleanup and deferred-parent continuation tests; durable cleanup, delete identity, descendant ordering and final-delivery assertions remain. Remove duplicate logger and worker call probes from store-replacement recovery while retaining real failed-write propagation, persisted rows and retry/restart proof. No cases removed. Static gates: plain oxlint, oxfmt, diff check. No tests run under CI-only instruction. Shard now 5708 to 5392 lines; target remains unmet under distinct-behavior retention. * test: retain boundary coverage and repair batch fixtures
What Problem This Solves
Consolidates repeated test fixtures and overlapping proof from campaign batch d507 without changing runtime behavior.
User Impact
No user-visible change, migration, or production code change. Retained tests continue to own the distinct authority, privacy, recovery, ordering, and delivery contracts. This is a bounded reduction, not a claim of measured runtime improvement.
Why This Change Was Made
Replayed 27 of 30 supplied commits onto pinned main
f947c5ea66c4f19a20e18320e95fa56499e2a09b. Current main wins wherever the older fixture refactors conflict with rewritten tests. Cleanly applicable changes consolidate fixture setup, tables, and duplicate assertions; the topic-video reply fixture correction is retained.Production LOC: +0 / -0. Test and test-support LOC: +3,592 / -7,200, net -3,608 across 63 files. Changed-file physical lines: 36,516 → 32,908. Static test declaration sites: 666 → 598; parameterized rows are not expanded test counts.
Evidence
pnpm install --frozen-lockfile --prefer-offline: passed.node_modules/.bin/oxfmt --write <changed TS/JS files>: passed.node_modules/.bin/oxlint -c .oxlintrc.json <changed TS/JS files>: exit 0.git diff --check f947c5ea66c4f19a20e18320e95fa56499e2a09b: passed.openclaw/ci-gateis the required behavioral proof.Per-shard replay inventory
The source reports
s0074.mdthroughs0083.mdexplicitly state tests and coverage were not run under CI-only instructions. They contain no measured coverage totals line; no coverage-preservation percentage is claimed for this replay.Files per shard
s0074:
extensions/discord/src/monitor/message-handler.draft-preview.rest.test.ts,extensions/discord/src/monitor/message-handler.process.draft-final.test.ts,extensions/discord/src/monitor/native-command.interaction-boundary.test.ts,extensions/discord/src/monitor/thread-bindings.state.test.ts.s0075:
ui/src/components/app-sidebar.background-scope.test.ts,ui/src/components/app-sidebar.child-history-freshness.test.ts,ui/src/components/command-palette-mentions.test.ts,ui/src/components/command-palette-pending.test.ts,ui/src/components/link-reader-prefetch.test.tsx,ui/src/components/mcp-app-bridge.test.ts,ui/src/components/menu-surface.browser.test.tsx,ui/src/components/select-picker.browser.test.tsx,ui/src/components/session-background.test.ts.s0076:
extensions/feishu/src/doctor.test.ts,extensions/feishu/src/docx.test.ts,extensions/feishu/src/drive.test.ts,extensions/feishu/src/media.test.ts,extensions/feishu/src/monitor.card-action.lifecycle.test-support.ts,extensions/feishu/src/monitor.comment.test.ts,extensions/feishu/src/outbound.send-authority.test.ts,extensions/feishu/src/thread-bindings.test.ts.s0077:
src/gateway/config-reload.services.test-support.ts,src/gateway/server-startup-lifetime.test.ts,src/gateway/server.hooks-admission.test.ts,src/gateway/server.sessions.placement-projection.test.ts,src/gateway/session-companion-ask.test.ts,src/gateway/session-companion.test.ts.s0078:
src/agents/tools/agent-step.test.ts,src/agents/tools/cron-tool.output-contract.test.ts,src/agents/tools/github-publish-tool.handoff.test.ts,src/agents/tools/sessions-access.test.ts,src/agents/tools/sessions-search-tool.test.ts,src/agents/tools/sessions-send-tool.queue-authority.test.ts,src/agents/tools/sessions-tool.self-archive.test.ts,src/agents/tools/transcripts-tool.lifecycle.test.ts,src/agents/tools/transcripts-tool.test.ts,src/agents/tools/web-search.test.ts.s0079:
src/cli/update-cli/update-command-legacy-finalize.test.ts,src/cli/update-cli/update-command-original-service-current.test-support.ts,src/cli/update-cli/update-command-recovery.test.ts,src/cli/update-cli/update-command-service-maintenance-identity.test.ts,src/cli/update-cli/update-command-terminal-authority.test.ts,src/cli/update-cli/update-recovery-guidance.test.ts.s0080:
extensions/qa-lab/src/gateway-child-bootstrap.test.ts,extensions/qa-lab/src/runtime-parity.test.ts,extensions/qa-lab/src/suite-run-isolated.cleanup.test.ts,extensions/qa-lab/src/suite-runtime-agent-session.test.ts.s0081:
src/agents/tools/gateway.hosted-routing.test.ts,src/agents/tools/music-generate-tool.test.ts,src/agents/tools/plugins-reload-handoff.test.ts,src/agents/tools/sessions-send-communication.test.ts,src/agents/tools/sessions-send-policy.test.ts,src/agents/tools/web-fetch.provider-fallback.test.ts.s0082:
src/agents/worktrees/run-lease.test.ts.s0083:
src/agents/subagents/registry/subagent-announcement-delivery.worker.test.ts,src/agents/subagents/registry/subagent-announcement.worker.test.ts,src/agents/subagents/registry/subagent-control.concurrency.test.ts,src/agents/subagents/registry/subagent-registry-lifecycle-cleanup.test-support.ts,src/agents/subagents/registry/subagent-registry-lifecycle-completion.test-support.ts,src/agents/subagents/registry/subagent-registry-lifecycle-delivery.test-support.ts,src/agents/subagents/registry/subagent-registry.requester-wake-receipts.test-support.ts,src/agents/subagents/registry/subagent-registry.restored-settlement.test-support.ts,src/agents/subagents/registry/subagent-registry.store-replaced.test.ts.Replay decisions: skipped commits and preserved current-main files
Skipped:
a120ac5d: Both targeted files conflict with current-main fixtures; preserved current proof.b9957ecb: Current main already has local config-array helpers; missing-import fixture repair is obsolete.8ae743cb: Duplicate recovery git import is absent on current main; source fixture import repair obsolete.For the following conflicting file-level hunks, retained the pre-cherry-pick file in full, including any earlier accepted batch edits. Other files in the commit were retained. This avoids importing outdated fixture helpers, removing newer contracts, or weakening current assertions:
de061e06: kept current versions ofingress.test.ts,message-media.test.ts,monitor.agent-components.test.ts,monitor.test.ts,provider.lifecycle.test.ts,provider.test.ts.7efb3a556b5f: kept current versions ofextensions/feishu/src/delivery-trace.test.ts.c1e434e89fd1: kept current versions ofextensions/feishu/src/chat.test.ts,extensions/feishu/src/delivery-trace.test.ts,extensions/feishu/src/doctor.test.ts.b367f212aa84: kept current versions ofextensions/feishu/src/chat.test.ts,extensions/feishu/src/delivery-trace.test.ts.b764f6b47418: kept current versions ofsrc/gateway/server.sessions.list-changed.test.ts.9fcc2cf768b9: kept current versions ofsrc/gateway/operator-approval-store.worker.test.ts.535a8e4d6aa6: kept current versions ofsrc/gateway/server.sessions.list-changed.test.ts.9a01fe18c892: kept current versions ofui/src/components/config-form-array-integrity.browser.test.ts.1fc3cf9203d8: kept current versions ofui/src/components/config-form-array-integrity.browser.test.ts.a6288b6530e0: kept current versions ofsrc/agents/tools/system-agent-tool.test.ts.278101cce2f8: kept current versions ofsrc/agents/tools/sessions-tool.self-archive.test.ts,src/agents/tools/system-agent-tool.test.ts.e5be00143586: kept current versions ofsrc/cli/update-cli/schema-preflight.test.ts,src/cli/update-cli/update-command-executor-auxiliary.test.ts.6a22301011fa: kept current versions ofsrc/cli/update-cli/schema-preflight.test.ts,src/cli/update-cli/update-command-executor-auxiliary.test.ts.44cf72293d11: kept current versions ofsrc/agents/tools/computer-tool.node-resolution.test.ts.eea64c1e03f3: kept current versions ofsrc/agents/tools/computer-tool.node-resolution.test.ts.d185872d4124: kept current versions ofextensions/qa-lab/src/coverage-report.test.ts,extensions/qa-lab/src/suite-run-isolated.cleanup.test.ts.ed533dbdeff4: kept current versions ofextensions/qa-lab/src/coverage-report.test.ts,extensions/qa-lab/src/suite-run-standard.parity-retry.test.ts.2cf66832f54e: kept current versions ofextensions/qa-lab/src/suite-run-standard.parity-retry.test.ts.749215b1cee7: kept current versions ofsrc/agents/worktrees/service.capacity.test.ts,src/agents/worktrees/service.eviction.test.ts,src/agents/worktrees/service.pending-slots.test.ts,src/agents/worktrees/service.provisioned.test.ts.There are no conflict markers, baseline ratchet edits, or production seam removals in the resulting diff.
Review and CI corrections
Added one correction commit after the 27 replayed commits. Hosted run 40153044573 exposed batch-caused helper typing, stale fixture calls, duplicate callback fixtures, QA expectation/mock-isolation, and facepile fixture failures. No failed validation is presented as passing. The corrected head requires fresh hosted CI; no local tests or typecheck were run.
Restored these files byte-for-byte to pinned main, dropping their batch reductions:
extensions/feishu/src/monitor.message-handler.ingress.test.ts,extensions/qa-lab/src/cli.test.ts,extensions/qa-lab/src/confidence-report.test.ts,src/agents/tools/media-generate-background-shared.test.ts,src/cli/update-cli/update-command-pending-recovery.test.ts,src/cli/update-cli/update-repair-package-activation.test.ts,src/gateway/server.sessions.create.account-authority.test.ts, andui/src/components/viewer-facepile.test.ts.Fixed three narrow helper contracts: cron mocking uses the actual Gateway function type; session request construction accepts the production input type instead of requiring a mock; Feishu send-route dispatch is async so heterogeneous transport promises share one inferred result contract.
Accepted review findings preserve transcript account-resolver assertions, web-fetch structured trust metadata, the real pending-recovery finalizer, and public unfinished-rollback repair coverage.
Reviewed findings not requiring additional retained tests:
download.oggindependently infers native voice intent inshouldSuppressFeishuTextForVoiceMedia, even withaudioAsVoice: false; the initial hosted media tests passed.src/cron/service.remove-session-cleanup.test.tsexercises real active-job removal and its pending cleanup receipt; the Code Mode suite retains projection/no-retry composition.persistGeneratedMediaBuffersowner, exercised by the retained concurrent late-save failure inimage-generate-tool.test.ts.update-command-terminal-outcome.test.tscomposes real finalizer, executor release, ledger, and report consumers for healthy completion; terminal-record tests retain publication admission.update-managed-service-handoff-command.test.tsandupdate-managed-service-handoff-single-flight.test.tsretain real system/dueling refusal before spawn and actionable operator restart guidance.No Testbox leases were created or stopped.