Skip to content

fix(skills): preserve ClawHub publisher identity - #117681

Closed
synthalorian wants to merge 1 commit into
openclaw:mainfrom
synthalorian:fix/117633-clawhub-slug-collision
Closed

synthalorian wants to merge 1 commit into
openclaw:mainfrom
synthalorian:fix/117633-clawhub-slug-collision

Conversation

@synthalorian

@synthalorian synthalorian commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Closes #117633

What Problem This Solves

ClawHub allows different publishers to use the same skill slug. The skills clients kept only the bare slug after search, so selecting one publisher could open or install another publisher's skill, or fail with an ambiguous-slug response.

Proposed fix

This PR keeps the selected ClawHub identity as @owner/slug from search through detail and install:

  • skills.search exposes the publisher handle alongside the slug.
  • Control UI, Apple, and Android derive one canonical @owner/slug reference and reuse it for selection, busy state, detail, and install.
  • skills.detail parses that canonical reference and forwards the owner to ClawHub.
  • Same-slug results visibly include their publisher-qualified reference.

The scope deliberately does not add installRef or trustState to the shared result. Source-qualified skills.sh detail remains a separate product/API decision tracked in the existing skills.sh detail source-qualified backlog item; skills.detail continues to reject that source instead of silently collapsing it to a bare slug.

The rebuild preserves @synthalorian's original diagnosis and patch direction; the replacement commit includes co-author credit.

Evidence

Before the fix, the focused Gateway regression expected { slug: "weather", ownerHandle: "alice" } but received { slug: "@Alice/weather" }.

After the fix:

  • Gateway unit tests: 11 passed.
  • Control UI unit tests: 61 passed.
  • Real Gateway E2E: two publishers share weather; Alice detail resolves Alice, and Bob install reaches the owner-qualified Bob endpoint. 2 passed in Testbox.
  • Control UI Playwright: Alice detail and Bob install retain their respective canonical references. 1 passed in Testbox.
  • Android SkillManagementTest and the Gateway protocol check passed in Testbox.
  • Plugin SDK protocol baseline check passed.
  • Focused autoreview found no actionable issue.

Proposed Control UI — light

Proposed ClawHub same-slug publisher results in light theme

Proposed Control UI — dark

Proposed ClawHub same-slug publisher results in dark theme

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime size: XL triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Aug 1, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels Aug 1, 2026
@clawsweeper

clawsweeper Bot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 12, 2026, 5:20 AM ET / 09:20 UTC.

ClawSweeper review

What this changes

This PR carries a selected ClawHub publisher reference through Gateway, Control UI, and native clients so same-slug skills are reviewed and installed from the chosen publisher.

Merge readiness

⚠️ Needs maintainer review before merge - 7 items remain

Keep this PR open: current main still has the reported publisher-collision bug, but this branch leaves source-qualified search results vulnerable to identity loss and the proposed replacement is currently reported as conflicted, so it cannot safely supersede this work yet.

Priority: P1
Reviewed head: b61b487aa75c95019228775f8019d8626b671180
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The branch has meaningful after-fix boundary proof, but the unresolved source-identity flaw prevents merge readiness.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (linked_artifact): The PR body links after-fix Testbox Gateway E2E and Control UI evidence, and the committed E2E exercises an actual Gateway plus injected duplicate-publisher registry through search, detail, and installation.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The PR body links after-fix Testbox Gateway E2E and Control UI evidence, and the committed E2E exercises an actual Gateway plus injected duplicate-publisher registry through search, detail, and installation.
Evidence reviewed 6 items Current-main defect: Current main exposes search results without publisher or install-reference identity, while detail forwards the received bare slug; the existing UI path therefore cannot retain a selected publisher.
Existing producer contract: The registry result already has installRef and trustState for source-qualified results, while its detail client accepts an ownerHandle when supplied.
Incomplete branch contract: The branch adds ownerHandle but does not project installRef; its client helper reconstructs only @owner/slug or a bare slug, so a skills-sh result loses its source identity before the new detail guard can reject it.
Findings 1 actionable finding [P1] Preserve the registry-supplied install reference
Security Needs attention Source-qualified results lose review identity: The protocol projects only ownerHandle, not the registry's installRef, so skills-sh results can be reduced to a bare slug and associated with a different registry skill.

