Skip to content

test(core,ui,plugins): remove low-value tests (batch d545) - #183684

Merged
steipete merged 35 commits into
mainfrom
tcr/land-d545-1792943252
Oct 25, 2026
Merged

steipete merged 35 commits into
mainfrom
tcr/land-d545-1792943252

Conversation

@steipete

@steipete steipete commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Removes redundant test layers and repeated fixture setup in campaign batch d545 while retaining distinct owner-boundary coverage.

User Impact

No production behavior, public API, configuration, schema, or visual changes. This is test and test-support maintenance only.

Why This Change Was Made

Consolidates repeated setup and implementation assertions into retained owner scenarios across IRC, Gateway, new-session UI, Codex, Matrix, SDK, session/config, worktree, agent, and memory tests.

Replayed onto pinned main 54c0e4dfa9248cbed948c620a2dcb9234e556b65. Preserved main's newer fixtures on conflicting file hunks rather than reconstructing obsolete helpers. Restored IRC accounts and Codex procfs suites because their intended keepers conflicted; their independent credential/platform contracts remain intact. Removed the now-unused memory index observation helper.

Evidence

  • pnpm install --frozen-lockfile --prefer-offline: passed.
  • node_modules/.bin/oxfmt --write <changed TS/JS files>: passed.
  • node_modules/.bin/oxlint -c .oxlintrc.json <changed TS/JS files>: exit 0.
  • git diff --check 54c0e4dfa9248cbed948c620a2dcb9234e556b65: passed.
  • CI-only instructions: no local Vitest, check-changed, typecheck, or Testbox. Hosted openclaw/ci-gate is the runtime/type proof and merge gate. No runtime speedup or coverage-preservation measurement is claimed.
  • Independent review found 21 actionable coverage gaps across three completed reviews; the PR reviewer identified two additional actionable findings. All accepted: affected files were restored byte-for-byte to pinned main, including the paired template registry suite and inventory. The lead also retained seven further potentially distinct guards. No runtime assertions were weakened to address the findings; none remain unaddressed.
  • CODEOWNERS: no changed path matches the current owned-path rules.

LOC against pinned main: production +0/-0; tests +1133/-2038; test support/inventory +4/-8.

Per-shard retained diff

Counts below are for changed test files against pinned main, not the old campaign baseline. Declarations are static it/test declaration sites (tables count once), not executed cases. Source shard reports explicitly say coverage was not run under CI-only instructions; no coverage totals line exists to quote.

Shard Test LOC before → after Declaration sites before → after Coverage totals
s0500 919 → 893 31 → 29 Not run (CI-only source report)
s0501 713 → 641 12 → 12 Not run (CI-only source report)
s0502 990 → 926 11 → 11 Not run (CI-only source report)
s0503 1189 → 1042 29 → 26 Not run (CI-only source report)
s0504 994 → 923 15 → 15 Not run (CI-only source report)
s0505 739 → 697 16 → 16 Not run (CI-only source report)
s0506 257 → 207 8 → 7 Not run (CI-only source report)
s0507 1962 → 1792 46 → 45 Not run (CI-only source report)
s0508 1527 → 1368 63 → 57 Not run (CI-only source report)
s0509 1489 → 1406 22 → 22 Not run (CI-only source report)
s0510 246 → 240 4 → 4 Not run (CI-only source report)
s0512 244 → 229 3 → 3 Not run (CI-only source report)
Files touched per shard
  • s0500: extensions/irc/src/client.test.ts, extensions/irc/src/irc-ingress.test.ts
  • s0501: src/agents/worktrees/capacity-owner.test.ts, src/agents/worktrees/capacity.worker.test.ts, src/agents/worktrees/service.gc-lifecycle.test.ts
  • s0502: src/gateway/probe.auth.integration.test.ts, src/gateway/server-http.request-trace.test.ts, src/gateway/server.health-store-scheduling.test.ts, src/gateway/server.sessions.reset-followup-durable.test.ts
  • s0503: ui/src/pages/new-session/cloud-target.test.ts, ui/src/pages/new-session/draft-preference-migration.test.ts, ui/src/pages/new-session/draft-submission-flow.test-support.ts, ui/src/pages/new-session/draft-submission-title.test.ts, ui/src/pages/new-session/session-placement-recovery-state.test.ts, ui/src/pages/new-session/suggested-cloud.test.tsx
  • s0504: src/gateway/worker-environments/project-preparation-environment.test.ts, src/gateway/worker-environments/provider-project-retention.test.ts, src/gateway/worker-environments/store-recovery.worker.test.ts, src/gateway/worker-environments/workspace-reconcile-publication.test.ts
  • s0505: extensions/codex/src/app-server/approval-bridge.command-scope.test.ts, extensions/codex/src/app-server/event-projector.verbose-hooks.test.ts, extensions/codex/src/app-server/native-subagent-inventory.settlement.test.ts
  • s0506: extensions/matrix/src/matrix/draft-stream.test.ts
  • s0507: src/config/sessions/conversation-delivery-store.test.ts, src/config/sessions/goals.test.ts, src/config/sessions/session-actor-memory-pending.test.ts, src/config/sessions/session-agent-purge.test.ts, src/config/sessions/session-canonical-reader-continuation.test.ts, src/config/sessions/session-cold-storage.preflight.test.ts, src/config/sessions/session-entry-read.memory.test.ts, src/config/sessions/session-native-binding.message-cut.test.ts
  • s0508: src/plugin-sdk/channel-policy.test.ts, src/plugin-sdk/core.test.ts, src/plugin-sdk/file-lock.test.ts, src/plugin-sdk/provider-auth-login-flow-runtime.test.ts, src/plugin-sdk/status-helpers.test.ts, src/plugin-sdk/webhook-targets.test.ts
  • s0509: src/agents/sessions/agent-session-stream-ownership.test.ts, src/agents/sessions/agent-session.reclamation-admission.test.ts, src/agents/sessions/resource-loader.test.ts, src/agents/sessions/session-manager-hydration-stream.test.ts, src/agents/sessions/session-manager-retained-data.test.ts, src/agents/sessions/session-manager-transaction-rollback.test.ts
  • s0510: src/agents/prepared-model-runtime.registry-borrow.test.ts
  • s0512: extensions/memory-core/src/memory/manager-search-path.test.ts

Replay decisions

29 of the 30 requested commits retained changes during replay. Skipped 846301b7b19d after preserving the conflicting current memory search suite: its other deletions were already present on main, leaving no remaining diff. Follow-up commits restore the two independent suites described above, remove an unused helper, and address all 23 review findings; some replayed file changes therefore do not remain in the final diff.

