Repository navigation
test(runtime): remove low-value tests (batch d614) - #184682
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. |
|
Codex review: needs maintainer review before merge. What this changesThis PR consolidates test fixtures and redundant cases while retaining coverage in existing owner suites. Example: A quiet child encounters a failed worker placement before Gateway restart recovery.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR provides useful test maintenance, and inspection found no definite introduced defect; required CI is still pending. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherVitest suites exercise agent, channel, memory, SDK, and secrets owners using synthetic inputs and isolated resources, then assert observable results and lifecycle outcomes. flowchart LR
A[Synthetic inputs] --> B[Shared test fixtures]
B --> C[Production owners]
C --> D[Isolated transport and storage]
D --> E[Behavior assertions]
E --> F[Hosted CI]
Technical reviewBest possible solution: Retain the consolidation and complete the existing CI gate before merging. Do we have a high-confidence way to reproduce the issue? This is test maintenance rather than a product bug report; no target code was executed during this read-only review. Is this the best way to solve the issue? Consolidating fixtures and moving retained scenarios into existing suites is appropriate, and inspection found no concrete need for additional machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d777ae123962. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfacePR surface statistics unavailable: the file list is incomplete. 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 26, 2026, 10:35 AM ET / 14:35 UTC. |
Keep one mixed-case Windows mutation case for each project entry point instead of replaying the same branch with a precloned proxy. Both original input shapes exercise the same cloneEnvWithPlatformSemantics path; the retained plain-input cases still catch the historical spread/capture bug from 70b587b. Use the canonical worker command type instead of restating its discriminated union. All six operation boundaries and clone registration settlement cases remain.
Combine cached-facts revision sequences and temporal/source-state branch fixtures. Keep rejection-based adapter tracking, rollback revision reuse, source filters, symlink diagnostics, credential isolation, and publication route assertions. Drop repeated vector-value assertions covered by manager-publication-transfer.test.ts: bounds each serialized batch and preserves every row when provider vectors share an array. Keep print-once work counts at the manager boundary. Static-only validation per campaign instructions.
Reuse usage and provider fixture builders, inline single-use target normalization, and remove identical worker postMessage branches. Preserve every fixture outcome and assertion; no test cases or security/lifecycle paths removed.
Share copy/rename host-path validation and parent creation with writes. Parse qualified and unqualified live model selectors through one normalization path, preserving invalid-selector handling and Google aliases.
Share provider request setup and table-drive SSE frame collection without deleting expanded cases. Exercise unreadable Responses inventories through streamOpenAIResponses, which retains the applyCommonResponsesParams projection path and asserts the payload hook was reached before network I/O.
Share SSE lifecycle fixtures while retaining split-CR dispatch and pending-cancellation assertions with unchanged deadlines. Table-drive literal schema normalization and keep missing/malformed property branches. Keep the transport content-start guard once per adapter. Thinking and tool decoding remain covered by anthropic.test.ts (mid-stream fallback and terminal fallback cases), openai-completions-structured-content-parity.test.ts (preserves scenarios), and openai-completions-stream.integration.test.ts (public LLM runtime tool cases). Drop three fallback inventory rows that no consumer selects.
Drop the collision-after-duplicates replay: same-original preservation remains local, while anthropic-transport-stream.test.ts rejects ambiguous OAuth tool names with the same error and no network handoff. Reuse the established Anthropic start/content/delta fixture for the transport content-start guard.
Consolidate media echo assertions into the voice-note delivery test, and attachment caps into the capped-content coalescing test. Keep remote SSH and local cache branches as separate table rows. Reuse inbound fixtures without dropping auth, recovery, partial-delivery, or prompt-isolation assertions. CI-only validation: oxfmt, git diff --check, and plain oxlint pass. Tests and coverage intentionally not run. Shard shrinks 1089 to 1001 lines (8.1%); below the 20% target because further deletions would remove distinct protected behavior.
Share admission/context setup across three shard suites; preserve original Vitest routing. Table cursor reconciliation and migration paths, assert explicit database identities, and use the existing temporary-directory lifetime owner. Remove cursor isolation replays covered by recovery-cursor.test.ts: keeps the greatest row across concurrent completions. Remove suppressed-reply replay covered by monitor.plugin-payload.test.ts: settles rich-link delivery through actual provider, hooks, and SQLite. Coalesce case/trim and capped metadata cases retain duplicate-text and complete reply-tuple proof. The non-isolated runner owns per-file mock and evaluated-module cleanup. Retain distinct auth, prompt-isolation, recovery, and partial-delivery assertions. Static-only gates: oxfmt, diff-check, plain oxlint. No tests run. Including the new 19-line shared helper, cumulative shard LOC is 1089 to 871 (-20.02%).
Consolidate FaceTime fixtures and remove redundant internal assertions while retaining every distinct test case. Pending-dial FIFO, conditional-clear and conflict tests retain persistence proof; supervisor stale-process and abort tests retain lifecycle ordering; carrier tests retain exact identity and ownership checks. Keep helper-wire authentication support unchanged.
Merge outbound-call cases into call-events under the same extension test routing. Share supervisor setup, table equivalent failure paths, and combine FIFO save and conditional-clear interleavings with separate write and deletion gates. Preserve signed handshake bytes while sharing identity and framing setup. Remove the duplicate unlisted-owner unit case: runtime-authority-boundary.test.ts rejects an unlisted ringing caller before capture or native commands. Runtime.test.ts retains the disconnected-without-ended regression in releases suppression on native disconnected without an ended timestamp. Retain distinct transport authority, PID ownership, pending identity, and credential failure cases. Original shard: 1098 to 874 lines (20.4 percent reduction). CI-only: formatting, diff-check and plain oxlint passed; no tests or coverage run.
Consolidate queue hook and shipped accessor assertions into the existing function/class serialization cases. Table the before/during audio cancellation paths and reduce repeated provider fixtures without sharing mutable expected values. Keep SDK compatibility, migration, authorization, and lifecycle assertions. The provider primary object assertion retains the selected-model contract; resolveAgentModelPrimaryValue remains exercised by the Anthropic setup-token case in src/commands/auth-choice.test.ts. CI-only: oxfmt, plain oxlint, and diff check passed. No tests or coverage run. Lines 979 to 954; below the 20 percent target because the remaining suites protect distinct contracts.
Remove copied export inventories covered by the shipped-surface gate and its reports-both-missing-entrypoints-and-missing-named-exports test. Keep one representative of the shared legacy channel schema factory. Retain synchronous binding proof in session-binding-service.test.ts: stable structural assignability, scoped adapter reads, and unavailable-versus-empty inspection. Account-scoped-conversation-bindings.test.ts retains synchronous lookup proof through opaque metadata recreation. Retain released envelope callback and result proof in channels/inbound-event/envelope.test.ts: preserves the shipped SDK resolveStorePath callback through each helper. channels/session-envelope.test.ts retains previous timestamp proof. Keep SDK async signature and progress receipt checks here. Consolidate query refresh and close lifecycle fixtures, preserve both abort and disposal, and remove internal identity/count/wording assertions. Migration cases retain output, input immutability, diagnostics presence, and identity-preserving idempotence. Minimize the mocked inbound context while preserving recording and media delivery. CI-only: formatting, plain oxlint, and git diff --check passed; no test runs. Shard lines: original 979, previous commit 954, now 782 (20.1 percent below original). No production changes or deleted files.
Remove blanket nondeep audit mocks from setup-fallback proof and compact security fixtures and assertions. Retain all distinct credential, sandbox, filesystem, Workshop, and roster behaviors. CI-only campaign: oxlint, oxfmt, and diff checks only; runtime proof deferred to hosted CI.
Exercise setup-fallback plugins through the real channel collector. Consolidate browser-container fixtures, roster rows, and Workshop prompt-limit cases while retaining their distinct findings and timeout/escape boundaries. Resolved secret provenance is covered by audit-gateway.test.ts: audits loaded by authored provenance, now checking the owner against the real loaded snapshot. Disabled internal hooks remain covered by audit-summary.test.ts: includes an attack surface summary (info). Drop duplicate wording and helper command-shape assertions, not security outcomes. CI-only: plain oxlint, formatting and diff checks pass; no tests run. Original shard 1052 lines to 841 lines (20.1% reduction).
Reuse canonical report fixtures and remove the stateless benchmark fetch factory. Keep all cases and distinct privacy, storage, read-budget and settlement behavior. The final no-completion assertion in joins accepted sqlite settlement after worker exit subsumes its earlier duplicate. The exact work-session projection asserts both private-row exclusion and preview stripping.
0ebe90b to
7077240
Compare
* test(projects): remove repeated environment input cases Keep one mixed-case Windows mutation case for each project entry point instead of replaying the same branch with a precloned proxy. Both original input shapes exercise the same cloneEnvWithPlatformSemantics path; the retained plain-input cases still catch the historical spread/capture bug from 42088a5. Use the canonical worker command type instead of restating its discriminated union. All six operation boundaries and clone registration settlement cases remain. * test(whatsapp): deslop o0387 tests Consolidate action, routing, readiness, and approval fixtures without removing their distinct cases. Drop the three login replays covered by the same-named tests in extensions/whatsapp/src/login.coverage.test.ts: QR restart rendering, logged-out credential cleanup/retry, and generic error reporting. Preserve backup recovery, persistence ordering/failure, and delayed socket closure. * test(skills): deslop o0389 tests Reuse the loading fixture and consolidate environment override setup while retaining all 32 expanded cases. The preserved descriptions and tool-dispatch metadata case covers both long descriptions and display titles, replacing its redundant short-description fixture. Keep every blocked environment key and restoration assertion, both runtime config precedence branches, and the overlap lifecycle checks. No production changes; CI-only validation uses local oxlint, oxfmt and diff checks. * test(memory-core): deslop o0388 tests Reuse the Doctor workspace harness for host-event race fixtures and compact QMD file setup. Preserve all migration and lifecycle assertions. Remove duplicate standing-intent registration setup: keeps intent definitions stable and prepares integer arguments for validation proves tool registration; scopes the dreaming reply hook to scheduled turns across three registrations now also retains the prompt-hook and no-eager-subagent assertions. CI-only validation: oxfmt, plain oxlint, and diff check. 1096 to 1037 lines; below the requested 20% cut to retain distinct prompt, authorization, migration, and lifecycle coverage. Pre-existing hostEvent and expectMissing imports in the race suite remain unresolved by its support module. * test(memory-core): consolidate o0388 contract fixtures Share one registration/lifecycle harness, consolidate prompt decision tables, inline the single-use host-event race harness, and trim QMD reporting fixtures while retaining every race and preservation boundary. Remove alias and numeric-parser replays covered by memory tool schemas / normalizes aliases and prioritizes explicit caps in src/tools.test.ts and throws for invalid present positive integer params in src/agents/tools/common.params.test.ts. Archive decoding remains covered by reads live SQLite rows by session identity while preserving archived JSONL artifacts in packages/memory-host-sdk/src/host/session-files.test.ts; QMD keeps byte-preservation assertions. Retain selected-slot startup in leaves cold-start indexing demand-driven until a manager has run. Drop repeated SDK scope inventories, obsolete senderIsOwner input variants, and internal mock shapes. Keep schema defaults, authorization forwarding, and stop/dispose failure aggregation. CI-only: plain oxlint, oxfmt, and git diff --check passed; no test runs. Shard total 1096 -> 876 lines (20.1% reduction), including 161 lines removed after the initial deslop commit. Existing missing hostEvent/expectMissing support exports remain a coordinator follow-up. * test(agents): deslop o0391 tests Consolidate quiet requester restart cases into the private settlement suite, retaining every case and assertion. Its existing shared fixture already owns identical runtime-config setup and cleanup. Compact settlement tables and repeated identity fixtures without changing delivery or lifecycle behavior. CI-only shard: 1016 to 933 lines (8.2%); 16 declarations and 55 expanded cases retained. Below the 20% target: preserve distinct descendant scoping, owner races, blocked-mirror ordering, partial chunk failure, and requester replacement contracts. Local oxlint, oxfmt, and diff checks pass; runtime and coverage proof deferred to hosted CI. * test(agents): consolidate remaining o0391 test layers Retain blocked-mirror delivery ordering in subagent-completion-mirror.integration.test.ts and chunk success in the text bookkeeping cases. Keep descendant traversal protection in the durable-reader case; requester index ordering and replacement remain covered by subagent-registry-queries.test.ts and subagent-registry-read.scoped.test.ts. Keep requester capture and replacement integration while delegating pending-publication timing to session-accessor.sqlite-generation-readiness.test.ts (joins admitted metadata/replacement publication and lifecycleRunId settings). Keep private route forwarding here; route variants remain in subagent-announce.test.ts. Remove duplicate same-policy rows and internal pass-through assertions, preserving currency termination and private ownership checks. CI-only proof: oxlint, oxfmt and git diff --check pass; no tests run. Shard totals: original 1016 lines, prior commit 933, now 811 (20.18% below original). No production changes. * test(secrets): deslop o0390 tests Consolidate unsafe-path fixtures while retaining empty and populated roots, all mutation helpers, and prototype integrity assertions. Flatten the Tavily fixture without removing cold-start or reload authority checks. Keep all SecretRef vectors with independent expected validity, plus configure redaction, source-authoritative command assignment, and plugin instance revocation proof. Further reductions would remove distinct security or lifecycle coverage; this shard remains below the requested line target. * test(secrets): consolidate o0390 owner fixtures Reuse same-directory web-provider and plugin-integration fixtures, retain legacy credential adapters, and test prepared input revocation directly through real PluginInstance ownership. Loader assembly and disposal remain covered by loader.instance-cleanup.test.ts. Remove duplicate getPath delegation probes covered by config/config-paths.test.ts raw diagnostic traversal and shared/path-array-index.test.ts. Typed-segment cases retain container creation and shape rejection. Tavily materialization remains covered by runtime-config-collectors-plugins.bundled.test.ts; keep cold/reload isolation here. Keep every SecretRef validation vector and security/lifecycle boundary. Capture real CLI stdout instead of mocking JSON serialization. CI-only validation: oxfmt, plain oxlint, and diff-check passed; no tests or coverage run. Shard total: 1086 to 868 lines. * test(nostr): deslop o0392 tests Keep caller-close notification suppression in the two-relay shutdown-order test, alongside subscription-before-pool ordering. Preserve remote disconnect reporting separately. Share cursor writer setup and Gateway shutdown assertions; retain every replay, admission, signature, rate-limit, and authorization boundary. CI-only campaign: oxfmt, plain oxlint, and diff-check pass. No runtime tests or coverage run. Shard falls short of the 20 percent target because remaining cases exercise distinct safety and lifecycle paths. * test(nostr): consolidate o0392 boundary scenarios Keep remote disconnect reporting in the same-turn remote-close backfill row. Cover replay-ceiling stability in charges oversized ciphertext globally while retaining rejected events in replay overlap, including a later rejection that must not advance the persisted cursor. Retain the older-than-filter cursor branch separately. Consolidate invalid-signature and per-sender rate limiting into branch rows. Remove three non-allowlist admission replays: disabled retains the same resolveAdmissionPubkeys decision, while challenges unknown senders before decrypting their DM remains the canonical pairing proof in channel.outbound.test.ts. Remove redundant mock bookkeeping from startup-drain and retry proof. CI-only: plain oxlint, oxfmt, and diff-check pass; no tests run. Total shard lines 1106 to 1002, below the requested 20 percent cut; unique ingress, authority, replay, and lifecycle boundaries retained. * test(nostr): remove redundant o0392 proof layers Delegate queue-open classification to ingress-monitor: fails start once when the durable queue cannot be opened. Delegate retry scheduling to ingress-monitor.scheduling: retries the lane head at its deadline without waiting for recovery. The bus continues to prove startup drain shutdown and onMessage dispatch. Keep replay tombstones at ingress-drain: crash-window: lost claim is recovered and dispatched exactly once. Retain invalid-signature replay in the bus rate-limit scenario, self-message rejection directly, and denied delivery in the pending-authorization case. The bus age-fence scenario covers older events before the private cursor receives them. Combine oversized raw/ciphertext inputs into one boundary scenario and reuse the first normalized-allowlist delivery for the abort/join restart proof. Shrink account fixtures, callback forwarding, helper returns, diagnostic assertions, and cursor writer setup without changing production code. CI-only proof: plain oxlint, oxfmt, and git diff --check pass. No test or coverage runs. Shard LOC is 1106 to 883 (20.2 percent reduction); static expanded cases are 50 to 37. * test(acp): deslop o0393 tests Remove the unused cancellation scenario lifecycle wrapper (no repo callers), reuse existing runtime handle/identity builders, and reduce redundant assertion and table scaffolding. Keep every test case and the distinct cancellation, model-policy, delivery, and runtime-option branches. Retained proof: closes the retained cwd handle before the next turn still asserts exact persisted options and the ensure/close/ensure sequence. Final status identity remains checked in both close input and persisted metadata. Strict equality retains own-undefined semantics. No production changes. CI-only: oxlint, oxfmt and diff checks pass; no test, coverage or typecheck run. Shard LOC 867 -> 785 (9.5%); 25 declarations and 31 expanded cases unchanged. Below the 20% target to preserve distinct authority, lifecycle and public config contracts. * test(acp): consolidate o0393 test cases Share table setup across preactive cancellation phases, operator model decisions, and backend/delivery failure settlement. Keep each distinct authority and lifecycle case, including late disposal, post-selection model revocation, queued-output drain, and successor cleanup ordering. Consolidate invalid runtime option inputs while retaining each field and error path. Remove fixed scalar-validation order, exact error wording, and redundant internal call-shape assertions. Existing final identity, persisted controls, alias mapping and lifecycle sequence assertions remain the boundary proof. No sibling test file or production code removed. CI-only validation: plain oxlint, oxfmt, and git diff --check passed; no test/build/coverage runs. Original shard 867 -> 693 lines (20.1%); follow-up 785 -> 693. Preserve prior commit 709f7291f59f. * test(memory): deslop o0394 tests Share publication print-once setup across group, byte-budget rejection, and staged routes while retaining all three cases and their route assertions. Remove one-use provider setup and factor repeated facts publication/readers. No distinct behavior cases removed; CI-only validation. * test(memory): consolidate o0394 branch fixtures Combine cached-facts revision sequences and temporal/source-state branch fixtures. Keep rejection-based adapter tracking, rollback revision reuse, source filters, symlink diagnostics, credential isolation, and publication route assertions. Drop repeated vector-value assertions covered by manager-publication-transfer.test.ts: bounds each serialized batch and preserves every row when provider vectors share an array. Keep print-once work counts at the manager boundary. Static-only validation per campaign instructions. * test(agents): deslop o0398 tests Reuse usage and provider fixture builders, inline single-use target normalization, and remove identical worker postMessage branches. Preserve every fixture outcome and assertion; no test cases or security/lifecycle paths removed. * test(agents): consolidate o0398 fixture paths Share copy/rename host-path validation and parent creation with writes. Parse qualified and unqualified live model selectors through one normalization path, preserving invalid-selector handling and Google aliases. * test(ai): deslop o0395 tests Share provider request setup and table-drive SSE frame collection without deleting expanded cases. Exercise unreadable Responses inventories through streamOpenAIResponses, which retains the applyCommonResponsesParams projection path and asserts the payload hook was reached before network I/O. * test(ai): consolidate o0395 provider boundary fixtures Share SSE lifecycle fixtures while retaining split-CR dispatch and pending-cancellation assertions with unchanged deadlines. Table-drive literal schema normalization and keep missing/malformed property branches. Keep the transport content-start guard once per adapter. Thinking and tool decoding remain covered by anthropic.test.ts (mid-stream fallback and terminal fallback cases), openai-completions-structured-content-parity.test.ts (preserves scenarios), and openai-completions-stream.integration.test.ts (public LLM runtime tool cases). Drop three fallback inventory rows that no consumer selects. * test(ai): deduplicate o0395 Anthropic boundary proof Drop the collision-after-duplicates replay: same-original preservation remains local, while anthropic-transport-stream.test.ts rejects ambiguous OAuth tool names with the same error and no network handoff. Reuse the established Anthropic start/content/delta fixture for the transport content-start guard. * test(imessage): deslop o0396 tests Consolidate media echo assertions into the voice-note delivery test, and attachment caps into the capped-content coalescing test. Keep remote SSH and local cache branches as separate table rows. Reuse inbound fixtures without dropping auth, recovery, partial-delivery, or prompt-isolation assertions. CI-only validation: oxfmt, git diff --check, and plain oxlint pass. Tests and coverage intentionally not run. Shard shrinks 1089 to 1001 lines (8.1%); below the 20% target because further deletions would remove distinct protected behavior. * test(imessage): consolidate o0396 branch fixtures Share admission/context setup across three shard suites; preserve original Vitest routing. Table cursor reconciliation and migration paths, assert explicit database identities, and use the existing temporary-directory lifetime owner. Remove cursor isolation replays covered by recovery-cursor.test.ts: keeps the greatest row across concurrent completions. Remove suppressed-reply replay covered by monitor.plugin-payload.test.ts: settles rich-link delivery through actual provider, hooks, and SQLite. Coalesce case/trim and capped metadata cases retain duplicate-text and complete reply-tuple proof. The non-isolated runner owns per-file mock and evaluated-module cleanup. Retain distinct auth, prompt-isolation, recovery, and partial-delivery assertions. Static-only gates: oxfmt, diff-check, plain oxlint. No tests run. Including the new 19-line shared helper, cumulative shard LOC is 1089 to 871 (-20.02%). * test(facetime): deslop o0397 tests Consolidate FaceTime fixtures and remove redundant internal assertions while retaining every distinct test case. Pending-dial FIFO, conditional-clear and conflict tests retain persistence proof; supervisor stale-process and abort tests retain lifecycle ordering; carrier tests retain exact identity and ownership checks. Keep helper-wire authentication support unchanged. * test(facetime): consolidate o0397 test families Merge outbound-call cases into call-events under the same extension test routing. Share supervisor setup, table equivalent failure paths, and combine FIFO save and conditional-clear interleavings with separate write and deletion gates. Preserve signed handshake bytes while sharing identity and framing setup. Remove the duplicate unlisted-owner unit case: runtime-authority-boundary.test.ts rejects an unlisted ringing caller before capture or native commands. Runtime.test.ts retains the disconnected-without-ended regression in releases suppression on native disconnected without an ended timestamp. Retain distinct transport authority, PID ownership, pending identity, and credential failure cases. Original shard: 1098 to 874 lines (20.4 percent reduction). CI-only: formatting, diff-check and plain oxlint passed; no tests or coverage run. * test(plugin-sdk): deslop o0399 tests Consolidate queue hook and shipped accessor assertions into the existing function/class serialization cases. Table the before/during audio cancellation paths and reduce repeated provider fixtures without sharing mutable expected values. Keep SDK compatibility, migration, authorization, and lifecycle assertions. The provider primary object assertion retains the selected-model contract; resolveAgentModelPrimaryValue remains exercised by the Anthropic setup-token case in src/commands/auth-choice.test.ts. CI-only: oxfmt, plain oxlint, and diff check passed. No tests or coverage run. Lines 979 to 954; below the 20 percent target because the remaining suites protect distinct contracts. * test(plugin-sdk): consolidate o0399 owner contracts Remove copied export inventories covered by the shipped-surface gate and its reports-both-missing-entrypoints-and-missing-named-exports test. Keep one representative of the shared legacy channel schema factory. Retain synchronous binding proof in session-binding-service.test.ts: stable structural assignability, scoped adapter reads, and unavailable-versus-empty inspection. Account-scoped-conversation-bindings.test.ts retains synchronous lookup proof through opaque metadata recreation. Retain released envelope callback and result proof in channels/inbound-event/envelope.test.ts: preserves the shipped SDK resolveStorePath callback through each helper. channels/session-envelope.test.ts retains previous timestamp proof. Keep SDK async signature and progress receipt checks here. Consolidate query refresh and close lifecycle fixtures, preserve both abort and disposal, and remove internal identity/count/wording assertions. Migration cases retain output, input immutability, diagnostics presence, and identity-preserving idempotence. Minimize the mocked inbound context while preserving recording and media delivery. CI-only: formatting, plain oxlint, and git diff --check passed; no test runs. Shard lines: original 979, previous commit 954, now 782 (20.1 percent below original). No production changes or deleted files. * test(security): deslop o0401 tests Remove blanket nondeep audit mocks from setup-fallback proof and compact security fixtures and assertions. Retain all distinct credential, sandbox, filesystem, Workshop, and roster behaviors. CI-only campaign: oxlint, oxfmt, and diff checks only; runtime proof deferred to hosted CI. * test(security): consolidate o0401 audit proof Exercise setup-fallback plugins through the real channel collector. Consolidate browser-container fixtures, roster rows, and Workshop prompt-limit cases while retaining their distinct findings and timeout/escape boundaries. Resolved secret provenance is covered by audit-gateway.test.ts: audits loaded by authored provenance, now checking the owner against the real loaded snapshot. Disabled internal hooks remain covered by audit-summary.test.ts: includes an attack surface summary (info). Drop duplicate wording and helper command-shape assertions, not security outcomes. CI-only: plain oxlint, formatting and diff checks pass; no tests run. Original shard 1052 lines to 841 lines (20.1% reduction). * test(team-reports): deslop o0402 tests Reuse canonical report fixtures and remove the stateless benchmark fetch factory. Keep all cases and distinct privacy, storage, read-budget and settlement behavior. The final no-completion assertion in joins accepted sqlite settlement after worker exit subsumes its earlier duplicate. The exact work-session projection asserts both private-row exclusion and preview stripping. * test: format d614 replay resolutions * test: retain distinct transport lifecycle and compatibility proof * test: repair d614 CI fixture and type failures * test: retain lazy-access and normalization identity assertions * test: document isolated d614 mock boundaries * test: prune resolved d614 mock exemptions
What Problem This Solves
Removes repeated test setup and redundant proof layers from campaign batch d614 without changing production behavior.
User Impact
No user-visible behavior, API, configuration, or data changes. Test-only consolidation retains distinct lifecycle, authorization, migration, and transport cases. No production code is changed.
Why This Change Was Made
Replayed all 30 supplied commits initially onto
757ff12fc5373ad523a0c4122568ba6808671eb4, then rebased the completed batch onto pinned main0e10a492dfe4cce51d45d4da8c849ac80a192755after main advanced into a conflict. Some hunks were omitted where main had already rewritten the proof or added protections; no complete commit was skipped. Follow-up commits format replay resolutions and restore the four files identified below.Conflict resolutions:
CODEOWNERS: none of the changed paths match the current explicit owned-path rules. Sensitive test areas include secrets and security auditing; production owners are unchanged.
Evidence
CI-only mode, as requested:
pnpm install --frozen-lockfile --prefer-offlinepassed.node_modules/.bin/oxfmt --write <89 changed existing files>, plainnode_modules/.bin/oxlint -c .oxlintrc.json <changed files>(exit 0), andgit diff --check 0e10a492dfe4cce51d45d4da8c849ac80a192755passed. No local Vitest, check-changed, tsgo, builds, coverage, or Testbox runs. No leases created.Hosted
openclaw/ci-gateis the behavioral/typecheck gate. Initial independent review identified four accepted test-coverage gaps. The complete main versions of transport-failure.test.ts, manager-registry.reload.test.ts, recovery-cursor.test-support.ts, and shipped-channel-compat.test.ts are restored, preserving non-text failure classification, fulfilled-unavailable reloads, account/database cursor isolation, and shipped compatibility matrices. The follow-up review of these restorations passed through P2. The FaceTime disconnected-state finding is rejected: the unchanged runtime.test.ts case “releases suppression on native disconnected without an ended timestamp” sends status 6 with has_ended false and verifies empty runtime calls plus native-ended cleanup. Runtime wall time is not measured locally. CI run https://github.com/openclaw/openclaw/actions/runs/40332974821 found eight failing jobs. Their diagnostics traced to five type errors (SSE callback return, inferred tuple arity, typed host fixture, MessagePort overload, and legacy webhook mixed tuples), four synchronous-temp-dir awaits, an untyped array-sort lint error, and an extra invalid-signature Nostr replay. The CI repair restores the original typed rows, MessagePort dispatch, legacy webhook test and lazy-host fixture; adds the explicit callback return and tuple type; removes synchronous awaits; and limits the duplicate replay to the valid-signature scenario. No assertion or timeout is weakened. Plain lint/format/diff checks pass; The repair review additionally retained zero getter access after manager creation and referential identity on repeat webhook normalization. All accepted review findings are addressed and the final scoped review passed through P2. Run https://github.com/openclaw/openclaw/actions/runs/40335299751 cleared the repaired tests, typechecks and lint, then failed only the mock-export ratchet: six rewritten partial mocks needed explicit isolation reasons. Added audited comments for native iMessage sending, Nostr cursor persistence, synthetic config reads, auth profiles, fixture manifests, and non-executing apply planning. The annotation-only review also passed through P2. Run https://github.com/openclaw/openclaw/actions/runs/40338023149 then passed all test, type, lint, and PostgreSQL conformance jobs; only the baseline ratchet remained red because those six newly annotated mocks still had stale exemptions. Removed exactly the six reported entries from config/test-mock-exports-baseline.txt, with no additions; the shrink-only review passed. All checks, including the required gate, passed on head0ebe90bd80a1cdd6d3b0b17e9de698738900a2c0in run https://github.com/openclaw/openclaw/actions/runs/40342321460. Main then advanced into a delivery-test conflict. The rebase preserves main's complete rewritten test; range-diff confirms the other 35 patches are unchanged. Format, plain lint (82 existing TypeScript files), and diff checks pass on the rebased tree. Fresh-head CI remains the merge gate.Actual rebased diff: 85 files; test files +2535/-4483 LOC (net -1948), test-support files +345/-591 LOC (net -246), baseline metadata +0/-6, production +0/-0; total +2880/-5080 (net -2200). Counts are physical lines, including whitespace, from
git diff --numstat. Declaration counts below are lexicalit/testdeclarations, not expanded or executed cases. Source reports explicitly say tests and coverage were not run under CI-only mode; no measured statement/branch totals exist and no <=1% coverage claim is made.Per-shard replay inventory and deltas against pinned main
projects
src/projects/project-environment.test.tso0387
extensions/whatsapp/src/approval-handler.runtime.test.tsextensions/whatsapp/src/channel-actions.test.tsextensions/whatsapp/src/session-route.test.tso0389
src/skills/loading/skills.test.tssrc/skills/loading/workspace-skill-platform.test.tso0388
extensions/memory-core/doctor-contract-api.qmd.test.tsextensions/memory-core/doctor-contract-api.test-support.tsextensions/memory-core/index.test.tso0391
src/agents/subagents/announce/subagent-announce-delivery.test-support.tssrc/agents/subagents/announce/subagent-announce-delivery.yielded-settle.test.tssrc/agents/subagents/announce/subagent-announce.requester-settle-descendants.test.tssrc/agents/subagents/announce/subagent-announce.requester-settle-restart.test.tssrc/agents/subagents/announce/subagent-announce.requester-settle-wake.private.test.tssrc/agents/subagents/announce/subagent-completion-mirror.integration.test.tssrc/agents/subagents/announce/subagent-requester-current.test.tso0390
src/secrets/apply.test-support.tssrc/secrets/command-config.test.tssrc/secrets/configure.output.test.tssrc/secrets/configure.test.tssrc/secrets/exec-secret-ref-id-parity.test.tssrc/secrets/path-utils.test.tssrc/secrets/prepared-plugin-input.test.tssrc/secrets/runtime-degraded-state.test.tssrc/secrets/runtime-plugin-secret-owners.test.tssrc/secrets/runtime.test-support.tso0392
extensions/nostr/src/nostr-bus.admission.test-support.tsextensions/nostr/src/nostr-bus.inbound.test.tsextensions/nostr/src/nostr-cursor.test.tsextensions/nostr/src/nostr-gateway.admission.test-support.tsextensions/nostr/src/nostr-profile-import.test.tso0393
src/acp/control-plane/manager.preactive-cancellation.test.tssrc/acp/control-plane/manager.runtime-config.test.tssrc/acp/control-plane/manager.turn-delivery.test.tssrc/acp/control-plane/runtime-options.test.tso0394
extensions/memory-core/src/memory/manager-publication-print-once.test.tsextensions/memory-core/src/memory/manager-retrieval-facts.test.tsextensions/memory-core/src/memory/manager-source-state.test.tsextensions/memory-core/src/memory/temporal-decay.test.tso0398
src/agents/test-helpers/embedded-agent-runner-e2e-fixtures.tssrc/agents/test-helpers/host-sandbox-fs-bridge.tssrc/agents/test-helpers/live-target-matcher.tssrc/agents/test-helpers/prepared-model-catalog-legacy-fixture.tso0395
packages/ai/src/providers/anthropic-server-fallback.test-support.tspackages/ai/src/providers/openai-chatgpt-responses-protocol.test.tspackages/ai/src/providers/openai-tool-descriptor-quarantine.test.tspackages/ai/src/providers/openai-tool-schema.test.tspackages/ai/src/providers/tool-result-text.test.tso0396
extensions/imessage/src/monitor/coalesce.test-support.tsextensions/imessage/src/monitor/conversation-repair.test-support.tsextensions/imessage/src/monitor/deliver.test.tsextensions/imessage/src/monitor/inbound-context.test-helpers.tsextensions/imessage/src/monitor/inbound-processing.context.test.tsextensions/imessage/src/monitor/inbound-processing.systemPrompt.test-support.tsextensions/imessage/src/monitor/remote-host.test.tso0397
extensions/facetime/tests/call-events.test.tsextensions/facetime/tests/helper-supervisor.test.tsextensions/facetime/tests/helper-wire.test-support.tsextensions/facetime/tests/outbound-call.test.tsextensions/facetime/tests/pending-dial-store.test.tsextensions/facetime/tests/preflight.test.tsextensions/facetime/tests/runtime-carrier-process.test.tsextensions/facetime/tests/tool.test.tso0399
src/plugin-sdk/agent-harness-private-options.test.tssrc/plugin-sdk/feature-contract.test.tssrc/plugin-sdk/gateway-method-runtime.test.tssrc/plugin-sdk/inbound-reply-dispatch.test.tssrc/plugin-sdk/keyed-async-queue.test.tssrc/plugin-sdk/legacy-webhook-listener-migration.test.tssrc/plugin-sdk/media-understanding-runtime.test.tssrc/plugin-sdk/provider-onboard.test.tso0401
src/security/audit-extra.sync.test.tssrc/security/audit-filesystem-windows.test.tssrc/security/audit-gateway.test.tssrc/security/audit-rosterless.test.tssrc/security/audit-sandbox-browser.test.tssrc/security/audit-sandbox-docker-config.test.tssrc/security/audit-workshop-skills.test.tssrc/security/dangerous-config-flags.test.tso0402
extensions/team-reports/src/report-run.benchmark-fixtures.test-support.tsextensions/team-reports/src/report-run.benchmark.test-support.tsextensions/team-reports/src/run-worker.test.tsextensions/team-reports/src/store-conformance.test-support.tsextensions/team-reports/src/work-sessions.test.ts