Skip to content

fix(e2e): use a maintained ClawHub install fixture - #148902

Merged
vincentkoc merged 2 commits into
mainfrom
fix/clawhub-install-fixture-20260915
Sep 16, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
fix/clawhub-install-fixture-20260915

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

Fixes #148727

What Problem This Solves

The default ClawHub skill-install E2E can exhaust its search-result pool on recognized security refusals before exercising installation and tracking.

User Impact

This maintainer-requested fixture repair gives the default installation-only check a reviewed, versioned fixture. Explicit query, slug, or preferred-slug overrides retain their existing behavior. Security refusals still fail the maintained fixture; this does not bypass scanner decisions or execute the skill's tools.

Why This Change Was Made

With all three overrides empty, the helper selects @steipete/[email protected] from matching raw or mapped search identities. It rejects conflicting identity and explicit risk, then checks the installed owner, version, and reviewed SKILL.md bytes alongside the existing origin, lock, configuration, and info assertions. The Docker caller leaves default selection to that helper.

The source file is pinned, not the generated skill card or ZIP encoding. A future security refusal or changed fixture source remains a failure requiring investigation, not permission to rotate through alternatives until green.

Evidence

  • Retained failures: first skill-install job and second skill-install job. Both exhausted the automatic pool through recognized security-refusal skips.
  • Actual-helper causal RED showed the old unpinned selection. Two additional RED cases demonstrated that matching suspicious rows could reach installation; both now reject after search with zero installs.
  • Full test/scripts/e2e-shell-tempfiles.test.ts: 44 passed. Test-root typecheck, targeted lint, formatting, Bash syntax, and diff checks passed. The initial typecheck required materializing unchanged tracked Android/Linux fixture dependencies omitted by the sparse checkout.
  • Fresh independent P0–P2 review: no actionable findings.
  • One-time anonymous archive inspection verified the named version, safe member inventory, and reviewed SKILL.md hash. Immutable source inspection confirms the selected OpenClaw 2026.7.33 client supports the required raw search, owner/version install, tracking, and clean-verdict contracts.
  • Exact-head hosted CI is attached to a6c1ced46b5e65118cb286fda850bfc1811b32d1; all completed required jobs were green when this evidence was recorded.
  • The earlier installation-only Testbox attempt stopped before artifact download because the prepared host had no GitHub artifact-read authentication. No candidate package was installed or qualified, and the task-owned Testbox was stopped.
  • Exact-head live qualification passed on Blacksmith Testbox lease tbx_01m2m3nqhhwe04wsk9t3prn3kg: Crabbox synchronized the PR head, ran pnpm install --frozen-lockfile && pnpm test:docker:skill-install, built and installed the candidate OpenClaw package, then installed @steipete/[email protected]. The security gate permitted installation; the wrapper verified the installed SKILL.md, reviewed source hash, .clawhub/origin.json, workspace lock entry, owner/version, and skills info --json path before emitting E2E_OK installed=gifgrep version=1.0.1 uploadArchives=false. The one-shot box stopped successfully with exit 0; Blacksmith's delegated lifecycle may display the stopped runner step as cancelled. Testbox run.
  • This proves the installation-only fixture path, not a full FRV pass, release readiness, skill-tool execution, or a measured speedup.

@vincentkoc vincentkoc self-assigned this Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 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 docs Improvements or additions to documentation scripts Repository scripts docker Docker and sandbox tooling size: M maintainer Maintainer-authored PR labels Sep 15, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review September 15, 2026 08:08
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. 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. labels Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 15, 2026, 11:32 PM ET / September 16, 2026, 03:32 UTC (Revision 5).

ClawSweeper review

What this changes

Pins the default Docker skill-install check to a reviewed ClawHub skill version, verifies its identity and contents, and preserves custom selection overrides.

Merge readiness

⛔ Blocked before merge - 1 item remains

The PR remains useful and has no actionable correctness findings. The newly recorded candidate-package qualification resolves the earlier proof blocker; current main still uses the moving fixture pool.

Priority: P2
Reviewed head: a6c1ced46b5e65118cb286fda850bfc1811b32d1

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, maintainable repair with meaningful negative coverage and directly relevant recorded live installation proof.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The captured exact-head Testbox report exercises the Docker wrapper and real candidate CLI against live ClawHub, then records successful installation and all helper assertions through E2E_OK and exit 0; this resolves the previous installation-proof gap.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The captured exact-head Testbox report exercises the Docker wrapper and real candidate CLI against live ClawHub, then records successful installation and all helper assertions through E2E_OK and exit 0; this resolves the previous installation-proof gap.
Evidence reviewed 8 items Introduced change and security behavior: The complete helper and Docker caller were inspected. Empty overrides select only @steipete/gifgrep, install version 1.0.1, and verify owner/version and the SKILL.md hash. Setting requested_slug makes installation refusal terminal. The diff adds no scanner bypass, skill-tool execution, or persistent schema change.
Current main still needs fixture qualification: Current main retains the homeassistant query and unpinned candidate selection. Its existing fallback repair does not supply the maintained fixture requested here.
Latest release comparison: The helper at the supplied latest release, v2026.9.4, also uses unpinned homeassistant selection and does not contain this maintained fixture.
Findings None None.
Security None None.

How this fits together

The Docker skill-install check validates an installed OpenClaw package against live ClawHub search and installation. It checks the downloaded skill and installation records before reporting success to release validation.

flowchart TD
  A[Candidate OpenClaw package] --> B[Docker install check]
  C[Optional selection overrides] --> B
  B --> D[Live ClawHub search]
  D --> E[Select maintained or custom skill]
  E --> F[Install through existing security checks]
  F --> G[Verify files and installation records]
  G --> H[Report success or failure]
Loading

Before merge

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

Security

None.

PR surface

Tests +334, Docs 0, Other +41. Total +375 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 336 2 +334
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 51 10 +41
Total 4 388 13 +375

Review metrics

Metric Value Why it matters
Fixture contract 1 pinned default; 3 existing selection overrides preserved The default becomes reproducible without adding a new configuration surface or replacing custom selection behavior.

Stored data model

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

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #148727
Summary: This PR implements the maintained-fixture qualification tracked by the paired open issue; earlier fallback repairs address related but distinct behavior.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Keep fixture selection in the existing helper, with a reviewed version and content pin, terminal security refusals, and explicit custom overrides.

Do we have a high-confidence way to reproduce the issue?

No deterministic current-main reproduction was established: retained jobs demonstrate pool exhaustion, but live registry inventory and scanner outcomes can change.

Is this the best way to solve the issue?

Yes. The patch repairs the existing fixture owner, preserves custom behavior, and now has recorded candidate-package installation proof covering its assertions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against ad5d4105dbae.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The captured exact-head Testbox report exercises the Docker wrapper and real candidate CLI against live ClawHub, then records successful installation and all helper assertions through E2E_OK and exit 0; this resolves the previous installation-proof gap.
  • remove merge-risk: 🚨 automation: Current PR review selected no merge-risk labels.

Label justifications:

  • P2: Repairs a bounded release-validation fixture failure without changing end-user runtime behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The captured exact-head Testbox report exercises the Docker wrapper and real candidate CLI against live ClawHub, then records successful installation and all helper assertions through E2E_OK and exit 0; this resolves the previous installation-proof gap.
  • proof: sufficient: Contributor real behavior proof is sufficient. The captured exact-head Testbox report exercises the Docker wrapper and real candidate CLI against live ClawHub, then records successful installation and all helper assertions through E2E_OK and exit 0; this resolves the previous installation-proof gap.

Evidence