Dropped conflicting file hunks (current main/prior replay version kept)
  • bac926475015: extensions/irc/src/inbound.behavior.test.ts, extensions/irc/src/setup.test.ts, and deletion of extensions/irc/src/irc-ingress.test.ts; kept the ingress inventory entry.
  • a3733451613b: src/gateway/gateway-ssh-upload-signal.test.ts, src/gateway/local-request-context.session-notify.test.ts, src/gateway/mention-inbox.sharing-target.test.ts, src/gateway/server-startup-config.recovery.test.ts, src/gateway/session-event-prepared-row.test.ts.
  • ba731b81ba34: src/gateway/server-http.request-trace.test.ts, src/gateway/server-startup-config.recovery.test.ts.
  • ad0dc07aadbf: src/gateway/local-request-context.session-notify.test.ts, src/gateway/mention-inbox.sharing-target.test.ts, src/gateway/session-event-prepared-row.test.ts.
  • 08f52f89391c: ui/src/pages/new-session/draft-submission-title.test.ts.
  • bf794f261049: src/gateway/worker-environments/device-provider.test.ts, src/gateway/worker-environments/provider-project-retention.test.ts, src/gateway/worker-environments/workspace-sync-inventory-limits.test.ts.
  • f84bafdef9f9: src/gateway/worker-environments/device-provider.test.ts, src/gateway/worker-environments/workspace-sync-inventory-limits.test.ts.
  • ff2017e24653: extensions/codex/src/app-server/dynamic-tool-build.sandbox.test.ts, extensions/codex/src/app-server/run-attempt.native-authority.test.ts, extensions/codex/src/app-server/transport-process-registration.test.ts.
  • 119c2292d06d: extensions/codex/src/app-server/dynamic-tool-build.sandbox.test.ts, extensions/codex/src/app-server/event-projector.verbose-hooks.test.ts, extensions/codex/src/app-server/provider-review-continuation.test.ts, extensions/codex/src/app-server/run-attempt.native-authority.test.ts, extensions/codex/src/app-server/thread-shell-environment.native.test.ts, extensions/codex/src/app-server/transport-process-registration.test.ts.
  • c712c8514748: extensions/matrix/src/matrix/read-policy.test.ts.
  • 689a620884db: extensions/matrix/src/matrix/accounts.test.ts, extensions/matrix/src/matrix/conversation-route-owner.test.ts, extensions/matrix/src/matrix/read-policy.test.ts, extensions/matrix/src/matrix/subagent-hooks.test.ts.
  • ad1e1363f225: src/plugin-sdk/provider-catalog-live-upstream.test.ts.
  • c59f316dcfce: src/plugin-sdk/provider-catalog-live-upstream.test.ts.
  • e1c7ba094d62: src/config/sessions/session-entry-patch.authority.test.ts.
  • 26131c472246: src/config/sessions/session-entry-patch.authority.test.ts.
  • e2c28fcc8588: src/agents/worktrees/service.apfs.test.ts, src/agents/worktrees/service.profiles.test.ts, src/agents/worktrees/service.restore-source.test.ts.
  • 7370f254c02e: src/agents/sessions/session-manager-codec.test.ts, src/agents/sessions/session-manager-hydration-stream.test.ts.
  • d98865068c16: src/agents/sessions/session-manager-hydration-stream.test.ts.
  • f7961811ee78: src/agents/models-config.model-input-presence.test.ts.
  • edd293da05ea: src/agents/models-config.model-input-presence.test.ts.
  • 846301b7b19d: extensions/memory-core/src/memory/manager-search.test.ts.
  • 4d9728e88159: extensions/memory-core/src/memory/manager.watcher-filesystem.test.ts.

Other requested hunks were retained except the dependent IRC accounts and Codex procfs deletions and the reviewed file changes described below. No production seams removed.

Review repairs

Accepted all seven review findings; no findings rejected. Restored main versions of auth-profiles.markauthprofilefailure.test.ts (fresh credentials), restart-recovery-receipt.test.ts (terminal receipt lifecycle), template-cache.test.ts plus template-registry.test.ts and inventory (invalid idle template rebuild), delivery-plan.test.ts (distinct Matrix receipt IDs), realtime-voice.test.ts (overflow/drop-oldest accounting), initial-session-turn-handoff.test.ts (stale launcher owner), and hosted-environment.test.ts (serialized account/runtime payload). These source hunks are dropped from the final diff.

Second review: retained Gateway-local device classification, literal-at-path sibling isolation, repeated Matrix client construction, Windows LSP spawn composition, routed-to-routeless delivery guidance, zero-timeout/yielded exec semantics, overflow compaction retry, frozen nested arguments, readable Git repair results, branch-without-origin fallback, typed optional RPC arguments, model refresh/scope transitions, and empty-versus-relative path validation.

Lead review also retained IRC send/account isolation, Codex usage-limit refresh, remote hash memo behavior, navigation animation, binary stream finalization, bootstrap same-basename budgets, and token catalog identity coverage.

CI repair

The first repaired head exposed fixture type errors in run 40209526849: missing worktree helper import, stale Matrix helper and new-session fixture fields, IRC SecretRef config typing, and over-narrow manifest directory fixtures. Those file changes were dropped in favor of pinned main. Runtime/type proof is pending on the final head; no pre-existing-failure bypass is claimed.

The final remaining-diff review returned one further finding: preserve the model-call count after steering withdrawal. Restored src/agents/sessions/agent-session-steering-withdrawal.test.ts to pinned main. The two remaining CI-error files (extensions/irc/src/monitor.test.ts and src/gateway/worker-environments/local-workspace-manifest-tree.test.ts) were also restored. All restoration files were verified byte-for-byte against the pinned base; review repairs introduce no new test logic.

Run 40210396013 then exposed model-notification fixture type drift, an untyped provenance spy callback, and early database opening in mutation-boundary setup that made compaction/reset projections unavailable. Restored src/agents/sessions/agent-session-models.notifications.test.ts, src/config/sessions/session-accessor.sqlite-provenance.test.ts, and src/agents/sessions/session-manager-mutation-boundaries.test.ts to pinned main.

The remaining completed jobs in that run also rejected the provider abort-error rewrite, unbound methods in feature/cron/Matrix fixtures, an unnecessary palette generic, and the removed provider-runtime mock-isolation annotation. Dropped those six file rewrites as well: src/agents/provider-transport-fetch.capture.test.ts, src/plugin-sdk/feature-plugin.test.ts, src/gateway/server-reload-hot.cron-lazy.test.ts, extensions/matrix/src/matrix/direct-management.test.ts, ui/src/pages/new-session/palette-session-menus.test.tsx, and src/agents/models-config.applies-config-env-vars.test.ts. No lint suppression or baseline allowance was added.

Fresh-main rebase

Run 40211309777 passed the changed-test/type/lint lanes but hit an unrelated PostgreSQL pool-root assertion in src/infra/database-engine/partial-index-ordering.conformance.test.ts. Main already fixed that with c31e4656ed33 (#183695), so the full stack was rebased onto that exact commit without conflicts. The candidate patch ID is unchanged by this rebase. Fresh-head CI remains the merge gate; no admin bypass or rerun of the stale merge ref is used.

The first upstream pool fix introduced duplicate declarations and failed TS1117 in run 40213116314. Main subsequently removed the duplicate pool/property; the stack is rebased again onto verified main 54c0e4dfa924 with the same candidate patch ID. The batch does not modify the PostgreSQL fixture.

PR review follow-up

Accepted both additional PR review findings: restored src/config/sessions/session-transcript-reconcile.readiness.test.ts to retain the demonstrated one-status-read regression guard, and restored the existing memory close fixture while removing the now-single-use manager-observation.test-support.ts. In total, all 23 independent/PR review findings are addressed; none were rejected. No newly added helper remains.

@clawsweeper

clawsweeper Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete enabled auto-merge (squash) October 25, 2026 15:54
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T17:16:28.662055Z fcd5857 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added channel: matrix Channel integration: matrix app: web-ui App: web-ui gateway Gateway runtime extensions: memory-core Extension: memory-core agents Agent runtime and tooling channel: irc extensions: codex size: XL labels Oct 25, 2026
@steipete
steipete disabled auto-merge October 25, 2026 15:58
@steipete
steipete enabled auto-merge (squash) October 25, 2026 15:59

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b2544c7193

ℹ️ 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".

Comment thread extensions/irc/src/monitor.test.ts Outdated
Comment on lines +618 to +620
describe("IRC durable ingress", () => {
it("does not dispatch when the durable append fails", async () => {
const { queue, resources } = await createIngressFixture();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep the durable-ingress scenarios in a single suite

The new IRC durable ingress block duplicates four scenarios still retained in extensions/irc/src/irc-ingress.test.ts: append failure, pause/resume, malformed persisted input, and the prune/stop race. Both files remain registered in test/vitest/vitest.extension-database-workers-paths.mjs, so these now run twice with separate database fixtures. The new copies call createIrcIngressMonitor directly rather than exercising monitorIrcProvider, so they add no distinct monitor-boundary coverage. Remove these copies while retaining the original ingress suite, consistent with the root AGENTS.md cutover requirement to remove superseded tests.

AGENTS.md reference: AGENTS.md:L52-L52

Useful? React with 👍 / 👎.

@steipete
steipete disabled auto-merge October 25, 2026 16:03
@steipete
steipete enabled auto-merge (squash) October 25, 2026 16:10
@steipete
steipete disabled auto-merge October 25, 2026 16:16
@steipete
steipete enabled auto-merge (squash) October 25, 2026 16:21
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 25, 2026
@clawsweeper

clawsweeper Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR consolidates test fixtures and removes duplicate assertions across core, UI, and plugin suites.

Example: Matrix draft preview coverage

  • Before: The draft lifecycle suite reconstructs Matrix wire payloads inside mocks.
  • After: The lifecycle suite checks send and edit decisions while the retained send suite checks wire encoding.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful test consolidation with both prior findings resolved and retained boundary coverage verified; normal exact-head CI remains enforced.
Proof confidence 🐚 platinum hermit (4/6) This maintainer-authored test-only change requires hosted test validation rather than a new live-product demonstration; the current-head CI gate remains pending.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
Reason: The maintainer-authored direction reduces repeated test scaffolding while preserving the reviewed distinct contracts.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored cleanup addresses both previous findings, and the reviewed diff establishes no new actionable defect.

Priority: P3
Reviewed head: fcd5857e5a1d399cbf7cc60183a044af7ab08836

Before merge

None.

Findings

None.

Agent review details

How this fits together

These suites feed synthetic inputs through agent, session, Gateway, UI, and plugin owners and check their results, lifecycle, and authority boundaries.

flowchart LR
  A[Synthetic fixtures] --> B[Production owners]
  B --> C[Transport and storage boundaries]
  C --> D[Behavior assertions]
  D --> E[Hosted CI gate]
Loading

Technical review

Best possible solution:

Retain the focused fixture consolidation and preserved boundary regressions, then land through the existing exact-head CI gate.

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

This is test-only maintenance; source comparison verifies the previous repairs without requiring a product-bug reproduction.

Is this the best way to solve the issue?

Sharing existing fixtures and retaining stronger owner-boundary scenarios is appropriate; the reviewed changes need no additional production abstraction.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Session reader admission keeps the original intent (ad3fc06: Move placement evidence reads into workers while retaining canonical admission and physical-owner checks.)
  • Async reasoning persistence keeps the original intent (5f19410: Delay async prefix persistence until terminal reasoning settlement preserves replayable history.)
  • Attached channel results keeps the original intent (6886a0a: Preserve the configured channel, callback context, and result metadata through the canonical adapter.)
  • New Session UI keeps the original intent (169edb6: Complete Solid consumers while preserving placement, draft, cancellation, and stale-result behavior.)
  • Memory path-search work bounds keeps the original intent (9505aed: Prevent stale SQLite statistics from making filename searches examine excessive chunks.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 5f19410 adds src/agents/sessions/agent-session-stream-ownership.test.ts:20 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 5f19410e2142; files: src/agents/sessions/agent-session-stream-ownership.test.ts)
  • Hannes Rudolph: Raw commit d1f7bc9 adds src/agents/sessions/agent-session-stream-ownership.test.ts:8 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: d1f7bc91f81f; files: src/agents/sessions/agent-session-stream-ownership.test.ts)
  • Sahil Satralkar: Raw commit 9505aed adds extensions/memory-core/src/memory/manager-search-path.test.ts:38 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 9505aedf4164; files: extensions/memory-core/src/memory/manager-search-path.test.ts)

PR surface

Tests -909. Total -909 across 45 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 45 1139 2048 -909
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 45 1139 2048 -909

Review metrics

Metric Value Why it matters
Production versus test LOC Production +0/-0; tests and support +1139/-2048 The net reduction comes from fixture sharing and consolidation without adding runtime machinery.

Labels

Label changes:

  • add P3: This is test maintenance with no production behavior change or demonstrated urgent regression.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit. Replaced prior rating: 🦐 gold shrimp.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove P2: Current review triage priority is P3, so this older priority label is no longer current.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

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

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-25T16:37:48.939Z sha 565e1d5bc403ffc113430d00e31b6a43b2c38b2c :: needs changes before merge. :: [P2] Restore the one-read assertion in the readiness regression | [P3] Keep the single-use memory fixture in its existing suite

Reviewed October 25, 2026, 1:20 PM ET / 17:20 UTC (Revision 2).

@steipete
steipete disabled auto-merge October 25, 2026 16:43
@steipete
steipete force-pushed the tcr/land-d545-1792943252 branch from 565e1d5 to 0606bd1 Compare October 25, 2026 16:44
@steipete
steipete enabled auto-merge (squash) October 25, 2026 16:44
@steipete
steipete disabled auto-merge October 25, 2026 16:49
Remove duplicate account cases already retained in setup.test.ts, including credential precedence, SecretRef isolation, symlink rejection, and redaction.

Move chunked-send connection and callback assertions to the formatted-text wire suite in client.test.ts. Reuse ingress cleanup and terminal queue assertions; remove redundant enqueue-spy checks while retaining replay, self-echo, and private-reply boundaries.

CI-only: formatting, plain oxlint, and diff checks passed. Tests and coverage intentionally not run. Net reduction: 259 lines (9.2%); remaining distinct transport, credential, authorization, receipt, and lifecycle coverage retained.
Move durable-ingress cases into monitor.test.ts in the same database-worker project and remove their obsolete path entry. Reuse ordered queue cleanup; retain monotonic-id assertions in the pause/resume case and self-echo assertions in the inbound mapping case.

Keep credential and scope assertions while sharing their builder. Cover allowlist normalization through the setup wizard and scoped NickServ updates through the inheritance case. Remove shared receipt layout replay (src/channels/message/receipt.test.ts), account-merge replay (src/channels/plugins/account-helpers.test.ts plus setup.test.ts), and adapter inventory assertions covered by client wire behavior.

Use real whitespace for the empty-send branch instead of mocking markdown. Table fallback-nick and oversized-line paths; preserve protocol, authority, cancellation, partial receipts, and recovery assertions. CI-only: plain oxlint, formatting, and diff checks pass; no tests or coverage run. Shard is 2810 -> 2297 lines, below the 25 percent target.
Reuse existing snapshot, provider, HTTP cleanup, and projection fixtures. Consolidate repeated identity and status shapes; retain all 57 expanded cases and distinct authority, recovery, and lifecycle assertions. Remove only redundant internal spy assertions covered by mutation rejection and durable inbox outcomes.

CI-only shard: plain oxlint, oxfmt, and diff-check pass. No tests, coverage, or builds run. Reduce 2578 to 2511 lines (2.6%); below 25% because remaining cases exercise distinct protected behavior.
Drop staged 500-response replays covered by server-http.authority-outcomes.test.ts: Gateway HTTP core/plugin owns unexpected after awaited request work. Keep pending database response and transport ownership paths.

Drop repeated node list/describe projection assertions covered by server-methods/nodes.read.test.ts: preserves Gateway-local ownership across list and describe, plus node-host/local-id.test.ts identity ownership. Keep independently signed stale-node admission with copied metadata.

Remove auto-enable argument-shape assertions covered behaviorally by server-startup-config.ambient-channels.test.ts and reuse the existing cron fixture builder. CI-only: plain oxlint, oxfmt and diff-check pass; no tests or builds run. Shard remains below the 25% reduction target.
Use per-registration feature fixtures, one policy scope, shared lifecycle terminal cases, and shared projection identity. Remove duplicated audio-capacity proof already owned by the pending-audio lifecycle case. Keep channel-specific open-policy guidance while relying on extensions/zalouser/src/status-issues.test.ts (flags missing auth when a configured profile is not linked) for the pass-through missing-auth helper. Preserve cancellation ordering, cleanup precedence, authorization, and public SDK fields. CI-only static gates: oxfmt, plain oxlint, and diff-check passed; no tests run. Total shard reduction remains below target: 2498 to 2264 lines (9.4%).
Share memory-entry command builders and scoped projection cleanup/status observation without dropping lifecycle assertions.

Remove paused-goal budget reset replay: goals-operations.test.ts covers it in "commits Resume with its hidden continuation and the shared fresh budget window". Keep budgetLimitedAt removal asserted by the existing budget-limited resume case.

CI-only shard: no runtime or coverage execution. Retain the distinct authority, durability, recovery, and ordering cases; the bounded reduction is below the 25% target.
Remove query-shape counters, serialized transfer-frame expectations, and command-count plumbing. Retain provenance, byte budgets, authority at both native gates, storage outcomes, recovery, and publication ordering.

Reuse the existing native execution observer for the restart receipt race. No cases or files deleted in this follow-up; sibling review did not establish equivalent coverage for the remaining boundary cases.

CI-only validation: formatting, plain oxlint, and diff check. Cumulative shard reduction remains below the requested 25 percent.
Share command, seed, reader, and admission fixtures. Remove the routine receipt lifecycle table covered by session-actor-worker.test.ts (keeps restart receipt custody across retries and settles only the exact provider claim) and session-actor-memory-continuations.test.ts (retains terminal ambiguity until an unbound actor records the provider outcome).

Retain authority checks at transaction and commit and accepted-admission counts after unknown-outcome retries. CI-only validation: oxfmt, plain oxlint, and diff check; no tests or coverage run. Cumulative reduction remains below 25 percent.
Port s0501 commits fc51666f0b12, fefece9c2696, c68ccd5cd0d1, and b2127baf4ffb onto the campaign lane as one commit. Preserve the newer lane service-files fixture unchanged and consolidate template registry coverage into the cache suite. Retain the minimal template-selection contract and mismatched-content negative control.

CI-only proof: oxlint and oxfmt --check pass on all 10 remaining touched files; git diff --check and cached diff check pass. Independent review is scoped-clean. No tests, coverage, Testbox, or check-changed were run; runtime proof is deferred to landing PR CI.
Reuse the agent-loop stream helpers, centralize SSE framing, and consolidate frozen nested-argument proof into the model-context projection table. Preserve all expanded cases and lifecycle, authority, persistence, and refusal assertions.

CI-only: formatting, diff check and plain oxlint passed; tests and coverage were not run. Reduce 2658 lines to 2613 (1.7%); the 25% target is not safely reachable without deleting distinct boundary and interleaving proof.
Remove manager-layer framing and snapshot duplicates covered by session-transcript-hydration.worker.test.ts: keeps exact bytes and one snapshot across ACKs. Keep manager failure/retarget state proof and UTF-16 integration.

Opaque parser proof remains in session-transcript-report-facts.test.ts; ordinary tool-detail projection remains in session-transcript-repair.test.ts. Keep streamed and terminal-only producer ownership cases; ciphertext variants remain in openai-responses-client.history-prefix.test.ts. General overflow retry remains in agent-session-compaction.test.ts: recovers through the overflow limit with context invalidated before every retry.

Consolidate boundary setup and notification gates. Retain the historical long-transcript SQL parameter regression and all distinct durability, authority, and publication-ordering checks. CI-only: plain oxlint, formatting, and diff checks pass; no tests run. Total shard 2658 to 2378 lines (10.5%), below the 25% target.
Cold read-only quarantine refusal remains covered by openclaw-agent-db.integrity-lease.test.ts: gates fresh read-only admission on quarantine and permits a repaired generation. Manager failure propagation and unchanged target remain covered by session-manager-hydration-rejection.test.ts and the malformed-retarget case in session-manager-hydration.test.ts.

Use the existing sibling UTF-16 seed-table initialization pattern instead of manually bootstrapping the full schema. Keep both encoding integration rows and streamed failure cases. Trim the third identical extension conflict and duplicate package metadata file while retaining initial ownership, reload, and source replacement assertions.

CI-only: plain oxlint, formatting, and diff checks pass; no tests run. Cumulative shard size 2658 to 2321 lines (-12.7%), still short of the requested 25% without deleting distinct retained behavior.
Keep all distinct lifecycle, auth, persistence and platform paths. Consolidate bootstrap report assertions into the configured-budget composition test and table the identical LSP environment-filter harness. Raw capture equality and processResponsesStream outcome/usage assertions cover the removed second SSE parse.

CI-only validation: plain oxlint, oxfmt and git diff --check pass. No tests or coverage executed. Shard LOC 2445 to 2396; target shortfall retained rather than deleting distinct contracts.
Retain real LSP owned-adapter proof, exact child environment and startup cancellation; remove the mocked invocation replay. Doctor bundle-env tests retain configured-env warning omission. Consolidate Gradle filtering into the retained warning case.

Doctor bootstrap-size tests retain duplicate-basename and lower USER.md cap coverage; doctor-core bootstrap-size retains exhausted-total coverage. Keep provenance and later-exhaustion assertions. Exec background-followup retains zero/default timeout routing, foreground-failures retains default timeout enforcement, and wrapped liveness retains supervisor termination.

Auth shared-usage worker retains exact Retry-After publication and sibling selection; usage tests retain uncapped durations. Keep inline billing persistence and exact deadline in the self-managed case. Remove redundant intermediate catalog callback counts. Retained config-env precedence now also proves canonical key-marker generation.

Route capture SDK requests through the real guarded fetch instead of a prefetched Response replay. CI-only: plain oxlint, oxfmt and diff-check pass; no tests or coverage run. Original shard 2445 lines to 2173 (11.1%); 25% target remains unmet without dropping unique contracts.
Keep the collision-present remote delete/add regression from 1c5b042; it takes the same initial literal-exists branch and catches sibling corruption. Final sibling and empty-host assertions cover removed repeated checks. Keep both remote backends and provenance paths.

Capture retains all six terminal/cancellation cases with minimal terminal output, exact raw bytes and accounting. Poll the read-only store directly. Reuse existing entered gates and focused execution fixtures without changing lifecycle cases.

Pricing-only assertions replace metadata replays: models-config.merge tests retain explicit reasoning/context/token overrides and local-route compat ownership; the first retained input-presence case retains discovered-only rows. Stale-credential durability remains in usage-kernel tests and shared-usage worker credential-rotation tests.

CI-only: formatting, plain oxlint and diff-check pass. No tests/builds or coverage run. Original shard 2445 to 2108 lines (13.8%); target remains unmet because unique owner contracts remain.
Share identical manager configuration and read-only index opening across watcher and close tests. Consolidate lifecycle call-count assertions without removing ordering checks.

Remove EXPLAIN plan-shape scaffolding from the stale-statistics search case; retain measured chunk visits, fetched-byte bounds, first-chunk selection and source filtering. No runtime tests under campaign CI-only rules.
@steipete
steipete force-pushed the tcr/land-d545-1792943252 branch from 0606bd1 to de96ee0 Compare October 25, 2026 17:07
@steipete
steipete enabled auto-merge (squash) October 25, 2026 17:07
@steipete
steipete disabled auto-merge October 25, 2026 17:13
@steipete
steipete enabled auto-merge (squash) October 25, 2026 17:14
@steipete

Copy link
Copy Markdown
Contributor Author

Addressed both findings. The readiness suite is restored to the current main version, including the one-status-read assertions that protect the polling regression. The memory close fixture is also restored in its original suite, and the single-use support module is removed.

Formatting, plain oxlint, and git diff checks pass. Per the CI-only work order, runtime/type validation remains on hosted CI for the new head. The PR body includes these repairs and the upstream PostgreSQL rebase history.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@steipete
steipete merged commit 12b56e6 into main Oct 25, 2026
134 of 137 checks passed
@steipete
steipete deleted the tcr/land-d545-1792943252 branch October 25, 2026 17:39
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 26, 2026
…183684)

* test(irc): deslop s0500 tests

Remove duplicate account cases already retained in setup.test.ts, including credential precedence, SecretRef isolation, symlink rejection, and redaction.

Move chunked-send connection and callback assertions to the formatted-text wire suite in client.test.ts. Reuse ingress cleanup and terminal queue assertions; remove redundant enqueue-spy checks while retaining replay, self-echo, and private-reply boundaries.

CI-only: formatting, plain oxlint, and diff checks passed. Tests and coverage intentionally not run. Net reduction: 259 lines (9.2%); remaining distinct transport, credential, authorization, receipt, and lifecycle coverage retained.

* test(irc): consolidate s0500 owner fixtures

Move durable-ingress cases into monitor.test.ts in the same database-worker project and remove their obsolete path entry. Reuse ordered queue cleanup; retain monotonic-id assertions in the pause/resume case and self-echo assertions in the inbound mapping case.

Keep credential and scope assertions while sharing their builder. Cover allowlist normalization through the setup wizard and scoped NickServ updates through the inheritance case. Remove shared receipt layout replay (src/channels/message/receipt.test.ts), account-merge replay (src/channels/plugins/account-helpers.test.ts plus setup.test.ts), and adapter inventory assertions covered by client wire behavior.

Use real whitespace for the empty-send branch instead of mocking markdown. Table fallback-nick and oversized-line paths; preserve protocol, authority, cancellation, partial receipts, and recovery assertions. CI-only: plain oxlint, formatting, and diff checks pass; no tests or coverage run. Shard is 2810 -> 2297 lines, below the 25 percent target.

* test(gateway): deslop s0502 tests

Reuse existing snapshot, provider, HTTP cleanup, and projection fixtures. Consolidate repeated identity and status shapes; retain all 57 expanded cases and distinct authority, recovery, and lifecycle assertions. Remove only redundant internal spy assertions covered by mutation rejection and durable inbox outcomes.

CI-only shard: plain oxlint, oxfmt, and diff-check pass. No tests, coverage, or builds run. Reduce 2578 to 2511 lines (2.6%); below 25% because remaining cases exercise distinct protected behavior.

* test(gateway): remove duplicate s0502 proof layers

Drop staged 500-response replays covered by server-http.authority-outcomes.test.ts: Gateway HTTP core/plugin owns unexpected after awaited request work. Keep pending database response and transport ownership paths.

Drop repeated node list/describe projection assertions covered by server-methods/nodes.read.test.ts: preserves Gateway-local ownership across list and describe, plus node-host/local-id.test.ts identity ownership. Keep independently signed stale-node admission with copied metadata.

Remove auto-enable argument-shape assertions covered behaviorally by server-startup-config.ambient-channels.test.ts and reuse the existing cron fixture builder. CI-only: plain oxlint, oxfmt and diff-check pass; no tests or builds run. Shard remains below the 25% reduction target.

* test(gateway): consolidate s0502 health and fixture layers

Keep health scheduling, admission-loss and RPC failure paths; remove repeated shutdown drain proof covered by server.health-request-lifetime.test.ts: joins coalesced post-connect health before concurrent closes restore fixture selectors. Transient zero/retry counts remain in health/collector.session-store-path.test.ts: reuses idle health sessions while refreshing heartbeat, age and changed rows.

Reuse observeSqliteReadSql and installQueueTestPlugin rather than rebuilding their fixtures. Drop broadcast option duplication owned by server-session-lifecycle-events.test.ts: capacity transitions without a refresh. Preserve exact event count, recipient, key and payload assertions.

CI-only: no tests or builds. Plain oxlint, oxfmt and diff-check pass. Shard is 2409 lines from 2578 original, below the requested 25 percent reduction.

* test(new-session): deslop s0503 tests

Share cloud-menu and initial-turn fixtures while retaining authority, recovery, and lifecycle cases. Consolidate runtime-wide/profile-specific disabled presentation into two table rows.

Remove duplicate suggested-cloud save success/failure rows: retained coverage is in 'presents held adoption, retains its error, and selects only the accepted retry result' and 'keeps the adopted profile when an older catalog read finishes'. Late success and late rejection retirement cases remain distinct.

CI-only campaign: oxfmt, plain oxlint, and diff checks pass; tests and coverage intentionally deferred to hosted CI. Safe reduction is below the shard target because the remaining cases protect distinct behaviors.

* test(new-session): consolidate s0503 boundary proof

Retire the model-view refresh replay: model-control.metadata-lifecycle tests cover failed retries and scope retirement through renderControl; chat-model-picker.browser preserves focus/query across rerenders, and chat-model-catalog-state covers refresh settlement focus. Keep view-specific reactive defaults and subscription retirement.

Share cloud configuration lifecycle setup and combine suggested-cloud late-result presentation with the existing retirement cases. Consolidate recovery field roundtrips while retaining all authority and atomic-write variants. Remove hosted account payload replay already covered by model-control runtime-choice create coverage. Keep browser ordering at the place-browser-view owner.

CI-only validation: plain oxlint, oxfmt and diff checks pass. No test or build runs. Additional reduction is 216 lines; cumulative 2917 to 2635 (9.7%), below the requested 25% because retained migration, identity, lifecycle and recovery branches have no equivalent proof.

* test(new-session): reduce remaining s0503 fixture layers

Keep the Chat-origin StartedSessionNavigation animation regression; leave positive transition animation to route-transition.test.ts. Fold stale launcher callback assertions into the first-turn authority table and retain independent attachment ownership.

Move generic disabled-description rendering proof to cloud-target.browser.test.ts while retaining the specific no-hosting reason assertion. Reuse createChangeListeners for the draft roster fixture and remove duplicate read/shape assertions without dropping migration or atomic-write paths.

CI-only: plain oxlint, oxfmt and git diff checks pass; no test/build runs. This pass saves 105 lines; cumulative 2917 to 2530 (13.3%). The requested 25% remains unmet rather than removing distinct authority, recovery, or lifecycle proof.

* test(gateway): deslop s0504 tests

Reuse prepared-pool repository and lifecycle fixtures; share manifest record comparison and default-root assertions. Preserve all cases and distinct authority, recovery, ordering, and resource-limit assertions. The shard remains below the requested 25% reduction because its other fixtures exercise separate protected boundaries.

* test(gateway): consolidate s0504 boundary coverage

Remove duplicated remote hashing and failure-settlement cases from inventory limits. Their same-named keepers remain in workspace-sync-hashing.test.ts: hashes concurrently within four readers and preserves manifest and memo ordering; preserves the first failure and joins a %s before reporting it.

Share audit plumbing, consolidate provider error setup, and remove redundant internal shape checks while preserving authority, recovery, and ordering assertions. CI-only: oxlint, oxfmt, and diff-check passed; no tests or coverage executed. Total shard reduction from campaign base is 280 lines (11.9%), below the requested 25%.

* test(gateway): consolidate s0504 owner scenarios

Share deterministic baseline construction with bounded-hashing proof; retain arbitrary per-node insertion ordering. Consolidate local stat-identity and scope-reset assertions at the preflight boundary, keeping standalone remote manifest, interoperability, mode, and symlink checks.

Remove duplicated device dormancy and destroy replays: the dormancy table and allocation test remain their keepers. Model receipt/result loss through one fixture state machine, preserving all rollback and unknown-outcome paths. Remove obsolete audit plumbing left after the prior duplicate-layer deletion.

CI-only: formatting, oxlint, and diff-check passed; no tests or builds run. Original shard 2344 lines to 1989 lines, 15.1 percent reduction; below the requested 25 percent because further identified cuts remove distinct boundary assertions.

* test(codex): deslop s0505 tests

Consolidate duplicated procfs registration coverage into transport-process-registration.test.ts using the current async descriptor fixture. Preserve Linux routing, ownership, containment, deadlines, command privacy, no-kill assertions, and lifecycle ordering. Remove the deleted sibling from its existing Vitest project.

Keep permission/native-settings proof in the current-policy turn test and exercise runtime search denial with an actual web_search candidate. Share the native inventory observation fixture and existing side-question defaults.

CI-only validation: plain oxlint, oxfmt, and git diff --check. No runtime tests or coverage run. Shard test/support lines: 3486 -> 3202 (8.1%); remaining distinct security and lifecycle contracts prevent the requested 25% cut.

* test(codex): consolidate s0505 owner coverage

Remove the duplicate web-search and memory-flush layer from sandbox tests: dynamic-tool-build.web-search.test.ts retains the same cases. Remove duplicated managed-fork proof: run-attempt.session-fork.test.ts forks %j retains the live/completed and rebuilt-input cases in the same database-worker project.

Keep routeless reply guidance at source-reply-delivery-mode.test.ts and authority-after-read/dispatch plus failed host acceptance at run-attempt-turn-request.provider-review.test.ts. Preserve distinct review state, approval, sandbox, native dispatch, settlement, and process containment assertions.

Share usage-limit startup/stream fixtures and direct-child registration setup; trim copied context metadata and helper call-shape checks. No production changes. Original shard LOC 3486 -> 2613 (-25.04%); this commit removes another 589 lines after 7b7d27cb274a. CI-only: plain oxlint, oxfmt, and diff-check passed; no tests or coverage run.

* test(matrix): deslop s0506 tests

Share direct-room promotion and read-policy fixtures while retaining every case. Simplify durable-plan fixtures and assert draft lifecycle decisions at the existing send boundary instead of rebuilding wire payloads in mocks.

Wire encoding remains covered by send.test.ts: supports retained partial draft sends and edits without a Matrix runtime; supports quiet draft preview edits without mention metadata or history reads.

CI-only validation: plain oxlint, oxfmt and git diff --check pass. No tests or coverage run. Test LOC 2470 -> 2312 (-6.4%); all 115 statically expanded cases retained. Below the 25% target: remaining cases protect distinct auth, account isolation, durable replay and lifecycle boundaries.

* test(matrix): consolidate s0506 boundary fixtures

Consolidate retirement checkpoints, replay failure cases and direct-room evidence. Use minimal account and route fixtures, remove redundant internal call-shape assertions and share draft preparation setup.

Nonduplicate media replay receipts remain covered by send.test.ts: recovers actual media reply relations after losing the overflow response. No-op draft updates remain checked after the retained send/edit lifecycle. Keep credential revocation, captured environment, account isolation, SQL avoidance and distinct failure paths.

CI-only: oxfmt, plain oxlint and git diff --check pass; no tests or coverage run. Additional reduction 2312 to 2049 lines; cumulative 2470 to 2049 (17.0%), below the requested 25% without dropping remaining distinct boundary checks.

* test(plugin-sdk): deslop s0508 tests

Consolidate status snapshot and policy scope fixtures while retaining all distinct assertions and test declarations. Preserve secret-field filtering, source-dependent credential diagnostics, runtime metadata, DM entry classification, and group-policy warnings. CI-only campaign: plain oxlint, oxfmt, and diff-check passed; runtime proof deferred to hosted CI. Partial reduction: 2498 to 2463 lines (1.4%); no safe 25% cut identified.

* test(plugin-sdk): consolidate s0508 boundary scenarios

Combine outbound result stamping and deferred result copying in one scenario per method, keeping synchronous send support. Reuse finalization setup across cancel/release outcomes and credential revocation setup across persistence boundaries. Canonical alias resolution remains in the webhook canonical-route lifecycle test; overflow byte truncation remains in the delayed-cleanup overflow test; queue clear accounting remains with consume accounting. Remove duplicate internal call-count and audit-label assertions. Keep arbitrary feature operation/event names, authentication checkpoints, and lock retirement races. CI-only: formatting, plain oxlint, and diff-check passed; no runtime tests run. Partial target result: 2498 to 2328 lines (6.8%), not 25%.

* test(plugin-sdk): consolidate s0508 fixture ownership

Use per-registration feature fixtures, one policy scope, shared lifecycle terminal cases, and shared projection identity. Remove duplicated audio-capacity proof already owned by the pending-audio lifecycle case. Keep channel-specific open-policy guidance while relying on extensions/zalouser/src/status-issues.test.ts (flags missing auth when a configured profile is not linked) for the pass-through missing-auth helper. Preserve cancellation ordering, cleanup precedence, authorization, and public SDK fields. CI-only static gates: oxfmt, plain oxlint, and diff-check passed; no tests run. Total shard reduction remains below target: 2498 to 2264 lines (9.4%).

* test(config): deslop s0507 tests

Share memory-entry command builders and scoped projection cleanup/status observation without dropping lifecycle assertions.

Remove paused-goal budget reset replay: goals-operations.test.ts covers it in "commits Resume with its hidden continuation and the shared fresh budget window". Keep budgetLimitedAt removal asserted by the existing budget-limited resume case.

CI-only shard: no runtime or coverage execution. Retain the distinct authority, durability, recovery, and ordering cases; the bounded reduction is below the 25% target.

* test(config): remove s0507 implementation assertions

Remove query-shape counters, serialized transfer-frame expectations, and command-count plumbing. Retain provenance, byte budgets, authority at both native gates, storage outcomes, recovery, and publication ordering.

Reuse the existing native execution observer for the restart receipt race. No cases or files deleted in this follow-up; sibling review did not establish equivalent coverage for the remaining boundary cases.

CI-only validation: formatting, plain oxlint, and diff check. Cumulative shard reduction remains below the requested 25 percent.

* test(config): consolidate s0507 fixtures and duplicate receipt proof

Share command, seed, reader, and admission fixtures. Remove the routine receipt lifecycle table covered by session-actor-worker.test.ts (keeps restart receipt custody across retries and settles only the exact provider claim) and session-actor-memory-continuations.test.ts (retains terminal ambiguity until an unbound actor records the provider outcome).

Retain authority checks at transaction and commit and accepted-admission counts after unknown-outcome retries. CI-only validation: oxfmt, plain oxlint, and diff check; no tests or coverage run. Cumulative reduction remains below 25 percent.

* test(worktrees): merge s0501 template custody suites

Port s0501 commits fc51666f0b12, fefece9c2696, c68ccd5cd0d1, and b2127baf4ffb onto the campaign lane as one commit. Preserve the newer lane service-files fixture unchanged and consolidate template registry coverage into the cache suite. Retain the minimal template-selection contract and mismatched-content negative control.

CI-only proof: oxlint and oxfmt --check pass on all 10 remaining touched files; git diff --check and cached diff check pass. Independent review is scoped-clean. No tests, coverage, Testbox, or check-changed were run; runtime proof is deferred to landing PR CI.

* test(sessions): deslop s0509 tests

Reuse the agent-loop stream helpers, centralize SSE framing, and consolidate frozen nested-argument proof into the model-context projection table. Preserve all expanded cases and lifecycle, authority, persistence, and refusal assertions.

CI-only: formatting, diff check and plain oxlint passed; tests and coverage were not run. Reduce 2658 lines to 2613 (1.7%); the 25% target is not safely reachable without deleting distinct boundary and interleaving proof.

* test(sessions): consolidate s0509 owner-boundary proof

Remove manager-layer framing and snapshot duplicates covered by session-transcript-hydration.worker.test.ts: keeps exact bytes and one snapshot across ACKs. Keep manager failure/retarget state proof and UTF-16 integration.

Opaque parser proof remains in session-transcript-report-facts.test.ts; ordinary tool-detail projection remains in session-transcript-repair.test.ts. Keep streamed and terminal-only producer ownership cases; ciphertext variants remain in openai-responses-client.history-prefix.test.ts. General overflow retry remains in agent-session-compaction.test.ts: recovers through the overflow limit with context invalidated before every retry.

Consolidate boundary setup and notification gates. Retain the historical long-transcript SQL parameter regression and all distinct durability, authority, and publication-ordering checks. CI-only: plain oxlint, formatting, and diff checks pass; no tests run. Total shard 2658 to 2378 lines (10.5%), below the 25% target.

* test(sessions): remove redundant s0509 fixture layers

Cold read-only quarantine refusal remains covered by openclaw-agent-db.integrity-lease.test.ts: gates fresh read-only admission on quarantine and permits a repaired generation. Manager failure propagation and unchanged target remain covered by session-manager-hydration-rejection.test.ts and the malformed-retarget case in session-manager-hydration.test.ts.

Use the existing sibling UTF-16 seed-table initialization pattern instead of manually bootstrapping the full schema. Keep both encoding integration rows and streamed failure cases. Trim the third identical extension conflict and duplicate package metadata file while retaining initial ownership, reload, and source replacement assertions.

CI-only: plain oxlint, formatting, and diff checks pass; no tests run. Cumulative shard size 2658 to 2321 lines (-12.7%), still short of the requested 25% without deleting distinct retained behavior.

* test(agents): deslop s0510 tests

Keep all distinct lifecycle, auth, persistence and platform paths. Consolidate bootstrap report assertions into the configured-budget composition test and table the identical LSP environment-filter harness. Raw capture equality and processResponsesStream outcome/usage assertions cover the removed second SSE parse.

CI-only validation: plain oxlint, oxfmt and git diff --check pass. No tests or coverage executed. Shard LOC 2445 to 2396; target shortfall retained rather than deleting distinct contracts.

* test(agents): remove duplicated s0510 test layers

Retain real LSP owned-adapter proof, exact child environment and startup cancellation; remove the mocked invocation replay. Doctor bundle-env tests retain configured-env warning omission. Consolidate Gradle filtering into the retained warning case.

Doctor bootstrap-size tests retain duplicate-basename and lower USER.md cap coverage; doctor-core bootstrap-size retains exhausted-total coverage. Keep provenance and later-exhaustion assertions. Exec background-followup retains zero/default timeout routing, foreground-failures retains default timeout enforcement, and wrapped liveness retains supervisor termination.

Auth shared-usage worker retains exact Retry-After publication and sibling selection; usage tests retain uncapped durations. Keep inline billing persistence and exact deadline in the self-managed case. Remove redundant intermediate catalog callback counts. Retained config-env precedence now also proves canonical key-marker generation.

Route capture SDK requests through the real guarded fetch instead of a prefetched Response replay. CI-only: plain oxlint, oxfmt and diff-check pass; no tests or coverage run. Original shard 2445 lines to 2173 (11.1%); 25% target remains unmet without dropping unique contracts.

* test(agents): consolidate remaining s0510 fixture layers

Keep the collision-present remote delete/add regression from 7a5ccc6; it takes the same initial literal-exists branch and catches sibling corruption. Final sibling and empty-host assertions cover removed repeated checks. Keep both remote backends and provenance paths.

Capture retains all six terminal/cancellation cases with minimal terminal output, exact raw bytes and accounting. Poll the read-only store directly. Reuse existing entered gates and focused execution fixtures without changing lifecycle cases.

Pricing-only assertions replace metadata replays: models-config.merge tests retain explicit reasoning/context/token overrides and local-route compat ownership; the first retained input-presence case retains discovered-only rows. Stale-credential durability remains in usage-kernel tests and shared-usage worker credential-rotation tests.

CI-only: formatting, plain oxlint and diff-check pass. No tests/builds or coverage run. Original shard 2445 to 2108 lines (13.8%); target remains unmet because unique owner contracts remain.

* test(memory): consolidate s0512 observation fixtures

Share identical manager configuration and read-only index opening across watcher and close tests. Consolidate lifecycle call-count assertions without removing ordering checks.

Remove EXPLAIN plan-shape scaffolding from the stale-statistics search case; retain measured chunk visits, fetched-byte bounds, first-chunk selection and source filtering. No runtime tests under campaign CI-only rules.

* test: retain current credential and procfs boundary coverage

* test: preserve reviewed owner-boundary regression coverage

* test: retain remaining regression and current fixture contracts

* test: retain current notification and projection fixtures

* test: drop fixture rewrites rejected by hosted checks

* test: preserve readiness read budget and existing memory fixture
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui channel: irc channel: matrix Channel integration: matrix extensions: codex extensions: memory-core Extension: memory-core gateway Gateway runtime P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant