Skip to content

fix(exec): clarify executable allowlist rules - #1112

Merged
shanselman merged 3 commits into
openclaw:mainfrom
bkudiess:bkudiess-clarify-exec-allowlist-ui
Aug 7, 2026
Merged

shanselman merged 3 commits into
openclaw:mainfrom
bkudiess:bkudiess-clarify-exec-allowlist-ui

Conversation

@bkudiess

@bkudiess bkudiess commented Aug 6, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Clarifies that Allow Always creates an argument-bound durable entry only for an eligible native .exe command.
  • Clarifies that entries typed into Permissions are deliberate path-only grants that may allow matching executables with any arguments.
  • Removes the inert per-entry Allow-only selector.
  • Keeps invalid executable-path guidance visible, exposes the same localized guidance through TextBox HelpText, and clears both after a valid add.
  • Leaves runtime matching, policy defaults, main-agent scope, and compare-and-swap save/retry behavior unchanged.

Screenshots

Invalid executable-path pattern

Invalid executable-path pattern remains in the field with visible validation

Valid path-only entry

Valid hostname executable-path entry added and validation cleared

The screenshots are annotated Live Visual Tree captures so reviewers can correlate visible controls with their automation elements.

Validation

All results are from exact head 6add183d67e3bd5e6e005d50dd550c3c2ad8cfd0 with OPENCLAW_REPO_ROOT set to the worktree.

  • .\build.ps1: passed all 5 projects; documentation validation passed for 45 Markdown files.
  • dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore: 3,609 passed, 0 failed, 32 environment-gated skips.
  • dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore: 2,208 passed, 0 failed.
  • Focused Permissions/localization tests: 20 passed, 0 failed.
  • dotnet build .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -r win-x64: 0 warnings, 0 errors.
  • dotnet test .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -c Debug -r win-x64 --no-build --filter Category=Accessibility: 20 passed, 0 failed.
  • Rubber-duck review: no actionable correctness, security, accessibility, or coverage findings.

Real behavior proof

Launched exact head with .\run-app-local.ps1 -NoBuild -Isolated -AllowNonMain. The isolated data directory was C:\Users\scott\AppData\Local\Temp\OpenClawTray\bkudiess-clarify-exec-allowlist-ui-bkudiess-clarify-exec-allowlist-ui-e71aa7f5.

Computer-use drove the live Permissions page and confirmed:

  • The new explanation is visible: Allow Always is argument-bound for eligible native .exe commands, while entries added here are path-only and can allow any arguments.
  • Invalid hostname remained in the input. ExecAllowlistPatternValidation was visible, and the focused TextBox HelpText exactly matched it.
  • Valid **/hostname.exe cleared the input and validation, changed the badge to 1 entry, and rendered the allowlist row.
  • The isolated exec-approvals.json persisted the entry under agents.main.allowlist with only id and pattern. It did not add argPattern or source, matching the landed fix: honor exec allowlists for Windows node commands #1109 path-only contract.

Screenshot SHA-256 hashes:

  • Invalid-pattern proof: 9025C299BAE8BBD28A9A41614EE02FFE5739EEEBF8D7DAFA9DA232CBE7347C00
  • Valid-entry proof: 8CB1052744306236C1F1BD58BA4178D30D93F63F69E176FCA9B683BD0D38CF91

Scope

This is UI-only. It does not change runtime policy, .exe bindability, argument matching, generated-entry fail-closed behavior, default actions, or compare-and-swap semantics.

@bkudiess
bkudiess marked this pull request as ready for review August 6, 2026 22:40
@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. labels Aug 6, 2026
@clawsweeper

clawsweeper Bot commented Aug 6, 2026 •

Copy link
Copy Markdown

Codex review: needs maintainer review before merge. Reviewed August 7, 2026, 5:23 PM ET / 21:23 UTC.

ClawSweeper review

What this changes

The PR clarifies the Permissions executable-path allowlist, validates invalid path patterns visibly, and removes the inert per-entry Allow selector.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open. This collaborator-authored PR is marked actively landing, and the available diff and current runtime contract agree on the distinction it presents; no concrete patch defect was found.

