Skip to content

test(ui,commands,plugins): remove low-value tests (batch d515) - #183285

Merged
steipete merged 32 commits into
mainfrom
tcr/land-d515-1792905374
Oct 25, 2026
Merged

steipete merged 32 commits into
mainfrom
tcr/land-d515-1792905374

Conversation

@steipete

@steipete steipete commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Reduces repeated test fixtures and duplicate proof layers across the UI, commands, plugins, outbound delivery, sessions, infrastructure, cron, and Gateway suites.

User Impact

No production behavior changes. The replay changes only tests and test support: 3,868 lines added, 7,482 removed, net -3,614 across 72 files. Production LOC: +0/-0; test files: +3,827/-7,409; shared test support: +41/-73. No runtime exports, configuration, dependencies, or schemas change.

Why This Change Was Made

Consolidates repeated setup and assertions while retaining independent authority, lifecycle, recovery, persistence, privacy, and platform contracts. Replayed 29 of the 30 requested commits initially onto main at 8e9bf7ea698a6f5bf10011567b8892fa7c36b4e1, then rebased onto 8eb642293ef9917e50b504911ee93de254db2dc5 to incorporate an unrelated main-side lint fix; original commit subjects are preserved. ecde80726ea6440c1cf3dfd9b59c60a90438b4a0 became empty after retaining main's conflicting files; its clean dispatch changes were already present, so it was skipped.

Conflict policy: preserve main's current tests and drop the conflicting file-level reduction, while keeping the rest of the commit. This avoided resurrecting retired inline worker fixtures or overwriting newer snapshots, cleanup, and authority proof. The affected files were:

  • UI: ui/src/app/service-worker-lifecycle.test.ts, ui/src/app/exec-approval.test.ts, ui/src/pages/chat/run-lifecycle.test.ts.
  • Commands: src/commands/doctor-schema-migrations.test.ts, status.summary-read-only.test.ts, triage-recovery.test.ts, doctor-session-sqlite.retirement-disposal.test.ts, message.test.ts.
  • Plugins: src/plugins/management-service.catalog.test.ts, loader.runtime-registry.test.ts, plugin-cache.test.ts, web-search-providers.runtime.test.ts, loader.capability-factory.test.ts, management-service.test.ts, registry.runtime-session-ownership.test.ts.
  • Outbound: src/infra/outbound/agent-delivery.test.ts, message-action-params.test.ts, deliver.queue-integration.test.ts, delivery-queue-migration.test.ts, message-action-execution.accepted-results.test.ts.
  • Sessions: src/config/sessions/legacy-main-session-migration.test.ts, session-history-budget-owner.test.ts, session-history-worker-errors.test.ts; src/sessions/session-lifecycle-admission.test.ts.
  • Infrastructure: src/infra/executable-path.test.ts, package-update-steps.test.ts, package-update-filesystem.test.ts, session-cost-usage.archive-identity.test.ts.
  • Cron: src/cron/service.failure-repair.test.ts, service.read-ops-nonblocking.test.ts, trigger-script.test.ts.
  • Gateway: src/gateway/session-history-reads.test.ts, github-publication-availability.worker.test.ts, session-control.incognito.test.ts.

Later nonconflicting edits to those files remain where applicable. No manual behavior rewrite was added during conflict resolution. None of the changed paths match the current CODEOWNERS rules.

Evidence

  • pnpm install --frozen-lockfile --prefer-offline: passed.
  • node_modules/.bin/oxfmt --write <changed files>: passed, including the final four restorations.
  • node_modules/.bin/oxlint -c .oxlintrc.json <changed files>: exit 0, including the final four restorations.
  • git diff --check 8eb642293ef9917e50b504911ee93de254db2dc5 HEAD: passed after the final rebase.
  • CI-only mode: no local Vitest, check-changed, typecheck, coverage, or Testbox. Required openclaw/ci-gate is the hosted proof. Local test wall time and CI test seconds are not available at submission. No Testbox lease was created.
  • Independent preservation review completed two passes: 17 P2 findings. Seven were addressed conservatively by restoring the implicated files to pinned main; ten were rejected after verifying retained owner/sibling coverage. A focused independent review of CI corrections completed scoped-clean at P0-P2. Auto-merge was disabled during repairs.

Review and hosted CI corrections

Preservation review restored the full pinned-main versions of src/commands/config-preflight-snapshot.test.ts, src/gateway/github-publication-evidence.test.ts, src/infra/gateway-state-owner.heartbeat.test.ts, src/infra/outbound/message-action-runner.broadcast.test.ts, ui/src/app/settings.node.test.ts, src/plugins/plugin-metadata-state-worker.test.ts, and src/plugins/registry-runtime.decisions-usage.test.ts. This keeps startup credential refusal, publication requester isolation, successful clock-rollback renewal, broadcast target restrictions, explicit token clearing, metadata artifact preservation, and billing edge cases unchanged.

Rejected findings have retained coverage: namespace admission in gateway-lock.namespace.test.ts (including Doctor container admission); persisted cron policy in service.scheduled-policy-preservation.test.ts; real descendant cleanup/reaping in process/exec*.test.ts; deleted/reset delivery in isolated-agent/destination-completion.test.ts and shared-main refusal in delivery-target.test.ts; captured/replacement terminal writes in server-runtime-subscriptions.test.ts; custom ClawHub trust in official-external-install-records.test.ts plus consent-owner gating; Gateway/profile/client/reconnect diagnostic retirement in overlays-update-triage.test.ts; the still-present source-link/external/lookalike matrix in bundled-dir.test.ts; exact native-proof forwarding in the UI with canonical payload vectors owned by gateway/device-auth.test.ts; exact-ID retry storage and reopened chronology in transcripts/store.test.ts and library.test.ts.

The first hosted CI run found replay fixture/type defects. The seven preservation restorations also remove the settings, publication-evidence and billing errors. Dropped the remaining reductions to session-accessor.sqlite-import.test.ts, session-history-budget-owner.test.ts, and session-logical-entry-read.worker.test.ts because they depended on fixture shapes absent on current main. Corrected callback return-void semantics and explicit required fixture params; optional transcript mapping still must equal [0, 1]. Restored mandatory artifact-count fields in the cleanup failure fixture. Changed a parameterized title from %j to %# because title serialization itself invoked getters that the test is intended to prove are not invoked. No assertion was weakened, no retries/skips/timeouts were added, and no production change was made. Fresh-head CI remains required.

The second hosted CI run found a corruption fixture that initialized the database through the production admission path, lost mock-isolation structure, a timeout-race ratchet regression, and three unbound-method lint errors. Dropped all reductions in src/commands/doctor-session-delivery-state.test.ts, src/commands/status.scan.test-helpers.ts, src/gateway/mcp-http.async-scope.test.ts, and src/infra/sqlite-worker-transcripts.test.ts, restoring each byte-for-byte to pinned main. This supersedes the earlier transcript mapping correction. The independent review of these four restorations is scoped-clean at P0-P2. Auto-merge was disabled before this repair and is re-armed only on the corrected head; no baseline allowance or exception was added.

The third hosted CI run passed the changed-test lanes, UI lanes, typechecks, and baseline ratchets, but check-lint rejected an untouched managed-settings helper under a newly landed directory-scan rule. Main subsequently fixed that helper in 8eb642293ef9917e50b504911ee93de254db2dc5. Rebased onto that exact main instead of claiming an inherited-failure exception. During rebase, the same session-history-budget-owner.test.ts file conflicted twice; retained the complete new-main version, including safe directory traversal. The only content added to a still-changed batch file is main's intact 17-line empty-window projection regression test. The reviewed reduction, file count, and net LOC are unchanged. Re-ran formatting and plain oxlint over all 72 files and diff-check successfully; fresh-head hosted CI is the final gate.

Final per-shard replay inventory and reduction

Counts compare changed files on the pinned main base with this corrected replay. Declaration counts are static regex estimates, not executed cases. Test/support LOC is combined below. Every supplied shard report explicitly says tests and coverage were not run under CI-only mode; no measured statement/branch total or <=1% coverage claim is available.

s0160

Changed-file test/support LOC: 2087 → 1718 (-369); static declaration estimate: 42 → 31 (-11). Coverage totals: unavailable; shard report explicitly says tests and coverage were not run under CI-only mode.

src/plugins/management-service.capability-consent.test.ts, src/plugins/plugin-source-capture-recovery.test.ts, src/plugins/provider-discovery.runtime.test.ts

s0163

Changed-file test/support LOC: 3357 → 2775 (-582); static declaration estimate: 73 → 64 (-9). Coverage totals: unavailable; shard report explicitly says tests and coverage were not run under CI-only mode.

ui/src/app/app-root.warm-boot.test.tsx, ui/src/app/create-agent.test.ts, ui/src/app/native-gateway-auth.node.test.ts, ui/src/app/router-outlet-chat.test.tsx, ui/src/app/server-prefs.test.ts, ui/src/app/update-triage.runtime.test.ts

s0164

Changed-file test/support LOC: 3026 → 2521 (-505); static declaration estimate: 73 → 63 (-10). Coverage totals: unavailable; shard report explicitly says tests and coverage were not run under CI-only mode.

src/commands/backup-verify-completeness.test.ts, src/commands/doctor-config-flow.cron-owners.test.ts, src/commands/doctor-retired-models.ordering.test.ts, src/commands/doctor-session-transcript-labels.reuse.test.ts, src/commands/doctor-sqlite-maintenance-lock.test.ts, src/commands/onboard-skills.test.ts

s0165

