Repository navigation
test(agents,gateway,plugins,ui): remove low-value tests (batch d049) - #169036
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesThis PR removes redundant tests and test support, shrinks a baseline, and removes an unused private MCP re-export. Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this PR open as useful, maintainer-directed test maintenance; no discrete introduced defect was identified in the reviewed changes. Priority: P3 Before merge
FindingsNone. Provenance
Agent review detailsHow this fits togetherThe affected tests supply synthetic inputs to agent, Gateway, protocol, configuration, plugin, and UI owners, then report contract assertions to CI. flowchart LR
A[Test fixtures] --> B[Vitest suites]
B --> C[Production owners]
C --> D[Contract assertions]
D --> E[CI results]
Technical reviewBest possible solution: Keep a smaller test suite that preserves independent security, regression, lifecycle, and public-contract coverage. Do we have a high-confidence way to reproduce the issue? This maintenance PR reports no product bug to reproduce; current CI annotations independently establish the missing-context UI test failure. Is this the best way to solve the issue? Removing duplicate cases and unused test seams is appropriate; reviewed boundary scenarios and the restored package contracts support the approach. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ac8a432aafa7. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfacePR surface statistics unavailable: the file list is incomplete. Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 11, 2026, 6:06 AM ET / 10:06 UTC (Revision 2). |
87aaa2f to
cfc0872
Compare
|
Rebased onto current main after The standalone baseline browser attempts did not establish product failure: one lacked the pinned Bun runtime, and the next lacked the baseline UI package links. A fully installed baseline attempt was stopped once the canonical fix landed. No admin exception is being claimed; the fresh hosted run is the gate. The stale transcript max-lines suppression found by the first hosted run was removed and passed targeted type-aware lint. The final retention correction passed 730 tests across 16 files; the earlier broader batch run passed all 135 selected files across 20 shards. |
…penclaw#169036) * test(agents): deslop x1154 tests * test(msteams): deslop x1147 tests * test(gateway-protocol): deslop x1159 tests * test(config): deslop x1137 tests * test(ui): deslop x1158 tests * test(llama-cpp): deslop x1152 tests * test(gateway): deslop x1162 tests * test(gateway): deslop x1136 tests * test(config): deslop x1160 tests * test(msteams): deslop x1164 tests * test: retain independent boundary contracts in batch d049 * test: retain package contracts and remove stale lint suppression
First-parent upstream f4f4868..069a5b8 (11 commits: openclaw#168607 batch input acceptance and run adoption, 7158f2b, openclaw#168815, openclaw#168882 update and service lifecycle, ec5fe47, openclaw#169036 test batch d049, 4db95aa, cedb310 web-search split, openclaw#169056, openclaw#169061, and openclaw#169064 release settled writes behind read cursors). Conflicts: - user-turn-transcript.ts: upstream moved persistUserTurnTranscript into user-turn-transcript.persistence.ts. Our earlier line-cap move (user-turn-transcript.persist.ts) was a pure move, so it is retired in favour of upstream's module. Our session-delivery ack replacement is kept and now also refuses once upstream's committedInput is set (the same state upstream's hasPersisted counts). - agent-runner-execute.context-read.test.ts: both import additions kept. Refs #1475 Co-Authored-By: Claude Opus 5.5 <[email protected]>
What Problem This Solves
Removes redundant test cases, source inventories, and implementation-mirroring assertions from ten already-validated test-audit shards.
User Impact
No user-visible behavior change. This is test maintenance: distinct security, regression, and lifecycle contracts remain covered. The only production change removes an unused re-export from the standalone MCP entrypoint; its internal function and canonical module remain.
Why This Change Was Made
The campaign retained stronger owner-boundary coverage and removed duplicate variants rather than folding cases or weakening assertions. Replayed all ten commits, in order, onto
4d961962c56c59fc0c0d1f0454ffc1da5d37d6cc. No conflicts or skipped commits. After independent review, retained the channel import-boundary suite and routing, restored the complete x1160 package/SDK contract shard and ingress-wiring inventory, and retained explicit non-owner/proxy cases. The x1160 commit was replayed but its reduction was subsequently withdrawn. Removed a stale max-lines suppression found by hosted type-aware lint. Git automatically merged test inventories and shrink-only max-lines entries; newer main behavior remains outside the branch diff.Production LOC: +0/-2. Test LOC: +510/-12,461 (net -11,951). Test-support/config LOC: +0/-94. Total: +510/-12,557 across 122 files. The support category includes the deleted 93-line test fixture. No currently CODEOWNERS-matched paths are touched.
Evidence
pnpm install --frozen-lockfile --prefer-offline, targetedoxfmt,git diff --check, and plainoxlint -c .oxlintrc.json: passed (Oxlint exit 0).tbx_01m4n3f7wyssw7byba975w6bp1:CI=1 pnpm install --frozen-lockfile --prefer-offline && CI=1 pnpm test <135 files>passed all 20 Vitest shards in 397.70 seconds; remote command 485.707 seconds including setup/builds. Included every surviving changed test, the retained channel import suite, shared SSRF classification, llama installation/checksum tests, and plugin SDK surface checks. The E2E runtime build also passed.OPENCLAW_TESTBOX=1 node scripts/check-changed.mjs --base 4d961962c56c59fc0c0d1f0454ffc1da5d37d6cc -- <changed paths>ran ontbx_01m4n3am2twck87kk9d479k867: conflict-marker and line-cap checks passed; stopped at the unrelated max-lines suppression insrc/web-search/runtime.test.ts. Later changed-check steps did not run.c3c01dfbabc1a0544b9dbee89e878ec70f4a6761on the same focused-test lease reproduced the exact failure withCI=1 pnpm check:max-lines-ratchet --base c3c01dfbabc1a0544b9dbee89e878ec70f4a6761(exit 1): “New max-lines suppressions are forbidden” forsrc/web-search/runtime.test.ts. Neither that source file nor the ratchet implementation is changed by this batch.tbx_01m4n5kg5n9ns7fqwdv21ywa65: 16 files / 730 tests passed across three shards in 37.53 seconds, followed by targeted type-aware Oxlint with zero warnings/errors. Remote command 134.923 seconds. Correction Testbox run.src/agents/session-transcript-repair.test.ts; it is now removed and targeted type-aware lint passes. The same run also failedchecks-ui (2/3)with missing Solid context in the untouched chat/MCP-app area of its newer merge base. Baseline attribution is being investigated separately; it is not claimed as a passing check.t3.smalland Testbox became ready. No local heavy test/typecheck was run. Completed validation leases stopped; the current-main browser-attribution lease remains active until its probe finishes.The table uses the in-shard measurements, adjusted for the explicitly restored tests and stale-comment removal; these are not fresh coverage claims for the rebased tree. All shards met the <=1% covered-statement/branch-loss gate; no cases were folded.
Review disposition
Accepted: retain repository-wide channel import guardrails and routing, explicit non-owner permission denial, talk-only default-write denial, custom denied proxy HTTP-200 handling, channel ingress-wiring inventory, and the complete x1160 package/SDK contract shard. Restorations preserve the original contracts byte-for-byte; no replacement enforcement was invented.
Four findings rejected with source evidence: the runtime API and scheduled-turns files still exist, so their inventory entries are valid; mapped-loopback classification is already covered through the same
isPrivateIpAddressowner insrc/infra/net/ssrf.test.ts, while Teams retains all-answer rejection; removed llama asset rows copied the source catalog, whilellama-server-install.test.tsretains checksum and platform installation contracts.Correction review also identified an existing extensionless-import blind spot in the retained guard's
collectModuleSpecifiers. The restored file is byte-identical to the base; this is recorded as a follow-up rather than silently changing boundary enforcement in a deletion batch.Original shard paths (x1160 and explicitly retained paths have no final diff)
x1154
src/agents/sandbox-agent-config.agent-specific-sandbox-config.e2e.test.tssrc/agents/sandbox-create-args.test.tssrc/agents/sandbox-media-paths.test.tssrc/agents/sandbox-merge.test.tssrc/agents/sandbox-paths.test.tssrc/agents/sanitize-for-prompt.test.tssrc/agents/scheduled-tool-policy.test.tssrc/agents/session-activity-notes.test.tssrc/agents/session-model-ref.test.tssrc/agents/session-placement-admission.test.tssrc/agents/session-runtime-compat.test.tssrc/agents/session-transcript-repair.attachments.test.tssrc/agents/session-transcript-repair.test.tsx1147
extensions/msteams/src/monitor-handler/inbound-media.test.tsextensions/msteams/src/monitor-handler/reaction-handler.test.tsextensions/oc-path/src/oc-path/tests/jsonc/edit.test.tsextensions/oc-path/src/oc-path/tests/jsonc/parse.test.tsextensions/oc-path/src/oc-path/tests/jsonc/resolve.test.tsextensions/parallel/src/parallel-web-search-provider.test.tsextensions/tlon/src/urbit/base-url.test.tsextensions/tlon/src/urbit/story.test.tsextensions/tlon/src/urbit/upload.test.tsscripts/lib/channel-contract-test-plan.mtsscripts/lib/ci-proof-test-inventory.mtsscripts/test-projects.test-support.mtssrc/channels/message-access/context-builder-callers.test.tssrc/channels/message-access/identifier-authentication.test.tssrc/channels/plugins/contracts/channel-import-guardrails.test.tssrc/channels/plugins/contracts/plugin-shape.contract.test.tstest/vitest/vitest.contracts-paths.mjsx1159
packages/gateway-protocol/src/schema/agent.test.tspackages/gateway-protocol/src/schema/agents-models-skills.test.tspackages/gateway-protocol/src/schema/audit-run.test.tspackages/gateway-protocol/src/schema/audit.test.tspackages/gateway-protocol/src/schema/board.test.tspackages/gateway-protocol/src/schema/config.test.tspackages/gateway-protocol/src/schema/environments.test.tspackages/gateway-protocol/src/schema/error-codes.test.tspackages/gateway-protocol/src/schema/logs-chat.test.tspackages/gateway-protocol/src/schema/openclaw.test.tspackages/gateway-protocol/src/schema/session-github-publication.test.tspackages/gateway-protocol/src/schema/session-placement.test.tspackages/gateway-protocol/src/schema/sessions-catalog.test.tspackages/gateway-protocol/src/schema/sessions-create.test.tspackages/gateway-protocol/src/schema/sessions-patch.test.tspackages/gateway-protocol/src/schema/snapshot.test.tsx1137
config/max-lines-baseline.txtsrc/config/plugin-auto-enable.channels.test.tssrc/config/plugin-auto-enable.providers.test.tssrc/config/plugin-install-record-map.test.tssrc/config/recovery-policy.test.tssrc/config/runtime-group-policy.test.tssrc/config/runtime-overrides.test.tssrc/config/schema.base.generated.test.tssrc/config/schema.channel-field-help.test.tssrc/config/schema.help.quality.test-fixtures.tssrc/config/schema.help.quality.test.tssrc/config/schema.hints.test.tssrc/config/schema.test.tssrc/config/sessions.test.tssrc/config/talk.normalize.test.tssrc/config/types.secrets.resolution.test.tsx1158
ui/src/components/agent-scope-control.test.tsui/src/components/agent-select.test.tsui/src/components/app-sidebar-session-catalog-live.test.tsui/src/components/app-sidebar-session-catalogs.test.tsui/src/components/app-sidebar-session-navigation-logic.test.tsui/src/components/app-sidebar-session-pr-indicators.test.tsui/src/components/app-sidebar-session-types.test.tsui/src/components/command-palette.test.tsui/src/components/config-form-array-integrity.browser.test.tsui/src/components/config-form-collection-defaults.browser.test.tsui/src/components/config-form-composition-integrity.browser.test.tsui/src/components/config-form-integrity.browser.test.tsui/src/components/config-form-map-integrity.browser.test.tsui/src/components/config-form-rejection-integrity.browser.test.tsui/src/components/config-form-scalar-integrity.browser.test.tsx1152
extensions/llama-cpp/src/llama-server-extract.test.tsextensions/llama-cpp/src/managed-server.test.tsextensions/llama-cpp/src/model-catalog.test.tspackages/ai/src/anthropic-cache-carrier-parity.test.tspackages/ai/src/anthropic-context-management-parity.test.tspackages/ai/src/env-api-keys.test.tspackages/ai/src/model-utils.test.tspackages/ai/src/openai-completions-messages.test.tssrc/infra/net/proxy/proxy-lifecycle.test.tssrc/infra/net/proxy/proxy-validation.test.tssrc/mcp/channel-bridge.test.tssrc/mcp/channel-server.test.tssrc/mcp/openclaw-tools-serve.test.tssrc/mcp/openclaw-tools-serve.tssrc/mcp/plugin-tools-serve.test.tsx1162
src/gateway/server-methods/sessions.dispatch.device.test.tssrc/gateway/server-methods/sessions.dispatch.test.tssrc/gateway/server-methods/setup-admission.test.tssrc/gateway/server-methods/system-agent-approval-authority.test.tssrc/gateway/server-methods/system-agent-session-ownership.test.tssrc/gateway/server-methods/system-agent-setup-resolution.test.tssrc/gateway/server-methods/system-agent.session-lifecycle.test.tssrc/gateway/server-methods/system-changes.test.tssrc/gateway/server-methods/system-event-routing.test.tssrc/gateway/server-methods/task-suggestions.test.tssrc/gateway/server-methods/terminal.test.tssrc/gateway/server-methods/themes.test.tsx1136
src/gateway/server-methods/agents-workspace.test.tssrc/gateway/server-methods/attach.test.tssrc/gateway/server-methods/audit.test.tssrc/gateway/server-methods/canvas.test.tssrc/gateway/server-methods/channels.start.test.tssrc/gateway/server-methods/channels.status.test.tssrc/gateway/server-methods/chat-broadcast.test.tssrc/gateway/server-methods/chat-history-delta.test.tssrc/gateway/server-methods/chat-history-handler.cli-import.test.tsx1160
config/max-lines-baseline.txtscripts/lib/ci-proof-test-inventory.mtsscripts/lib/plugin-contract-test-plan.mtsscripts/test-projects.test-support.mtssrc/plugins/contracts/boundary-invariants.test.tssrc/plugins/contracts/config-boundary-guard.test.tssrc/plugins/contracts/config-footprint-guardrails.test.tssrc/plugins/contracts/extension-package-project-boundaries.test.tssrc/plugins/contracts/extension-runtime-dependencies.contract.test.tssrc/plugins/contracts/plugin-entry-guardrails.test.tssrc/plugins/contracts/plugin-sdk-package-contract-guardrails.test.tssrc/plugins/contracts/plugin-sdk-runtime-api-guardrails.test.tssrc/plugins/contracts/plugin-sdk-subpaths.test.tssrc/plugins/contracts/registry.contract.test.tssrc/plugins/contracts/run-context-lifecycle.contract.test.tssrc/plugins/contracts/scheduled-turns.contract.test.tssrc/plugins/contracts/session-actions.contract.test.tssrc/plugins/contracts/session-attachments.contract.test.tsx1164
extensions/msteams/src/action-threading.test.tsextensions/msteams/src/approval-card-submit.test.tsextensions/msteams/src/approval-card.test.tsextensions/msteams/src/approval-handler.runtime.test.tsextensions/msteams/src/approval-native.test.tsextensions/msteams/src/channel.actions.test.tsextensions/msteams/src/errors.test.tsextensions/msteams/src/file-consent-helpers.test.tsextensions/msteams/src/file-consent.test.tsextensions/msteams/src/format.test.tsextensions/msteams/src/graph-group-management.test.tsextensions/msteams/src/graph-members.test.tsextensions/msteams/src/graph-teams.test.tsextensions/msteams/src/graph-thread.test.tsextensions/msteams/src/graph-upload.test.ts