Skip to content

fix: install or review the publisher you picked when ClawHub skills share a slug - #121697

Merged
Patrick-Erichsen merged 13 commits into
mainfrom
fix/117633-clawhub-publisher-identity
Aug 13, 2026
Merged

Patrick-Erichsen merged 13 commits into
mainfrom
fix/117633-clawhub-publisher-identity

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Aug 10, 2026 •

Copy link
Copy Markdown
Member

Closes #117633
Related: #117681

Credit: @synthalorian reported and first fixed this in #117681. This branch is a maintainer replacement rewritten on current main (see "Relationship to #117681" below); the diagnosis and the acknowledgement/dedup identity insight are theirs.

What Problem This Solves

Fixes an issue where an operator searching ClawHub for a skill whose slug is published by more than one person could neither review nor install any of them. Control UI, the macOS and iOS skill browsers, and the Android skills screen all showed several identical-looking rows, then sent only the bare slug to the Gateway. ClawHub correctly answered 409 AMBIGUOUS_SKILL_SLUG, so every row dead-ended with no in-product way forward. The CLI already worked, because openclaw skills install @owner/slug carries the publisher.

Live registry today, three publishers share imap-smtp-email:

GET /api/v1/skills/imap-smtp-email                     -> 409 AMBIGUOUS_SKILL_SLUG
GET /api/v1/skills/imap-smtp-email?ownerHandle=gzlicanyi -> 200

Why This Change Was Made

The publisher was never missing — it was discarded. /api/v1/search returns ownerHandle per result, and the Gateway already forwards it, but nothing recorded the reference that identifies the result, so the CLI rebuilt @owner/slug inline and every other client dropped it.

This change records that fact once, at the producer, and reads it everywhere:

  • searchClawHubSkills sets installRef on every result: the registry-supplied external reference when present, otherwise @ownerHandle/slug. The CLI now reads that field instead of deriving its own (net -8 production lines there).
  • SkillsSearchResultSchema declares installRef and icon, which the server already sends. Additive only; no protocol version bump.
  • skills.detail parses the same reference grammar skills.install has always accepted (parseRequestedClawHubSkillRef). Detail and install therefore take one identical string, so a client cannot review one publisher and install another. No new request field on either method.
  • Control UI, macOS, iOS, and Android carry that one reference through row identity, detail, install, busy state, installed matching, and acknowledgement retries, and render it so otherwise identical rows are distinguishable.

Deliberately out of scope: ClawHub exposes no source-qualified detail endpoint for skills-sh: references. That behavior is unchanged here (a skills-sh: result still reads detail by bare slug, exactly as on main), and it needs a product decision rather than a guess. See "Follow-ups".

User Impact

Same-slug ClawHub results are now distinguishable and individually reviewable and installable from Control UI and all three native clients. Selecting the second publisher reviews and installs the second publisher. Nothing about the single-publisher path changes.

Before / after — Control UI, same-slug search (light)

Re-shot on the current head, after the trust label was reverted (see "Trust label: owner decision" below). The "after" frames include an external skills-sh: result, which is now shown by reference only, like every other row.

Before After
before light after light

Before / after (dark)

Before After
before dark after dark

After — reviewing the second publisher

Clicking the second row opens that publisher's card (By wangchenyu8 (@wangchenyu8)), and its install button installs that publisher.

Light Dark
after detail light after detail dark

After — review is refused for an external source, with a next step

Opening an external skills-sh: row refuses review rather than showing a different publisher's card, and the message names the exact command that does work.

Light Dark
refusal light refusal dark

Capturing this is what surfaced the dialog-sizing fix: the refusal first rendered inside the tall reader panel meant for skill documents, leaving a mostly empty dialog that read as broken. It now sizes to the message.

The refusal dialog is still ugly, and that is a known, owned decision. The maintainer's verdict on this screen was blunt, and the redesign is an approved follow-up rather than something this PR attempts: install-only is information, not an error, so it should not be a red error callout, and it should offer an Install action directly instead of telling the operator to go run a CLI command. Logged in the fleet backlog; not in scope here.

Native gap, stated honestly. iOS, macOS and Android carry the same identity fix, but I cannot exercise those simulators here, so they have no captures. Their evidence is the decode tests on the shared Swift kit and the Android parser.

Evidence