Changed-file test/support LOC: 1807 → 1750 (-57); static declaration estimate: 30 → 30 (0). Coverage totals: unavailable; shard report explicitly says tests and coverage were not run under CI-only mode.

src/infra/outbound/conversation-delivery.queue-admission.test.ts, src/infra/outbound/message-action-runner.plugin-dispatch.test.ts, src/infra/outbound/session-binding-service.test.ts

s0166

Changed-file test/support LOC: 2549 → 2354 (-195); static declaration estimate: 60 → 57 (-3). Coverage totals: unavailable; shard report explicitly says tests and coverage were not run under CI-only mode.

src/plugins/api-facades.cli.test.ts, src/plugins/bundled-dir.test.ts, src/plugins/git-install.test.ts, src/plugins/installed-plugin-index.test.ts, src/plugins/plugin-module-loader-cache.test.ts

s0167

Changed-file test/support LOC: 3700 → 3429 (-271); static declaration estimate: 79 → 73 (-6). Coverage totals: unavailable; shard report explicitly says tests and coverage were not run under CI-only mode.

src/config/sessions/legacy-main-session-migration.test.ts, src/config/sessions/session-accessor.sqlite-read-hold.test.ts, src/config/sessions/session-accessor.sqlite-scope.test.ts, src/config/sessions/session-actor-memory-storage.test.ts, src/config/sessions/session-entry-cohort-lifecycle.worker.test.ts, src/config/sessions/session-history-worker-errors.test.ts, src/config/sessions/session-transcript-index-status.test.ts, src/config/sessions/startup-migration.acp.test.ts

s0168

Changed-file test/support LOC: 4125 → 3674 (-451); static declaration estimate: 84 → 80 (-4). Coverage totals: unavailable; shard report explicitly says tests and coverage were not run under CI-only mode.

src/commands/agent.acp.test.ts, src/commands/codex-runtime-plugin-install.test.ts, src/commands/doctor-config-preflight.unavailable-owner.test.ts, src/commands/doctor-device-pairing.test.ts, src/commands/doctor-session-transcript-headers.test.ts, src/commands/doctor-session-transcript-labels.test.ts, src/commands/message.test.ts, src/commands/onboard-custom.test.ts, src/commands/sessions-cleanup.test.ts

s0169

Changed-file test/support LOC: 2548 → 2455 (-93); static declaration estimate: 43 → 43 (0). Coverage totals: unavailable; shard report explicitly says tests and coverage were not run under CI-only mode.

src/infra/session-cost-usage.archive-identity.test.ts, src/infra/sqlite-integrity.test.ts, src/infra/update-candidate-canary-readiness.test-support.ts, src/infra/update-candidate-state.budget.test.ts

s0170

Changed-file test/support LOC: 4942 → 4648 (-294); static declaration estimate: 110 → 103 (-7). Coverage totals: unavailable; shard report explicitly says tests and coverage were not run under CI-only mode.

ui/src/pages/chat/chat-composer-actions.test.ts, ui/src/pages/chat/chat-composer.test.ts, ui/src/pages/chat/chat-history-cursor.test.ts, ui/src/pages/chat/chat-history.inflight.test.ts, ui/src/pages/chat/chat-history.test.ts, ui/src/pages/chat/chat-pane-model-catalog.test.ts, ui/src/pages/chat/chat-reasoning.test.ts, ui/src/pages/chat/chat-view.test-helpers.ts, ui/src/pages/chat/subagents-panel-data.test.ts

s0171

Changed-file test/support LOC: 4573 → 3994 (-579); static declaration estimate: 108 → 98 (-10). Coverage totals: unavailable; shard report explicitly says tests and coverage were not run under CI-only mode.

src/cron/command-runner.test.ts, src/cron/delivery-preview.test.ts, src/cron/isolated-agent.auth-profile-propagation.test.ts, src/cron/normalize.test.ts, src/cron/scratch-store.test.ts, src/cron/service.failure-repair.test.ts, src/cron/service.persists-delivered-status.test.ts, src/cron/service.restart-catchup.test.ts, src/cron/session-run.session-model-strictness.integration.test.ts

s0172

Changed-file test/support LOC: 3229 → 3017 (-212); static declaration estimate: 36 → 32 (-4). Coverage totals: unavailable; shard report explicitly says tests and coverage were not run under CI-only mode.

src/gateway/chat-abort-lifecycle-internal.test.ts, src/gateway/config-reload.test-support.ts, src/gateway/conversation-route-ownership.worker.test.ts, src/gateway/server-plugin-reload.activation.test-support.ts, src/gateway/server.request-lifetime.test.ts, src/gateway/session-history-reads.test.ts, src/gateway/session-sharing-groups.test.ts

s0173

Changed-file test/support LOC: 2116 → 2110 (-6); static declaration estimate: 53 → 52 (-1). Coverage totals: unavailable; shard report explicitly says tests and coverage were not run under CI-only mode.

src/sessions/session-controller.lifecycle-diagnostics.test.ts, src/sessions/session-controller.mailbox.test.ts, src/sessions/session-controller.steer.test.ts

@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 05:25
@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-25T10:02:39.307517Z e61169b New commits
ℹ️ About Codex in GitHub

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

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

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

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime commands Command implementations size: XL labels Oct 25, 2026

@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: 58c1651b56

ℹ️ 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 src/cron/normalize.test.ts Outdated
{ version: 1, source: "authenticated-requester", channelRequester },
undefined,
]),
])("preserves only authored requester facts without invoking getters: %j", (input, expected) => {

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.

P2 Badge Avoid JSON-formatting accessor fixtures in the test title

The %j placeholder serializes each input while Vitest constructs the parameterized test names, invoking the enumerable accessors backed by requesterGetter before the tests run. Consequently, expect(requesterGetter).not.toHaveBeenCalled() fails even when normalization correctly avoids getters. The shared Vitest configuration explicitly sets clearMocks: false, so those collection-time calls remain recorded. Use a separate descriptive case label instead of serializing the accessor-bearing input.

Useful? React with 👍 / 👎.

@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: d30813be92

ℹ️ 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 on lines 55 to +56
source: "bundled",
rootDir: `/tmp/${id}`,
manifestPath: `/tmp/${id}/openclaw.plugin.json`,
providerDiscoverySource: `/tmp/${id}/provider-discovery.ts`,
providerDiscoverySource: entry ? `/tmp/${id}/provider-discovery.ts` : undefined,

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.

P2 Badge Keep discovery fixture roots consistent with path expectations

On Windows, removing the explicit rootDir makes createPluginManifestRecordFixture fall back to path.resolve("/tmp", id), producing a native path such as C:\tmp\codex. Discovery copies that value directly into pluginRoot, but the “keeps unscoped discovery bounded” test still expects /tmp/codex and /tmp/deepseek, so the previously platform-independent test now fails on Windows. Retain the explicit fixture roots or make the expected paths platform-aware.

Useful? React with 👍 / 👎.

@clawsweeper

clawsweeper Bot commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR consolidates test fixtures and removes duplicate assertions across UI, commands, plugins, sessions, delivery, infrastructure, cron, and Gateway suites.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful test maintenance, but the source-confirmed Windows failure prevents a correctness pass; exact-head CI also remains incomplete.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR changes only tests and test support, so a shipped-entry-point demonstration is not required.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
Reason: The maintainer-approved direction reduces repeated test setup without adding production machinery.

Merge readiness

⛔ Needs changes before merge - 2 items remain

Keep this maintainer-authored cleanup open; an introduced Windows fixture mismatch needs correction.

Priority: P3
Reviewed head: 1d04b071029d8a9b37ecd20a23bd4acc89147799

Before merge

  • Restore platform-independent discovery fixture roots (P2) - Omitting rootDir makes createPluginManifestRecordFixture use path.resolve('/tmp', id). On Windows that produces a native path such as C:\tmp\codex, which provider discovery copies directly into pluginRoot. The retained mixed-discovery test still expects '/tmp/codex' and '/tmp/deepseek', so it fails on Windows with correct production code. Restore the explicit local POSIX rootDir and manifestPath overrides.
  • Explain or restore the original intent of Provider-discovery fixture paths - refactor: deslop plugin fixtures, provider transports and UI harnesses #182594: The shared-factory migration explicitly preserved POSIX paths and existing fixture values.

Findings

  • [P2] Restore platform-independent discovery fixture roots — src/plugins/provider-discovery.runtime.test.ts:55-56

Provenance

Agent review details

How this fits together

The changed tests supply synthetic inputs to OpenClaw owners and check their results, lifecycle, authorization, and persistence contracts.

flowchart LR
  A[Synthetic fixtures] --> B[Test suites]
  B --> C[Production owners]
  C --> D[Observed results]
  D --> E[Independent assertions]
  E --> F[Hosted CI]
Loading

Technical review

Best possible solution:

Restore the local discovery fixture’s explicit POSIX paths while retaining the useful test consolidation.

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

Source establishes the Windows failure: the shared fixture produces a native path such as C:\tmp\codex, discovery forwards it unchanged, and the test expects /tmp/codex; no target code was executed.

Is this the best way to solve the issue?

The consolidation is useful, but preserving the existing local fixture values is the smallest complete repair and avoids changing the shared factory.

Full review comments:

  • [P2] Restore platform-independent discovery fixture roots — src/plugins/provider-discovery.runtime.test.ts:55-56
    Omitting rootDir makes createPluginManifestRecordFixture use path.resolve('/tmp', id). On Windows that produces a native path such as C:\tmp\codex, which provider discovery copies directly into pluginRoot. The retained mixed-discovery test still expects '/tmp/codex' and '/tmp/deepseek', so it fails on Windows with correct production code. Restore the explicit local POSIX rootDir and manifestPath overrides.
    Confidence: 0.99
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.94

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Configured provider credential-scope coverage keeps the original intent (2a628fc: Static model discovery must preserve canonical agent or plugin credential scope; both scope cases and their assertions remain.)
  • ACP startup migration fixtures keeps the original intent (12c5644: Doctor owns legacy ACP normalization and startup refuses unresolved restored state; the consolidated fixture retains the six migration shapes and handoff refusal checks.)
  • Update-diagnosis consent coverage keeps the original intent (06815a4: Failed updates require an explicit diagnosis action; the consolidated tests retain nonautomatic diagnosis and authority-change rejection.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test src/plugins/provider-discovery.runtime.test.ts --maxWorkers=1
  • pnpm check:changed

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 3fb201c adds src/plugins/provider-discovery.runtime.test.ts:7 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 3fb201c5a761; files: src/plugins/provider-discovery.runtime.test.ts)
  • Shakker: Raw commit 6f04eee adds src/plugins/provider-discovery.runtime.test.ts:32 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 6f04eee2a12e; files: src/plugins/provider-discovery.runtime.test.ts)
  • Galin Iliev: Raw commit 2a628fc adds src/plugins/provider-discovery.runtime.test.ts:508 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 2a628fcba87b; files: src/plugins/provider-discovery.runtime.test.ts)

PR surface

Tests -3614. Total -3614 across 72 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 72 3860 7474 -3614
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 72 3860 7474 -3614

Review metrics

Metric Value Why it matters
Production versus test LOC Production +0/-0; tests +3,819/-7,401; test support +41/-73. The reduction is confined to test maintenance; no runtime performance improvement is established.

Labels

Label changes:

  • add P3: The item is internal test cleanup with no production behavior change.
  • add merge-risk: 🚨 automation: The changed discovery fixture causes deterministic Windows test failures despite unchanged production behavior.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: The item is internal test cleanup with no production behavior change.
  • merge-risk: 🚨 automation: The changed discovery fixture causes deterministic Windows test failures despite unchanged production behavior.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rating scale

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

Workflow

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

Reviewed October 25, 2026, 2:08 AM ET / 06:08 UTC.

@steipete
steipete force-pushed the tcr/land-d515-1792905374 branch from 1d04b07 to c873055 Compare October 25, 2026 06:12
@steipete
steipete enabled auto-merge (squash) October 25, 2026 06:13
@steipete
steipete disabled auto-merge October 25, 2026 06:23
@steipete

Copy link
Copy Markdown
Contributor Author

Holding the current head c8730551ba9a66bde3f3537ab0069940827cef9c; auto-merge is disabled.

The completed PR CI run has one underlying failure: checks-ui (1/3), WebKit src/components/menu-surface.browser.test.tsx > platform menu hover > light mode > matches session menu geometry and theme inside browser cards. openMenu at line 94 expected phase open but observed opening.

The batch edits no production files, no files selected by the WebKit test list, and none of this test's support imports. All other PR jobs completed successfully, including the changed-test lanes, typechecks, lint, and baseline ratchets. However, the same UI job in the latest hourly-main run passed. The earlier hourly UI failure was a different Chromium streaming test, so there is no exact matching hourly proof for an inherited-failure exception.

This remains a blocking failure; no exception merge or rerun has been attempted. Waiting for a relevant main-side fix or the exact required hourly evidence. The slot worktree is clean, and the reviewed test reduction remains unchanged.

steipete added a commit that referenced this pull request Oct 25, 2026
An explicit cron run reads its authorized job definition and private scratch separately inside a SQLite read transaction. Read both in one dialect-layer LEFT JOIN so they share a statement snapshot, removing three SQL statements per SQLite run without another worker request.

The job reader keeps its all-column authorization relation, ordered narrow projection, exact returned-ID check, existing decoder/config revision and legacy creation fallback. Missing scratch still reports revision 0; deletion keeps its revision tombstone. The standalone maintenance reader remains. No schema, cache, write, receipt, claim-before-effect, delivery authority, FIFO or 64-receipt retention change.

PostgreSQL retains the shared reader's outer read-only transaction and rollback: its exact-job read is 4→3 SQL, not 4→1. SQLite exact-job is 4→1, heartbeat 3→1; PostgreSQL heartbeat remains 3→3. Accepted noncontract edges: an absent/malformed job can now require scratch SELECT privilege, and malformed job plus unsafe numeric scratch can reject the numeric data first. These do not remove the existing caller/source/cancellation checks.

The production delta is +3 lines: one joined query replaces the transaction and duplicate read while sharing NULL handling with heartbeat. Existing test files cover read-after-write, tombstones, missing jobs/monitors and both database engines. No new suite or runner is added.

Acceptance was registered before measurement: the committed `scripts/bench-cron-run.mts` drives signed WebSocket `cron.run` against an isolated synthetic Gateway/provider, once cold and twice warm. Each run must produce one start, one finish, one Responses request and exact-run history verification. Compare execution, history verification and settlement separately and together, plus shutdown and the entire invocation. The scratch owner must fall from 4→1 SQL with 1 request and 0 MAIN throughout; no cost may be deferred outside the run. Keep cold/warm separate and report median/p95/range. Three same-platform alternating pairs when calm, or one pair plus source attribution under campaign load. Counts and profiles make no latency/CPU-speed claim; timing claims require the timing lock, load below 24 and ≥5 alternating samples per arm. A 20% user-facing regression stops acceptance. Delivery mode none does not claim an external-send proof.

The same-platform explicit comparison (baseline 814e732, candidate 93a6c4) gives:

| SQL / requests / MAIN | Baseline | Candidate |
| --- | --- | --- |
| Cold execution + verification + settlement | 257 / 80 / 0 | 254 / 78 / 0 |
| Warm 1 | 247 / 64 / 0 | 235 / 60 / 0 |
| Warm 2 | 252 / 61 / 0 | 245 / 65 / 0 |
| Warm median | 249.5 / 62.5 / 0 | 240 / 62.5 / 0 |
| Warm descriptive p95 | 252 / 64 / 0 | 245 / 65 / 0 |
| Warm range | 247–252 / 61–64 / 0 | 235–245 / 60–65 / 0 |
| Shutdown | 22 / 6 / 5 | 40 / 10 / 5 |
| Whole invocation | 1383 / 356 / 58 | 1369 / 352 / 58 |

Each of the three runs completed one start, finish, Responses request and exact history verification. The scratch owner is exactly 4/1/0 → 1/1/0 in every run, all in its execution phase, with no extra or deferred scratch requests. All execution/verification/settlement phases are SQL-error-free and runtime MAIN remains zero. The count comparison is diagnostic, not an error-free full invocation: the frozen analyzer rejects two failed shutdown `state_leases` DELETEs (`database is locked`). Shutdown exceeds the 20% stop threshold; it was stopped and explicitly accepted by the coordinator as inherited after an independent main shutdown-lock reproduction. The separate SHUTDOWNLOCK lane owns that repair. The scratch join changes no lease code or writes. No latency or CPU-speed claim is made.

The frozen 3.1.5 standard workload is a different scheduled `cron.add` flow: three valid baselines gave 06.cron 231/62/0, 235/65/0, 233/63/0 (median 233/63/0), versus ordinary warm 45/12/0. The descriptive excess is 188 SQL/51 requests, not causal subtraction. One extra standard setup aborted before any Gateway; it supplies no performance evidence. The existing scratch source is identical across that baseline and the explicit baseline. Full current-standard delta is deferred to the next census.

Validation: count regression red on baseline (2 SELECTs and BEGIN/COMMIT), all 17 scratch-store tests green on the candidate; two isolated Codex P0–P2 reviews scoped-clean. The existing two-engine conformance test passed on actual SQLite and PostgreSQL 17, with catalog/trigger parity and cleanup verified. Test cost: scratch cases totaled 6.528 s (125.95 s file duration, mostly transform); the two engine cases totaled 1.846 s (260.62 s file duration, mostly transform). The candidate build and official source-freshness check passed at measured runtime head 93a6c4d; the three-sample invocation completed with the shutdown limitation above. Exact-head CI run 40176443806 completed successfully: 39 successful jobs, 26 skipped, no failures, including all three actual PostgreSQL shards, production/test types, lint, source contracts, Madge, and worker/T1/dialect ratchets. The earlier run passed types, lint and source contracts but found a worker-inventory omission: the new direct query was conservatively labeled T1. Head a187ecf corrects only inventory metadata and regenerates its snapshot: the worker snapshot and its private heartbeat helper are W, while the native Doctor reader stays T3. No runtime or SQL change is involved. The generated snapshot also catches up existing main classifications; targeted script lint and formatting pass. The two production reviews remain valid; this tooling-only correction adds no production review round. PG review approved the semantics at 68c24c4, and the coordinator explicitly carried REVIEW-OK to 93a6c4d because only benchmark TypeScript annotations changed. Candidate counts and the inherited-shutdown disposition are recorded; the corrected head’s CI and all three PG shards passed. The test-only import relocation avoids another open PR's adjacent import change; production bytes remain identical to both isolated reviews and database proof. The benchmark annotations fix CI TS7022 without changing emitted behavior.