How this fits together

ClawHub search results pass through the Gateway protocol to web and native skill browsers, which then request a skill review or installation. The selected registry identity must remain intact across that path so a duplicate slug cannot select a different publisher or source.

flowchart LR
  A[ClawHub search] --> B[Gateway search contract]
  B --> C[Web and native skill browsers]
  C --> D[Selected skill identity]
  D --> E[Gateway detail or install]
  E --> F[ClawHub registry]
  A --> G[Source-qualified skill]
  G --> B
Loading

Decision needed

Question Recommendation
Should the clean canonical repair preserve the registry installRef for external source results and present them as safe refusal or deliberate install-only behavior, then replace this conflicted branch? Complete a clean canonical replacement: Rebase and validate #121697 with full installRef propagation and an explicit external-source review/install outcome, then close this PR as superseded.

Why: The branch fixes publisher-qualified ClawHub results but deliberately omits the existing source-qualified identity, and the user-facing behavior for those results requires an explicit product choice.

Before merge

  • Preserve the registry-supplied install reference (P1) - The new contract carries only ownerHandle, although search results already have installRef for skills-sh: entries. Those entries therefore reach clients as a bare slug, so the new source guard never sees the source reference and detail can show a different same-slug ClawHub skill while install loses the approved source identity. Carry installRef end-to-end and make the source review outcome explicit.
  • Resolve security concern: Source-qualified results lose review identity - The protocol projects only ownerHandle, not the registry's installRef, so skills-sh results can be reduced to a bare slug and associated with a different registry skill.
  • Resolve merge risk (P1) - Source-qualified skills-sh search results still collapse to a bare slug, so a user can review a same-slug ClawHub skill while installation resolves an external source.
  • Resolve merge risk (P1) - The supplied GitHub snapshot reports this branch and the related replacement as dirty; neither is presently a safe merge path.
  • Resolve merge risk (P1) - Production code grows by 52 net lines for a bug fix while identity formatting is duplicated across clients instead of being recorded once at the registry boundary.
  • Complete next step (P2) - A maintainer must select the canonical conflicted branch and the external-source review/install behavior before an automated repair can safely proceed.

Findings

  • [P1] Preserve the registry-supplied install reference — packages/gateway-protocol/src/schema/agents-models-skills.ts:416
  • [high] Source-qualified results lose review identity — packages/gateway-protocol/src/schema/agents-models-skills.ts:416
Agent review details

Security

Needs attention: The identity-preservation change leaves an existing source-qualified result able to lose its identity before a security-sensitive review/install decision.

PR surface

Source +31, Tests +297, Generated 0, Other +50. Total +378 across 39 files.

View PR surface stats
Area Files Added Removed Net
Source 6 59 28 +31
Tests 5 313 16 +297
Docs 0 0 0 0
Config 0 0 0 0
Generated 17 17 17 0
Other 11 124 74 +50
Total 39 513 135 +378

Review metrics

Metric Value Why it matters
Production versus test LOC production +111/-59 (net +52); tests +342/-16 (net +326); generated +60/-60 The bug fix expands four client surfaces and the Gateway contract; a producer-owned reference would remove duplicated client derivation.

Stored data model

Persistent data-model change detected: serialized state: test/e2e/qa-lab/runtime/gateway-rpc-tools-skills.e2e.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Use one registry-owned identity (recommended)
    Before merge, preserve installRef through the protocol and all clients so a source-qualified result cannot be reviewed or installed as a different same-slug skill.
  2. Pause for the clean replacement
    Keep this PR open until fix: install or review the publisher you picked when ClawHub skills share a slug #121697 is rebased cleanly, its source-result UX is decided, and exact-head proof confirms it is safe to supersede this branch.

Technical review

Best possible solution:

Project the registry-supplied installRef as the one canonical search identity, carry it unchanged through every client and Gateway operation, and give external-source review an explicit safe refusal or install-only flow before selecting one clean canonical PR.

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

