Skip to content

improve(plugins): explain the permission to modify prompts - #192365

Merged
Patrick-Erichsen merged 7 commits into
mainfrom
improve/plugin-prompt-permission-copy-20261103
Nov 4, 2026
Merged

Patrick-Erichsen merged 7 commits into
mainfrom
improve/plugin-prompt-permission-copy-20261103

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The plugin consent dialog calls legitimate prompt/context contributions “Prompt injection,” while plugin settings say “Add context to prompts,” which understates the ability to change instructions.

User Impact

The permission is consistently named Modify prompts in consent, plugin settings, and configuration hints. Its explanation says:

Allows this plugin to add or change the context and instructions sent to the model, which can influence its responses. Only allow this for plugins you trust.

The configuration help also states that this capability is allowed by default and that denying it blocks prompt-modifying hooks, tool prompt guidance, next-turn contributions, and active-run steering. Conversation access remains a separate grant.

This is presentation-only: no capability/config/i18n identifiers, defaults, policy enforcement, stored grants, dependencies, or migrations change. No plugin-specific exception is introduced. No production Gateway changes, restarts, or deployment. Landing is authorized through the native maintainer workflow.

Why This Change Was Made

Inspected current main at 073498226768e62d6ee0232b4e196cb487fc56cc, the hook-policy/registry owners, grant projection, and current Solid UI before editing. The label must describe prompt modification rather than an attack, without presenting the grant as harmless context-only access.

Related: #155227 and #182274 address missing-permission diagnostics; this does not duplicate those features or claim that all Lossless functionality requires this grant. The recorded Lossless denial in #155227 concerned conversation access, not a new prompt-modification default.

Evidence

Reviewed and published head: 9903a8b0e9019ea6c3d180c1685a5e2e98a44eff. Native preparation repaired the generated-config-hash conflict against main 062d5d85481fca84c57014e7c3a128fc4386ea79, retaining the original product delta and contributor ancestry. 14 changed files; production +10 net lines and tests +39 with an exact +39 allocation.

  • 40 focused tests passed again on the conflict-repaired head (5 + 11 + 24 across three shards): consent, settings lifecycle/read-only/default/reset/Ask, help, capability grants, and config-schema tiers.
  • 18 previously passing built-Chromium scenarios cover the unchanged product delta. Eight inspected before/after screenshots below retain desktop/mobile consent and settings proof. Synthetic mock-Gateway fixtures exercise production-built UI; no live Gateway/provider/Lossless execution claimed.
  • pnpm config:docs:gen followed by pnpm config:docs:check passed after conflict repair. Only combined/plugin hashes change relative to integrated main; config counts and core/channel hashes are unchanged.
  • Test-line ratchet now passes: 6,455,788 lines against a 6,455,796 ceiling (8 slack). The previously documented 53-line excess belonged to the old base and is no longer present after main integration. No test-line exception is needed.
  • Full committed-range local ClawSweeper review 062d5d85481fca84c57014e7c3a128fc4386ea79..9903a8b0e9019ea6c3d180c1685a5e2e98a44eff: complete, patch correct, no actionable findings, security cleared. Hosted finding about omitted config hashes is fixed. Reviewer runtime/screenshots remain separate author proof.
  • Earlier targeted UI typecheck, i18n checks, lint/format and whitespace checks passed; full delta whitespace check passed again. Prior red/green consent assertions demonstrated missing “Modify prompts” on the original UI.

CI and landing

Historical CI run 41736556203 attempt 1 failed test-lines and config-docs; neither is called green. The config-hash omission was fixed, and the subsequent generated-hash conflict that prevented a new merge-ref CI run was repaired through the native baseline owner. Current CI run 41789804281, attempt 1, completed on the reviewed head. All selected jobs passed except check-prompt-snapshots (job 126441248852); its aggregate gate also failed. The three reported JSON snapshot paths have inherited generator/fixture drift: main #192596 removed JSON formatting while committed fixtures retain compact array layout. Exact tested merge e7b43440d15d58a4cdb52f8a269fc61b4d0bcaf6 has main parent 42c1bd69a1ae580445ff9b5981a8836582e4b0cc; prompt generator, helper, agent-runtime, fixture, and CI workflow inputs are unchanged between those two trees. The PR changes none of those producers. The failure table calls this new only because an older scheduled-main job passed without selected-scope comparison; concrete source attribution is separate. Local replay reproduces all three JSON paths (plus a local-only Discord markdown difference, not claimed as CI). No unrelated snapshots were changed. CI is still failed, not green; standing scoped landing authority selects only the native attributed-inherited-failure route, retaining live review/security protections.

Protected Octopool transport uses full TLS verification with command-scoped removal of inherited proxy/custom CA overrides. No host trust/configuration, credentials, deployment, restart, or production Gateway changes were made.

Proof limitation

An additional loader-test command was previously refused before execution because separation from managed Gateway artifacts could not be verified. No workaround/rebuild/restart was attempted. Runtime enforcement source is unchanged; capability tests cover grant projection, not live hook execution.