Final-head overlap at a187ecf: complete shared-index base-versus-candidate merge-tree comparison covers 21 peers (#183410, #183285, #181057, #180871, #180286, #180139, #169241, #168956, #168615, #167546, #167471, #165039, #161997, #157922, #157693, #156613, #141004, #137788, #136476, #129388, #121204). No new source conflict paths, regions or messages. Six peers (#181057, #180871, #180139, #169241, #129388, #121204) have added or changed conflicts confined to the fully generated worker inventory. The coordinator explicitly accepted this class because main's snapshot was stale and generated outputs must be regenerated, not hand-edited. The same exact-head disposition carries PG REVIEW-OK because runtime bytes are unchanged. Exact-head CI and all three PostgreSQL shards passed.

PG checklist: (1) read-only; existing writer transaction/advisory-lock, DML/conflict and cross-store commit ordering unchanged. (2) At most one joined row via the existing composite primary keys, original job fields plus four scratch fields, unchanged 256 KiB scratch write bound. (3) No cache/generation or invalidation change; one statement snapshot, existing outer PG read transaction retained. (4) No schema/admission/identity/retry/probe change. (5) Same worker owner, one request, no MAIN expansion; target 4→1 SQL in all three real Gateway runs, with the inherited shutdown failure disclosed above. (6) Actual PostgreSQL 17 and SQLite owner conformance passed; all three final-head PostgreSQL CI shards and the other selected static checks passed.

Knip was run separately because ordinary PR CI excludes it. The canonical candidate export scan failed with 26 script, 20 production and 16 full-tree findings; none is in a changed file. All 62 occurrences (52 unique file/symbol pairs), scanner/config/compiler inputs and package inputs are unchanged from merge-base dada70f. The only removed imports, runSqliteReadSnapshotSync and loadCronRows, both retain multiple real production consumers. Current-main diagnostic sections reported 14 script and 7 production findings; main has already repaired 40 candidate occurrences in unrelated changes. Its separate full-tree scan was intentionally stopped after the coordinator accepted the source-attributed inherited findings; it is not a passing full-main scan. No ignored exports, baselines or unrelated code were changed. The failed candidate scan is explicitly accepted as inherited; all branch changes and selected CI static checks pass.

Pre-merge shared-index refresh retains 17 open peers from that audit. Only #180871 moved (f140f16); its fresh base-versus-candidate comparison still adds conflicts solely in the generated worker inventory, within the coordinator-accepted class. No new source conflicts.

Co-authored-by: Peter Steinberger <[email protected]>
Factor repeated startup, theme, navigation, and selection test setup. Cover native identity projection in the existing real iOS handshake case (preserves the shipped iPhone/iPad nonpersistent identity handoff), replacing the narrower settings startup duplicate.

CI-only shard: formatting, plain oxlint, and diff-check passed; no test or coverage runs. Reduce 4600 to 4528 lines. Below the 25% target: remaining cases protect distinct auth, approval, scope, recovery, and lifecycle ordering contracts.
Keep application authority, rollback, stale-result, and teardown interleavings while removing narrower UI replays. Creation keepers: agent-creation-immediate.e2e prepares creation from the cold selector; chat-page-pending-create replaces previous transcript through creation; app-sidebar-pending-agent and agent-create-dialog own pending presentation and submission.

Preference keepers: settings-prefs-reconnect.e2e covers read-only reconnect, server deltas under pending local intent, and sibling cancellation; chat-page and sidebar-layout-persistence cover split/sidebar serialization. Route keepers: presentation switches cover session retention; missing-session covers retirement; route-resolution, route-resolution-identity, and route-resolution-handoff own URL ambiguity and hints.

Native tests assert byte-exact proof forwarding instead of re-verifying a fixture-generated signature; gateway/device-auth owns canonical payload vectors. Update campaign transition remains as a focused owner test; update-triage.e2e owns passive automatic failure UI and explicit diagnosis. Notification variants retain each scope/ranking/recovery branch.

CI-only: plain oxlint, formatting, and diff-check passed; no tests/build/coverage. Additional 481 lines removed; original shard 4600 -> 4047 (12.0%), still below 25% because remaining cases retain distinct boundary/lifecycle proof.
Share the five diagnostic outcome fixtures without removing success, invalidation, consumed admission, synchronous throw, or rejected-promise coverage. Merge no-model display into bounded/redacted diagnostic presentation, and valid command-span parsing into the valid exec-event contract. Preserve exact span boundary and invalid-range assertions.

Keep one prepared-send authority recheck; scope-specific predicate keepers remain in overlays-update-triage: retires a queued diagnostic on Gateway/profile/client/reconnect changes without starting another. Bootstrap.test's synchronous fragment cleanup and gateway-store.auth's real credential retirement replace narrower settings projections. Server-prefs.navigation preserves newer same-tab/storage intent across an older ack and covers the removed scalar replays.

Centralize per-test renderer and mounted-theme cleanup, retaining disposal before storage teardown and terminal transition order. Reuse the existing real chat-submission owner; remove duplicated positive RPC-shape assertions while retaining authority denials and custom creation identity.

CI-only: plain oxlint, formatting, and diff-check passed; no tests/build/coverage. Additional 177 lines removed. Original shard 4600 -> 3870 (15.9%); still below the 25% target with remaining distinct auth/approval/persistence/lifecycle proof retained.
Keep namespace admission at gateway-lock.namespace and gateway-state-owner; retain command custody and path guards. Keep fresh Doctor forwarding at update-command-fresh-doctor; retain transcript scan and receipt behavior.

Keep ordinary cron write refusal at doctor/shared/default-agent-role-materialization.write; retain transactional removal. Keep schema recovery at doctor-migration-backup and sqlite-migration-scoped-snapshot. Keep native retirement scope at manifest-model-suppression and xai-auto-retirement. Keep CLI/TUI labels at status-overview-rows and tui-command-handlers.

Consolidate onboarding branch fixtures and remove repeated delivery normalization projections already covered by delivery-context and state-migrations.legacy-session-store. Static lint, format and diff checks passed; runtime tests intentionally deferred to CI.
Remove nine general triage cases duplicated by the named consent, JSON handoff, diagnostics, Windows launch, and failure cases in triage.test.ts. Keep external recovery-specific coverage in this shard.

Retirement hashing/progress and restored-mtime mutation remain covered by the same-named cases in doctor-session-sqlite.retirement-performance.test.ts. Shared-manifest reads and retained dependency bytes remain covered by doctor-session-sqlite.retirement-mutations.test.ts.

Consolidate duplicate installer outcomes, onboarding retries and alias checks, account rejection, and terminal-reply variants. Terminal punctuation variants remain covered by agent-run-terminal-reply.test.ts and terminal-resolution.test.ts. Remove internal wiring inventories and redundant fixture cleanup without dropping distinct state, authority, or lifecycle checks.

CI-only: formatting, plain oxlint, and diff checks passed. No tests or coverage run. Cumulative shard reduction is 5551 to 4527 lines, below the requested 25 percent.
Factor fresh-index and clone-destination setup; reuse the rich disabled-plugin fixture and table existing Git selector assertions. Preserve all distinct cases and exact security assertions.

The compiled-alias and native-evaluation-error tests retain no-Jiti assertions, which cover the removed redundant transformer checks. The web-fetch in-flight test retains its empty result and no-load assertions instead of deriving expected internal options from production code.

CI-only campaign: formatting, plain oxlint, and diff-check pass; tests and coverage deferred to hosted CI. Reduction is 48 of 6123 lines; remaining authority, lifecycle, SDK, and path-safety coverage prevents the requested 25 percent cut.
Keep uninstall ownership proof in management-service.uninstall-ownership.test.ts, SQLite/incognito proof in registry.runtime-config.sqlite.test.ts and registry.runtime-incognito.test.ts, and shared web/fetch proof in web-provider-runtime-shared.test.ts and web-fetch-providers.runtime.test.ts.

Retain SDK alias and source-prescan proof in sdk-alias-normalization.test.ts and plugin-module-loader-cache.source-prescan.test.ts; use the real installed-plugin-index.symlink.test.ts discovery boundary. Host model-policy and descriptor proof remains in loader.runtime-registry.test.ts. Simplify fixture-owned cache setup and remove mock-authored sorting/policy replays.

CI-only validation: formatting, plain oxlint, and diff-check pass. No tests or coverage run. Cumulative shard LOC falls from 6123 to 4839 (21 percent); distinct authority, lifecycle, installation custody, and CLI contracts prevent further justified cuts to the 25 percent target.
Remove the unreferenced duplicate history-worker harness; the active harness and every error/custody case remain in session-history-worker-errors.test.ts. Remove its five stale mock-baseline entries.

Narrow the logical-read preparation gate to its only caller, consolidate ACP fixtures, retain all six migration shapes, and trim small fixture literals. Preserve all 95 test declarations and all storage, authority, redaction, and lifecycle assertions.

CI-only: plain oxlint, oxfmt, and diff checks passed. No runtime tests or coverage run. Test LOC 5429 to 5356; orphan test support 227 to 0. Below the 25 percent target because further case deletion would remove distinct durability and lifecycle proof.
Remove the budget cap-entry suite and fixtures duplicated by session-history-budget-owner-parity.test.ts. Keep both shared-store receipt deletion and nonshared foreign-candidate rejection at that owner.

Remove legacy migration query-shape replay: session-retirement-read.test.ts keeps detailed detection after a foreign commit; quarantine tests retain doctor repair. Consolidate cold admission and redundant cohort release checks, and reduce equivalent error-cleanup variants.

Replace transcript fake-clock/log instrumentation with direct read-snapshot callback observation. Remove internal SQL-shape observations while retaining bounded-work, durability, ordering, authority, and redaction proof.

CI-only: no tests or coverage run. Plain oxlint, oxfmt and diff checks pass. Additional test LOC 5356 to 4788; original shard 5429 to 4788 (11.8 percent). Further reduction to 25 percent not justified without removing distinct retained behavior.
Consolidate parse-outside-snapshot and per-slice ordering into one table retaining both paths; share transcript event construction. Remove unused simulated pool retirement behavior that no history-pool callback installs.

Keep dirty initial admission in preflight/sweep and sorted/reclassified batches in the pending-batch test. Fold unresolved-clean migration assertions into the linear-fleet case. Doctor retirement disposal retains the implicit prompt-rewrite import path; preserve root and opaque variants here.

Reuse existing same-directory import-state and typed memory fixtures; reduce ACP fixture duplication, result envelopes, and writer/logging setup. Empty successor-root and no-measurement assertions subsume duplicate budget SQL/queue probes.

CI-only: no tests or coverage run. Plain oxlint, oxfmt, and diff checks pass. Additional LOC 4788 to 4624; original 5429 to 4624 (14.8 percent). Required 25 percent remains unmet; further reviewed candidates retain distinct durability, authority, privacy, or lifecycle behavior.
Remove duplicate transaction and interleaving cases retained in package-update-steps.transaction.test.ts, postinstall cases retained in package-update-steps.postinstall.test.ts, and stream failure cases retained in session-cost-usage.stream-errors.test.ts.

Consolidate isolated fixtures, resource cleanup, and repeated assertions without removing distinct authority, durability, path, or accounting checks. Restore local package fixtures in place of the missing helper import.

CI-only validation: plain oxlint, oxfmt, and git diff --check. No tests or coverage run. Shard reduction remains below 25% because retained cases protect distinct safety and lifecycle behavior.
Share staged npm installer fixtures, executable-path branch cases, resource cleanup, SQL observers, and accounting assertions. Replace rollback mock counters with the specific observable injected failure cause.

Rechecked remaining sibling layers: transcript worker isolation, compressed archive precedence, integrity invalidation, and readiness ordering have distinct retained proof. No further whole-case or whole-file deletion was supported. CI-only validation: plain oxlint, oxfmt, git diff --check; no tests run. The requested 25 percent shard reduction remains unmet.
Collapse same-branch clock, executable and permission variants; reuse filesystem, readiness and worker fixture assertions; remove internal command inventories and retry counters while preserving observable failures and durability.

Retain transcript off-thread listing and private source projection in the full stored-read case. Detailed pagination/export and exact-retry contracts remain in src/transcripts/library.test.ts and store.test.ts. Diagnostic detail remains in update-candidate-state.diagnostics.test.ts and schema-lifetime.test.ts.

CI-only: plain oxlint, oxfmt, and git diff --check pass. No test, coverage, or build runs. Shard LOC 5820 to 4906 (15.7 percent); 25 percent target remains unmet rather than dropping distinct authority, custody, or persistence proof.
Remove reasoning cache identity checks duplicated by the reasoning row of components/chat-transcript-projection-scale.test.ts: projects %s deltas without rereading 3,000 retained messages. The retained thinking hydration test also exercises same-item text updates.

Consolidate offline outbox presentation in keeps offline outbox rows editable across connection and sending updates. Retain model loading presentation in the failed-refresh matrix; warm-open and sign-in tests retain their distinct owner/fencing checks. Dictation glyph coverage remains in composer-direct-dictation.test.tsx.

Trim unused interrupted-input fixture data; chat-pending-inputs.test.ts retains interrupted custody and presentation proof. Reuse typed lifecycle rows. Static lint, format and diff checks pass; no tests or builds run under CI-only mode.
Consolidate pending-history replacement branches, queue fixtures, picker mounts, preamble receipts, and the subagent RPC registry. Preserve the raw tail, exact transcript, cursor, authority, disposal and timing checks.

Remove standalone Stop proof covered by composer-direct-dictation.test.tsx: keeps text from Stop and submits only after the Send check commits. Keep shared history budgets in chat-pane-history-issuance.test.ts: handles disconnected history after a route change. Keep the populated swarm paging case; swarmGroupId is not read by the panel membership predicate.

Plain oxlint, formatting and diff-check pass. No tests or builds run under CI-only mode. Shard is 5033 lines versus the original 5336; the 25 percent target is not achieved without removing distinct retained behavior.
Remove duplicate warm-authority, revocation and concurrent-invocation proof from trigger-script.test.ts; the same named cases remain in trigger-script.admission.test.ts. Retain the unique catalog-disposal assertion with a real tool invocation.

Consolidate repeated restart/session fixtures, delivery assertions and same-path tables without dropping distinct recovery, account, policy or durability contracts. Remove delivery-preview helper call-shape and normalization parser spies while retaining observable results.

CI-only campaign: plain oxlint, oxfmt and diff-check pass; no tests or coverage run. Shard 5680 -> 5415 lines (4.7%); below the 25% target because remaining cases protect distinct behavior.
Keep on-exit terminal behavior in service.on-exit-terminal-disposition.test.ts and process-tree cleanup in process/exec.test.ts plus exec-spawn.test.ts. Retain Cron process-tree routing and custody checks.

Keep immutable snapshot behavior in service.list-page-sort-guards.test.ts, non-advancing reads in service.list-past-due.test.ts, and cross-tick concurrency in service.cross-tick-admission.test.ts. Preserve the read-operations suite for responsive active runs and sibling store mutations.

Consolidate scratch CAS at its worker boundary. Remove direct delivery-target replays covered by delivery-target.test.ts and destination-completion.test.ts, and payload conversion replays covered by service.scheduled-policy-preservation.test.ts, service/payload-merge.test.ts and service.jobs.test.ts. Keep null command-env rejection and all distinct delivery outcomes.

Reuse existing wire/model/job fixtures for session selection tests. CI-only: formatting, plain oxlint and diff-check pass; no tests or builds run. Additional 520 test lines removed; 5680 to 4895 overall, below the 25 percent target without sacrificing further distinct contracts.
Share worker and maintenance scratch setup, replace restart callback scaffolding with disposable fixtures, and consolidate preview and requester normalization scenarios without deleting distinct authority or lifecycle assertions.

Reuse the existing loopback server fixture and remove duplicated notification metadata and storage getter assertions from delivery/read responsiveness proof. Keep the original distinct provider and account topology in model-selection tests.

CI-only: formatting, plain oxlint and diff-check pass; no tests or builds run. This pass removes 174 lines, for 5680 to 4721 cumulative. The 25 percent target is still unmet because further identified deletions remove distinct behavior.
Share repeated history pagination and evidence rejection setup. Remove callback count assertions already implied by exact call-array assertions. Preserve all cases and distinct lifecycle, privacy, authority, and persistence assertions. CI-only campaign: formatting, diff-check, and plain oxlint passed; runtime verification deferred to hosted CI.
Retain private preflight proof in session-control-preflights.incognito.test.ts; SSE pending transitions in session-history-state.test.ts; captured-write replacement proof in server-runtime-subscriptions.test.ts; shared requester and metadata editing proof in github-publication-actions.test.ts; binding receipt proof in current-conversation-bindings.worker.test.ts; shutdown selector proof in server.health-request-lifetime.test.ts.

Keep active transcript-fence startup, lifecycle ordering, persistence, and effect-authority assertions. Remove obsolete mocks and consolidate same-flow defaults checks. CI-only: oxfmt, plain oxlint and diff-check passed; no test runs. Original shard 5567 to 5111 lines, below the requested 25 percent reduction.
Keep group-drop admission and late-member commit checks in one lifecycle flow. Reuse canonical history reply data and the existing timeout helper without changing the deadline. Remove an unreachable route-fixture fallback after its input assertion.

CI-only static gates: oxfmt, plain oxlint and diff-check passed. No tests run. Shard is 5567 to 5072 lines; the requested 25 percent cut remains unsubstantiated under the distinct-behavior retention constraint.
Keep finalization ordering in the diagnostics phase-timing test. Consolidate alias admission and mutation-kind assertions in the lifecycle-fence cases, and old-priority cancellation in the interrupt FIFO case. Reuse controller gates for asynchronous steering preparation.
@steipete
steipete force-pushed the tcr/land-d515-1792905374 branch from c873055 to e61169b Compare October 25, 2026 09:59
@steipete
steipete enabled auto-merge (squash) October 25, 2026 09:59
@steipete
steipete merged commit 0c982ea into main Oct 25, 2026
124 checks passed
@steipete
steipete deleted the tcr/land-d515-1792905374 branch October 25, 2026 10:31
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 26, 2026
An explicit cron run reads its authorized job definition and private scratch separately inside a SQLite read transaction. Read both in one dialect-layer LEFT JOIN so they share a statement snapshot, removing three SQL statements per SQLite run without another worker request.

The job reader keeps its all-column authorization relation, ordered narrow projection, exact returned-ID check, existing decoder/config revision and legacy creation fallback. Missing scratch still reports revision 0; deletion keeps its revision tombstone. The standalone maintenance reader remains. No schema, cache, write, receipt, claim-before-effect, delivery authority, FIFO or 64-receipt retention change.

PostgreSQL retains the shared reader's outer read-only transaction and rollback: its exact-job read is 4→3 SQL, not 4→1. SQLite exact-job is 4→1, heartbeat 3→1; PostgreSQL heartbeat remains 3→3. Accepted noncontract edges: an absent/malformed job can now require scratch SELECT privilege, and malformed job plus unsafe numeric scratch can reject the numeric data first. These do not remove the existing caller/source/cancellation checks.

The production delta is +3 lines: one joined query replaces the transaction and duplicate read while sharing NULL handling with heartbeat. Existing test files cover read-after-write, tombstones, missing jobs/monitors and both database engines. No new suite or runner is added.

Acceptance was registered before measurement: the committed `scripts/bench-cron-run.mts` drives signed WebSocket `cron.run` against an isolated synthetic Gateway/provider, once cold and twice warm. Each run must produce one start, one finish, one Responses request and exact-run history verification. Compare execution, history verification and settlement separately and together, plus shutdown and the entire invocation. The scratch owner must fall from 4→1 SQL with 1 request and 0 MAIN throughout; no cost may be deferred outside the run. Keep cold/warm separate and report median/p95/range. Three same-platform alternating pairs when calm, or one pair plus source attribution under campaign load. Counts and profiles make no latency/CPU-speed claim; timing claims require the timing lock, load below 24 and ≥5 alternating samples per arm. A 20% user-facing regression stops acceptance. Delivery mode none does not claim an external-send proof.

The same-platform explicit comparison (baseline 814e732, candidate 93a6c4) gives:

| SQL / requests / MAIN | Baseline | Candidate |
| --- | --- | --- |
| Cold execution + verification + settlement | 257 / 80 / 0 | 254 / 78 / 0 |
| Warm 1 | 247 / 64 / 0 | 235 / 60 / 0 |
| Warm 2 | 252 / 61 / 0 | 245 / 65 / 0 |
| Warm median | 249.5 / 62.5 / 0 | 240 / 62.5 / 0 |
| Warm descriptive p95 | 252 / 64 / 0 | 245 / 65 / 0 |
| Warm range | 247–252 / 61–64 / 0 | 235–245 / 60–65 / 0 |
| Shutdown | 22 / 6 / 5 | 40 / 10 / 5 |
| Whole invocation | 1383 / 356 / 58 | 1369 / 352 / 58 |

Each of the three runs completed one start, finish, Responses request and exact history verification. The scratch owner is exactly 4/1/0 → 1/1/0 in every run, all in its execution phase, with no extra or deferred scratch requests. All execution/verification/settlement phases are SQL-error-free and runtime MAIN remains zero. The count comparison is diagnostic, not an error-free full invocation: the frozen analyzer rejects two failed shutdown `state_leases` DELETEs (`database is locked`). Shutdown exceeds the 20% stop threshold; it was stopped and explicitly accepted by the coordinator as inherited after an independent main shutdown-lock reproduction. The separate SHUTDOWNLOCK lane owns that repair. The scratch join changes no lease code or writes. No latency or CPU-speed claim is made.

The frozen 3.1.5 standard workload is a different scheduled `cron.add` flow: three valid baselines gave 06.cron 231/62/0, 235/65/0, 233/63/0 (median 233/63/0), versus ordinary warm 45/12/0. The descriptive excess is 188 SQL/51 requests, not causal subtraction. One extra standard setup aborted before any Gateway; it supplies no performance evidence. The existing scratch source is identical across that baseline and the explicit baseline. Full current-standard delta is deferred to the next census.

Validation: count regression red on baseline (2 SELECTs and BEGIN/COMMIT), all 17 scratch-store tests green on the candidate; two isolated Codex P0–P2 reviews scoped-clean. The existing two-engine conformance test passed on actual SQLite and PostgreSQL 17, with catalog/trigger parity and cleanup verified. Test cost: scratch cases totaled 6.528 s (125.95 s file duration, mostly transform); the two engine cases totaled 1.846 s (260.62 s file duration, mostly transform). The candidate build and official source-freshness check passed at measured runtime head 93a6c4d; the three-sample invocation completed with the shutdown limitation above. Exact-head CI run 40176443806 completed successfully: 39 successful jobs, 26 skipped, no failures, including all three actual PostgreSQL shards, production/test types, lint, source contracts, Madge, and worker/T1/dialect ratchets. The earlier run passed types, lint and source contracts but found a worker-inventory omission: the new direct query was conservatively labeled T1. Head a187ecf corrects only inventory metadata and regenerates its snapshot: the worker snapshot and its private heartbeat helper are W, while the native Doctor reader stays T3. No runtime or SQL change is involved. The generated snapshot also catches up existing main classifications; targeted script lint and formatting pass. The two production reviews remain valid; this tooling-only correction adds no production review round. PG review approved the semantics at 68c24c4, and the coordinator explicitly carried REVIEW-OK to 93a6c4d because only benchmark TypeScript annotations changed. Candidate counts and the inherited-shutdown disposition are recorded; the corrected head’s CI and all three PG shards passed. The test-only import relocation avoids another open PR's adjacent import change; production bytes remain identical to both isolated reviews and database proof. The benchmark annotations fix CI TS7022 without changing emitted behavior.

Final-head overlap at a187ecf: complete shared-index base-versus-candidate merge-tree comparison covers 21 peers (openclaw#183410, openclaw#183285, openclaw#181057, openclaw#180871, openclaw#180286, openclaw#180139, openclaw#169241, openclaw#168956, openclaw#168615, openclaw#167546, openclaw#167471, openclaw#165039, openclaw#161997, openclaw#157922, openclaw#157693, openclaw#156613, openclaw#141004, openclaw#137788, openclaw#136476, openclaw#129388, openclaw#121204). No new source conflict paths, regions or messages. Six peers (openclaw#181057, openclaw#180871, openclaw#180139, openclaw#169241, openclaw#129388, openclaw#121204) have added or changed conflicts confined to the fully generated worker inventory. The coordinator explicitly accepted this class because main's snapshot was stale and generated outputs must be regenerated, not hand-edited. The same exact-head disposition carries PG REVIEW-OK because runtime bytes are unchanged. Exact-head CI and all three PostgreSQL shards passed.

PG checklist: (1) read-only; existing writer transaction/advisory-lock, DML/conflict and cross-store commit ordering unchanged. (2) At most one joined row via the existing composite primary keys, original job fields plus four scratch fields, unchanged 256 KiB scratch write bound. (3) No cache/generation or invalidation change; one statement snapshot, existing outer PG read transaction retained. (4) No schema/admission/identity/retry/probe change. (5) Same worker owner, one request, no MAIN expansion; target 4→1 SQL in all three real Gateway runs, with the inherited shutdown failure disclosed above. (6) Actual PostgreSQL 17 and SQLite owner conformance passed; all three final-head PostgreSQL CI shards and the other selected static checks passed.

Knip was run separately because ordinary PR CI excludes it. The canonical candidate export scan failed with 26 script, 20 production and 16 full-tree findings; none is in a changed file. All 62 occurrences (52 unique file/symbol pairs), scanner/config/compiler inputs and package inputs are unchanged from merge-base 71bc695. The only removed imports, runSqliteReadSnapshotSync and loadCronRows, both retain multiple real production consumers. Current-main diagnostic sections reported 14 script and 7 production findings; main has already repaired 40 candidate occurrences in unrelated changes. Its separate full-tree scan was intentionally stopped after the coordinator accepted the source-attributed inherited findings; it is not a passing full-main scan. No ignored exports, baselines or unrelated code were changed. The failed candidate scan is explicitly accepted as inherited; all branch changes and selected CI static checks pass.

Pre-merge shared-index refresh retains 17 open peers from that audit. Only openclaw#180871 moved (f140f16); its fresh base-versus-candidate comparison still adds conflicts solely in the generated worker inventory, within the coordinator-accepted class. No new source conflicts.

Co-authored-by: Peter Steinberger <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 26, 2026
…law#183285)

* test(ui): deslop s0163 tests

Factor repeated startup, theme, navigation, and selection test setup. Cover native identity projection in the existing real iOS handshake case (preserves the shipped iPhone/iPad nonpersistent identity handoff), replacing the narrower settings startup duplicate.

CI-only shard: formatting, plain oxlint, and diff-check passed; no test or coverage runs. Reduce 4600 to 4528 lines. Below the 25% target: remaining cases protect distinct auth, approval, scope, recovery, and lifecycle ordering contracts.

* test(ui): remove duplicated s0163 test layers

Keep application authority, rollback, stale-result, and teardown interleavings while removing narrower UI replays. Creation keepers: agent-creation-immediate.e2e prepares creation from the cold selector; chat-page-pending-create replaces previous transcript through creation; app-sidebar-pending-agent and agent-create-dialog own pending presentation and submission.

Preference keepers: settings-prefs-reconnect.e2e covers read-only reconnect, server deltas under pending local intent, and sibling cancellation; chat-page and sidebar-layout-persistence cover split/sidebar serialization. Route keepers: presentation switches cover session retention; missing-session covers retirement; route-resolution, route-resolution-identity, and route-resolution-handoff own URL ambiguity and hints.

Native tests assert byte-exact proof forwarding instead of re-verifying a fixture-generated signature; gateway/device-auth owns canonical payload vectors. Update campaign transition remains as a focused owner test; update-triage.e2e owns passive automatic failure UI and explicit diagnosis. Notification variants retain each scope/ranking/recovery branch.

CI-only: plain oxlint, formatting, and diff-check passed; no tests/build/coverage. Additional 481 lines removed; original shard 4600 -> 4047 (12.0%), still below 25% because remaining cases retain distinct boundary/lifecycle proof.

* test(ui): consolidate s0163 scenario fixtures

Share the five diagnostic outcome fixtures without removing success, invalidation, consumed admission, synchronous throw, or rejected-promise coverage. Merge no-model display into bounded/redacted diagnostic presentation, and valid command-span parsing into the valid exec-event contract. Preserve exact span boundary and invalid-range assertions.

Keep one prepared-send authority recheck; scope-specific predicate keepers remain in overlays-update-triage: retires a queued diagnostic on Gateway/profile/client/reconnect changes without starting another. Bootstrap.test's synchronous fragment cleanup and gateway-store.auth's real credential retirement replace narrower settings projections. Server-prefs.navigation preserves newer same-tab/storage intent across an older ack and covers the removed scalar replays.

Centralize per-test renderer and mounted-theme cleanup, retaining disposal before storage teardown and terminal transition order. Reuse the existing real chat-submission owner; remove duplicated positive RPC-shape assertions while retaining authority denials and custom creation identity.

CI-only: plain oxlint, formatting, and diff-check passed; no tests/build/coverage. Additional 177 lines removed. Original shard 4600 -> 3870 (15.9%); still below the 25% target with remaining distinct auth/approval/persistence/lifecycle proof retained.

* test(commands): deslop s0164 tests

* test(commands): remove duplicate s0164 proof layers

Keep namespace admission at gateway-lock.namespace and gateway-state-owner; retain command custody and path guards. Keep fresh Doctor forwarding at update-command-fresh-doctor; retain transcript scan and receipt behavior.

Keep ordinary cron write refusal at doctor/shared/default-agent-role-materialization.write; retain transactional removal. Keep schema recovery at doctor-migration-backup and sqlite-migration-scoped-snapshot. Keep native retirement scope at manifest-model-suppression and xai-auto-retirement. Keep CLI/TUI labels at status-overview-rows and tui-command-handlers.

Consolidate onboarding branch fixtures and remove repeated delivery normalization projections already covered by delivery-context and state-migrations.legacy-session-store. Static lint, format and diff checks passed; runtime tests intentionally deferred to CI.

* test(plugins): deslop s0160 tests

Consolidate repeated metadata, discovery, consent and usage-listener fixtures. Keep all expanded scenarios and exact security, accounting, recovery and lifecycle assertions. Merge only the two signal-replacement setup paths into one table.

CI-only static proof: oxfmt, plain oxlint and diff-check. Shard lines 5406 -> 5267; declarations 118 -> 117; expanded cases remain 201. Below the 25% target: remaining suites protect distinct boundaries and already share fixtures. No production changes or test execution.

* test(plugins): remove redundant s0160 test layers

Consolidate runtime discovery branches and category enrichment flows; remove snapshot mock plumbing covered by provider-discovery.capture-lifetime and workspace projection covered by control-plane-workspace.

Remove cache custody replays covered by loader.instance-cleanup, plugin-instance.retention and host-hook-cleanup.retirement. Remove path acquisition replays covered by manifest-registry and discovery owner tests. Lossy V1 conversion stays in decisions/runtime-v2; rejected-outcome usage stays in this shard.

Consolidate Claw metadata assertions into startup transfer and snapshot assertions into pinned-root concurrent refresh. Recovery-location mapping stays in cli/plugins-location-bridges; lease-scoped index projections stay in installed-plugin-index-store. Remove copied loader facade inventories and native helper output replays covered by loader.capability-factory, runtime-config-ownership, runtime-session-events and agents/model-runtime-policy.

Official provenance exemptions stay covered by capability-consent and official-external-install-records. Retain unique recovery allocation failures, custody errors and lifecycle interleavings. No production changes, files deleted, test runs or coverage runs. oxfmt, plain oxlint and diff-check pass. Original shard 5406 lines; final 4759 lines, still below the requested 25 percent reduction.

* test(plugins): consolidate s0160 owner proof

Remove duplicated billing observations covered by runtime-model-usage and runtime-llm-diagnostics tests. Keep units-only accounting and invocation-local attribution.

Replace metadata byte and sync-reader replays with the existing openclaw-state-db-readonly and installed-plugin-index-store owner coverage. Full native receipt persistence remains in plugin-generation-artifact.admission; retain worker publication and stale-owner checks.

Remove prepared-loader cache replay covered by runtime/load-context and loader.capability-factory. Retire the tokenless name-exhaustion scenario after d24afbf removed rename/tombstone handling; retain locked-root retries.

Consolidate signal fixtures, cache and catalog fixtures, and recovery cleanup. Preserve consent, path, lifecycle and durability boundaries. Shard 5406 to 4264 lines; 25 percent target not reached without removing distinct proof. CI-only: plain oxlint, oxfmt and diff checks pass; tests not run.

* test(outbound): consolidate s0165 branch fixtures

Consolidate reserved-target and legacy reconciliation branches, native action fixtures, generic binding setup, and writer-gate preparation. Remove internal argument dumps, duplicate object identity checks, and staging preflight assertions whose retained real-send assertions prove the same outcome.

Live-producer protection remains in delivery-queue.producer-recovery.test.ts: preserves an active producer even when its attempt budget is exhausted, and deliver.enqueue-worker.integration.test.ts: keeps startup/recurring recovery inspection from preempting a committed live producer. Data URL limits remain in message-action-params.attachments.test.ts: rejects an oversized parameterized data URL before decoding its payload. Generic metadata touch remains in current-conversation-bindings.test.ts: touches the latest committed target and complete opaque metadata.

CI-only static gates: plain oxlint exits 0, oxfmt and diff check pass; no test/build/coverage runs. Additional cut is 4548 -> 4266 lines. Cumulative 5092 -> 4266 (16.2%), short of 25%; distinct authority, custody, settlement-ordering, and plugin contracts are retained.

* test(commands): deslop s0168 tests

Consolidate repeated command fixtures and assertions without deleting distinct cases. The header repair test retains exact event JSON preservation, which also proves the removed duplicate id/parent/target projection assertion.

Keep distinct consent, credential, migration, recovery, and lifecycle paths. CI-only campaign: format, plain oxlint, and diff checks passed; runtime proof is deferred to hosted CI. The honest line reduction is below the 25 percent target.

* test(commands): remove duplicated s0168 test layers

Remove nine general triage cases duplicated by the named consent, JSON handoff, diagnostics, Windows launch, and failure cases in triage.test.ts. Keep external recovery-specific coverage in this shard.

Retirement hashing/progress and restored-mtime mutation remain covered by the same-named cases in doctor-session-sqlite.retirement-performance.test.ts. Shared-manifest reads and retained dependency bytes remain covered by doctor-session-sqlite.retirement-mutations.test.ts.

Consolidate duplicate installer outcomes, onboarding retries and alias checks, account rejection, and terminal-reply variants. Terminal punctuation variants remain covered by agent-run-terminal-reply.test.ts and terminal-resolution.test.ts. Remove internal wiring inventories and redundant fixture cleanup without dropping distinct state, authority, or lifecycle checks.

CI-only: formatting, plain oxlint, and diff checks passed. No tests or coverage run. Cumulative shard reduction is 5551 to 4527 lines, below the requested 25 percent.

* test(plugins): deslop s0166 tests

Factor fresh-index and clone-destination setup; reuse the rich disabled-plugin fixture and table existing Git selector assertions. Preserve all distinct cases and exact security assertions.

The compiled-alias and native-evaluation-error tests retain no-Jiti assertions, which cover the removed redundant transformer checks. The web-fetch in-flight test retains its empty result and no-load assertions instead of deriving expected internal options from production code.

CI-only campaign: formatting, plain oxlint, and diff-check pass; tests and coverage deferred to hosted CI. Reduction is 48 of 6123 lines; remaining authority, lifecycle, SDK, and path-safety coverage prevents the requested 25 percent cut.

* test(plugins): remove duplicate s0166 test layers

Keep uninstall ownership proof in management-service.uninstall-ownership.test.ts, SQLite/incognito proof in registry.runtime-config.sqlite.test.ts and registry.runtime-incognito.test.ts, and shared web/fetch proof in web-provider-runtime-shared.test.ts and web-fetch-providers.runtime.test.ts.

Retain SDK alias and source-prescan proof in sdk-alias-normalization.test.ts and plugin-module-loader-cache.source-prescan.test.ts; use the real installed-plugin-index.symlink.test.ts discovery boundary. Host model-policy and descriptor proof remains in loader.runtime-registry.test.ts. Simplify fixture-owned cache setup and remove mock-authored sorting/policy replays.

CI-only validation: formatting, plain oxlint, and diff-check pass. No tests or coverage run. Cumulative shard LOC falls from 6123 to 4839 (21 percent); distinct authority, lifecycle, installation custody, and CLI contracts prevent further justified cuts to the 25 percent target.

* test(sessions): deslop s0167 tests

Remove the unreferenced duplicate history-worker harness; the active harness and every error/custody case remain in session-history-worker-errors.test.ts. Remove its five stale mock-baseline entries.

Narrow the logical-read preparation gate to its only caller, consolidate ACP fixtures, retain all six migration shapes, and trim small fixture literals. Preserve all 95 test declarations and all storage, authority, redaction, and lifecycle assertions.

CI-only: plain oxlint, oxfmt, and diff checks passed. No runtime tests or coverage run. Test LOC 5429 to 5356; orphan test support 227 to 0. Below the 25 percent target because further case deletion would remove distinct durability and lifecycle proof.

* test(sessions): consolidate s0167 duplicate test layers

Remove the budget cap-entry suite and fixtures duplicated by session-history-budget-owner-parity.test.ts. Keep both shared-store receipt deletion and nonshared foreign-candidate rejection at that owner.

Remove legacy migration query-shape replay: session-retirement-read.test.ts keeps detailed detection after a foreign commit; quarantine tests retain doctor repair. Consolidate cold admission and redundant cohort release checks, and reduce equivalent error-cleanup variants.

Replace transcript fake-clock/log instrumentation with direct read-snapshot callback observation. Remove internal SQL-shape observations while retaining bounded-work, durability, ordering, authority, and redaction proof.

CI-only: no tests or coverage run. Plain oxlint, oxfmt and diff checks pass. Additional test LOC 5356 to 4788; original shard 5429 to 4788 (11.8 percent). Further reduction to 25 percent not justified without removing distinct retained behavior.

* test(sessions): shrink s0167 fixtures and repeated proof

Consolidate parse-outside-snapshot and per-slice ordering into one table retaining both paths; share transcript event construction. Remove unused simulated pool retirement behavior that no history-pool callback installs.

Keep dirty initial admission in preflight/sweep and sorted/reclassified batches in the pending-batch test. Fold unresolved-clean migration assertions into the linear-fleet case. Doctor retirement disposal retains the implicit prompt-rewrite import path; preserve root and opaque variants here.

Reuse existing same-directory import-state and typed memory fixtures; reduce ACP fixture duplication, result envelopes, and writer/logging setup. Empty successor-root and no-measurement assertions subsume duplicate budget SQL/queue probes.

CI-only: no tests or coverage run. Plain oxlint, oxfmt, and diff checks pass. Additional LOC 4788 to 4624; original 5429 to 4624 (14.8 percent). Required 25 percent remains unmet; further reviewed candidates retain distinct durability, authority, privacy, or lifecycle behavior.

* test(infra): deslop s0169 tests

Remove duplicate transaction and interleaving cases retained in package-update-steps.transaction.test.ts, postinstall cases retained in package-update-steps.postinstall.test.ts, and stream failure cases retained in session-cost-usage.stream-errors.test.ts.

Consolidate isolated fixtures, resource cleanup, and repeated assertions without removing distinct authority, durability, path, or accounting checks. Restore local package fixtures in place of the missing helper import.

CI-only validation: plain oxlint, oxfmt, and git diff --check. No tests or coverage run. Shard reduction remains below 25% because retained cases protect distinct safety and lifecycle behavior.

* test(infra): consolidate s0169 fixtures and branch cases

Share staged npm installer fixtures, executable-path branch cases, resource cleanup, SQL observers, and accounting assertions. Replace rollback mock counters with the specific observable injected failure cause.

Rechecked remaining sibling layers: transcript worker isolation, compressed archive precedence, integrity invalidation, and readiness ordering have distinct retained proof. No further whole-case or whole-file deletion was supported. CI-only validation: plain oxlint, oxfmt, git diff --check; no tests run. The requested 25 percent shard reduction remains unmet.

* test(infra): reduce s0169 duplicate assertions and scenarios

Collapse same-branch clock, executable and permission variants; reuse filesystem, readiness and worker fixture assertions; remove internal command inventories and retry counters while preserving observable failures and durability.

Retain transcript off-thread listing and private source projection in the full stored-read case. Detailed pagination/export and exact-retry contracts remain in src/transcripts/library.test.ts and store.test.ts. Diagnostic detail remains in update-candidate-state.diagnostics.test.ts and schema-lifetime.test.ts.

CI-only: plain oxlint, oxfmt, and git diff --check pass. No test, coverage, or build runs. Shard LOC 5820 to 4906 (15.7 percent); 25 percent target remains unmet rather than dropping distinct authority, custody, or persistence proof.

* test(chat): deslop s0170 tests

* test(chat): consolidate s0170 assertion layers

Remove reasoning cache identity checks duplicated by the reasoning row of components/chat-transcript-projection-scale.test.ts: projects %s deltas without rereading 3,000 retained messages. The retained thinking hydration test also exercises same-item text updates.

Consolidate offline outbox presentation in keeps offline outbox rows editable across connection and sending updates. Retain model loading presentation in the failed-refresh matrix; warm-open and sign-in tests retain their distinct owner/fencing checks. Dictation glyph coverage remains in composer-direct-dictation.test.tsx.

Trim unused interrupted-input fixture data; chat-pending-inputs.test.ts retains interrupted custody and presentation proof. Reuse typed lifecycle rows. Static lint, format and diff checks pass; no tests or builds run under CI-only mode.

* test(chat): consolidate s0170 fixtures and duplicate proof

Consolidate pending-history replacement branches, queue fixtures, picker mounts, preamble receipts, and the subagent RPC registry. Preserve the raw tail, exact transcript, cursor, authority, disposal and timing checks.

Remove standalone Stop proof covered by composer-direct-dictation.test.tsx: keeps text from Stop and submits only after the Send check commits. Keep shared history budgets in chat-pane-history-issuance.test.ts: handles disconnected history after a route change. Keep the populated swarm paging case; swarmGroupId is not read by the panel membership predicate.

Plain oxlint, formatting and diff-check pass. No tests or builds run under CI-only mode. Shard is 5033 lines versus the original 5336; the 25 percent target is not achieved without removing distinct retained behavior.

* test(cron): deslop s0171 tests

Remove duplicate warm-authority, revocation and concurrent-invocation proof from trigger-script.test.ts; the same named cases remain in trigger-script.admission.test.ts. Retain the unique catalog-disposal assertion with a real tool invocation.

Consolidate repeated restart/session fixtures, delivery assertions and same-path tables without dropping distinct recovery, account, policy or durability contracts. Remove delivery-preview helper call-shape and normalization parser spies while retaining observable results.

CI-only campaign: plain oxlint, oxfmt and diff-check pass; no tests or coverage run. Shard 5680 -> 5415 lines (4.7%); below the 25% target because remaining cases protect distinct behavior.

* test(cron): remove duplicate owner layers in s0171

Keep on-exit terminal behavior in service.on-exit-terminal-disposition.test.ts and process-tree cleanup in process/exec.test.ts plus exec-spawn.test.ts. Retain Cron process-tree routing and custody checks.

Keep immutable snapshot behavior in service.list-page-sort-guards.test.ts, non-advancing reads in service.list-past-due.test.ts, and cross-tick concurrency in service.cross-tick-admission.test.ts. Preserve the read-operations suite for responsive active runs and sibling store mutations.

Consolidate scratch CAS at its worker boundary. Remove direct delivery-target replays covered by delivery-target.test.ts and destination-completion.test.ts, and payload conversion replays covered by service.scheduled-policy-preservation.test.ts, service/payload-merge.test.ts and service.jobs.test.ts. Keep null command-env rejection and all distinct delivery outcomes.

Reuse existing wire/model/job fixtures for session selection tests. CI-only: formatting, plain oxlint and diff-check pass; no tests or builds run. Additional 520 test lines removed; 5680 to 4895 overall, below the 25 percent target without sacrificing further distinct contracts.

* test(cron): consolidate s0171 fixtures and branch tables

Share worker and maintenance scratch setup, replace restart callback scaffolding with disposable fixtures, and consolidate preview and requester normalization scenarios without deleting distinct authority or lifecycle assertions.

Reuse the existing loopback server fixture and remove duplicated notification metadata and storage getter assertions from delivery/read responsiveness proof. Keep the original distinct provider and account topology in model-selection tests.

CI-only: formatting, plain oxlint and diff-check pass; no tests or builds run. This pass removes 174 lines, for 5680 to 4721 cumulative. The 25 percent target is still unmet because further identified deletions remove distinct behavior.

* test(gateway): deslop s0172 tests

Share repeated history pagination and evidence rejection setup. Remove callback count assertions already implied by exact call-array assertions. Preserve all cases and distinct lifecycle, privacy, authority, and persistence assertions. CI-only campaign: formatting, diff-check, and plain oxlint passed; runtime verification deferred to hosted CI.

* test(gateway): remove redundant s0172 proof layers

Retain private preflight proof in session-control-preflights.incognito.test.ts; SSE pending transitions in session-history-state.test.ts; captured-write replacement proof in server-runtime-subscriptions.test.ts; shared requester and metadata editing proof in github-publication-actions.test.ts; binding receipt proof in current-conversation-bindings.worker.test.ts; shutdown selector proof in server.health-request-lifetime.test.ts.

Keep active transcript-fence startup, lifecycle ordering, persistence, and effect-authority assertions. Remove obsolete mocks and consolidate same-flow defaults checks. CI-only: oxfmt, plain oxlint and diff-check passed; no test runs. Original shard 5567 to 5111 lines, below the requested 25 percent reduction.

* test(gateway): consolidate remaining s0172 fixture duplication

Keep group-drop admission and late-member commit checks in one lifecycle flow. Reuse canonical history reply data and the existing timeout helper without changing the deadline. Remove an unreachable route-fixture fallback after its input assertion.

CI-only static gates: oxfmt, plain oxlint and diff-check passed. No tests run. Shard is 5567 to 5072 lines; the requested 25 percent cut remains unsubstantiated under the distinct-behavior retention constraint.

* test(sessions): deslop s0173 tests

Keep finalization ordering in the diagnostics phase-timing test. Consolidate alias admission and mutation-kind assertions in the lifecycle-fence cases, and old-priority cancellation in the interrupt FIFO case. Reuse controller gates for asynchronous steering preparation.

* test: retain boundary coverage identified during review

* test: repair campaign fixture replay against current owners

* test: retain owner fixtures and isolation in d515
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui commands Command implementations gateway Gateway runtime size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant