Repository navigation
test(core): remove residual duplicate assertions - #124116
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 4:52 AM ET / 08:52 UTC. ClawSweeper reviewWhat this changesThis PR removes duplicate test assertions and makes a node-status CLI assertion resilient to terminal line wrapping. Merge readinessKeep open: current main does not contain this test-only cleanup, and the removed checks have stronger owner-boundary coverage. No blocking correctness or security findings found. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s CLI, Gateway, protocol, and bundled-plugin tests guard runtime behavior at their owning boundaries. This change removes local assertions that duplicate those boundary checks, reducing maintenance noise without changing production behavior. flowchart LR
A[Runtime behavior] --> B[Owner-boundary tests]
B --> C[Duplicate local assertions]
C --> D[Focused CI selection]
D --> E[Regression confidence]
Before merge
Agent review detailsSecurityNone. PR surfaceTests -98. Total -98 across 14 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Land the focused deletion after normal exact-head CI, keeping behavioral coverage at the Gateway, protocol, CLI, and projection owners rather than restoring implementation-coupled assertions. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR changes regression coverage rather than addressing a reported runtime failure. Is this the best way to solve the issue? Yes. The patch removes assertions already enforced at stronger runtime, protocol, and projection boundaries, while preserving the meaningful behavior checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 4fc375654d34. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready proof for
Production delta: 0. Tests: +2/-100, net -98. No behavior, docs, config, schema, protocol, dependency, or changelog change. |
|
Merged via squash.
|
What Problem This Solves
Removes residual test assertions and self-tests that duplicate stronger owner-boundary proof, compare a fixture with itself, assert implementation spelling, or preserve no independent contract.
The batch removes static owner-gate and import smokes, exact-object key reassertions, duplicate message-exit tests, repeated managed-media byte semantics/defaults, a session-icon self-copy, a node-fixture self-test, a direct avatar predicate test already covered at projection boundaries, two OnePassword source-string checks, and a stale CI tombstone assertion.
Why This Change Was Made
Each retained test now protects a distinct behavior or boundary: real owner authorization, executable CLI results, session protocol/RPC projection, managed-media routing and owner-level range semantics, avatar resolution/bootstrap projection, resolver lifecycle, and CI routing.
A node status E2E assertion was also made renderer-width independent after the broad proof run correctly wrapped
hw: samsungacross lines. It still asserts the hardware label, vendor, and model identifier separately.User Impact
No runtime behavior changes. The suite has fewer self-validating and renderer-spelling assertions while retaining the real user and protocol boundaries.
Evidence
coreTests,extensionTests,testRoot, andtoolingchanged gate passed through the documented trusted-source local fallback because no Crabbox/Testbox provider was ready; typechecks, formatting, full core lint, extension lint, dead-export scan, and dependency/plugin guards passed.git diff --checkpassed.Production delta: 0. Tests: +2/-100, net -98. No docs, config, schema, protocol, dependency, or changelog change.