Repository navigation
fix(exec): clarify executable allowlist rules - #1112
Conversation
Co-authored-by: Copilot App <[email protected]>
|
Codex review: needs maintainer review before merge. Reviewed August 7, 2026, 5:23 PM ET / 21:23 UTC. ClawSweeper reviewWhat this changesThe PR clarifies the Permissions executable-path allowlist, validates invalid path patterns visibly, and removes the inert per-entry Allow selector. Merge readinessKeep 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 Review scores
Verification
How this fits togetherThe 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]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
Co-authored-by: Copilot App <[email protected]>
Summary
.execommand.Screenshots
Invalid executable-path pattern
Valid path-only entry
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
6add183d67e3bd5e6e005d50dd550c3c2ad8cfd0withOPENCLAW_REPO_ROOTset 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.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.Real behavior proof
Launched exact head with
.\run-app-local.ps1 -NoBuild -Isolated -AllowNonMain. The isolated data directory wasC:\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:
.execommands, while entries added here are path-only and can allow any arguments.hostnameremained in the input.ExecAllowlistPatternValidationwas visible, and the focused TextBox HelpText exactly matched it.**/hostname.execleared the input and validation, changed the badge to1 entry, and rendered the allowlist row.exec-approvals.jsonpersisted the entry underagents.main.allowlistwith onlyidandpattern. It did not addargPatternorsource, matching the landed fix: honor exec allowlists for Windows node commands #1109 path-only contract.Screenshot SHA-256 hashes:
9025C299BAE8BBD28A9A41614EE02FFE5739EEEBF8D7DAFA9DA232CBE7347C008CB1052744306236C1F1BD58BA4178D30D93F63F69E176FCA9B683BD0D38CF91Scope
This is UI-only. It does not change runtime policy,
.exebindability, argument matching, generated-entry fail-closed behavior, default actions, or compare-and-swap semantics.