Live ClawHub, 2026-08-10 — GET /api/v1/search?q=imap-smtp-email returns three entries sharing slug: "imap-smtp-email" with distinct top-level ownerHandle (gzlicanyi, vthoram, wangchenyu8). Bare detail returns 409; ?ownerHandle=gzlicanyi returns 200.

Real-behavior proof — Control UI + mocked Gateway, headless Chromium. Same scenario driven against the pre-fix and post-fix Control UI bundles, recording the actual skills.detail request the browser sent after clicking the second result:

before light skills.detail -> {"slug":"imap-smtp-email"}      # -> 409 AMBIGUOUS_SKILL_SLUG
before dark  skills.detail -> {"slug":"imap-smtp-email"}
after  light skills.detail -> {"slug":"@wangchenyu8/imap-smtp-email"}
after  dark  skills.detail -> {"slug":"@wangchenyu8/imap-smtp-email"}

Screenshots above are from that run (capture harness was temporary and is not part of the diff).

Boundary regression — src/gateway/server-methods/skills.publisher-identity.test.ts fakes only the HTTP layer; search, both Gateway handlers, and the detail client are real. It proves same-slug results get distinct installRefs, that each selected reference produces an outbound ?ownerHandle=<publisher> on the real ClawHub URL, that a bare slug still surfaces the ambiguity error rather than silently picking a publisher, that a source-qualified skills-sh: reference is refused without any outbound read, and that install forwards the reference unchanged.

Focused suites, all green:

node scripts/run-vitest.mjs \
  src/gateway/server-methods/skills.publisher-identity.test.ts \
  src/gateway/server-methods/skills.search-detail.test.ts \
  src/gateway/server-methods/skills.clawhub.test.ts \
  src/infra/clawhub-skills.test.ts \
  src/cli/skills-cli.commands.test.ts \
  ui/src/lib/skills/index.test.ts ui/src/pages/skills/view.test.ts

Checks run locally: tsgo core / UI / core-test, oxfmt, scripts/run-oxlint.mjs on every changed TS file, protocol:gen + protocol-gen-swift + protocol-gen-kotlin (generated Swift/Kotlin unchanged), check-protocol-since, check-protocol-registry, native-app-i18n baseline + verify, git diff --check, swift build --package-path apps/shared/OpenClawKit (clean).

Sequential review passes: clean; no accepted/actionable findings reported.

LOC (excluding the two regenerated baselines, which are line-neutral at 94/94 and 18/18): production +171 / −88 = net +83 across the Gateway protocol, ClawHub infra, the Gateway handler, the CLI (net −8), Control UI, and four native surfaces; tests net +261. The growth is the identity contract itself — one recorded reference field, one reference-parsing boundary, one fail-closed branch — plus the per-client reads of that single field.

Plugin SDK API baseline

The third commit regenerates docs/.generated/plugin-sdk-api-baseline.jsonl. Every one of the 18 changed records is closure-hash-only — the declaration text is byte-identical before and after (verified by diffing (entrypoint, exportName, declaration) tuples, which come back empty). The hashes move because the additive skills protocol fields enter the transitive type closure of meeting-runtime, provider-catalog-runtime, agent-harness, channel-message, channel-outbound, gateway-runtime, and inbound-reply-dispatch. No plugin SDK export changed shape. This is the regeneration the check itself prescribes for an intentional surface change, not a silenced baseline.

CI status on this head (81079674a93)

Rebased onto 39b9d7b1a16, which healed two main-owned breakages this branch had been inheriting: src/plugins/worker-provider-registry.ts pulled the full OpenClawConfig graph back into the plugins layer (a config ↔ plugins madge cycle, failing check-additional-runtime-topology-architecture), and src/gateway/server-methods/approval.ts was pushed unformatted (failing check-lint). Neither file is in this diff; both were fixed on main rather than absorbed here.

Earlier CI attribution, kept for the record

Superseded: CI status on head 0dab0fd6069

97 of 100 checks green. Three red, and all three are already red on main at 55afad26c07 — the exact commit this branch is rebased onto:

Lane This PR main @ 55afad26c07 Same failure?
check-lint failure failure Yes — identical: src/gateway/server-methods/setup-admission.ts:32:12 Type parameter T is used only once in the function signature. typescript(no-unnecessary-type-parameters)
checks-node-compact-large-6 failure failure Yes — identical: src/gateway/server-methods/system-agent.test.ts:435 openclaw.setup > runs the selected provider method in a shared wizard session and commits its config
openclaw/ci-gate failure failure Aggregate of the two above