Inspected before/after UI

Both surfaces at 1440px and 393px; synthetic fixtures. Permission denial/default presentation and consent actions remain visible. Images are not committed.

Surface Before After
Desktop consent Before: desktop consent After: desktop consent
Mobile consent Before: mobile consent After: mobile consent
Desktop settings Before: desktop settings After: desktop settings
Mobile settings Before: mobile settings After: mobile settings

@clawsweeper

clawsweeper Bot commented Nov 3, 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.

@Patrick-Erichsen
Patrick-Erichsen marked this pull request as ready for review November 3, 2026 23:07
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 3, 2026
@clawsweeper

clawsweeper Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR consistently names the existing plugin permission “Modify prompts” and explains its scope in consent, settings, and configuration help.

Example: An operator reviews Calendar Plus before enabling it.

  • Before: Consent says “Prompt injection,” while settings say “Add context to prompts.”
  • After: Both say “Modify prompts” and explain that the plugin can change model context and instructions.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Focused clarification with directly inspected browser proof, preserved behavior, and the prior generated-hash correction; integration state does not change the patch assessment.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise the production-built Control UI consent dialog and plugin settings at 1440px and 393px with synthetic Gateway fixtures, showing the changed copy, readable wrapping, preserved permission state, and visible actions.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Docs · Worth it: Yes · Fix scope: Complete
User problem: Operators encounter inconsistent wording that either describes a legitimate permission as an attack or understates its ability to change instructions.
Reason: The approved direction improves an existing consent decision without expanding capability, adding configuration, or changing defaults.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this is a useful, focused clarification with inspected visual proof and no actionable code findings; the previous hash finding is fixed, but GitHub reports a merge conflict.

Priority: P3
Reviewed head: c534ff0a536953200be18472848a34e8a5e8b962

Before merge

  • Complete next step - Resolve GitHub's reported merge conflict while preserving current main's changes and this PR's permission copy.

Findings

None.

Agent review details

How this fits together

The Control UI combines plugin inspection grants with localized copy to display consent and settings; existing Gateway policy continues to determine effective permissions.

flowchart LR
  A[Plugin configuration] --> B[Gateway permission policy]
  B --> C[Plugin inspection grants]
  C --> D[Consent and settings UI]
  E[English permission copy] --> D
  D --> F[Operator review]
Loading

Technical review

Best possible solution:

Keep the existing permission owners and identifiers while presenting their actual scope consistently through the existing description slots.

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

Current-main source retains the inconsistent labels, and the supplied before screenshots show them on both affected surfaces; no target code was executed during this review.

Is this the best way to solve the issue?

The patch is a small, complete presentation fix: it reuses SettingsRow, updates affected consumers, and preserves permission enforcement and stored choices.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 062d5d85481f.

Provenance checked

  • Consent permission label and explanation keeps the original intent (0dbd5c8: Expose effective operator grants before plugin enablement while keeping conversation access separate.)
  • Plugin settings permission copy keeps the original intent (b5134de: Provide plugin management and permission controls through the existing Gateway-owned lifecycle.)
  • Consent row rendering keeps the original intent (7ac0f03: Simplify Solid rendering without changing controls or lifecycle; the patch retains the shared SettingsRow and adds its existing description property.)
  • Configuration hints and generated baseline changes intended behavior with a stated reason (c7e7ac2: The recorded compatibility cleanup carried the help text forward; the patch explicitly corrects its incomplete scope and refreshes the content hashes without changing schema counts.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +10, Tests +39, Generated 0, Other +2. Total +51 across 14 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 5 23 13 +10
Tests 7 48 9 +39
Docs 0 0 0 0
Config 0 0 0 0
Generated 1 2 2 0
Other 1 2 0 +2
Total 14 75 24 +51

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster. Replaced prior rating: 🦐 gold shrimp.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P3: This improves permission wording and understanding without changing runtime behavior or existing grants.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster. Replaced prior rating: 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-03T23:24:42.783Z sha 2ebc8a6 :: needs changes before merge. :: [P2] [P2] Regenerate the configuration baseline hash for the changed hints

Reviewed November 4, 2026, 1:57 AM ET / 06:57 UTC (Revision 2).

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the clawsweeper:intake:docs Preliminary submission classification; full source review pending. label Nov 4, 2026
@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Nov 4, 2026
@Patrick-Erichsen
Patrick-Erichsen enabled auto-merge (squash) November 4, 2026 07:07
@Patrick-Erichsen
Patrick-Erichsen merged commit d1ffc39 into main Nov 4, 2026
127 of 132 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the improve/plugin-prompt-permission-copy-20261103 branch November 4, 2026 07:20
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 5, 2026
…192365)

* improve(plugins): explain the permission to modify prompts

* test(ui): update remaining prompt permission selectors

* docs(config): refresh prompt permission baseline hashes

* docs(config): refresh prompt permission baseline hashes

* docs(config): regenerate permission hashes after baseline conflict repair
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui clawsweeper:intake:docs Preliminary submission classification; full source review pending. docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S 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.

1 participant