Priority: P3
Reviewed head: 6add183d67e3bd5e6e005d50dd550c3c2ad8cfd0

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The PR has focused scope, current-head live UI evidence, and targeted coverage, with no identified correctness defect.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The PR body records an isolated exact-head live run covering invalid-pattern feedback, successful entry creation, and persisted path-only output, with matching UI screenshots.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The PR body records an isolated exact-head live run covering invalid-pattern feedback, successful entry creation, and persisted path-only output, with matching UI screenshots.
Evidence reviewed 5 items Current runtime contract: Current main documents and implements manually entered entries without a source marker as deliberate path-only grants, while generated entries require argument binding; this supports the PR's clarified wording.
Allow Always boundary: Current main exposes Allow Always only for a reusable command identity, and the binder restricts durable binding to native .exe images.
Runtime-policy provenance: The relevant current-main files have not changed since the merged execution-policy work in #1109, which is the contract this UI change describes.
Findings None None.
Security None None.

How this fits together

The tray Permissions page writes local execution-approval rules for the Windows node. Those rules are later matched against resolved command executables to decide whether an agent command can run or needs approval.

flowchart LR
A[Operator] --> B[Permissions page]
B --> C[Path-pattern validation]
C --> D[Approval rules file]
D --> E[Execution policy matcher]
E --> F[Agent command decision]
Loading

Before merge

  • Resolve merge risk (P1) - The local promisor checkout could not retrieve the PR tree blobs because GitHub DNS resolution failed, so exact branch-file inspection relied on the hydrated diff and PR proof in the supplied context.
  • Complete next step (P2) - No repair lane is appropriate: this collaborator PR is actively landing and the available review found no discrete repairable defect.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Change scope 9 files, +275, -111 The change is limited to one Permissions UI surface, five shipped locales, and tray tests.
Production versus tests production +136, -109; tests +139, -2 The modest UI and localization change is accompanied by substantial contract coverage.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Land the focused UI clarification through the normal current-head status gates while retaining the existing path-only and argument-bound runtime behavior.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Land the focused UI clarification through the normal current-head status gates while retaining the existing path-only and argument-bound runtime behavior.

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

Not applicable: this PR improves an existing Permissions flow rather than reporting a separately reproducible runtime failure.

Is this the best way to solve the issue?

Yes. The supplied patch keeps matching and persistence policy unchanged while making the existing durable and path-only rule semantics visible at the point of entry.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 89666df49eb9.

Labels

Label justifications:

  • P3: This is a bounded UX clarity and validation improvement without a runtime-policy change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The PR body records an isolated exact-head live run covering invalid-pattern feedback, successful entry creation, and persisted path-only output, with matching UI screenshots.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body records an isolated exact-head live run covering invalid-pattern feedback, successful entry creation, and persisted path-only output, with matching UI screenshots.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR body records an isolated exact-head live run covering invalid-pattern feedback, successful entry creation, and persisted path-only output, with matching UI screenshots.

Evidence

What I checked:

Likely related people:

  • shanselman: Authored the current PR-head copy-alignment commit and applied the actively-landing label in the supplied timeline. (role: recent policy-copy contributor; confidence: high; commits: 6add183d67e3; files: src/OpenClaw.Tray.WinUI/Pages/PermissionsPage.xaml, src/OpenClaw.Tray.WinUI/Strings/en-us/Resources.resw)
  • calebeden: Authored the merged runtime allowlist contract that current main still uses. (role: recent execution-policy contributor; confidence: high; commits: c9608c8e54e6; files: src/OpenClaw.Shared/ExecApprovals/ExecAllowlistMatcher.cs, src/OpenClaw.Shared/ExecApprovals/ExecApprovalsCoordinator.cs)
  • bkudiess: Introduced the earlier V2 approvals feature and is also connected to this focused UI clarification. (role: original V2 approvals contributor; confidence: high; commits: 4806eaac7c24, 4f5e674b7bf0; files: src/OpenClaw.Tray.WinUI/Pages/PermissionsPage.xaml, src/OpenClaw.Tray.WinUI/Pages/PermissionsPage.xaml.cs)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-08-06T23:31:33.161Z sha 4f5e674 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-07T16:01:18.840Z sha 4f5e674 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Aug 7, 2026
@shanselman shanselman added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Aug 7, 2026
@shanselman shanselman removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Aug 7, 2026
@shanselman
shanselman merged commit f81c9fd into openclaw:main Aug 7, 2026
27 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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