Yes, from source: current main drops identity at the Gateway search schema and sends a bare slug for detail and installation, while the registry client already supports qualified identity.

Is this the best way to solve the issue?

No; the publisher-only repair is incomplete because it ignores the producer-owned installRef used for source-qualified results. Carrying that one reference end-to-end is the safer owner-boundary fix.

Full review comments:

  • [P1] Preserve the registry-supplied install reference — packages/gateway-protocol/src/schema/agents-models-skills.ts:416
    The new contract carries only ownerHandle, although search results already have installRef for skills-sh: entries. Those entries therefore reach clients as a bare slug, so the new source guard never sees the source reference and detail can show a different same-slug ClawHub skill while install loses the approved source identity. Carry installRef end-to-end and make the source review outcome explicit.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 5350b92dc83d.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body links after-fix Testbox Gateway E2E and Control UI evidence, and the committed E2E exercises an actual Gateway plus injected duplicate-publisher registry through search, detail, and installation.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (linked_artifact): The PR body links after-fix Testbox Gateway E2E and Control UI evidence, and the committed E2E exercises an actual Gateway plus injected duplicate-publisher registry through search, detail, and installation.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove status: 📣 needs proof: Current PR status label is status: ⏳ waiting on author.

Label justifications:

  • P1: Same-slug skill selection remains a broken review/install workflow, including a source-identity safety gap in the proposed repair.
  • merge-risk: 🚨 security-boundary: The patch changes which third-party skill an operator reviews and installs, but still permits source identity to collapse to a same-slug registry record.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (linked_artifact): The PR body links after-fix Testbox Gateway E2E and Control UI evidence, and the committed E2E exercises an actual Gateway plus injected duplicate-publisher registry through search, detail, and installation.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body links after-fix Testbox Gateway E2E and Control UI evidence, and the committed E2E exercises an actual Gateway plus injected duplicate-publisher registry through search, detail, and installation.

Evidence

Security concerns:

  • [high] Source-qualified results lose review identity — packages/gateway-protocol/src/schema/agents-models-skills.ts:416
    The protocol projects only ownerHandle, not the registry's installRef, so skills-sh results can be reduced to a bare slug and associated with a different registry skill.
    Confidence: 0.98

What I checked:

