Skip to content

fix: explain plugin installation permission failures - #183563

Merged
steipete merged 2 commits into
mainfrom
steipete/aot-p6-manifest-diagnostics
Oct 25, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/aot-p6-manifest-diagnostics

Conversation

@steipete

@steipete steipete commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes misleading “Plugin artifact has no valid plugin manifest” errors when a valid plugin is rejected because its directory is world-writable.

User Impact

Plugin installation and capability inspection report the existing discovery warning, including the unsafe path, so operators can correct permissions. All admission checks remain unchanged.

Why This Change Was Made

Artifact inspection retained error-level diagnostics but discarded warning-level discovery refusals when no plugin was accepted. Preserve the first error's precedence, surface the discovery warning in that failure case, and keep the generic fallback when no diagnostic exists.

Evidence

  • A real POSIX fixture calls inspectPluginCapabilityArtifact: a valid plugin under a 0777 root is rejected with the permission diagnostic; inspection succeeds after changing the root to 0755. The regression failed on the original owner for the expected message mismatch.
  • All 34 tests in capability-consent.test.ts pass. Local wall time: 30.97 seconds, mostly existing compiled-worker setup; CI timing pending.
  • The plugins-platform test-type shard, targeted type-aware lint, formatting, and git diff --check pass. Independent review is clean through P2.

@clawsweeper

clawsweeper Bot commented Oct 25, 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.

@steipete
steipete marked this pull request as ready for review October 25, 2026 11:36
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T11:37:44.480206Z 88973cb Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XS labels Oct 25, 2026
@steipete
steipete enabled auto-merge (squash) October 25, 2026 11:45
@steipete
steipete disabled auto-merge October 25, 2026 11:48
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 25, 2026
@steipete
steipete merged commit 3963fb3 into main Oct 25, 2026
118 of 120 checks passed
@steipete
steipete deleted the steipete/aot-p6-manifest-diagnostics branch October 25, 2026 12:04
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 26, 2026
* fix: explain plugin installation permission failures

* test: assert repaired plugin manifest structurally
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. docs Improvements or additions to documentation size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant