Skip to content

fix(e2e): retry safe ClawHub search candidates - #145489

Merged
RomneyDa merged 1 commit into
mainfrom
fix/e2e-clawhub-live-risk-fallback
Sep 12, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/e2e-clawhub-live-risk-fallback

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Summary

  • retain a bounded ordered pool of non-suspicious ClawHub search results for unattended skill-install validation
  • fall through only when the live installer rejects a candidate with the exact current security-risk contract
  • keep explicit user-selected slugs strict and keep all other install failures terminal

Release validation failure

Full Validation 34638927480 selected homeassistant-skill from search metadata with no suspicious verdict. The live install then resolved version 2.1.0 as risky and correctly refused it without --acknowledge-clawhub-risk. The release harness should try another search result; it must not weaken the product safety gate.

Evidence

  • pnpm exec vitest run test/scripts/e2e-shell-tempfiles.test.ts --config vitest.config.ts — 11 tests passed
  • pnpm check:test-types — passed
  • bash -n scripts/e2e/lib/skills/clawhub-install-proof.sh — passed
  • scoped formatting and git diff --check — passed
  • real packaged Docker proof: OPENCLAW_SKILL_INSTALL_E2E_BUILD_SOURCE=1 OPENCLAW_SKIP_DOCKER_BUILD=0 pnpm test:docker:skill-install — selected and installed a current clean ClawHub result, verified homeassistant-skill 2.1.0

The full local lint reached an unrelated current-main regression in where-chip.test.ts (eslint(max-lines)), already owned by #145463. No changed file has a lint or formatting finding.

@clawsweeper

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

@RomneyDa

Copy link
Copy Markdown
Member Author

Exact-head evidence:

  • bounded candidate pool: at most three non-suspicious search results
  • fallthrough requires both exact live-risk markers; explicit requested slugs and every other error remain terminal
  • focused shell regression executes the production script with a risky first candidate and verifies the safe second candidate installs
  • real Docker packaged install proof passed against current ClawHub without any risk acknowledgment
  • pnpm check:test-types, shell syntax, scoped formatting, and diff checks passed

The full lint's only finding is the current-main where-chip.test.ts max-lines regression already owned by #145463; this PR does not touch that surface.

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Sep 12, 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:

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: S maintainer Maintainer-authored PR labels Sep 12, 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 12, 2026
@clawsweeper

clawsweeper Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 11, 2026, 10:12 PM ET / September 12, 2026, 02:12 UTC (Revision 4).

ClawSweeper review

What this changes

The packaged skill-install smoke test tries up to three eligible ClawHub search results after security blocks, while keeping explicit selections and unrelated failures terminal.

Merge readiness

⛔ Blocked before merge - 1 item remains

Still useful: current main stops after the first rejected candidate. No actionable findings remain; the earlier installer-contract finding is fixed, and the migration blocker was inapplicable to temporary harness output.

Priority: P2
Reviewed head: 6d98cb508357f3240e79e303625efa5ba339ee84

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with meaningful boundary coverage and no remaining correctness or migration blocker.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate, and no material authority change triggers an exception. Reported Docker success covers packaged installation; the actual shell fixture covers fallback, explicit rejection, and unrelated failure.
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, and no material authority change triggers an exception. Reported Docker success covers packaged installation; the actual shell fixture covers fallback, explicit rejection, and unrelated failure.
Evidence reviewed 7 items Current main still lacks fallback: The pinned main script selects one result and exits on any install failure; the introduced fallback therefore remains useful.
Temporary artifact, no migration: The script overwrites its resolved-candidate JSON before reading it during the same invocation. Installed origin metadata, lockfile verification, and configuration behavior are unchanged. This supports the author's clarification at #145489 (comment) and resolves the previous migration checkbox.
Installer rejection contract: The current trust owner renders ClawHub Security Audit and Outcome: Blocked, then returns failure. The skill-install owner returns that failure before archive download. The revised shell predicate matches these markers without adding a risk acknowledgment or bypass.
Findings None None.
Security None None.

How this fits together

The release-validation harness searches ClawHub and invokes the packaged OpenClaw installer. It then verifies the installed skill and its tracking metadata before reporting success.