Likely related people:

  • vyctorbrzezowski: Authored the current branch head and the related maintainer replacement targeting the same identity boundary. (role: recent branch and replacement contributor; confidence: high; commits: b61b487aa75c; files: src/gateway/server-methods/skills.ts, packages/gateway-protocol/src/schema/agents-models-skills.ts, ui/src/lib/skills/clawhub-search.ts)
  • steipete: The PR discussion records an earlier rewrite and explicitly identifies the unresolved source-qualified-detail product decision. (role: reviewer and earlier branch-rewrite author; confidence: high; commits: 4caab5d072c0; files: src/gateway/server-methods/skills.ts, src/infra/clawhub-skills.ts)
  • Peter Steinberger: Shallow-history blame reaches the current source boundary for the bare-slug behavior, but it cannot establish earlier feature ownership. (role: current-history boundary contributor; confidence: low; commits: 1afb5e64a5a3; files: 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.

  • Carry installRef and source state through the Gateway protocol and each client.
  • Add a source-qualified search regression proving review cannot resolve a different same-slug skill.
  • Rebase the selected canonical branch and obtain exact-head clean mergeability.

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 (18 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-02T23:23:49.277Z sha b41a7bb6ed783b26832a0bdf36152197af804196 :: needs real behavior proof before merge. :: [P1] Declare publisher identity in the search-result contract | [P1] Propagate publisher identity through native skill clients
  • reviewed 2026-08-02T23:30:19.734Z sha b41a7bb6ed783b26832a0bdf36152197af804196 :: needs real behavior proof before merge. :: [P1] Declare publisher identity in the shared search-result contract | [P1] Key detail ownership by the qualified skill reference | [P1] Carry publisher identity through native skill clients
  • reviewed 2026-08-03T14:25:44.967Z sha b41a7bb6ed783b26832a0bdf36152197af804196 :: needs real behavior proof before merge. :: [P1] Key detail state by the qualified skill reference
  • reviewed 2026-08-04T12:36:23.803Z sha b41a7bb6ed783b26832a0bdf36152197af804196 :: needs real behavior proof before merge. :: [P1] Declare publisher identity in the shared search-result contract | [P1] Key detail state by the qualified skill reference | [P1] Propagate publisher identity through native skill clients
  • reviewed 2026-08-04T13:25:36.722Z sha b41a7bb6ed783b26832a0bdf36152197af804196 :: needs real behavior proof before merge. :: [P1] Key detail state by the qualified skill reference | [P1] Declare publisher identity in shared search results | [P1] Carry publisher identity through native skill clients
  • reviewed 2026-08-05T02:09:04.194Z sha 4caab5d072c02a0b94862ae09d2f48b2b2f9eb50 :: needs real behavior proof before merge. :: [P1] Keep skills-sh review requests source-qualified
  • reviewed 2026-08-05T02:23:47.788Z sha 4caab5d072c02a0b94862ae09d2f48b2b2f9eb50 :: needs real behavior proof before merge. :: [P1] Keep skills-sh review requests source-qualified
  • reviewed 2026-08-07T09:42:20.093Z sha c35f3c74288591c957b75875ed46bf6cc212229d :: needs real behavior proof before merge. :: [P1] Keep skills-sh review requests source-qualified

@synthalorian
synthalorian force-pushed the fix/117633-clawhub-slug-collision branch from d31b509 to cd8f75f Compare August 2, 2026 05:50
@synthalorian

Copy link
Copy Markdown
Contributor Author

Fix for P1: Include publisher in the in-flight install key

What this fixes

The in-flight install deduplication key did not include ownerHandle, so concurrent installs of @owner-a/slug and @owner-b/slug in one workspace would share the first promise — the second UI action could report success while installing the other publisher's package.

Changes

  • Added params.ownerHandle ?? null to the deduplication key in installClawHubSkillDeduped
  • Added regression test for the two-owner race

Live test evidence

Test Files  1 passed (1)
Tests       16 passed (16)

Key tests:

  • ✓ deduplicates concurrent exact ClawHub installs across reconnects
  • ✓ does not deduplicate concurrent installs for different publishers of the same slug

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 2, 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 repository_dispatch).
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: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels Aug 2, 2026
@steipete
steipete requested a review from a team as a code owner August 2, 2026 06:32
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: imessage Channel integration: imessage channel: msteams Channel integration: msteams channel: signal Channel integration: signal channel: telegram Channel integration: telegram channel: tlon Channel integration: tlon channel: whatsapp-web Channel integration: whatsapp-web channel: zalouser Channel integration: zalouser app: android App: android cli CLI command changes scripts Repository scripts commands Command implementations agents Agent runtime and tooling labels Aug 2, 2026
@clawsweeper

clawsweeper Bot commented Aug 2, 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 repository_dispatch).
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 removed the merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. label Aug 2, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 2, 2026

@emma300es emma300es left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR threads publisher identity through the Control UI detail/install requests, which is the right direction for #117633. At exact head 3fe9c2afa712, though, the repair is still incomplete across the shared client contract and introduces an unrelated browser-redaction regression.

LOC: +394/-63 (10 files)

