Repository navigation
improve(plugins): explain the permission to modify prompts - #192365
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. |
|
Codex review: needs changes before merge. What this changesThis 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.
Review scores
ProductKind: Docs · Worth it: Yes · Fix scope: Complete 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 Before merge
FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +10, Tests +39, Generated 0, Other +2. Total +51 across 14 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 4, 2026, 1:57 AM ET / 06:57 UTC (Revision 2). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Baseline-Refresh: 5a3e8993102e6560886cd71c1d2794fadb2cd783
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…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
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:
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 main062d5d85481fca84c57014e7c3a128fc4386ea79, retaining the original product delta and contributor ancestry. 14 changed files; production +10 net lines and tests +39 with an exact +39 allocation.pnpm config:docs:genfollowed bypnpm config:docs:checkpassed after conflict repair. Only combined/plugin hashes change relative to integrated main; config counts and core/channel hashes are unchanged.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.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 mergee7b43440d15d58a4cdb52f8a269fc61b4d0bcaf6has main parent42c1bd69a1ae580445ff9b5981a8836582e4b0cc; 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.