Repository navigation
test(runtime,ui): remove low-value tests (batch d479) - #182725
Conversation
|
🦞👀 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: 51eba7e94a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| expect(current).not.toBe(stale); | ||
| const list = vi.spyOn(next, "list").mockResolvedValue([]); | ||
| await current.list(); | ||
| expect(next.list).toHaveBeenCalledOnce(); | ||
| const remove = vi.spyOn(first.cron, "remove"); | ||
| await expect(stale.remove("must-not-mutate")).rejects.toThrow("scheduler was replaced"); | ||
| expect(remove).not.toHaveBeenCalled(); | ||
| expect(list).toHaveBeenCalledOnce(); |
There was a problem hiding this comment.
Retain the stale scheduler mutation rejection
After the scheduler is replaced, checking that current differs from stale does not establish that the retained handle has lost mutation authority. This change removes the stale.remove() rejection and the assertion that the old scheduler was untouched, so deleting the scheduler-identity guard in src/plugins/service-cron.ts would now leave this test passing while retained plugin handles could mutate the retired scheduler. The remaining scheduled-turn contract tests cover live API rebinding, not calls through retained service handles. Preserve the negative mutation assertion alongside the identity assertion.
Useful? React with 👍 / 👎.
Share process-census fixtures and failure-report race setup while retaining every scenario row. Consolidate matching and changed-preview expiration cases in one table. Remove syscall/request-shape inventories covered by retained filesystem, admission, transfer-integrity and retirement outcomes. Keep immutable activation unchanged because its lifecycle and recovery cases are distinct. CI-only validation: plain oxlint, oxfmt and diff-check; no test or coverage runs.
Remove the existing-only store replay retained in sqlite-worker-store.existing.test.ts and catalog reuse covered by sqlite-schema-facts.test.ts. Keep connection-lifetime proof in the last-handle case. Remove report preparation, transport and cleanup replays covered by the corresponding update-failure-report siblings. Keep private file permissions and exact persisted bytes in the fallback case. Reuse activation owner recovery proof for start failure and pending outcomes. Consolidate filesystem interleavings and leave generic parser classification to gateway-process-argv.test.ts while retaining census custody boundaries. Validated with formatting, plain oxlint and diff-check only under CI-only instructions. Original shard 5053 to 4259 lines; the 35 percent target remains unmet because the remaining lifecycle and authority boundaries are distinct.
Keep one process-custody representative per branch and leave runtime flag syntax matrices to gateway-process-argv tests. Keep scoped unknown-cwd custody for both same and foreign UIDs. Remove default-force missing-path replay covered by package-update-filesystem and the retained missing-sibling case. Drop internal removal call-budget bookkeeping without changing per-mutation authority checks. Reuse disposable database fixtures and leave transfer frame size budgets to sqlite-worker-transfer while retaining native transfer, interruption and buffer-detachment proof. Static validation only: formatting, plain oxlint and diff-check. The original 5053-line shard is now 4141 lines; the 35 percent target remains unmet.
Port r0064 commits abe05f64209a, 476a2cb97e39, and ba3879bbdf55 onto the campaign lane. The first cleanup was already present; consolidate the remaining owner fixtures while retaining lane-modified startup timeout/redaction and shared-initialize coverage, exact factory deadlines, and all eight sibling-order cases. CI-only validation: oxlint exited 0 on all five touched files; oxfmt --check and git diff --check passed. Independent review identified only unstaged preservation fixes, now staged and verified identical to the reviewed working tree. No tests, coverage, Testbox, or check-changed were run.
Share durable OAuth refresh recovery setup without removing either failure path or its assertions. Trim copied compaction mock input inventory while retaining target identity, run linkage, workspace, reasoning and permission checks; the SQLite transcript/accounting and native CLI tests retain behavior proof.
Retain shared shutdown and refresh singleflight proof in the draining case. Remove equivalent full-mode replay rows, a repeated oversized-input case, and incidental compaction mock inventories. Fork inheritance remains covered by session-entry-selection.test.ts (drops fallback model state while preserving only auth intent); catalog deletion by server.sessions.delete-lifecycle.test.ts (locked plugin-owned persisted alias); reply default selection by dispatch-from-config.turn-model-selection-differential.test.ts (explicit default rejects stale child and parent overrides). Reload planning remains covered by config-reload.services.test-support.ts (transcript changes through plugin reload transaction). CI-only campaign: plain oxlint, oxfmt, and diff-check pass; tests not run. Original shard 4701 lines, now 4522; 35 percent target remains unmet because retained cases cover distinct lifecycle, authority, persistence, and replay paths.
Consolidate poll outcomes, native and context-engine accounting, reset/archive waits, and discovery cleanup failure into branch tables. Replace duplicated private fixtures with existing owner setup; retain session target, disabled elevation, lifecycle authority and persistence assertions. Coverage keepers: server.sessions.compaction-accounting.test.ts owns committed-boundary token correction; commands-compact.test.ts owns persisted native CLI target selection; services.cron.test.ts owns stale scheduler operation rejection. Context lookup, context.test.ts and model-catalog-view.test.ts own duplicate capacity variants; server.sessions.create.worktree-selection.test.ts owns the registered CLI catalog path. Retained chat co-owned eviction and exact JSON limit tests cover removed eviction replay. CI-only: plain oxlint, oxfmt and diff-check pass; no tests or builds run. Shard baseline 4701 lines, now 4171 (11.3 percent reduction); 35 percent target remains unmet.
Remove the duplicated commands readiness case; the same deferred model-list flow remains in chat-metadata-model-list-readiness.test.ts (serves commands independently of another agent s remembered model list). Share repeated target, queued-dispatch and command-expectation fixtures, and reuse the existing repository file client. CI-only campaign: plain oxlint, oxfmt and diff-check pass. No runtime tests or coverage run. Preserve distinct authority, lifecycle and repository durability cases; the 35 percent target is not safely achievable in this shard.
Retire the repository checkpoint replay harness. workspace-result-repository.test.ts covers accepted editor staging, pending recovery custody, unchanged checkpoints and cleared claims. github-repository-publication-snapshot.test.ts preserves committed CRLF and normalizes edited publication bytes. Keep RPC file browsing, editing, download, stale authority, link escape and physical write draining proof here. Collapse the synthetic Stop/reset queue callback variants, table image provenance cases, consolidate MCP context edits with notification delivery, and retain the shared post-await read revocation proof through resource reads. Model-context invalid-shape cases remain in mcp-app-model-context.test.ts; media-note rendering remains in media-note.test.ts. Share repeated client, identity and response fixtures. CI-only: plain oxlint, oxfmt and diff-check pass. No tests, coverage or build commands run. Original shard 4809 lines to 4358, below the 35 percent target; remaining distinct authority, persistence and lifecycle boundaries are retained.
Keep raw Stop custody at session-controller.stop.test.ts, session-controller.rpc-sources.test.ts and session-controller.watchdog.test.ts; retain Gateway persistence-failure orchestration. Exercise queued and running corrupt descendants through the same HTTP boundary, keeping auth and 503 assertions. Canonical admin result fields remain in subagent-control.test.ts. Remove metadata mutation rows already covered in chat-metadata-session-writes.test.ts and server-methods.session-scoped-reads.test.ts. Remove MCP requester and operation-denial replays covered by mcp-app.view-grant.test.ts and mcp-app-standalone.test.ts. Keep the stronger timed-out repository save test instead of its simple lifecycle queue replay and remove that replay-only filesystem mock. CI-only static gates pass: oxfmt, plain oxlint and diff-check. No tests or builds run. Original shard 4809 lines to 4154; the 35 percent target remains unmet because remaining cases protect distinct behavior.
Share scheduled authority fixtures, context hook setup and native recovery scaffolding. Preserve every test case, approval row, post-await authority check and persistence assertion. CI-only campaign: plain oxlint, oxfmt and diff-check pass; runtime proof deferred to hosted CI.
Share branch-oriented context startup, native recovery, notification and authority fixtures. Retain distinct admission, post-await authority, persistence and ordering scenarios while removing repeated bookkeeping assertions. Delete duplicate environment and shell-policy cases covered by run-attempt-connection.environment.test.ts. Native lease revalidation remains in thread-lifecycle.binding.test.ts; retired policy and full-exec hook behavior remain in config.test.ts and run-attempt.test.ts. Router diagnostic replay remains in client.test.ts. Active hook projection bounds remain in native-provenance.test.ts and context-engine-projection.test.ts; the empty-input fitting branch remains in context-engine-projection.test.ts. Preserve routing and persistence cases in consolidated tables. CI-only proof: plain oxlint, oxfmt and diff-check pass. No tests, coverage or typecheck run. Cumulative shard test LOC 5008 to 3902 (22.1%), below the requested 35% target.
Consolidate paused-route, context assembly, policy capture and environment fixtures while preserving distinct authority and lifecycle cases. Keepers: run-attempt.context-budget supplies assembly budgets; run-attempt.steering-media covers explicit remote attachment staging; auth-bridge owns managed CODEX_HOME; client owns transport diagnostics; native-subagent-delivery-receipts and native-subagent-monitor.direct-authority own stale result receipts. CI-only audit: formatting, plain oxlint and diff-check pass; no tests run. Original shard 5008 lines to 3417 (31.8 percent), short of 35 percent to retain unique authority and persistence races.
Reuse the existing executor root-ownership suite without changing its cases. Consolidate verification and service fixtures; remove five redundant table rows. Remaining proof: staged admitted artifact covers already-current; install-mode-options and retained package/Doctor cases cover work-budget defaults; collection probe warnings cover the generic channel-warning branch; daemon lifecycle external-supervisor table covers preserved restart refusal. CI-only validation: plain oxlint, oxfmt, and diff-check. Preserve distinct rollback, authority, cleanup, and readiness paths; line reduction is 201/5145 (3.9%), below the requested structural target.
Drop the exact descendant-settlement replay; retain update-command-executor-descendants.test.ts. Keep publication/retirement at package-update-publication-boundary and package-update-activation-lifetime. Keep native launchd policy and handoff at daemon/launchd and launchd-restart-handoff. Keep timeout budgets at restart-health-wait/deadline and install-mode-options; plugin warning/completion proof at update-command-service and database-retention. Remove mocked terminal recovery replays covered by native-recovery, failure-recovery and post-update-repair; retain PID-specific recovery facts without repeated guidance rendering. Preserve distinct schema, config concurrency, Windows identity, authority and readiness races. CI-only static validation: oxlint, oxfmt and diff-check. Cumulative test lines 5145 to 4207 (18.2%); 35% target remains unmet.
Share subprocess options and the direct/descendant custody fixture while preserving both cases. Remove internal call-shape and snapshot-detail replay; retain real authority, rollback, and readiness outcomes. Keep stalled native reads in restart-health-deadline, artifact resolution in package-update-steps.recovery, detailed Doctor receipts in package-doctor and steps.transaction, and failed-swap retention in package-update-steps.native-transaction. Remove the duplicate finalizer backup setup and its unused option plumbing. CI-only validation: oxfmt, plain oxlint, diff-check. Test lines now 3900 from original5145 (24.2%); the requested35% reduction remains unmet because remaining cases protect distinct boundaries.
Remove duplicate orphan metadata and repaired-history cases from the context-engine suite. The same cases remain in attempt.spawn-workspace.orphan.test.ts, in the same database-worker project, covering metadata replay, dangling labels, and assembly removal of the repaired orphan. Reuse unchanged response capture setup in projection tests and forward shared harness mocks directly. Keep distinct durability, authority, and stream-settlement cases; this bounded reduction does not meet the 35 percent line target. CI-only validation: oxfmt, oxlint, and git diff --check; no tests or coverage run.
Consolidate projection setup and same-path matrix variants, infer the shared mock surface from its typed implementation, and trim internal-only assertions. Keep runtime custody, durable projection, and native authority boundaries. Retained coverage: attempt-prompt-phase.test.ts covers policy blocks; attempt-prompt-observability.test.ts covers blank prompt traces; attempt.llm-boundary.cache-stability.test.ts covers initial steering; session-manager-cache-ttl.test.ts covers branch restoration; session-prompt-state.cache-ttl.test.ts covers failed persistence and retry. The projection matrix keeps replacement, hooked steering with logging patterns, and image retry/reopen paths. CI-only: oxfmt, plain oxlint, and diff-check pass. No tests or coverage run. Cumulative reduction is 4756 to 4279 lines; the 35 percent target remains unmet without removing distinct lifecycle and authority proof.
Keep image retry/reopen dispatch proof while retiring hook and generic replay matrix variants covered by attempt.llm-boundary, its cache-stability tests, and attempt-prompt-submit.pasted-text. Preserve frozen prompt, original attachment, durable metadata, and serialized provider-prefix assertions. Remove ownership-through-usage replay covered by session-usage.test.ts, agent-harness-session-key.test.ts, and session-runtime-compat.test.ts. Keep private account-route projection but retire budget replays owned by setup.test.ts, run.overflow-compaction.loop.test.ts, and run.harness-auth-failover.test.ts. Table the distinct native preparation failures without dropping rejection branches. Use the production runtime-plan builder and retire source-delivery callback wiring duplicated by attempt-session.test.ts, embedded-agent-subscribe.handlers.tools.test.ts, and run.plugin-runtime-refresh-delivery.integration.test.ts. CI-only validation: oxfmt, plain oxlint, and diff-check pass; no test runs. Cumulative test LOC 4756 -> 4039; 35 percent target remains unmet.
Factor repeated pane, sharing mutation, board, and identity fixtures while retaining distinct authorization and lifecycle cases. Consolidate connection/session replacement mutation rows without dropping expanded cases. Remove duplicate progress-hide replay: retained identity agent-switch coverage protects isolation; chat-pane-progress-history covers hidden revisions and lifetime renewal, and session-progress-cards covers accepted-clear lifetime retirement. CI-only shard: plain oxlint, oxfmt, and diff-check pass. Test/coverage execution deferred to hosted CI. 5033 to 4715 test lines (6.3%); 35% target not safely attainable with distinct behavior preserved. Session-events remains unchanged.
Reduce the shard from 5033 to 3271 lines while retaining authorization, stale-result, reset-incarnation, and pane-local state boundaries. No test or build runs: CI-only campaign; plain oxlint, formatting, and diff checks pass. Keep missed-terminal and successor-transcript coverage in chat-pane-run-settlement and chat-pane-successor-event. Keep rendering details in chat-transcript-duration, chat-pane-session-controls, and chat-session-sharing; retain their pane admission and recovery contracts here. Board defaults, tab persistence, retained iframe, and provider-lease internals remain with dashboard-presentation-defaults, settings.node, board-session-surface, and provider tests. Base presentation, snapshot hydration, clipboard, confirmations, and terminal toggle remain with their named owner suites. Identity keeps reactive requester routing and live scope changes; replay and subscription settlement remain with session-approval-projection, session-display, and chat-history-subscription-errors. Remove repeated method matrices and internal call-count assertions rather than distinct lifecycle behavior.
Share ACP dispatch and runtime fixtures; table existing-source and caller abort variants without dropping their ordering assertions. Reuse follow-up decision and delivery fixtures and missing-reply expectations. The retained discards queued earlier answers after a silent final case covers the simpler empty-NO_REPLY replays. Keep normal-error and exact-NO_REPLY optional failure rows instead of punctuation/rate-limit variants through the same terminal failure path. Preserve result-required/provider-started distinctions and all source privacy, revocation, and delivery ownership cases.
Keep ACP non-owner rejection and cancellation at commands-acp.owner.test.ts; keep bound target selection at commands-acp/targets.test.ts. Explicit cwd remains in the Unicode spawn case, configured cwd in its own case, and resolved identity text at acp-core session-identifiers.test.ts. Queued acknowledgments remain in waiting-status.delivery.test.ts. Stalled recovery delivery remains in followup-delivery.tts.test.ts. Keep filtering variants at followup-delivery-payloads.test.ts and evidence classification at embedded-agent-runner/delivery-evidence.test.ts. The full source retry still checks the terminal diagnostic. Remove duplicated resolver/delivery custody compositions: owner-settlement retains held resolver and deferred admission cases; expiry remains in reply-run-registry.test.ts and session-controller.watchdog.test.ts. Preserve supersession result and late-output suppression in acp-abort, with successor delivery ordering in owner-settlement. Readmission retains its real write and authority races while reusing local setup and removing cron-owned metadata wording checks. CI-only: formatting, plain oxlint, and diff-check pass; no tests or coverage run. Cumulative reduction is 5173 to 4560 lines; the 35 percent target remains unmet because remaining cases protect distinct branches and interleavings.
Share held-work cleanup and ACP metadata fixtures while preserving all cancellation, source-custody, settlement, and readmission cases. Reuse local config and persisted-session assertions without rebuilding nested fixtures. CI-only: plain oxlint, oxfmt, and git diff --check passed. No tests run. Shard remains above the requested line target; no distinct authority or lifecycle behavior was removed to meet it.
Consolidate sidebar link and image contracts into branch-preserving tables; share rail mounting and observer fixtures. Keep all expanded cases and lifecycle, authority, and failure assertions. CI-only validation: plain oxlint, oxfmt, and diff check; no test or coverage execution. The line reduction falls short of the shard target; other distinct ownership and race cases remain intact.
Keep sidebar download retry/retirement proof in chat-attachment-download.test.ts and search focus proof in chat-sidebar-file-view.browser.test.ts. Keep GitHub link and normalization proof at the markdown-links and message-normalizer owners. Keep rail streaming registration/retargeting in the focused run handoff case, with bounded layout reads in chat-position-rail-scroll.test.ts and missing-prompt grouping in chat-transcript-message-index.test.ts. Share local fixtures and remove copied resource keys and redundant internal assertions. Preserve canonical-path DOM selection, thumbnail callback identity, retained Solid subtrees, authority checks, late settlements and race cases. CI-only static validation: oxfmt, plain oxlint and diff-check; no test/build execution. Total shard reduction remains below 35 percent because remaining distinct behaviors are retained.
Remove the direct rail-view getter-counter layer and the duplicate reader-offset scenario; real stream handoff and chat-position-rail-scroll integration retain the behavior. Remove cached-item identity and preparation-count assertions in favor of retained DOM/action outcomes. The delayed palette case includes the ready transition. Share rail, workspace and image-response fixtures without retiring authority or lifecycle cases. Static-only validation: plain oxlint, oxfmt and diff-check passed. No test/build/coverage runs. Original shard 5077 lines to 3930 (22.6 percent), still below the requested 35 percent reduction; remaining source/owner, canonical selection, auth/expiry, participant/question and lifecycle distinctions remain covered.
Consolidate config mutation fixtures, deletion finalization assertions, approval visibility fixtures, and auth-status request and usage helpers. Retain every test case and authority, credential, recovery, and ordering boundary; leave the already-tight personal GitHub suite unchanged. Persisted-model assertions in clears an existing model override replace the duplicate apply-helper check. Exact filename equality retains the removed membership checks. Preserve both usage request credential-selection assertions. CI-only: oxfmt, plain oxlint, and diff-check pass; tests and coverage intentionally not run. Reduction is 104 of 4493 lines (2.3%), below the requested 35% because remaining cases are distinct.
Remove duplicate helper-layer proof retained by models-auth-api-key.integration.test.ts (wire validation and real credential writer), server.models-auth-order.test.ts (stored priority and reset ownership), plugin-approval.test.ts (pending turn-source routing), and approval.channel-custody.test.ts (device-less runtime authority). approval.test.ts retains resolved-event recipient filtering. Keep saved-profile identity assertions in the concurrent privacy case and table equivalent invalid-agent and usage setup. Repair the stale agents-mutate.scenarios.test-support import using the existing authority, filesystem, and recovery support modules. Preserve remaining inode, symlink, recovery, credential, and race behavior. No production changes. CI-only: formatting, plain oxlint, and diff-check pass; no test or coverage runs. Cumulative reduction 4493 to 4239 lines (5.7 percent), below the 35 percent target.
Cover successful and unsuccessful delayed approval delivery in one parameterized first-decision scenario, retaining response, handoff, and expiration assertions. Remove the clean API-key success row already covered by models-auth-api-key.integration.test.ts: models.authSetApiKey validates the old wire request before the real credential writer. Retain explicit writer-agent selection and combined application/refresh warning assertions. No test runs under CI-only instruction. oxfmt, plain oxlint, and diff-check pass. Original shard 4493 lines to 4200 (6.5 percent); 35 percent remains unmet because remaining authority, credential, recovery, and lifecycle cases lack equivalent keepers.
|
Codex review: needs changes before merge. What this changesThis PR consolidates test fixtures and removes duplicate coverage across runtime, Gateway, updater, and chat UI suites. Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this maintainer-directed cleanup open: no definite introduced defect was found, but GitHub reports a merge conflict and the exact-head CI gate remains pending. Priority: P3 Before merge
FindingsNone. Agent review detailsHow this fits togetherThe test suites feed synthetic requests, events, and persisted fixtures through existing production owners, then assert their outcomes; production runtime behavior is unchanged. flowchart LR
A[Test scenarios] --> B[Shared test fixtures]
B --> C[Existing production owners]
C --> D[Transport and storage fixtures]
D --> E[Behavior assertions]
Technical reviewBest possible solution: Land the test-only consolidation after resolving the reported conflict while preserving current-main contracts. Do we have a high-confidence way to reproduce the issue? This is a test-maintenance change rather than a reported product bug; review used the pinned source diff and hosted results without executing target code. Is this the best way to solve the issue? Consolidating fixtures within existing suites is appropriate, and the inspected sibling tests support the removal of duplicate proof layers. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 90de56bdc4c2. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests -5008, Other -9. Total -5017 across 34 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, 1:28 PM ET / 17:28 UTC. |
e54afdd to
ea11246
Compare
* test(infra): deslop r0072 tests Share process-census fixtures and failure-report race setup while retaining every scenario row. Consolidate matching and changed-preview expiration cases in one table. Remove syscall/request-shape inventories covered by retained filesystem, admission, transfer-integrity and retirement outcomes. Keep immutable activation unchanged because its lifecycle and recovery cases are distinct. CI-only validation: plain oxlint, oxfmt and diff-check; no test or coverage runs. * test(infra): consolidate r0072 duplicate coverage layers Remove the existing-only store replay retained in sqlite-worker-store.existing.test.ts and catalog reuse covered by sqlite-schema-facts.test.ts. Keep connection-lifetime proof in the last-handle case. Remove report preparation, transport and cleanup replays covered by the corresponding update-failure-report siblings. Keep private file permissions and exact persisted bytes in the fallback case. Reuse activation owner recovery proof for start failure and pending outcomes. Consolidate filesystem interleavings and leave generic parser classification to gateway-process-argv.test.ts while retaining census custody boundaries. Validated with formatting, plain oxlint and diff-check only under CI-only instructions. Original shard 5053 to 4259 lines; the 35 percent target remains unmet because the remaining lifecycle and authority boundaries are distinct. * test(infra): reduce r0072 branch replays Keep one process-custody representative per branch and leave runtime flag syntax matrices to gateway-process-argv tests. Keep scoped unknown-cwd custody for both same and foreign UIDs. Remove default-force missing-path replay covered by package-update-filesystem and the retained missing-sibling case. Drop internal removal call-budget bookkeeping without changing per-mutation authority checks. Reuse disposable database fixtures and leave transfer frame size budgets to sqlite-worker-transfer while retaining native transfer, interruption and buffer-detachment proof. Static validation only: formatting, plain oxlint and diff-check. The original 5053-line shard is now 4141 lines; the 35 percent target remains unmet. * test(codex): consolidate r0064 owner fixtures Port r0064 commits abe05f64209a, 476a2cb97e39, and ba3879bbdf55 onto the campaign lane. The first cleanup was already present; consolidate the remaining owner fixtures while retaining lane-modified startup timeout/redaction and shared-initialize coverage, exact factory deadlines, and all eight sibling-order cases. CI-only validation: oxlint exited 0 on all five touched files; oxfmt --check and git diff --check passed. Independent review identified only unstaged preservation fixes, now staged and verified identical to the reviewed working tree. No tests, coverage, Testbox, or check-changed were run. * test(gateway): deslop r0074 tests Share durable OAuth refresh recovery setup without removing either failure path or its assertions. Trim copied compaction mock input inventory while retaining target identity, run linkage, workspace, reasoning and permission checks; the SQLite transcript/accounting and native CLI tests retain behavior proof. * test(gateway): remove redundant r0074 coverage layers Retain shared shutdown and refresh singleflight proof in the draining case. Remove equivalent full-mode replay rows, a repeated oversized-input case, and incidental compaction mock inventories. Fork inheritance remains covered by session-entry-selection.test.ts (drops fallback model state while preserving only auth intent); catalog deletion by server.sessions.delete-lifecycle.test.ts (locked plugin-owned persisted alias); reply default selection by dispatch-from-config.turn-model-selection-differential.test.ts (explicit default rejects stale child and parent overrides). Reload planning remains covered by config-reload.services.test-support.ts (transcript changes through plugin reload transaction). CI-only campaign: plain oxlint, oxfmt, and diff-check pass; tests not run. Original shard 4701 lines, now 4522; 35 percent target remains unmet because retained cases cover distinct lifecycle, authority, persistence, and replay paths. * test(gateway): consolidate r0074 lifecycle and accounting suites Consolidate poll outcomes, native and context-engine accounting, reset/archive waits, and discovery cleanup failure into branch tables. Replace duplicated private fixtures with existing owner setup; retain session target, disabled elevation, lifecycle authority and persistence assertions. Coverage keepers: server.sessions.compaction-accounting.test.ts owns committed-boundary token correction; commands-compact.test.ts owns persisted native CLI target selection; services.cron.test.ts owns stale scheduler operation rejection. Context lookup, context.test.ts and model-catalog-view.test.ts own duplicate capacity variants; server.sessions.create.worktree-selection.test.ts owns the registered CLI catalog path. Retained chat co-owned eviction and exact JSON limit tests cover removed eviction replay. CI-only: plain oxlint, oxfmt and diff-check pass; no tests or builds run. Shard baseline 4701 lines, now 4171 (11.3 percent reduction); 35 percent target remains unmet. * test(gateway): deslop r0075 tests Remove the duplicated commands readiness case; the same deferred model-list flow remains in chat-metadata-model-list-readiness.test.ts (serves commands independently of another agent s remembered model list). Share repeated target, queued-dispatch and command-expectation fixtures, and reuse the existing repository file client. CI-only campaign: plain oxlint, oxfmt and diff-check pass. No runtime tests or coverage run. Preserve distinct authority, lifecycle and repository durability cases; the 35 percent target is not safely achievable in this shard. * test(gateway): consolidate r0075 owner-boundary proof Retire the repository checkpoint replay harness. workspace-result-repository.test.ts covers accepted editor staging, pending recovery custody, unchanged checkpoints and cleared claims. github-repository-publication-snapshot.test.ts preserves committed CRLF and normalizes edited publication bytes. Keep RPC file browsing, editing, download, stale authority, link escape and physical write draining proof here. Collapse the synthetic Stop/reset queue callback variants, table image provenance cases, consolidate MCP context edits with notification delivery, and retain the shared post-await read revocation proof through resource reads. Model-context invalid-shape cases remain in mcp-app-model-context.test.ts; media-note rendering remains in media-note.test.ts. Share repeated client, identity and response fixtures. CI-only: plain oxlint, oxfmt and diff-check pass. No tests, coverage or build commands run. Original shard 4809 lines to 4358, below the 35 percent target; remaining distinct authority, persistence and lifecycle boundaries are retained. * test(gateway): remove r0075 duplicate lifecycle layers Keep raw Stop custody at session-controller.stop.test.ts, session-controller.rpc-sources.test.ts and session-controller.watchdog.test.ts; retain Gateway persistence-failure orchestration. Exercise queued and running corrupt descendants through the same HTTP boundary, keeping auth and 503 assertions. Canonical admin result fields remain in subagent-control.test.ts. Remove metadata mutation rows already covered in chat-metadata-session-writes.test.ts and server-methods.session-scoped-reads.test.ts. Remove MCP requester and operation-denial replays covered by mcp-app.view-grant.test.ts and mcp-app-standalone.test.ts. Keep the stronger timed-out repository save test instead of its simple lifecycle queue replay and remove that replay-only filesystem mock. CI-only static gates pass: oxfmt, plain oxlint and diff-check. No tests or builds run. Original shard 4809 lines to 4154; the 35 percent target remains unmet because remaining cases protect distinct behavior. * test(codex): deslop r0073 tests Share scheduled authority fixtures, context hook setup and native recovery scaffolding. Preserve every test case, approval row, post-await authority check and persistence assertion. CI-only campaign: plain oxlint, oxfmt and diff-check pass; runtime proof deferred to hosted CI. * test(codex): consolidate r0073 boundary suites Share branch-oriented context startup, native recovery, notification and authority fixtures. Retain distinct admission, post-await authority, persistence and ordering scenarios while removing repeated bookkeeping assertions. Delete duplicate environment and shell-policy cases covered by run-attempt-connection.environment.test.ts. Native lease revalidation remains in thread-lifecycle.binding.test.ts; retired policy and full-exec hook behavior remain in config.test.ts and run-attempt.test.ts. Router diagnostic replay remains in client.test.ts. Active hook projection bounds remain in native-provenance.test.ts and context-engine-projection.test.ts; the empty-input fitting branch remains in context-engine-projection.test.ts. Preserve routing and persistence cases in consolidated tables. CI-only proof: plain oxlint, oxfmt and diff-check pass. No tests, coverage or typecheck run. Cumulative shard test LOC 5008 to 3902 (22.1%), below the requested 35% target. * test(codex): reduce r0073 duplicate test layers Consolidate paused-route, context assembly, policy capture and environment fixtures while preserving distinct authority and lifecycle cases. Keepers: run-attempt.context-budget supplies assembly budgets; run-attempt.steering-media covers explicit remote attachment staging; auth-bridge owns managed CODEX_HOME; client owns transport diagnostics; native-subagent-delivery-receipts and native-subagent-monitor.direct-authority own stale result receipts. CI-only audit: formatting, plain oxlint and diff-check pass; no tests run. Original shard 5008 lines to 3417 (31.8 percent), short of 35 percent to retain unique authority and persistence races. * test(update-cli): deslop r0076 tests Reuse the existing executor root-ownership suite without changing its cases. Consolidate verification and service fixtures; remove five redundant table rows. Remaining proof: staged admitted artifact covers already-current; install-mode-options and retained package/Doctor cases cover work-budget defaults; collection probe warnings cover the generic channel-warning branch; daemon lifecycle external-supervisor table covers preserved restart refusal. CI-only validation: plain oxlint, oxfmt, and diff-check. Preserve distinct rollback, authority, cleanup, and readiness paths; line reduction is 201/5145 (3.9%), below the requested structural target. * test(update-cli): remove duplicate r0076 boundary layers Drop the exact descendant-settlement replay; retain update-command-executor-descendants.test.ts. Keep publication/retirement at package-update-publication-boundary and package-update-activation-lifetime. Keep native launchd policy and handoff at daemon/launchd and launchd-restart-handoff. Keep timeout budgets at restart-health-wait/deadline and install-mode-options; plugin warning/completion proof at update-command-service and database-retention. Remove mocked terminal recovery replays covered by native-recovery, failure-recovery and post-update-repair; retain PID-specific recovery facts without repeated guidance rendering. Preserve distinct schema, config concurrency, Windows identity, authority and readiness races. CI-only static validation: oxlint, oxfmt and diff-check. Cumulative test lines 5145 to 4207 (18.2%); 35% target remains unmet. * test(update-cli): consolidate r0076 fixtures and assertions Share subprocess options and the direct/descendant custody fixture while preserving both cases. Remove internal call-shape and snapshot-detail replay; retain real authority, rollback, and readiness outcomes. Keep stalled native reads in restart-health-deadline, artifact resolution in package-update-steps.recovery, detailed Doctor receipts in package-doctor and steps.transaction, and failed-swap retention in package-update-steps.native-transaction. Remove the duplicate finalizer backup setup and its unused option plumbing. CI-only validation: oxfmt, plain oxlint, diff-check. Test lines now 3900 from original5145 (24.2%); the requested35% reduction remains unmet because remaining cases protect distinct boundaries. * test(agents): deslop r0078 tests Remove duplicate orphan metadata and repaired-history cases from the context-engine suite. The same cases remain in attempt.spawn-workspace.orphan.test.ts, in the same database-worker project, covering metadata replay, dangling labels, and assembly removal of the repaired orphan. Reuse unchanged response capture setup in projection tests and forward shared harness mocks directly. Keep distinct durability, authority, and stream-settlement cases; this bounded reduction does not meet the 35 percent line target. CI-only validation: oxfmt, oxlint, and git diff --check; no tests or coverage run. * test(agents): deslop r0078 test layers Consolidate projection setup and same-path matrix variants, infer the shared mock surface from its typed implementation, and trim internal-only assertions. Keep runtime custody, durable projection, and native authority boundaries. Retained coverage: attempt-prompt-phase.test.ts covers policy blocks; attempt-prompt-observability.test.ts covers blank prompt traces; attempt.llm-boundary.cache-stability.test.ts covers initial steering; session-manager-cache-ttl.test.ts covers branch restoration; session-prompt-state.cache-ttl.test.ts covers failed persistence and retry. The projection matrix keeps replacement, hooked steering with logging patterns, and image retry/reopen paths. CI-only: oxfmt, plain oxlint, and diff-check pass. No tests or coverage run. Cumulative reduction is 4756 to 4279 lines; the 35 percent target remains unmet without removing distinct lifecycle and authority proof. * test(agents): prune duplicate r0078 owner layers Keep image retry/reopen dispatch proof while retiring hook and generic replay matrix variants covered by attempt.llm-boundary, its cache-stability tests, and attempt-prompt-submit.pasted-text. Preserve frozen prompt, original attachment, durable metadata, and serialized provider-prefix assertions. Remove ownership-through-usage replay covered by session-usage.test.ts, agent-harness-session-key.test.ts, and session-runtime-compat.test.ts. Keep private account-route projection but retire budget replays owned by setup.test.ts, run.overflow-compaction.loop.test.ts, and run.harness-auth-failover.test.ts. Table the distinct native preparation failures without dropping rejection branches. Use the production runtime-plan builder and retire source-delivery callback wiring duplicated by attempt-session.test.ts, embedded-agent-subscribe.handlers.tools.test.ts, and run.plugin-runtime-refresh-delivery.integration.test.ts. CI-only validation: oxfmt, plain oxlint, and diff-check pass; no test runs. Cumulative test LOC 4756 -> 4039; 35 percent target remains unmet. * test(ui): deslop r0077 tests Factor repeated pane, sharing mutation, board, and identity fixtures while retaining distinct authorization and lifecycle cases. Consolidate connection/session replacement mutation rows without dropping expanded cases. Remove duplicate progress-hide replay: retained identity agent-switch coverage protects isolation; chat-pane-progress-history covers hidden revisions and lifetime renewal, and session-progress-cards covers accepted-clear lifetime retirement. CI-only shard: plain oxlint, oxfmt, and diff-check pass. Test/coverage execution deferred to hosted CI. 5033 to 4715 test lines (6.3%); 35% target not safely attainable with distinct behavior preserved. Session-events remains unchanged. * test(ui): consolidate r0077 pane coverage at owning boundaries Reduce the shard from 5033 to 3271 lines while retaining authorization, stale-result, reset-incarnation, and pane-local state boundaries. No test or build runs: CI-only campaign; plain oxlint, formatting, and diff checks pass. Keep missed-terminal and successor-transcript coverage in chat-pane-run-settlement and chat-pane-successor-event. Keep rendering details in chat-transcript-duration, chat-pane-session-controls, and chat-session-sharing; retain their pane admission and recovery contracts here. Board defaults, tab persistence, retained iframe, and provider-lease internals remain with dashboard-presentation-defaults, settings.node, board-session-surface, and provider tests. Base presentation, snapshot hydration, clipboard, confirmations, and terminal toggle remain with their named owner suites. Identity keeps reactive requester routing and live scope changes; replay and subscription settlement remain with session-approval-projection, session-display, and chat-history-subscription-errors. Remove repeated method matrices and internal call-count assertions rather than distinct lifecycle behavior. * test(auto-reply): deslop r0079 tests Share ACP dispatch and runtime fixtures; table existing-source and caller abort variants without dropping their ordering assertions. Reuse follow-up decision and delivery fixtures and missing-reply expectations. The retained discards queued earlier answers after a silent final case covers the simpler empty-NO_REPLY replays. Keep normal-error and exact-NO_REPLY optional failure rows instead of punctuation/rate-limit variants through the same terminal failure path. Preserve result-required/provider-started distinctions and all source privacy, revocation, and delivery ownership cases. * test(auto-reply): remove duplicate r0079 proof layers Keep ACP non-owner rejection and cancellation at commands-acp.owner.test.ts; keep bound target selection at commands-acp/targets.test.ts. Explicit cwd remains in the Unicode spawn case, configured cwd in its own case, and resolved identity text at acp-core session-identifiers.test.ts. Queued acknowledgments remain in waiting-status.delivery.test.ts. Stalled recovery delivery remains in followup-delivery.tts.test.ts. Keep filtering variants at followup-delivery-payloads.test.ts and evidence classification at embedded-agent-runner/delivery-evidence.test.ts. The full source retry still checks the terminal diagnostic. Remove duplicated resolver/delivery custody compositions: owner-settlement retains held resolver and deferred admission cases; expiry remains in reply-run-registry.test.ts and session-controller.watchdog.test.ts. Preserve supersession result and late-output suppression in acp-abort, with successor delivery ordering in owner-settlement. Readmission retains its real write and authority races while reusing local setup and removing cron-owned metadata wording checks. CI-only: formatting, plain oxlint, and diff-check pass; no tests or coverage run. Cumulative reduction is 5173 to 4560 lines; the 35 percent target remains unmet because remaining cases protect distinct branches and interleavings. * test(auto-reply): consolidate r0079 lifecycle fixtures Share held-work cleanup and ACP metadata fixtures while preserving all cancellation, source-custody, settlement, and readmission cases. Reuse local config and persisted-session assertions without rebuilding nested fixtures. CI-only: plain oxlint, oxfmt, and git diff --check passed. No tests run. Shard remains above the requested line target; no distinct authority or lifecycle behavior was removed to meet it. * test(ui): deslop r0080 tests Consolidate sidebar link and image contracts into branch-preserving tables; share rail mounting and observer fixtures. Keep all expanded cases and lifecycle, authority, and failure assertions. CI-only validation: plain oxlint, oxfmt, and diff check; no test or coverage execution. The line reduction falls short of the shard target; other distinct ownership and race cases remain intact. * test(ui): remove redundant r0080 test layers Keep sidebar download retry/retirement proof in chat-attachment-download.test.ts and search focus proof in chat-sidebar-file-view.browser.test.ts. Keep GitHub link and normalization proof at the markdown-links and message-normalizer owners. Keep rail streaming registration/retargeting in the focused run handoff case, with bounded layout reads in chat-position-rail-scroll.test.ts and missing-prompt grouping in chat-transcript-message-index.test.ts. Share local fixtures and remove copied resource keys and redundant internal assertions. Preserve canonical-path DOM selection, thumbnail callback identity, retained Solid subtrees, authority checks, late settlements and race cases. CI-only static validation: oxfmt, plain oxlint and diff-check; no test/build execution. Total shard reduction remains below 35 percent because remaining distinct behaviors are retained. * test(ui): consolidate r0080 fixtures and remove internal counters Remove the direct rail-view getter-counter layer and the duplicate reader-offset scenario; real stream handoff and chat-position-rail-scroll integration retain the behavior. Remove cached-item identity and preparation-count assertions in favor of retained DOM/action outcomes. The delayed palette case includes the ready transition. Share rail, workspace and image-response fixtures without retiring authority or lifecycle cases. Static-only validation: plain oxlint, oxfmt and diff-check passed. No test/build/coverage runs. Original shard 5077 lines to 3930 (22.6 percent), still below the requested 35 percent reduction; remaining source/owner, canonical selection, auth/expiry, participant/question and lifecycle distinctions remain covered. * test(gateway): deslop r0082 tests Consolidate config mutation fixtures, deletion finalization assertions, approval visibility fixtures, and auth-status request and usage helpers. Retain every test case and authority, credential, recovery, and ordering boundary; leave the already-tight personal GitHub suite unchanged. Persisted-model assertions in clears an existing model override replace the duplicate apply-helper check. Exact filename equality retains the removed membership checks. Preserve both usage request credential-selection assertions. CI-only: oxfmt, plain oxlint, and diff-check pass; tests and coverage intentionally not run. Reduction is 104 of 4493 lines (2.3%), below the requested 35% because remaining cases are distinct. * test(gateway): consolidate r0082 owner-boundary proof Remove duplicate helper-layer proof retained by models-auth-api-key.integration.test.ts (wire validation and real credential writer), server.models-auth-order.test.ts (stored priority and reset ownership), plugin-approval.test.ts (pending turn-source routing), and approval.channel-custody.test.ts (device-less runtime authority). approval.test.ts retains resolved-event recipient filtering. Keep saved-profile identity assertions in the concurrent privacy case and table equivalent invalid-agent and usage setup. Repair the stale agents-mutate.scenarios.test-support import using the existing authority, filesystem, and recovery support modules. Preserve remaining inode, symlink, recovery, credential, and race behavior. No production changes. CI-only: formatting, plain oxlint, and diff-check pass; no test or coverage runs. Cumulative reduction 4493 to 4239 lines (5.7 percent), below the 35 percent target. * test(gateway): consolidate remaining r0082 replay setup Cover successful and unsuccessful delayed approval delivery in one parameterized first-decision scenario, retaining response, handoff, and expiration assertions. Remove the clean API-key success row already covered by models-auth-api-key.integration.test.ts: models.authSetApiKey validates the old wire request before the real credential writer. Retain explicit writer-agent selection and combined application/refresh warning assertions. No test runs under CI-only instruction. oxfmt, plain oxlint, and diff-check pass. Original shard 4493 lines to 4200 (6.5 percent); 35 percent remains unmet because remaining authority, credential, recovery, and lifecycle cases lack equivalent keepers. * test: preserve d479 contracts and drop failing fixture rewrites * test: prune obsolete d479 mock baseline entries
What Problem This Solves
This test-reduction batch removes repeated setup and duplicate proof layers while preserving distinct authority, persistence, lifecycle, and recovery contracts. It reduces test maintenance without changing production behavior.
All 30 supplied d479 commits were replayed in order onto
8c9c6449f6eece38bd27565f3887c907c699041b, then rebased ontocde6f5c390dc7e1b320ec74daabeb9d5fc3a9ab8after main created a conflict, retaining their messages; no whole commit was skipped. Follow-up commits repair CI-discovered fixture mistakes, preserve review-identified boundary cases, drop selected file-level rewrites that did not survive current-main validation, and prune nine obsolete mock-ratchet entries identified by hosted CI. This PR contains no production, dependency, runtime configuration, or visual changes.Scope and Impact
Final candidate: 34 files, +4,907 / -10,045 lines, net -5,138.
Counts below measure only files actually changed by the final candidate, against the pinned main base. Declarations are static AST counts, not executed test counts. Parameterized declarations may retain multiple cases. The supplied source reports explicitly contain no coverage totals under CI-only mode; no coverage percentage or runtime speedup is claimed. Their snapshots predate some later supplied consolidation commits, so this table is the current scope authority.
src/infra/openclaw-process-census.test.tssrc/infra/sqlite-database-admission.retention.test.tssrc/infra/sqlite-worker-store.test.tssrc/infra/update-failure-report.test.tsextensions/codex/src/app-server/run-attempt.settlement.test.tssrc/gateway/github-oauth-lifecycle.test.tssrc/gateway/server-chat-state.test.tssrc/gateway/server-plugin-reload.recovery.test.tssrc/gateway/server-methods/chat-metadata-handler.test.tssrc/gateway/server-methods/chat.abort-errors.test.tssrc/gateway/server-methods/sessions-files.repository.test.tsextensions/codex/src/app-server/native-subagent-inventory.test.tsextensions/codex/src/app-server/run-attempt.context-engine.test.tsextensions/codex/src/app-server/scheduled-app-authority.test.tsextensions/codex/src/app-server/turn-router.test.tssrc/cli/update-cli/update-command-package.test.tssrc/cli/update-cli/update-command-service.integration.test.tssrc/cli/update-cli/update-command-verification.test.tssrc/cli/update-cli/update-command-executor.test.tssrc/cli/update-cli/update-command-rollback.test.tssrc/agents/embedded-agent-runner/run/attempt-prompt-submit.projections.test.tssrc/agents/embedded-agent-runner/run/attempt-spawn-workspace.test-support.tsui/src/pages/chat/chat-pane-identity.test.tsui/src/pages/chat/chat-pane-sharing.test.tssrc/auto-reply/reply/dispatch-from-config.acp-abort.test.tssrc/auto-reply/reply/followup-delivery.test.tssrc/auto-reply/reply/commands-acp.test.tssrc/auto-reply/reply/dispatch-from-config.owner-settlement.test.tsui/src/pages/chat/components/chat-position-rail.test.tsxui/src/pages/chat/components/chat-session-workspace.test.tssrc/gateway/server-methods/agents-mutate.test.tssrc/gateway/server-methods/models-auth-status.test.tssrc/gateway/server-methods/models-auth-api-key.integration.test.tsConflict resolution
Nonconflicting changes were kept except for the CI-driven drops below. At each conflicting path below, the pre-pick version was retained and that commit's changes to the file were dropped, preserving current-main changes and any earlier clean replay:
src/infra/fs-safe-remove.test.ts(all three commits);src/infra/update-immutable-activation.test.ts(second commit). Main retains its stronger rejection, sibling-mutation, native-start, and interruption cases.extensions/codex/src/app-server/{attempt-startup,native-hook-relay,native-subagent-monitor.custody,run-attempt-lifecycle-controller}.test.ts. Main's startup deadline, authorization, custody, and reply-ordering proof stays intact.src/gateway/server.sessions.compaction.test.ts(all three);server.sessions.create.forks.test.ts(second/third);github-oauth-lifecycle.test.ts(third only). Preserve newer persistence/accounting, inheritance, and OAuth cases.src/gateway/server-methods/chat-send-message-injection.test.ts(first/second);mcp-app.test.ts(second/third);projects.test.ts(second). Do not restore retired helpers or override newer cursor, requester, context, and projection proof.extensions/codex/src/app-server/run-attempt-connection.test.ts(second/third). Preserve current placement, hook, policy, and connection-lifetime cases.src/cli/update-cli/update-command-{package,post-update-recovery}.test.ts(second/third). Preserve separate guidance/staging and Doctor-rewritten config recovery proof.src/agents/embedded-agent-runner/run/attempt.spawn-workspace.context-engine.test.ts(all three);model-setup.ownership.test.ts(second/third). Main already lacks the orphan duplicate and adds cache-prefix/native ownership coverage.ui/src/pages/chat/chat-pane.test.ts(both);chat-pane-session-events.test.ts(second). Preserve current pane/control lifecycle and event handling.ui/src/pages/chat/components/chat-message-media-lifecycle.test.tsx(second/third). Preserve newer resource-key, thumbnail, and media lifetime cases.src/gateway/server-methods/approval-shared.test.ts(all three). Preserve expanded visibility and runtime authorization proof.One small conflict was resolved selectively: r0076's first commit removes the redundant
1.0.0/packagerow but retains main's added package-tarball URL row. No security policy or CODEOWNERS file was changed. None of the changed paths matches the current CODEOWNERS rules. The mock-factory baseline only shrinks by nine exact entries reported stale by hosted CI; no allowance was added.During the final rebase, main had extracted the remembered-model fixture in
chat-metadata-handler.test.ts. The first r0075 commit's entire hunk for that file was dropped to retain main's fixture and command-readiness test. Later nonconflicting fixture reuse and parameterized-row reductions remain. Range-diff confirmed every other replayed commit was unchanged apart from context.Review and CI Corrections
Initial CI run: https://github.com/openclaw/openclaw/actions/runs/40112047847 (failed; not waived).
chat-pane-board.test.tsx,chat-transcript-invalidation.test.ts,chat-sidebar.test.ts,attempt-stream-custody.test.ts, andsession-event-config-readmission.test.ts; those files exactly match the pinned main base. This preserves their current lifecycle/typing contracts rather than rewriting them to make the reductions pass.config/test-mock-exports-baseline.txt. The entries correspond to the explicitly isolated spawn/service fixtures or a removed mock; the follow-up removes exactly the nine tuples emitted by job https://github.com/openclaw/openclaw/actions/runs/40113439818/job/120930234858. Other baseline ratchets passed. No test, assertion, or gate was weakened.Autoreview: full diff reviewed in three isolated passes. Three findings were accepted (no-cap budget, update timeout variants, invalid save input) and addressed. Three were rejected with source evidence:
encode(), which callsJSON.rawJSONfor the raw row.preparePluginThreadConfigForTestitself callsresolveCodexPluginThreadConfigStartupPolicywith native tools enabled and scheduled authority, and refuses missing preparation.update-failure-report.tsdirectly re-exports the preparation owner, whose dedicated tests retain adversarial secret/path/log redaction coverage.The first correction review was scoped-clean at P0–P2. The final follow-up reported two issues in exact-base restored files, not in the final PR diff: the old shared-support forwarding wrapper (subsequently avoided by retaining the smaller typed implementation) and transcript fixture cleanup (file remains unchanged from base). These do not justify changing unrelated main code in this batch.
The final nine-entry baseline shrink received a separate scoped-clean P0–P2 review, confirming exact agreement with the hosted scanner output and no new allowances or weakened policy.
Evidence
pnpm install --frozen-lockfile --prefer-offline: passed.node_modules/.bin/oxfmt --write <changed files>: passed.node_modules/.bin/oxlint -c .oxlintrc.json <changed TS/TSX files>: exit 0.git diff --check: passed.openclaw/ci-gateon the corrected head is the merge gate. Earlier failed-head results are retained as diagnosis, not represented as passing proof. Auto-merge is re-armed only on the corrected exact head.This is test maintenance only; no user-visible release-note entry or changelog edit is needed.