Findings

  • P1 — Restore the existing Control UI error-redaction boundary. The patch removes formatErrorMessage(..., { redact: redactToolDetail }) and replaces it with raw Error.message/String(err) at ui/src/lib/skills/index.ts:160; that raw text is then rendered from the catch paths at lines 351, 470, 514, 567, 678, and 746. ui/src/lib/browser-redact.ts:66-81 exists specifically to mask credential families and sensitive URL query values before browser display. This change is unrelated to publisher qualification and can expose secret-shaped gateway error text. Please restore the imports and all prior redacted formatting calls, with a regression that feeds credential-shaped error text through a Skills catch path.

  • P1 — Carry publisher identity in the authoritative search-result contract and native clients. SkillsSearchResultSchema remains a closed object without ownerHandle at packages/gateway-protocol/src/schema/agents-models-skills.ts:400-410, even though detail/install now accept it. The web UI works only through a parallel local type. ClawHubSkillSummary also still omits the owner and keys rows by bare slug (apps/shared/OpenClawKit/Sources/OpenClawKit/SkillManagement.swift:227-240); macOS sends only the slug for detail (apps/macos/Sources/OpenClaw/GatewayConnection+ClawHubSkills.swift:23-27), and iOS does the same (apps/ios/Sources/Design/SettingsSkillsDestination.swift:518-540). Add optional ownerHandle to the shared search item, regenerate consumers, use qualified row identity, and preserve it through native detail/install while keeping bare-slug compatibility.

  • P2 — Key detail ownership by the qualified selection, not slug alone. loadClawHubDetail accepts ownerHandle, but stores only clawhubDetailSlug and considers a response current when only the slug matches (ui/src/lib/skills/index.ts:649-683). If owner A is opened and owner B with the same slug is opened before A resolves, both requests remain current and A can overwrite B. The modal install then reconstructs identity from whichever detail response won (ui/src/pages/skills/view.ts:567-574). Store/compare one { slug, ownerHandle } selection (or a request token), and add an out-of-order two-owner regression.

Current external contract proof: ClawHub search returned three live imap-smtp-email publishers (gzlicanyi, vthoram, wangchenyu8); bare detail returned HTTP 409 AMBIGUOUS_SKILL_SLUG, while owner-qualified detail for gzlicanyi and wangchenyu8 returned distinct HTTP 200 responses. So the owner is authoritative at search time and must survive every client boundary.

The current lint failure is also patch-related: CI run 30743751039, job 91485725504, reports ui/src/lib/skills/index.ts:764:2: File has too many lines (710). A clean shape is to extract the ClawHub UI types/state/actions into a focused sibling module and make the qualified identity one object instead of adding a suppression. For the real-behavior gate, the smallest safe proof is a real Control UI + real Gateway E2E backed by a local ClawHub HTTP fixture that returns two same-slug publishers and owner-specific 409 install-resolution sentinels; that proves distinct detail/install queries without downloading or installing a skill.

Best-fix verdict: too narrow. Publisher qualification belongs in the shared search-to-detail/install identity contract, with the Control UI as one consumer.

Alternatives considered: an error-time 409 picker adds a redundant round trip after a user already selected an owner; overloading slug with @owner/slug preserves CLI compatibility but duplicates the explicit ownerHandle protocol field. The shared optional field plus a qualified selection object is the cleaner existing seam.

Code read: ui/src/lib/skills/index.ts, ui/src/pages/skills/{skills-page,view}.ts, packages/gateway-protocol/src/schema/agents-models-skills.ts, src/gateway/server-methods/skills.ts, src/infra/clawhub.ts, src/skills/lifecycle/clawhub.ts, and the macOS/iOS/shared Swift Skills clients and tests.

Remaining uncertainty: contributor source was not executed locally under the repository's untrusted-source policy. The verdict is based on exact-head source, current CI, and live read-only ClawHub contract responses.

@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Aug 2, 2026

@emma300es emma300es left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Follow-up on exact head 88ac4f32eaf2: the two new commits restore formatErrorMessage(..., { redact: redactToolDetail }) across the Skills catch paths and bring ui/src/lib/skills/index.ts back under the max-lines gate. Those parts of my prior review are resolved.

The remaining merge blockers are unchanged:

  • SkillsSearchResultSchema is still a closed result object with score, slug, displayName, summary, version, and updatedAt, but no ownerHandle (packages/gateway-protocol/src/schema/agents-models-skills.ts:400-410). The PR body says the generated Swift/Kotlin protocols include ownerHandle, but the search-result schema still cannot generate or validate that identity.
  • Native clients still lose the owner: ClawHubSkillSummary has no ownerHandle and uses bare slug as id; macOS skillsDetail/skillsInstallClawHub and iOS ClawHubDetailRequest still send only the slug.
  • Control UI detail ownership is still keyed only by clawhubDetailSlug. Two out-of-order requests for owner A and owner B with the same slug both pass the currentness check, so A can overwrite B.