Neither file is in this diff. Both need a main-side fix; this branch does not touch or depend on either.

An earlier push of this branch was based on an older, red main and showed six additional failures (check-plugin-sdk-api-baseline, checks-ui, checks-ui-e2e 3/4 and 4/4, checks-node-compact-small-2, small-9). The rebase onto 55afad26c07 plus the baseline commit cleared all six.

ClawSweeper review response

Review of f429fc9a561. Every actionable finding is applied.

Finding Status
[P1] Keep external-source review bound to the installed source (src/gateway/server-methods/skills.ts) Fixed. Correct and important — I had reproduced the same class of defect I flagged on #117681. For a skills-sh: reference the parser yields a bare slug with no owner, so detail would have read a same-slug registry skill while install resolved the external artifact. skills.detail now fails closed on any reference carrying a source (INVALID_REQUEST, no outbound request at all) instead of answering with a different skill. Pinned by refuses external-source detail instead of reading a same-slug registry skill. Correction (see "Trust label: owner decision" below): the "no shipped path could reach it" claim was wrong and is retracted. src/cli/skills-cli.ts reads installRef and trustState off the same search entry, which proves ClawHub search can return a skills-sh: installRef. The seam was fail-open and is now fail-closed.
[high] Security: detail loses external source identity Fixed by the same change — review and install can no longer resolve to different skills.
[P1] Always show the selected publisher in AgentPro results (AgentProTab+Skills.swift) Fixed. Real inconsistency with Control UI: the reference was only a fallback when summary was nil, so same-slug rows on a direct-install surface stayed identical. Now rendered as summary · reference.
[P2] Show the reference alongside summaries in the macOS browser (ClawHubSkillsBrowser.swift) Fixed, same way, via a named subtitle property.
[P1] Merge risk: skills-sh bare-slug review vs source-qualified install Resolved by the fail-closed detail path.
[P2] Merge risk: keep one canonical reference path Applied. There is one canonical path — searchClawHubSkills records installRef once, server-side, and every client reads that one field — and the pre-land audit tightened it further by dropping ownerHandle from the search-result contract entirely: no client read it, so the wire and Control UI now carry one reference field instead of two. The remaining per-client installRef ?? slug is a single-expression compatibility read for gateways older than this contract, not a second identity derivation; no client rebuilds @owner/slug itself, and the CLI's own inline derivation was deleted.
Stored data model: "serialized state / unknown-data-model-change" Rejected as a false positive. Nothing is persisted by this change: no SQLite schema, table, column, migration, or state file is touched. The flagged files are a Vitest fixture and an additive optional-field protocol schema. No upgrade or migration proof applies.
Decision needed: how should clients handle skills-sh: rows? Still the maintainer's, and deliberately not pre-empted here. What changed is that the unsafe interim behavior is gone: external references are now install-only with an explicit, visible refusal on review, rather than silently showing a different skill's card. The maintainer has since ruled out an app-side trust label; formalizing the install-only UX (including the dialog redesign) remains the follow-up below.

Relationship to #117681

@synthalorian diagnosed this correctly and #117681 got the core idea right. It is not rebaseable now: its largest hunk edits src/infra/clawhub.ts, which #121565 deleted when it split ClawHub infrastructure, and the search normalization it added is superseded by what main already does. Three substantive issues also had to change shape rather than be patched:

  1. It added ownerHandle as a second identity encoding on skills.install, next to the reference string installSkillFromClawHub has always parsed. Two ways to say the same thing.
  2. That second encoding was only consumed for the lifecycle lease key, and Control UI sent slug: "@alice/weather" and ownerHandle: "alice", so the lease reference became @alice/@alice/weather — a key no other caller (CLI, tracked updates) would ever match. Concurrent installs of the same skill would stop coordinating.
  3. Its clawHubDetailParams dropped installRef while clawHubInstallParams kept it, so an external result could be reviewed as one skill and installed as another (ClawSweeper P1 / security-boundary finding on that PR). Sending one identical reference to both methods removes that divergence structurally rather than by patching the helper.

