Skip to content

fix(ui): Security overstates command permission guarantees - #199441

Merged
vyctorbrzezowski merged 2 commits into
mainfrom
openclaw/copy-audit-security-auto
Nov 16, 2026
Merged

vyctorbrzezowski merged 2 commits into
mainfrom
openclaw/copy-audit-security-auto

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: Privacy & security presents Gateway command defaults as every agent’s permissions, says Auto review always asks a human, and promises Full mode never asks even when additional checks can require approval.

User Impact

The row is now Gateway command defaults. Deny is explicitly a default, Full acknowledges additional approval checks, and Auto names the reviewer’s allow, deny and ask outcomes. Execution, permissions, reviewer decisions and navigation are unchanged.

Why This Change Was Made

The summary reads top-level exec configuration and Gateway-host approval defaults, not every agent or execution host. Four English strings now match that scope and the existing policy owners. The follow-up stays in this PR so its title and regression tests remain compatible with the earlier Auto correction; no new state, controls or policy logic are introduced.

Evidence

  • Three UI regressions fail on the original messages and pass after correction. All 145 selected Security and Config page tests pass on the updated source, including the preserved Auto case and existing navigation/read lifecycle checks.
  • Direct exec-entry proof passes for all three distinctions: strict inline evaluation requests approval under configured Full mode; full-session authority can bypass that path; and an agent-specific host policy can allow a real command despite denied host defaults. This uses isolated state and mocked approval decisions, not live policy edits.
  • Earlier unchanged-owner proof covers Auto allowance without a human prompt, denial/escalation and a human-approval request (three cases), plus one real fixture-command integration. No live model reviewer was called.
  • Matched built-app Full and Deny flows use the actual generated schema with synthetic configuration and host policy, then follow the existing row to Devices. No configuration or approval-policy writes are issued. The earlier Auto flow also remains covered by its recorded proof and updated component regression.
  • UI typecheck, scoped lint, i18n verification, formatting and diff checks pass. Broad CI is left to the PR.
  • Real components at an emulated 1280 × 960 viewport; matched crops and full surrounding context inspected. The new before captures are from main 76b7ed1; the affected policy/rendering inputs are unchanged from the PR base except the separately verified Auto sentence.

Full policy and default scope

Before

Before: command permissions promise Full always runs without asking

After

After: Gateway defaults distinguish routine prompts from additional checks

Earlier Auto-outcome correction

These captures verify the Auto sentence on the initial PR head, before the row was renamed. The final component regression includes the new title.

Before

Before: Auto review promises that it then asks

After

After: Auto review can allow, deny, or ask for approval

Contributor: @vyctorbrzezowski directed the comprehensive wording and interaction audit.

Work sessions

Linked for team reference; these sessions aren’t public.

@clawsweeper

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

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 15, 2026 04:32
@roboclaw-bot roboclaw-bot changed the title fix(ui): Auto review help promises a human approval prompt fix(ui): Security overstates command permission guarantees Nov 15, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 15, 2026
@clawsweeper

clawsweeper Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR labels the Security row as Gateway command defaults and corrects its Deny, Auto, and Full descriptions.

Example: Gateway command defaults resolve to Full with strictInlineEval enabled.

  • Before: The row says agents run commands without asking.
  • After: The row explains that additional security checks can still require approval.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The focused patch appears correct and useful, but inspectable visual evidence covers only the earlier portion of the change.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: The Security summary implies universal agent permissions and approval guarantees that the underlying policies do not provide.
Reason: The maintainer-authored correction improves factual security information without changing permissions or adding product surface.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR corrects misleading permission summaries using the existing presentation owner; no introduced code defect was found.

Priority: P2
Reviewed head: 9071ab2e64ddc495e0b735166d028ec6c9a8d3fc

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Restore publicly inspectable before/after built-app captures covering the final title and Full/Deny descriptions, redacting IPs, API keys, phone numbers, and non-public endpoints.
Agent review details

How this fits together

The Security page combines top-level exec configuration with Gateway-host approval defaults, then renders localized summaries and navigation to Devices.

flowchart LR
  A[Exec configuration] --> C[Security model]
  B[Gateway approval defaults] --> C
  C --> D[Security page]
  E[English catalog] --> D
  D --> F[Devices page]
Loading

Technical review

Best possible solution:

Keep the correction in the existing English catalog with focused rendered-row regressions, preserving execution policy and navigation.

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

Current-main catalog text contradicts the existing approval owner and documented Auto/Full behavior; the inspected Auto screenshots also demonstrate the wording defect, without a new product run.

Is this the best way to solve the issue?

This is the smallest complete production fix: correct four strings at their existing owner rather than change policy, add state, or introduce controls.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 62a2b2f3fe07.

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 721d124 adds ui/src/i18n/locales/en-preferences.ts:58 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 721d1246117a; files: ui/src/i18n/locales/en-preferences.ts)

PR surface

Source 0, Tests +32. Total +32 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 4 4 0
Tests 1 36 4 +32
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 40 8 +32

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Incorrect permission summaries can mislead operators, while the underlying execution safeguards remain unchanged.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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.

Reviewed November 14, 2026, 11:55 PM ET / November 15, 2026, 04:55 UTC.

@vyctorbrzezowski vyctorbrzezowski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the actual Security projection, exec approval admission and Auto decision schema. The copy accurately describes Gateway defaults without changing policy. All 102 Security cases plus 535 standard UI canaries passed; targeted lint/format passed. The current Full/title before/after assets are publicly accessible and rendered; the older Auto pair is explicitly labeled as historical. Auto, Full and Deny are covered by the current component tests. No additional code changes needed.

@vyctorbrzezowski
vyctorbrzezowski merged commit ac68da0 into main Nov 16, 2026
103 of 105 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/copy-audit-security-auto branch November 16, 2026 00:34
@vyctorbrzezowski

Copy link
Copy Markdown
Member

Merged via squash.

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

* fix(ui): Auto review help promises a human approval prompt

Co-authored-by: vyctorbrzezowski <[email protected]>

* fix(ui): Security summary overstates command defaults

Co-authored-by: vyctorbrzezowski <[email protected]>

---------

Co-authored-by: vyctorbrzezowski <[email protected]>
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 P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants