Repository navigation
feat(windows): support secure operations without native addon - #476
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 real behavior proof before merge. Reviewed September 18, 2026, 2:23 PM ET / 18:23 UTC (Revision 8). ClawSweeper reviewWhat this changesAdds packaged PowerShell/C# fallbacks for Windows secure reads, ownership and access-control inspection, and private-directory creation, with packaging checks, documentation, and regression coverage. Merge readiness⛔ Blocked before merge - 4 items remain The fallback remains useful and absent from main. No concrete patch defect was found, but the earlier request for inspectable Windows security proof remains unresolved. Priority: P2 Review scores
Verification
How this fits togetherfs-safe checks filesystem identity and permissions before applications consume sensitive files or use private directories. The Windows bridge supplies these checks when the optional native addon is unavailable. flowchart TD
A[Application filesystem request] --> B[Native capability and mode]
B --> C[Native helper]
B --> D[Packaged Windows scripts]
B --> E[Strict mode rejection]
C --> F[Handle identity and permission checks]
D --> F
F --> G[Verified read or private directory]
F --> H[Fail closed]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Preserve the shared handle-based admission policy and strict native mode, backed by auditable Windows evidence of equivalent access restrictions and bounded failure outcomes. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug reproduction: current main intentionally requires native support for these operations, and this PR adds a supported fallback. Is this the best way to solve the issue? Yes, structurally: borrowed-handle inspection and protected permissions at creation preserve the existing guarantees that pathname inspection cannot provide; runtime security proof remains incomplete. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f9bdae0f69de. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (7 earlier review cycles)
|
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: feat(windows): support secure operations without native addon This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
Windows installations without the optional native package cannot complete the security checks needed for credential reads and private-directory creation. This includes OpenClaw's npm recovery installs with optional dependencies omitted.
Allow secure reads, raw owner/DACL inspection, and private-directory creation to use fixed, readable PowerShell/C# package assets when native capabilities are unavailable in
autooroffmode. Secure reads inspect the same inherited borrowed handle before reading content; private directories receive a protected DACL during exclusive handle-relative creation. Native remains preferred,requirestays strict, and native operation failures never trigger a command retry.The bridge respects normal execution policy and endpoint protection, limits command discovery to PowerShell's bundled system modules, and warns once per capability about startup overhead. Output and asynchronous settlement remain bounded. Unconfirmed process or creation outcomes are explicit and never authorize pathname cleanup. Installed-consumer checks verify package and helper hashes and compare canonical script locations, including Windows short-path aliases.
Validation on the final implementation:
pnpm check: 10,203 tests passed, with build, documentation, package/API checks, and whitespace checks passing. Node 22 focused checks passed 126 tests. Independent review found no actionable P0–P2 defects in the complete PR.55e8b78c29e1cad049fed8a13cbf54dcfee09747and verify native presence/absence, strictrequire, descriptor identity, denial before content, protected creation, and warning behavior.No dependency versions or release metadata change.