Also, the green Real behavior proof job in run 30768011684 is not runtime proof of this patch. Its log shows checkout of base commit 9b6bda696eab..., then node scripts/github/real-behavior-proof-check.mjs, which reports only External PR includes problem context and evidence. The PR's Evidence section still lists mocked/unit tests and generation commands; it does not show a real Gateway/UI collision path or owner-specific detail/install requests.

Please keep the PR open until the qualified identity is carried by the shared response contract and every active client boundary, the same-slug response race is covered, and the requested non-installing real-Gateway fixture proof is attached.

@emma300es emma300es left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correction to my exact-head follow-up on 88ac4f32eaf2: I said the two commits brought ui/src/lib/skills/index.ts back under the max-lines gate. That was based on the green dedicated checks-fast-max-lines-ratchet check, but the subsequently completed authoritative lint job proves otherwise.

check-lint job 91550403512 fails at ui/src/lib/skills/index.ts:757:2 with File has too many lines (704). eslint(max-lines). The aggregate openclaw/ci-gate is therefore also failed. Please treat my earlier max-lines statement as withdrawn; the original module-size concern remains unresolved at this head.

This does not change the other outstanding findings: the shared search-result contract/native clients still lose publisher identity, the Control UI response-currentness key still compares only the bare slug, and real after-fix collision proof is still absent.

@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. and removed merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Aug 2, 2026
@synthalorian

Copy link
Copy Markdown
Contributor Author

/clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 3, 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 repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@steipete

steipete commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

Maintainer rewrite pushed. Current head: 4caab5d072c02a0b94862ae09d2f48b2b2f9eb50.

The fix carries publisher-qualified native ClawHub identity through the shared search contract, Control UI selection/detail/install/retry state, Gateway detail/install/deduplication, and the active Apple/Android clients. It also normalizes ClawHub's canonical install.reference at the HTTP boundary and adds same-slug publisher/source regressions.

Proof:

  • Focused Vitest: 5 files / 178 tests passed after rebase.
  • Changed gate: core/UI typechecks, formatting, boundaries, protocol generation, and core lint passed.
  • Live ClawHub: bare duplicate detail returned 409; qualified detail/install returned 200 and retained ownerHandle.
  • Native i18n baseline regenerated and verified after CI reported inventory drift.
  • Android hosted test lanes are green; Apple and remaining app lanes are still running.
  • git diff --check passed.
  • Two Codex autoreview passes found no actionable finding.

Decision needed before further code: ClawHub has no source-qualified detail/read endpoint for a skills-sh: search result. The current branch preserves that source for installation, but a review click still has only a bare slug and could display a different native skill before installing the external source. Product/API ownership must choose one of these before landing: hide external results from reviewable clients, make them install-only with an explicit trust UX, or add a source-qualified detail contract. I stopped rather than guessing that product/security behavior.

Current hosted CI has one unrelated timeout in src/commands/doctor/shared/open-policy-allowfrom.test.ts; the changed identity suites are green. This PR is not land-ready until the source-detail decision is resolved and exact-head CI is green.

@clawsweeper

clawsweeper Bot commented Aug 5, 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 repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper

clawsweeper Bot commented Aug 5, 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 repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@synthalorian

Copy link
Copy Markdown
Contributor Author

/clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 7, 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 repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@synthalorian

Copy link
Copy Markdown
Contributor Author

Closing as superseded: this exact fix shipped in #121697 (merged Aug 13), which closes the same issue (#117633). The merged implementation exposes the publisher-qualified reference as installRef on skills.search results and threads it through gateway detail/install, CLI, Control UI, Android, iOS, and shared OpenClawKit — all the layers this PR touched.

The merged contract uses installRef (a server-composed @owner/slug string) rather than a separate ownerHandle field on search results, so rebasing this branch would reintroduce a parallel, conflicting search contract on top of the shipped one. Reopening is one click if the team wants any part of this direction revived (e.g. the Control UI e2e coverage, reworked against installRef).

@synthalorian

Copy link
Copy Markdown
Contributor Author

Closing as superseded — see comment above: shipped in #121697 which already closed #117633. Reopen anytime if you want to revive the e2e coverage against the merged installRef contract.

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 docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: L status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

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

4 participants