Repository navigation
fix(plugins): expose blocked hook permissions and recovery - #160899
roboclaw-bot wants to merge 3 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Plugin permission diagnostics — inspected UI proofBeforeThe plugin is enabled, but its blocked conversation hooks have no visible permission diagnosis or review action. Baseline: AfterThe published-driver-upgraded candidate shows Limited functionality, the specific blocked hooks and configuration key, and Review permissions. No access is granted automatically. Saved-but-failed recovery and read-only statesSaved, but not appliedA persisted activation failure remains visibly failed. Apply saved settings offers recovery, and Last inspected policy avoids claiming that the saved value is active. Read-onlyThe browser was actually admitted with only All four captures are real Gateway/Chromium screenshots, inspected and sanitized before upload (1280 × 900). The installed Published head checked: |
|
Codex review: blocked before merge. Reviewed September 29, 2026, 6:13 PM ET / 22:13 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch records policy-blocked plugin hooks in Gateway responses and adds permission notices, navigation, update warnings, and saved-settings recovery to the Control UI. Merge readiness⛔ Blocked before merge - 5 items remain Keep open. Current main does not provide the reported Control UI diagnosis, and the branch has useful real-browser proof. The exploratory request has not publicly settled the Gateway diagnostic contract, which overlaps separate health-reporting work. Priority: P2 Review scores
Verification
How this fits togetherThe plugin loader checks hook registrations against operator policy and publishes its active registry through Gateway reads. The Control UI uses those reads to explain blocked hooks and directs authorized operators to existing configuration controls. flowchart LR
A[Plugin hook registration] --> B[Gateway hook policy]
B --> C{Registration allowed?}
C -- Yes --> D[Active hook]
C -- No --> E[Blocked-hook registry]
E --> F[Gateway plugin snapshot]
F --> G[Control UI warning and permission link]
Decision needed
Why: The linked request is exploratory and does not commit to a final API or complete first-milestone scope; a contributor's description of direction does not settle that public contract. Before merge
Agent review detailsSecurityNone. PR surfaceSource +418, Tests +433, Docs +24, Other +51. Total +926 across 46 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Use one lifecycle-scoped host refusal record for Control UI and health views, preserve explicit operator denials, and keep permission application and recovery with the existing config owner. Do we have a high-confidence way to reproduce the issue? No fresh current-main run was performed here. The prior-head real Gateway baseline shows blocked hooks without a UI action, and current-main source still lacks the diagnostic projection. Is this the best way to solve the issue? Yes for a host-observed first milestone: it reuses the existing policy and config owners. The final shared Gateway contract needs owner confirmation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c4461b537ce3. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat 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)
|
Co-authored-by: jalehman <[email protected]>
Worked on by: - @jalehman Co-authored-by: jalehman <[email protected]> OpenClaw-Publication: f745075a-7439-4b9c-830e-525dc0570be4
Resolve integrated source line-cap failures without changing the diagnostic wire shape or connection fencing. Co-authored-by: jalehman <[email protected]>
c39c7b3 to
8930b07
Compare




Related: #155227 (host-observed diagnostics milestone; declared permission requirements remain deferred).
What Problem This Solves
Fixes: operators cannot discover why plugin hooks are blocked when the plugin is enabled and the Gateway remains healthy.
User Impact
Plugin pages now explain Limited functionality and provide Review permissions directly to the highlighted existing control. Current warnings also appear in the Inbox, update results, and selected memory-plugin status. Saved, applied, and failed states remain distinct, with Apply saved settings recovery after a persisted activation failure.
Permission defaults and authorization are unchanged. Explicit denials remain intentional choices; upgrades never grant access automatically. These controls govern host hook registration, not a sandbox for trusted plugin code, and registration is not evidence of execution.
Why This Change Was Made
Implementation scope directed by @jalehman: implement the host-observed diagnostics milestone across the existing Control UI surfaces, defer manifest-declared permission requirements, and validate the requested rebase/CI repair. No merge or deployment is authorized.
The Memory page changes render existing plugin diagnostics only; they do not change persisted memory, vector/embedding metadata, retention, or grant defaults.
The existing hook-policy producer now records structured refusals in its runtime registry. Existing request-owned plugin snapshots and generation-fenced UI readers project those facts; no log parsing or separate permission store is added. Configuration writes, application, and recovery stay with the existing configuration owner. The added production code is the diagnostic contract and its projections across the existing surfaces, rather than a second policy system.
Evidence
Current revision — validation in progress
Head:
8930b07dd8c5b78266ea3acf33d7c5e5fef06114, rebased onto pinned main72b24670bf7ca5e44ff89e0b681bf9f997d9187aand pushed with an exact lease on the previous head. The conflicts retain main’s MCP sign-in/icon behavior and shared Memory Dreams panel.Prior-head evidence (
c39c7b33dacfd; historical, not current-head validation)fb503c9e1f25d8c3877881e55e83d4378eda3676: a real external plugin loaded and its allowed startup hook ran, but its conversation hooks were blocked with no Review permissions action. The acceptance assertion failed before the change.[email protected]updater installed the built 2026.9.6 candidate tarball in an isolated prefix. Existing plugin configuration and absent grants were preserved. Package integrity/import-graph checks passed.before_prompt_buildexecution viachat.send/agent.wait, unrelated blocked sibling, explicit denial versus inherited default, persisted activation failure and successful reapply, superseding CLI write, 390px layout, and a browser actually admitted with onlyoperator.readall passed. The read-only browser dispatched no configuration writes.--maxWorkers=1; the final lint-repair UI subset passed 34 tests in 7.32s. Core, UI, and core-test typechecks; Swift protocol parity; protocol-since guard; i18n verification/baseline; changed-file formatting; and scoped type-aware lint passed. Full candidate build and package checks passed.Crabbox provider:
blacksmith-testbox; leasetbx_01m3nd71rskmdft2dy3x5qw7fa(stopped after proof). Runner allocation. The final installed-candidate scenario exited 0; its command took 94.57s. Delegated lease cleanup can mark the allocation run cancelled; the wrapper terminal receipt owns the proof result.Inspected before/after screenshots and recovery/read-only states.
Prior-head inherited check failures (historical):
check:changedstops at the environment-variable budget: both untouched base and candidate contain 477 names against a budget of 476 (no added or removed names). Broad core lint also flags existing line caps innode-launch-adapter.test.ts,talk/relay/session-create.ts,missing-configured-plugin-install.repair.ts, andconfig-env-vars.ts; all four files are unchanged by this PR. Changed-file lint is clean. No full-repository CI or macOS SwiftLint result is claimed. No merge or deployment is requested.Requested by @jalehman; co-authored with Josh Lehman. Related blocked-hook health work by @zeroaltitude is tracked in #136474; that PR is unchanged here. Integration must retain a single host-refusal producer rather than parallel policy owners.
Work sessions
Worked on by
View the OpenClaw team session