Follow-ups (not in this PR)

  • skills-sh: detail is a product decision. ClawHub has no source-qualified read endpoint for external references. This PR makes the interim behavior safe but blunt: review is refused with an explicit reason, so external sources are install-only. The maintainer has ruled out an app-side trust label. What remains open is the install-only UX itself — the dialog redesign below — or extending the ClawHub detail contract.
  • The CLI still ships the "Not scanned by ClawHub" label. It predates this PR and is untouched here. Now that the apps deliberately do not label external sources, the CLI is the one surface that still does. Whether it should keep that label is a separate maintainer call, logged in the fleet backlog.
  • The refusal dialog needs a redesign (approved follow-up, direction recorded above): treat install-only as information rather than an error, size the dialog to its content, and offer Install in place of a CLI instruction.
  • iOS AgentPro keeps a second, weaker ClawHub install path (AgentProTab+Skills.swift): no detail review, no version pin, no risk acknowledgement. It now sends the right publisher, but it is duplicate policy that should probably route through the Settings surface.

Trust label: owner decision

A ClawSweeper review of 7edc2392a09 raised a P1 asking maintainers to choose the external-source policy before this could be finalized. That decision has been made, and it went against adding a label.

Decision. OpenClaw does not add a trust-label layer for skills-sh: results in its apps. skills.sh runs its own scanners, and the maintainer's position is that we trust them rather than stacking a second OpenClaw-side alert on top. This is product judgment, not a technical rebuttal of the finding.

What that reverted. An earlier revision of this PR added a "Not scanned by ClawHub" label to Control UI, iOS, macOS and Android, plus a trustState field on SkillsSearchResultSchema to carry it. All of that is reverted. The wire field went with it: with nothing rendering it, keeping it would have left an undeclared, unused field on the protocol.

What did not change. trustState on the infra search type predates this PR and is untouched; the Gateway forwarded it before this PR and still does, so wire behavior matches what shipped. The CLI's existing label reads from infra in-process and never through the Gateway schema, so removing the schema field does not affect it.

What still protects this path. Publisher identity is a single search-produced reference, so review and install can no longer diverge across same-slug publishers, and skills.detail still fails closed for source-qualified external references with an actionable message. External results stay reachable through an explicit install path rather than a silently-wrong review card.

Unrelated breakage folded in

checks-ui-e2e (4/4) failed on session-management.archive.e2e.test.ts for a reason unrelated to this PR. #121625 made session switching keep the previous pane warm, so two .agent-chat__input textarea elements are mounted after a switch and an unscoped strict locator resolves to both. That PR's own "scope retained session assertions" pass scoped part of this file — line 338 already uses openclaw-chat-pane[aria-hidden="false"] — but missed the deleted-session recovery test.

Scoped those locators to the visible pane using the pattern already present in the file, per the root AGENTS.md rule that unrelated breakage blocking the merge gate is fixed in the landing PR. Tests only, no production change, kept as its own commit so it is droppable if a heal lands on main first.

Landing onto red main

The first exact-head run failed in ui/src/pages/chat/chat-pane-task-suggestions.test.ts. A clean main checkout at 4401ff2a923 reproduced the same failure under the full UI suite on Blacksmith Testbox: the test mocked ../../lib/clipboard.ts, but the UI suite deliberately uses isolate: false, so a previously cached production module could retain the real clipboard binding while the test asserted against a different mock.

The repair is test-only and kept in its own commit: it exercises the real clipboard boundary by stubbing navigator.clipboard.writeText and the document.execCommand fallback, then asserts the visible pane error path. Production LOC delta: zero.

Remote proof:

  • clean main @ 4401ff2a923: pnpm --dir ui test --maxWorkers 3 reproduced the failure (run)
  • repaired branch: focused test and oxfmt --check passed (run)
  • regenerated per-module plugin SDK baseline on Blacksmith Testbox (run)

Landing repair superseded by main

The test-only clipboard isolation repair described above was required for the earlier landing head, but it is not present on the current head. Main subsequently merged #122451, which repairs the same shared-suite isolation failure more completely; the redundant local commit was dropped during the final rebase. The prior remote reproduction and repair runs remain provenance for the red-main diagnosis. Current exact-head CI is the landing gate.

Current per-module SDK baseline

The current head uses the per-module baseline format introduced by #121842. The earlier plugin-sdk-api-baseline.jsonl wording above describes superseded heads. On the final transplant, 17 module records under docs/.generated/plugin-sdk-api-baseline/ were regenerated and checked remotely; the generated delta is line-neutral.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Aug 10, 2026
@clawsweeper

