Repository navigation
test(core,plugins,ci): remove low-value tests (batch d096) - #161092
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: blocked before merge. Reviewed September 29, 2026, 6:35 AM ET / 10:35 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch consolidates and removes tests across agent messaging, reply queues, plugins, CLI commands, and CI guards while retaining test file identities. Merge readiness⛔ Blocked before merge - 5 items remain This is a coherent test cleanup, but three removed cases leave distinct ClawHub card, catalog-outage, and managed-media behaviors without direct regression coverage. Priority: P3 Review scores
Verification
How this fits togetherThe agent message tool turns catalog results and media references into replies. Those replies reach either the Control UI transcript or a channel attachment, and the changed tests check those boundaries. flowchart LR
A[Test runner] --> B[Regression suites]
C[Catalog results] --> D[Message tool]
E[Workspace media] --> D
B -. verifies .-> D
D --> F{Reply route}
F --> G[Control UI transcript]
F --> H[Channel attachment]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceTests -25301. Total -25301 across 44 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the test reduction while retaining focused checks for card persistence, catalog failure feedback, and managed-artifact delivery through a remote bridge. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR reports no live bug. The deleted regression cases are directly visible in the pinned source diff. Is this the best way to solve the issue? No, not as submitted: the consolidation is useful, but the three distinct boundary checks should remain. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against be271241b0c0. LabelsLabel changes:
Label justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
9e3e23f to
574442a
Compare
Restore distinct authorization, concurrency, provenance, sanitization, and cleanup regression cases identified in review. Keep retained relay assertions on the current registration contract and ensure the throwing-retention fixture actually reaches its predicate. Fix an unused Discord emoji-list mock response exposed by the reduced execution order.
Keep the seven original test files and their three routing entries while retaining the in-file case reductions. The hourly planner derives timing selectors from tracked test paths; preserve those identities instead of changing its cap. Plain-main and candidate planner checks pass, and the full changed-file gate plus 48-file focused run pass.
574442a to
33599d6
Compare
…161092) * test(agents): deslop t0169 tests * test(discord): deslop t0170 tests * test(cli): deslop t0116 tests * test(cli): deslop t0167 tests * test(ci): deslop t0173 tests * test(qa-lab): deslop t0168 tests * test(channels): deslop t0174 tests * test(agents): deslop t0180 tests * test(auto-reply): deslop t0164 tests * test(google-meet): deslop t0166 tests * test: preserve boundary coverage in d096 Restore distinct authorization, concurrency, provenance, sanitization, and cleanup regression cases identified in review. Keep retained relay assertions on the current registration contract and ensure the throwing-retention fixture actually reaches its predicate. Fix an unused Discord emoji-list mock response exposed by the reduced execution order. * test: retain d096 file identities for CI routing Keep the seven original test files and their three routing entries while retaining the in-file case reductions. The hourly planner derives timing selectors from tracked test paths; preserve those identities instead of changing its cap. Plain-main and candidate planner checks pass, and the full changed-file gate plus 48-file focused run pass.
What Problem This Solves
Batch d096 removes repeated test matrices, forwarding/default replays, source inventories, and redundant fixture setup that increase maintenance without adding distinct behavioral proof.
User Impact
No production behavior changes. Authorization, lifecycle, redaction, cleanup, and historical regression boundaries remain covered. Existing test file identities and CI routing are retained.
Why This Change Was Made
Replayed all ten campaign commits onto main, then rebased without conflicts onto
cec7fe73dc4b573f1f35aa326e036a3c2b44b7b9. The rebase preserved every patch and includes main's release-fixture type repair64ef24b267b. A final GitHub rebase also includes main's SDK-budget fixa49e76e1862and release-timeout test fixc7e89bc6a96.The initial replay had one conflict in
src/commands/channels.add.test.ts: keptsetupChannels.mockReset()and its default implementation to isolate one-shot responses;vi.clearAllMocks()already clears the redundant call histories. All ten commits remain applied. Review restored distinct regression cases removed by the initial reduction. Seven whole-file deletions and three routing-entry deletions were subsequently dropped to retain CI timing-selector identities; the hourly planner passes on both plain main and the final candidate. No CODEOWNERS patterns match the final changed files.Evidence
check:changedpassed: all selected types, typed lint, formatting, dead-export checks, and repository guards. Local plain oxlint and whitespace checks also passed.tbx_01m3p6agyk06yj7rymdqf24ap0, verified source treef19caf6a564155a5acbc116efeb86ab0bfa18717. Lease cleanup may mark the workflow cancelled; delegated command exit codes are the proof.a49e76e1862andc7e89bc6a96; the final GitHub rebase includes those fixes. The hourly planner passed both comparisons. Fresh hosted CI on the new head owns final merge admission.generationassertion. The relay test now compares the successor's distinct supportedrunId; the throwing-retention fixture uses admitted host authority and verifies predicate invocation. An earlier Testbox lease disconnected before finishing its gate; the subsequent full gate above closes that gap.Review resolutions
The initial full-batch review raised 17 findings. Each was resolved by restoring distinct authorization, concurrency, cleanup, provenance, sanitization, or action-identity coverage. The live foreign-owner portion was already protected by the retained expiry test; that duplicate restoration was rejected, and EPERM preservation was added to the same fixture. Follow-up review of the complete remediation patch was scoped-clean through P2, exit 0.
Restored boundaries: MCP tool/server approval isolation; delegated Discord GroupDM and caller-supplied guild mismatch; concurrent Twilio joins; finalized transcript versus active-read overlap; shared-tab adoption versus leave; paired-node realtime audio and remote cleanup on failures; recognized source-reply media/transport fields; denied sandbox bridge reads; fail-closed retention predicates; permission-protected foreign bridge owners; deferred queue provenance; untrusted gateway.env destructive overrides; normalized credential replacement; awaited asynchronous CLI disposal; exact write-token action identity; config-only terminal sanitization; and unknown-account disable rejection.
Focused current-main testing exposed a queued Discord channel-metadata mock leaking out of an explicit-guild emoji-list case into the subsequent allowlisted channel-info test. The fixture now queues metadata only when that table row actually resolves a channel, matching the previously proven campaign fixture fix. Assertions and production code are unchanged.
Scope and original shard evidence
Final diff: production +0/−0; test/support +6,461/−31,762 (net −25,301); tooling +0/−0. Counts are final changed-file LOC and static
it/testdeclarations, not expanded parameterized case counts.Coverage totals are original shard evidence, not a new coverage measurement on this rebased branch. Each completed comparison met the 1% statement/branch budget. t0173 coverage predates its final five case removals because the final refresh failed on infrastructure. Supplemental remote coverage supersedes t0180’s stale blocked report. t0168 lost six covered statements in
cli.runtime.ts; t0166 lost eight innode-host.ts, with stronger retained owner proof and its original registration-only group excluded. Seven deleted files are now retained unchanged. Several shards missed the aspirational 50% reduction target; no additional contracts were removed to reach a quota.Final files touched by shard
t0169
src/agents/tools/message-tool.clawhub.integration.test.tssrc/agents/tools/message-tool.hosted-transport.test.tssrc/agents/tools/message-tool.internal-source-reply.integration.test.tssrc/agents/tools/message-tool.sandbox-attachments.test.tssrc/agents/tools/message-tool.scheduled-lifetime.test.tssrc/agents/tools/message-tool.scheduled-writes.test.tssrc/agents/tools/message-tool.test.tst0170
extensions/discord/src/actions/runtime.moderation.authz.test.tsextensions/discord/src/actions/runtime.presence.test.tsextensions/discord/src/actions/runtime.test.tst0116
src/cli/run-main.bare-root.test-support.tssrc/cli/run-main.cleanup.test.tssrc/cli/run-main.exit.test.tssrc/cli/run-main.profile-env.test.tssrc/cli/run-main.proxy-exit.test-support.tssrc/cli/run-main.test.tst0167
src/cli/capability-cli.help.test.tssrc/cli/capability-cli.lazy.test.tssrc/cli/capability-cli.test.tst0173
test/scripts/ci-workflow-guards.test.tst0168
extensions/qa-lab/src/cli.runtime.test.tst0174
src/commands/channels.add.test.tssrc/commands/channels.adds-non-default-telegram-account.test.tssrc/commands/channels.config-only-status-output.test.tssrc/commands/channels.list.inventory.test.tssrc/commands/channels.list.test.tssrc/commands/channels.logs.test.tssrc/commands/channels.remove.test.tssrc/commands/channels.resolve.test.tssrc/commands/channels.status.command-flow.test.tssrc/commands/channels.surfaces-signal-runtime-errors-channels-status-output.test.tst0180
src/agents/harness/native-hook-relay.approval-wait.test.tssrc/agents/harness/native-hook-relay.lifecycle.test.tssrc/agents/harness/native-hook-relay.test.tst0164
src/auto-reply/reply/queue.authority.test.tssrc/auto-reply/reply/queue.case.test-support.tssrc/auto-reply/reply/queue.collect.test.tssrc/auto-reply/reply/queue.dedupe.test.tssrc/auto-reply/reply/queue.drain-restart.test.tssrc/auto-reply/reply/queue.in-flight.test.tssrc/auto-reply/reply/queue.media-carrier.test.tssrc/auto-reply/reply/queue.personal-bootstrap-overflow.test.tssrc/auto-reply/reply/queue.personal-bootstrap.test.tst0166
extensions/google-meet/index.test.ts