Repository navigation
Closed
Labels
P2Normal priority bug or improvement with limited blast radius.impact:securityThis issue is about security boundaries, credentials, authz, sandboxing, or sensitive data.issue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.
Description
Problem
OpenClaw duplicates complete-file publication and private Windows creation because the ordinary fs-safe creation APIs do not expose all of those guarantees. Privacy should be a creation option instead of a growing family of private-specific methods.
Accepted direction
- Add
private: trueto normal directory and file creation, using restrictive POSIX permissions or protected Windows ACLs from the moment the object exists. Existing directories must satisfy the requested policy; do not silently repair their permissions or modify existing ancestors. - Add
atomic: trueto bufferedRoot.create()and forward it throughcreateJson(). Streamed creation already stages complete contents. Atomic visibility remains distinct from durability, and callers requesting it must not receive a weaker direct-write fallback. - Reuse current guarded creation/staging owners and the existing Windows system-command fallback. Preserve confinement, live mutation authority, existing entries, native-mode behavior, and originating descriptor ownership.
- Surface cleanup/close failures with accurate publication state. Resolve strict file-flush behavior independently of atomic visibility; keep directory-sync limitations explicit.
- Provide ordinary synchronous creation operations where the SQLite consumers require them, with the same privacy policy and an owned disposable file descriptor rather than an unowned number.
Validation and rollout
Exercise real filesystem creation, collisions, failures, permissions, cancellation, and installed-package behavior on macOS, Linux, and Windows, including native-off operation. Keep existing published APIs compatible and document new options and platform limitations.
This work does not authorize a package release. OpenClaw adoption of new APIs remains unmerged until those APIs are published.
Reacted by clawsweeper
Metadata
Metadata
Assignees
Labels
P2Normal priority bug or improvement with limited blast radius.impact:securityThis issue is about security boundaries, credentials, authz, sandboxing, or sensitive data.issue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.
Type
Fields
Priority
None yet
Activity
clawsweeper commentedon Sep 18, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed September 18, 2026, 2:57 PM ET / 18:57 UTC.
Summary
Keep open: current main provides reusable staging and Windows security helpers, but normal creation still lacks the requested privacy, atomic-publication, and synchronous ownership contracts. No open PR currently owns this implementation.
Reproducibility: not applicable. this requests new guarantees and APIs; source, documentation, and existing tests establish the current limitations without executing a reproduction.
Ways to help us reproduce this
Next step
Route implementation through the filesystem-security owners; the accepted scope spans public APIs and platform authority boundaries beyond a bounded automatic repair.
Security
None.
Review details
Best possible solution:
Extend the existing guarded owners with opt-in guarantees, preserve defaults and existing entries, and validate installed packages across platforms before separately authorized publication and consumer adoption.
Do we have a high-confidence way to reproduce the issue?
Not applicable: this requests new guarantees and APIs; source, documentation, and existing tests establish the current limitations without executing a reproduction.
Is this the best way to solve the issue?
Yes: extending ordinary creation and reusing guarded staging is consistent with the existing architecture; private stores and streamed creation cover only parts of the requested contract.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning medium; reviewed against 34156e0730f5.
Label changes
Label changes:
P2: This is a concrete creation-API improvement with substantial remaining work, without evidence of an active emergency.impact:security: The request governs creation-time permissions, Windows ACLs, confinement, live mutation authority, and descriptor ownership.issue-rating: 🌊 off-meta tidepool: Current issue advisory state selects this label.Label justifications:
P2: This is a concrete creation-API improvement with substantial remaining work, without evidence of an active emergency.impact:security: The request governs creation-time permissions, Windows ACLs, confinement, live mutation authority, and descriptor ownership.Evidence reviewed
What I checked:
src/root-options.ts:66, 34156e0730f5)src/pinned-write.ts:327, 34156e0730f5)docs/writing.md:186, 34156e0730f5)docs/private-file-store.md:38, 34156e0730f5)src/private-directory.ts:37, 34156e0730f5)CHANGELOG.md:3, 34156e0730f5)Likely related people:
How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.feat(root): support atomic creation and required file flushing (#486)
feat(permissions): support private creation through existing verbs (o…