clawsweeper Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added app: android App: android app: ios App: ios app: macos App: macos app: web-ui App: web-ui gateway Gateway runtime cli CLI command changes size: L maintainer Maintainer-authored PR labels Aug 10, 2026
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review August 10, 2026 18:46
@vyctorbrzezowski
vyctorbrzezowski force-pushed the fix/117633-clawhub-publisher-identity branch from d4b33b5 to f429fc9 Compare August 10, 2026 18:50
@clawsweeper clawsweeper Bot added merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. 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 Aug 10, 2026
@clawsweeper

clawsweeper Bot commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 12, 2026, 2:02 AM ET / 06:02 UTC.

ClawSweeper review

What this changes

The PR adds a publisher-qualified ClawHub skill reference to search results and carries it through Gateway, CLI, web, Android, iOS, and macOS detail/install actions.

Regression provenance

Possible regression — probable (reproduction; reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

This remains a necessary fix: current main still loses publisher identity between ClawHub search and detail. No concrete patch defect was found in the available evidence, but exact-head blob inspection is blocked by promisor/DNS failure and iOS CI was still running.

Priority: P1
Reviewed head: 7ba261422bf84a64ec6d0fe2973b6842e6a4c069

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The supplied browser and boundary evidence is strong, with final merge confidence gated by exact-head source access and iOS completion.
Proof confidence 🦞 diamond lobster (5/6) Not applicable: The author is a repository MEMBER; supplied browser screenshots and request traces remain useful evidence, but the external-contributor proof gate does not apply.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The author is a repository MEMBER; supplied browser screenshots and request traces remain useful evidence, but the external-contributor proof gate does not apply.
Evidence reviewed 6 items Current-main producer drops identity: Search returns results after resolving icons, without recording an owner-qualified reference for later consumers.
Current-main Gateway detail uses bare slug: The detail handler forwards only params.slug to ClawHub, so it cannot distinguish publishers sharing a slug.
Current protocol lacks selection identity: SkillsSearchResultSchema exposes a slug but no publisher-qualified reference on current main.
Findings None None.
Security None None.

How this fits together

ClawHub search results flow through OpenClaw infrastructure and the Gateway protocol into skill browsers. A selected result then returns to Gateway for detail lookup or installation.

flowchart LR
A[ClawHub search] --> B[OpenClaw infrastructure]
B --> C[Gateway search response]
C --> D[CLI and skill browsers]
D --> E[Qualified skill reference]
E --> F[Skill detail]
E --> G[Skill install]
Loading

Before merge

  • Resolve merge risk (P1) - The Gateway result contract is additive, but source-qualified detail now fails closed; exact-head compatibility review needs the unavailable PR blobs.
  • Resolve merge risk (P1) - The branch reports production +171/-88 (net +83); this is justified only if each client must carry the one canonical reference rather than reconstructing identity independently.
  • Resolve merge risk (P1) - The supplied exact-head status still had iOS CI in progress.
  • Complete next step (P2) - Await iOS completion and direct exact-head blob review; no bounded repair finding is currently supported.
Agent review details

Security

None.

PR surface

Source +204, Tests +177, Generated 0, Other +59. Total +440 across 45 files.

View PR surface stats
Area Files Added Removed Net
Source 11 262 58 +204
Tests 6 672 495 +177
Docs 0 0 0 0
Config 0 0 0 0
Generated 17 17 17 0
Other 11 188 129 +59
Total 45 1139 699 +440

Review metrics

Metric Value Why it matters
Production versus test delta production +171/-88 (net +83); tests/test support +275/-14 (net +261); generated +112/-112 The cross-client identity contract is a substantial bug-fix expansion and needs its producer-owned design justification before merge.
Gateway result contract 2 optional fields added installRef and icon alter the search response shape consumed by current and upgraded clients.

Stored data model

Persistent data-model change detected: serialized state: src/infra/clawhub-skills.test.ts, unknown-data-model-change: packages/gateway-protocol/src/schema/agents-models-skills.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #117633
Summary: This is the maintained candidate repair for the canonical same-slug ClawHub selection defect.

Members:

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

Merge-risk options

Maintainer options:

  1. Complete exact-head compatibility review (recommended)
    Let iOS CI finish and recheck the unavailable PR blobs before merge, confirming that upgraded and older clients handle the additive result field safely.
  2. Pause for a broader external-detail decision
    Defer only if maintainers require a source-qualified detail endpoint before accepting the scoped publisher-identity repair.

Technical review

Best possible solution:

Keep one producer-recorded reference as the selection identity across every client; the remaining positive LOC is warranted only by those distinct client state paths, with the CLI derivation removed.

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

Yes—current main returns bare search slugs at src/infra/clawhub-skills.ts:201 and forwards that bare value at src/gateway/server-methods/skills.ts:301, so same-slug publishers cannot remain distinct.

Is this the best way to solve the issue?

Yes—the producer-owned reference and existing parser are preferable to each client rebuilding publisher identity from separate fields.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 6752f8b4f133.

Labels

Label changes:

  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The author is a repository MEMBER; supplied browser screenshots and request traces remain useful evidence, but the external-contributor proof gate does not apply.
  • remove proof: sufficient: Current real behavior proof status is not_applicable, not sufficient.

Label justifications:

  • P1: Same-slug results currently break the user-facing skill review and installation workflow.
  • merge-risk: 🚨 compatibility: The PR adds a Gateway search-result field and changes source-qualified detail requests from ambiguous lookup behavior to an explicit refusal.
  • 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. Not applicable: The author is a repository MEMBER; supplied browser screenshots and request traces remain useful evidence, but the external-contributor proof gate does not apply.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The author is a repository MEMBER; supplied browser screenshots and request traces remain useful evidence, but the external-contributor proof gate does not apply.

Evidence

What I checked:

Likely related people:

  • steipete: Merged the ClawHub infrastructure split that owns the search implementation this PR changes. (role: recent adjacent infrastructure contributor; confidence: medium; commits: 8d810d188b98; files: src/infra/clawhub-skills.ts)
  • joshavant: The current-main search, Gateway detail, and schema lines share this visible blame boundary; older history is unavailable in this partial clone. (role: current visible line-history contributor; confidence: low; commits: 8c1880a54a25; files: src/infra/clawhub-skills.ts, src/gateway/server-methods/skills.ts, packages/gateway-protocol/src/schema/agents-models-skills.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Wait for the in-progress iOS check.
  • Re-run exact-head source inspection when the promisor remote is reachable.

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 (16 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-11T04:02:46.406Z sha 1021749 :: found issues before merge. :: [P1] Keep source-qualified results actionable in native browsers
  • reviewed 2026-08-11T06:53:23.829Z sha 54ef1f83de98f33696aecab38da923664cf594bb :: found issues before merge. :: [P1] Keep external-source results actionable in review-first clients
  • reviewed 2026-08-11T07:54:41.190Z sha c8058d4 :: needs changes before merge. :: [P1] Make external-source rows actionable in review-first clients
  • reviewed 2026-08-11T12:54:58.760Z sha c8058d4 :: found issues before merge. :: [P1] Make source-qualified rows directly installable
  • reviewed 2026-08-11T17:06:06.702Z sha 88efdbf :: found issues before merge. :: [P1] Keep external-source rows actionable in native browsers
  • reviewed 2026-08-11T20:02:48.630Z sha 5ef1817 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-12T03:56:18.961Z sha e8f9627 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-12T04:58:34.421Z sha 520d1f68210adb483106e5db994e8d9f5712fbe9 :: needs maintainer review before merge. :: none

@vyctorbrzezowski
vyctorbrzezowski force-pushed the fix/117633-clawhub-publisher-identity branch from f429fc9 to 0dab0fd Compare August 10, 2026 19:17
@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Aug 10, 2026
@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Aug 10, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the fix/117633-clawhub-publisher-identity branch from 2a94b8a to 5b54757 Compare August 10, 2026 20:18
@vyctorbrzezowski
vyctorbrzezowski force-pushed the fix/117633-clawhub-publisher-identity branch from 5b54757 to 8107967 Compare August 10, 2026 20:38
@clawsweeper clawsweeper Bot added the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Aug 10, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the fix/117633-clawhub-publisher-identity branch from 8107967 to d8cdb51 Compare August 10, 2026 23:27
@clawsweeper clawsweeper Bot removed the status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. label Aug 11, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the fix/117633-clawhub-publisher-identity branch 2 times, most recently from e8f9627 to 520d1f6 Compare August 12, 2026 04:52
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Aug 12, 2026
ClawHub search returns one entry per publisher, so several results can share a
slug. Every client collapsed the selection to that bare slug before calling
skills.detail and skills.install, and ClawHub answered 409 AMBIGUOUS_SKILL_SLUG
with no in-product way forward.

searchClawHubSkills now records the publisher-qualified reference once, on the
result that carries it, and the Gateway protocol documents it. skills.detail
parses the same reference grammar skills.install already accepted, so review and
install cannot resolve to different publishers. Control UI carries that one
reference through row actions, detail, busy state, and acknowledgement retries,
and shows it so otherwise identical rows are distinguishable.

Fixes #117633
…wsers

macOS, iOS, and Android read the qualified reference from search results and use
it for skills.detail, install, busy state, installed matching, and list identity,
so two publishers sharing a slug stay distinct instead of collapsing into one
ambiguous request.
… same-slug skill

ClawHub has no source-qualified read endpoint, so a skills-sh reference parsed
down to its bare slug would have returned a registry skill's card while install
resolved the external artifact. Review and install could name different skills.

skills.detail now fails closed on any reference that carries a source, and the
macOS and AgentPro rows show the publisher reference next to the summary instead
of only when a summary is missing, so same-slug rows stay distinguishable.
installRef is the one reference clients send back, and no client reads the
publisher handle separately, so the protocol and Control UI carry one field
instead of two.
Clients that gate install behind a successful review would otherwise see only a
refusal, so the error names the direct install path and the CLI equivalent.
swift-format's docComments rule requires doc comments on declarations; the
subtitle property carried a regular comment and failed macos-swift.
Forwarding installRef let clients install the exact publisher the operator
picked, including external skills-sh sources. It did not forward the trust
state that says ClawHub never scanned that source, so iOS AgentPro — the one
surface that installs in a single tap with no review step — could install an
unscanned artifact with nothing on screen saying so. The CLI already labels
these (docs/clawhub/cli.md, docs/cli/skills.md); native clients could not,
because trustState was never on the wire.

trustState becomes an optional field on SkillsSearchResultSchema. It is purely
additive: older clients ignore an unknown key and the field is absent for
registry results, so downgraded readers are unaffected and no protocol version
moves.

Every client that renders a search row now shows "Not scanned by ClawHub",
matching the CLI wording exactly: iOS AgentPro in the row above the install
button, macOS and Android beside the review action, and Control UI on the row
that explains why review is refused for these sources.

Covered by a wire assertion that the state reaches clients for an external
source and stays absent for registry rows, plus decode-and-label tests on the
shared Swift kit and the Android parser, and a Control UI render assertion.
Refusing detail for an external source made an error-only dialog reachable.
The shared preview panel reserves a tall reader height for skill documents, so
a two-line refusal rendered in a mostly empty dialog and read as broken rather
than deliberate. Found by inspecting the review captures.
Maintainer product decision: skills.sh runs its own scanners, so OpenClaw does
not add a second alert layer in the apps. Removes the label from Control UI,
iOS, macOS and Android, and drops the trustState wire field that nothing would
render. The CLI keeps its existing label; changing that is a separate call.

Publisher identity, the fail-closed detail refusal, and the message-only dialog
are unchanged. Splits the oversized skills view test file to satisfy max-lines
without a suppression.
@vyctorbrzezowski
vyctorbrzezowski force-pushed the fix/117633-clawhub-publisher-identity branch from 520d1f6 to 7ba2614 Compare August 12, 2026 05:42
@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. labels Aug 12, 2026
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

Maintainer landing review on repaired head 299c9b1917ae12e916da476889ade6f4d2d04464:

  • ClawSweeper rank-up move complete: exact-head source, callers, client fallbacks, and generated protocol closure were inspected directly. The producer-owned installRef remains the best fix; older Gateways retain the bare-slug fallback.
  • ClawSweeper rank-up move complete: the iOS build and the full exact-head CI matrix are green.
  • Conflict repair was limited to a signed merge of current main; generated Plugin SDK hashes were regenerated from the merged tree.

No actionable finding remains.

@Patrick-Erichsen
Patrick-Erichsen merged commit aba94bb into main Aug 13, 2026
127 checks passed
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android app: ios App: ios app: macos App: macos app: web-ui App: web-ui cli CLI command changes docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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.

[Bug]: When two skills on ClawHub share the same slug, the Control UI cannot install either of them

2 participants