Repository navigation
fix(skills): keep installed verdicts scoped to publisher - #119672
Conversation
|
After-fix Control UI proof from an isolated dev gateway and temporary workspace. The actual installed-skill dialog renders the complete owner-qualified identity |
|
Codex review: needs changes before merge. Reviewed August 5, 2026, 5:29 PM ET / 21:29 UTC. ClawSweeper reviewWhat this changesThis PR preserves the installed ClawHub publisher through security-verdict lookup, Gateway projection, and Control UI cache/display keys to prevent same-slug publishers sharing a verdict. Merge readinessKeep open: the new older-registry fallback performs up to 100 owner-qualified verification requests serially, which can stall the passive verdict RPC for roughly 50 minutes at the default timeout. The protected maintainer/security labels and unavailable upstream API evidence also require human review before merge. Priority: P2 Review scores
Verification
How this fits togetherInstalled skills retain registry provenance, which the Gateway uses to fetch a security verdict and the Control UI uses to render trust status. This patch makes publisher identity part of that provenance-to-verdict correlation. flowchart LR
A[Installed skill provenance] --> B[Verdict target collection]
B --> C[Exact registry resolver]
C --> D[Batch or verify request]
D --> E[Gateway verdict response]
E --> F[Control UI cache]
F --> G[Installed skill detail]
Decision needed
Why: The change sits on a security decision boundary and relies on an external API change that was unavailable to this read-only review. Before merge
Findings
Agent review detailsSecurityNeeds attention: Publisher validation remains fail-closed, but the new fallback path can create an availability failure in the security-verdict decision flow. PR surfaceSource +188, Tests +453. Total +641 across 14 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Use bounded-concurrency legacy verification fallbacks while preserving target-indexed correlation and fail-closed publisher/version checks, then attach inspectable exact-head registry-response evidence. Do we have a high-confidence way to reproduce the issue? Yes, from source: make a 100-target owner-qualified batch receive Is this the best way to solve the issue? No: the canonical resolver is the right owner boundary, but its legacy fallback needs bounded concurrency before it is a safe implementation. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7b8bba26c953. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
Acceptance criteria:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
3e2ac90 to
31199c7
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Land-ready proof is complete for head
No known proof gaps remain for this bug-fix scope. |
|
Merged via squash.
|
|
Merged behavior proof: actual Control UI dialog from an isolated gateway/workspace. It shows the full installed identity |
…cope * origin/main: perf(agents): isolate concurrency benchmark workers (openclaw#119749) fix(diagnostics): preserve OTEL startup failure (openclaw#119747) fix(agents): seed fresh session identity before transcript append (openclaw#119473) fix: steering reaches active runs across agent harnesses (openclaw#119594) fix(cli): report accurate filtered node totals (openclaw#119744) fix(skills): keep installed verdicts scoped to publisher (openclaw#119672) fix(diagnostics): honor signal-specific OTLP protocols (openclaw#119708)
…9672) * fix(skills): preserve owner-qualified security verdicts * fix(skills): keep verdict helper internal * fix(skills): bound legacy verdict fallbacks

Related: #117681
Related: openclaw/clawhub#3409
What Problem This Solves
Fixes an issue where Control UI could lose or misattribute the security verdict for an installed ClawHub skill when another publisher used the same slug and version. Installed provenance already recorded the trusted publisher, but the passive verdict path dropped that owner before batching and keyed UI state only by registry, slug, and version.
Why This Change Was Made
OpenClaw now carries the installed
ownerHandlethrough target collection, the shared exact-skill verdict resolver, Gateway protocol projection, Control UI keys, and the installed-skill detail view. One canonical resolver is shared with install/update trust: it safely correlates batch responses by request identity, keeps owner-collision requests compatible with older registries by separating legacy-conflicting batches, uses the existing exact owner-qualified/verifyfallback only forskill_not_found, preserves unauthenticated passive reads, and fails closed on publisher or exact-version mismatch.The additive ClawHub API support landed first in openclaw/clawhub#3409 (
f9ea25e14f14c05f9544d3878d1626d0dcec4b7a). Older/custom registries remain compatible through the exact/verifyfallback. Passive reads still run only against the currently configured registry; unrelated installed registry records remain skipped.This is independent of #117681: that PR preserves publisher identity during search/detail/install selection, while this PR preserves the installed publisher identity during later security-verdict reads.
User Impact
Operators see and evaluate the verdict for the exact installed publisher. The installed overview now renders the complete reference, such as
@openclaw/[email protected], and a malformed, reordered, mismatched, or older-registry response cannot silently attach another publisher's clean verdict.No config surface, protocol version, schema version, release, or changelog change is introduced. The Gateway field is optional for compatibility with older clients.
Evidence
node scripts/run-vitest.mjs src/infra/clawhub-skill-security.test.ts src/infra/clawhub.test.ts src/skills/lifecycle/clawhub.test.ts src/gateway/server-methods/skills.clawhub.test.ts ui/src/lib/skills/index.test.ts ui/src/pages/skills/view.test.tstsgo:core,tsgo:core:test,tsgo:ui, targeted oxlint, native schema guard, database-first/storage/media/sidecar checks, import-cycle check, webhook body-order guard, and pairing auth guards.@openclaw/[email protected]and issued the owner-qualified exact/verifycompatibility request. A sanitized dialog-only screenshot contains no user session data and will be attached to the PR.gpt-5.6-sol, high reasoning) on the final branch reported no accepted/actionable findings.git diff --checkpassed./verifyfallbacks were serial. The follow-up commit bounds that path to six concurrent requests per batch and adds a regression proving eight fallbacks complete with exactly six in flight while preserving result order and identity checks.AI-assisted: yes. I understand and can maintain this change.