Skip to content

fix(e2e): avoid suspicious ClawHub install candidates - #144833

Merged
RomneyDa merged 1 commit into
mainfrom
fix/clawhub-clean-install-proof
Sep 11, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/clawhub-clean-install-proof

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Summary

  • reject ClawHub search candidates explicitly marked suspicious by either trust surface
  • preserve explicit requested-slug behavior while choosing a safe default candidate
  • install the exact search result reference and cover moving-verdict selection

Validation

  • pnpm exec vitest run test/scripts/e2e-shell-tempfiles.test.ts --config vitest.config.ts
  • pnpm test:docker:skill-install
  • pnpm check:test-types
  • pnpm lint
  • pnpm format:check

Release validation root: the unattended Docker skill-install proof selected homeassistant-skill after its ClawHub verdict moved to suspicious, so the production installer correctly refused it.

@clawsweeper

clawsweeper Bot commented Sep 11, 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.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: S maintainer Maintainer-authored PR labels Sep 11, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 11, 2026
@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 11, 2026, 7:12 AM ET / 11:12 UTC (Revision 3).

ClawSweeper review

What this changes

Updates 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
Reviewed head: 1552aab0b481da3dd139bea868a96895fef33013

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, sound harness repair with useful regression coverage and no remaining actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its supplied comment reports the changed Docker harness selecting and installing a live ClawHub result through E2E_OK; no new authority boundary requires additional proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its supplied comment reports the changed Docker harness selecting and installing a live ClawHub result through E2E_OK; no new authority boundary requires additional proof.
Evidence reviewed 7 items Temporary handoff, not a storage migration: The resolved JSON is written to /tmp/openclaw-skill-install-resolved.json and immediately read by this script. The change adds installRef only to that existing handoff; product config, origin metadata, and lock formats remain unchanged. More precisely than the maintainer’s description, this is a fixed /tmp path rather than a file beneath the temporary HOME.
Docker lifecycle owns disposal: The Docker entrypoint runs this proof through docker_e2e_run_with_harness. Its cleanup removes the identified container, disposing of its /tmp handoff; the shell’s HOME cleanup is not what removes that file.
Existing normalized CLI contract: Search normalization already produces installRef and preserves other search metadata through the rest spread. The CLI emits those normalized results as JSON, and its installer accepts qualified references. Reading chosen.installRef resolves the earlier finding without adding another API.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Tests +68, Other +6. Total +74 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 68 0 +68
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 11 5 +6
Total 2 79 5 +74

Review metrics

None.

Stored data model

Persistent data-model change detected: serialized state: scripts/e2e/lib/skills/clawhub-install-proof.sh, unknown-data-model-change: scripts/e2e/lib/skills/clawhub-install-proof.sh. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best 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.

Labels

Label justifications:

  • P2: This fixes a bounded package-validation failure caused by changing live catalog verdicts.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its supplied comment reports the changed Docker harness selecting and installing a live ClawHub result through E2E_OK; no new authority boundary requires additional proof.

Evidence

What I checked:

  • Temporary handoff, not a storage migration: The resolved JSON is written to /tmp/openclaw-skill-install-resolved.json and immediately read by this script. The change adds installRef only to that existing handoff; product config, origin metadata, and lock formats remain unchanged. More precisely than the maintainer’s description, this is a fixed /tmp path rather than a file beneath the temporary HOME. (scripts/e2e/lib/skills/clawhub-install-proof.sh:69, 1552aab0b481)
  • Docker lifecycle owns disposal: The Docker entrypoint runs this proof through docker_e2e_run_with_harness. Its cleanup removes the identified container, disposing of its /tmp handoff; the shell’s HOME cleanup is not what removes that file. (scripts/lib/docker-e2e-package.sh:302, 1552aab0b481)
  • Existing normalized CLI contract: Search normalization already produces installRef and preserves other search metadata through the rest spread. The CLI emits those normalized results as JSON, and its installer accepts qualified references. Reading chosen.installRef resolves the earlier finding without adding another API. (src/infra/clawhub-skills.ts:255, 1552aab0b481)
  • Installer safeguards remain authoritative: The harness still invokes the existing installer with --force, which means overwrite; it does not add --force-install or policy-warning acknowledgement. Installation resolution and trust checks remain in the production installer. (src/cli/skills-cli.ts:626, 1552aab0b481)
  • Main and release still need the correction: Source inspection shows main still selects the preferred result without suspicious-result filtering and installs its bare slug. The supplied latest release and fetched main both contain the same old script blob, 56ece379867d5d42acf3544f6ea20d217f5e54ba. (scripts/e2e/lib/skills/clawhub-install-proof.sh:82, a2d34c6d0312)
  • Regression coverage and reported live result: The added test executes the actual selector with normalized results and checks safe default selection plus explicit-request preservation. The maintainer reports an exact-head packaged Docker run that searched live ClawHub, installed homeassistant-skill 2.1.0, and reached E2E_OK: fix(e2e): avoid suspicious ClawHub install candidates #144833 (comment). This review did not execute tests or independently observe that run. (test/scripts/e2e-shell-tempfiles.test.ts:327, 1552aab0b481)

Likely related people:

  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-11T10:08:37.435Z sha d13f7bd35f0122b15b46b784b9fe96e82ef3eabc :: blocked before merge. :: [P2] Read the normalized CLI installRef in the selector
  • reviewed 2026-09-11T10:56:07.282Z sha 1552aab :: blocked before merge. :: none

@RomneyDa
RomneyDa force-pushed the fix/clawhub-clean-install-proof branch from d13f7bd to 1552aab Compare September 11, 2026 10:52
@RomneyDa

Copy link
Copy Markdown
Member Author

@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.

@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 11, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

@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.

@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@RomneyDa
RomneyDa merged commit 4ab12ee into main Sep 11, 2026
86 checks passed
@RomneyDa
RomneyDa deleted the fix/clawhub-clean-install-proof branch September 11, 2026 19:24
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant