Repository navigation
Conversation
|
Codex review: found issues before merge. Reviewed August 6, 2026, 4:22 AM ET / 08:22 UTC. ClawSweeper reviewWhat this changesThe PR moves the tray Permissions page to the shared V2 execution-approval policy and binds new “Always Allow” approvals to an exact command argument list. Merge readiness⛔ Blocked by patch quality or review findings - 8 items remain Keep this collaborator-authored draft open: its argument-binding fallback leaves pre-upgrade generated approvals broad, so a security and upgrade policy decision is required before merge. Priority: P1 Review scores
Verification
How this fits togetherExecution approvals govern whether Windows node commands run. The tray editor writes the same persisted V2 policy consumed by runtime matching, MCP, and gateway-mediated command execution. flowchart LR
A[Tray permissions page] --> B[Persisted V2 approval policy]
C[MCP and gateway updates] --> B
D[Executable path and arguments] --> E[Approval matcher]
B --> E
E --> F[Allow prompt or deny]
F --> G[Windows node command]
Decision needed
Why: The proposed matcher must choose between silently retaining broader authority and disabling or requiring confirmation for existing approvals; source inspection shows there is no provenance field available to infer that choice safely. Before merge
Findings
Agent review detailsSecurityNeeds attention: The proposed legacy fallback can retain broader command authority than the new argument-bound approval model promises. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Adopt a maintainer-approved, fail-safe migration or confirmation flow for source-less V2 grants, then rebase onto the runtime binder and prove both upgrade and fresh-install behavior. Do we have a high-confidence way to reproduce the issue? Yes. Current main can create a source-less entry through Allow Always, and the proposed matcher then accepts that entry as a broad path-only rule for a different argument tail. Is this the best way to solve the issue? No. Argument-bound grants are the right destination, but treating unmarked current-main grants as manual cannot safely preserve both the new security guarantee and existing users’ broad manual rules. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against aac07abb1fbd. LabelsLabel justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
747aedb to
b4223c0
Compare
Replace the stale V1-shaped Permissions editor with the file-backed V2 policy model, explicit validation, scoped rules, and CAS-safe persistence. Add upstream-compatible argument-bound generated grants so changed argv no longer reuses Allow Always authority. Co-authored-by: Copilot App <[email protected]>
dba7302 to
d725e0e
Compare
|
Closing this draft while we pause and let the focused runtime work in #1109 settle. The validated UI and argument-policy work remains preserved on the branch for possible future reuse. |
Depends on #1109
Important
This draft is the upper layer for #1109. Because #1109 is cross-fork, GitHub cannot create a true stacked base relationship. Merge #1109 first, then rebase this PR and adapt
argPatterngeneration to itsExecReusableCommand.Argvbefore marking ready.Summary
*),main, and existing agent scopes withsecurity,ask,askFallback,autoAllowSkills, and executable-path allowlistssource: "allow-always"plus a length-delimited SHA-256argPatternof the exact argv tailIntentionally excluded as #1109 overlap
baseHashresponse compatibilityThose now belong to #1109 and were removed from this branch.
Architecture ownership
PermissionsPage.xaml.csdirectly read, mutated, and persisted exec approval state formainonly.PermissionsPageViewModelplusIExecApprovalsPolicyStoreown snapshot projection, exact scope selection, validation, CAS mutation/retry, rollback, and tuple preservation.ExecArgPatternplusExecAllowlistRuleIdentityown generated durable(pattern,argPattern,source)authority.system.run,system.execApprovals.get/set, local MCP, and Gateway relay share one authoritativeExecApprovalsStore.Validation
./build.ps1✅dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore✅ 3,427 passed, 32 skippeddotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore✅ 2,167 passeddotnet test ./tests/OpenClaw.WinNode.Cli.Tests/OpenClaw.WinNode.Cli.Tests.csproj --no-restore✅ 126 passed./scripts/validate-mxc-e2e.ps1✅ 2/2 current-main Gateway → Windows node → MXC proofs passedReal behavior proof
hostnameis rejected with visible executable-path guidance and associated UIA HelpText**/where.exesaves under All agents, survives navigation/reload, and exposes a named removal controlsourceandargPatternacross UI policy edits and display Arguments restricted to the approved command.source, orargPatternexec-approvals-v2.png(148,783 bytes); not attached to this draftReview
Rebase / stack plan
mainExecReusableCommandas the runtime identity, generateargPatternfromExecReusableCommand.Argv, rerun current-head UI/MCP/Gateway/MXC proof, and then mark readyRemaining parity and deferred security design
argPatternis not enabled; generated SHA-256 patterns are supported and manual path-only rules remain intentionally broad