What I checked:

  • Introduced change and security behavior: The complete helper and Docker caller were inspected. Empty overrides select only @steipete/gifgrep, install version 1.0.1, and verify owner/version and the SKILL.md hash. Setting requested_slug makes installation refusal terminal. The diff adds no scanner bypass, skill-tool execution, or persistent schema change. (scripts/e2e/lib/skills/clawhub-install-proof.sh:68, a6c1ced46b5e)
  • Current main still needs fixture qualification: Current main retains the homeassistant query and unpinned candidate selection. Its existing fallback repair does not supply the maintained fixture requested here. (scripts/e2e/lib/skills/clawhub-install-proof.sh:65, ad5d4105dbae)
  • Latest release comparison: The helper at the supplied latest release, v2026.9.4, also uses unpinned homeassistant selection and does not contain this maintained fixture. (scripts/e2e/lib/skills/clawhub-install-proof.sh:65, 3a9d69db306c)
  • New real installation evidence resolves prior feedback: The captured PR body and fix(e2e): use a maintained ClawHub install fixture #148902 (comment) record synchronization to the reviewed head, candidate build/global installation, live @steipete/[email protected] installation, permitted security outcome, and successful file/hash/origin/lock/owner/version/info assertions, ending with E2E_OK installed=gifgrep version=1.0.1 uploadArchives=false and exit 0. This directly addresses the previous review's sole rank-up request. The linked run is https://github.com/openclaw/openclaw/actions/runs/35051419075. (a6c1ced46b5e)
  • Proof inspection boundary: GitHub identified the linked run as Blacksmith Testbox, still in_progress, with workflow head 472a5e9. That workflow identity does not establish the synchronized candidate revision; the captured maintainer report supplies that association. Raw job-log retrieval redirected to a storage host blocked by the review environment. The supplied runtime evidence remains sufficient; no successful independent log inspection is claimed.
  • Focused regression coverage: The full introduced test diff covers raw/mapped search identity, conflicting identities, suspicious results, wrong owners or versions, changed source bytes, terminal refusal, individual custom overrides, and Docker forwarding. These tests exercise the actual shell helper with a substituted CLI and supplement the recorded live installation. The body reports 44 passing tests; tests were not executed during this read-only review. (test/scripts/e2e-shell-tempfiles.test.ts:759, a6c1ced46b5e)

Likely related people:

  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • RomneyDa: 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 (4 earlier review cycles)
  • reviewed 2026-09-15T08:15:32.181Z sha e0f12fa :: blocked before merge. :: none
  • reviewed 2026-09-15T08:43:59.751Z sha e0f12fa :: blocked before merge. :: none
  • reviewed 2026-09-15T10:14:32.183Z sha e0f12fa :: blocked before merge. :: none
  • reviewed 2026-09-16T03:23:33.188Z sha a6c1ced :: blocked before merge. :: none

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

The exact-head Blacksmith Testbox qualification is now complete and recorded in the PR body. It installed the candidate package and @steipete/[email protected], passed the security gate, verified the installed file plus origin, lock, owner/version, and skills info metadata, emitted E2E_OK, and exited 0.

There is no persistent data-model change: this PR only changes Docker E2E shell fixtures, documentation, and test support.

@clawsweeper

clawsweeper Bot commented Sep 16, 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 proof: sufficient ClawSweeper judged the real behavior proof convincing. and removed merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Sep 16, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

Skipping the remaining ClawSweeper data-model compatibility item as inapplicable.

scripts/e2e/lib/skills/clawhub-install-proof.sh is an ephemeral Docker E2E helper. This PR changes no runtime persistence owner, SQLite schema/version, migration, config shape, or stored user data. The refreshed review itself confirms that the diff adds no persistent schema change, and the native exact-head review artifacts record the same conclusion.

@vincentkoc
vincentkoc merged commit f3579e7 into main Sep 16, 2026
90 checks passed
@vincentkoc
vincentkoc deleted the fix/clawhub-install-fixture-20260915 branch September 16, 2026 03:57
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 16, 2026
* fix(e2e): use a maintained ClawHub install fixture

* test(e2e): model Docker package mount in wrapper probe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling docs Improvements or additions to documentation maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: M 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.

Qualify a maintained live fixture for ClawHub skill-install E2E

1 participant