Repository navigation
fix(e2e): avoid suspicious ClawHub install candidates - #144833
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 11, 2026, 7:12 AM ET / 11:12 UTC (Revision 3). ClawSweeper reviewWhat this changesUpdates the Docker skill-install check to skip explicitly suspicious default candidates, preserve explicit requests, and install the selected search result’s qualified reference. Merge readiness⛔ Blocked before merge - 1 item remains The earlier compatibility blocker is resolved: the added field is an E2E handoff, not a product storage change. The normalized-reference finding is also fixed, and the useful harness correction remains absent from main. Priority: P2 Review scores
Verification
How this fits togetherThe package-validation harness searches live ClawHub through OpenClaw’s CLI, selects a skill, and invokes the existing installer. It then checks installed metadata and reports whether the package’s skill-install flow works. flowchart LR
A[Live ClawHub search] --> B[CLI search results]
B --> C[Explicit request or filtered default]
C --> D[Temporary selection handoff]
D --> E[Existing skill installer]
E --> F[Installed metadata checks]
F --> G[E2E result]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +68, Other +6. Total +74 across 2 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep candidate selection in the E2E harness while reusing normalized CLI references and leaving installation policy with the existing installer. Do we have a high-confidence way to reproduce the issue? Yes, from source: main selects the preferred result even when its search metadata marks it suspicious; the added fixture represents that trigger. No runtime reproduction was executed during this read-only review. Is this the best way to solve the issue? Yes. Filtering automatic test candidates and consuming the existing installRef contract is a focused repair; the ephemeral handoff does not require product migration or upgrade proof. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a2d34c6d0312. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
d13f7bd to
1552aab
Compare
|
@clawsweeper re-review Correction now consumes the normalized CLI installRef field and the fixtures use the normalized search-result shape. Fresh real proof on this exact local head passed: packaged Docker install searched live ClawHub, selected a non-suspicious result, installed homeassistant-skill 2.1.0, and finished E2E_OK. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Data-model compatibility proof: this patch does not change serialized product state. The selected-skill JSON is an ephemeral E2E handoff created under the harness temporary directory, read immediately by the same shell proof, and removed by the existing temp cleanup. No user file, config, cache, lock schema, database, upgrade reader, or persisted release artifact changes. The normalized installRef is already the CLI search output contract and is passed only to the existing installer invocation. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Summary
Validation
pnpm exec vitest run test/scripts/e2e-shell-tempfiles.test.ts --config vitest.config.tspnpm test:docker:skill-installpnpm check:test-typespnpm lintpnpm format:checkRelease validation root: the unattended Docker skill-install proof selected
homeassistant-skillafter its ClawHub verdict moved to suspicious, so the production installer correctly refused it.