flowchart TD
  A[Live ClawHub search] --> B[Order eligible candidates]
  B --> C[Packaged skill installer]
  C --> D{Install result}
  D -->|Security block and automatic selection| B
  D -->|Success| E[Verify skill and tracking metadata]
  D -->|Other failure or candidates exhausted| F[Fail validation]
  E --> G[Report success]
Loading

Before merge

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

Security

None.

PR surface

Tests +120, Other +25. Total +145 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 124 4 +120
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 41 16 +25
Total 2 165 20 +145

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 bounded candidate selection in the release harness, with the existing installer retaining authority over every attempted installation.

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

Yes, from source: a search-eligible first candidate rejected by the installer terminates the current-main harness even when another candidate could install. This review did not execute the scenario.

Is this the best way to solve the issue?

Yes. The patch repairs selection in the harness without changing installer policy, and the updated fixture covers fallback plus both terminal-failure cases.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: Repairs a bounded release-validation failure caused by changing live ClawHub 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, and no material authority change triggers an exception. Reported Docker success covers packaged installation; the actual shell fixture covers fallback, explicit rejection, and unrelated failure.

Evidence

What I checked:

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; 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 (3 earlier review cycles)
  • reviewed 2026-09-12T01:29:24.562Z sha 1a1a5195aa5da3c5a59f1dbcf0f0ee2fda9465a5 :: blocked before merge. :: [P2] Match the current installer rejection contract
  • reviewed 2026-09-12T01:58:37.675Z sha 6d98cb5 :: blocked before merge. :: none
  • reviewed 2026-09-12T02:06:41.918Z sha 6d98cb5 :: blocked before merge. :: none

@RomneyDa
RomneyDa force-pushed the fix/e2e-clawhub-live-risk-fallback branch from 1a1a519 to 84e4019 Compare September 12, 2026 01:46
@RomneyDa

Copy link
Copy Markdown
Member Author

Corrected exact head 84e4019f052 to match the current installer contract:

  • fallback now requires the rendered ClawHub Security Audit plus Outcome: Blocked
  • the production-script regression emits that current audit form
  • explicit requested slugs remain terminal on a blocked audit
  • unrelated install failures remain terminal and do not try another candidate
  • focused suite: 11/11 green
  • pnpm check:test-types, shell syntax, scoped formatting, and diff checks: green
  • real packaged Docker proof: green; installed and verified homeassistant-skill 2.1.0 through the packaged CLI without risk acknowledgement

The first Docker attempt failed before execution while resolving docker/dockerfile:1.7; the exact retry reused the local image and completed the packaged install proof above.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 12, 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 12, 2026
@RomneyDa
RomneyDa force-pushed the fix/e2e-clawhub-live-risk-fallback branch from 84e4019 to 6d98cb5 Compare September 12, 2026 01:53
@RomneyDa

Copy link
Copy Markdown
Member Author

Final exact head 6d98cb508357 is rebased onto current main; the patch itself is unchanged from the corrected current-contract implementation.

Final-head evidence:

  • focused production-script suite: 11/11 green
  • pnpm check:test-types, shell syntax, scoped formatting, and diff checks: green
  • full package build and tarball integrity: green
  • corrected-head packaged Docker install: green (homeassistant-skill 2.1.0)
  • two final-head Docker retries were blocked before execution by local Docker infrastructure: one missing reused image and one docker/dockerfile:1.7 registry timeout

The rebase absorbs the unrelated where-chip line-count and cloud-target dead-export fixes that failed the prior synthetic merge.

@clawsweeper re-review

@clawsweeper

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

Copy link
Copy Markdown
Member Author

The exact-head review concludes Findings: None, platinum, and ready for maintainer look. It also explicitly resolves the only rendered checkbox: the candidate JSON is a temporary harness artifact, overwritten per invocation and consumed in-process; installed origin metadata, lockfile schemas, and user configuration are unchanged, so no migration or upgrade proof applies.

Please reconcile the durable verdict with that technical conclusion and clear the stale automatic data-model checkbox.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 12, 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 49286e6 into main Sep 12, 2026
79 checks passed
@RomneyDa
RomneyDa deleted the fix/e2e-clawhub-live-risk-fallback branch September 12, 2026 04:21
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 13, 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