Repository navigation
fix(sandbox): explain inaccessible skills mountpoints - #186247
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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
|
Codex review: needs maintainer review before merge. What this changesThis PR explains inaccessible generated-skills mountpoints while preserving the original error and existing filesystem protections. Example: A non-root Gateway encounters /tmp/repro/workspace/.openclaw owned by root with mode 0770.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR provides a focused, useful diagnostic for a verified sandbox failure; no introduced correctness or security defect was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe sandbox mount planner receives workspace paths and mount policy, prepares guarded scaffold directories, and returns container bindings or a provisioning error. flowchart TD
A[Sandbox session setup] --> B[Container lifecycle]
B --> C[Mount planner]
C --> D[Guarded filesystem root]
D --> E[Permission failure]
E --> F[Contextual diagnostic]
F --> G[Provisioning error]
Technical reviewBest possible solution: Keep the permission-specific diagnostic in the existing mount planner while preserving guarded operations and the original cause. Do we have a high-confidence way to reproduce the issue? The reporter's non-root permission-denial trace matches the current scaffold operation and pinned dependency wrapper; this review executed no target code. Is this the best way to solve the issue? The patch is the smallest complete diagnostic repair: it reuses error traversal and errno owners, preserves failure semantics, and adds one distinct filesystem regression without new machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 451ec41c26c6. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +19, Tests +24, Docs +10. Total +53 across 3 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 27, 2026, 3:55 PM ET / 19:55 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* fix(sandbox): explain inaccessible skills mountpoints * test(sandbox): consolidate duplicate mount plan setup * test(sandbox): preserve mock contract and brace fixture branches
Fixes #184115.
What Problem This Solves
Fixes: sandbox startup leads with a misleading path-alias error when an existing generated-skills mountpoint cannot be traversed by the gateway user.
User Impact
Sandbox startup now names the generated-skills mountpoint and explains that its ownership or ACLs must grant the gateway user directory search (execute) and write access. Preparation still fails closed and performs no automatic ownership or permission repair.
Why This Change Was Made
The pinned fs-safe release wraps traversal EACCES as
path-alias. The sandbox mount owner now recognizes the nested permission errno and adds actionable context while retaining the original failure as its cause. The upstream classification fix is tracked in openclaw/fs-safe#1044. PR #126775 changes mount layout and retained-container compatibility; this contained diagnostic does not depend on that migration.Thanks @LiuwqGit for the report and reproduction. Release-note context is in this description; no changelog edit.
Evidence
The production mount planner regression uses a real mode-000 ancestor. It fails on the base with
path alias escape blocked, then passes with the diagnostic, retaining mode 000 and creating no children. All 34 mount-plan tests pass (5.56 seconds in the Vitest run; 10.80 seconds including its wrapper). The test skips Windows and root, where the POSIX traversal denial cannot be reproduced this way.git diff --checkand independent autoreview P0–P2 are clean.pnpm check:changedpassed guards, production typecheck, and all 29 core test typecheck graphs; optional whole-tree export scans were stopped on the loaded host. An initial broad-config lint command timed out during prerequisite SDK declaration generation, before lint ran. Focused curly lint and the mock-factory ratchet pass on the final correction. Exact-head CI is the remaining broad proof. The PR context check initially rejected missing template headings; this body supplies the required sections.The final test fixtures retain all 34 mount-plan cases and assertions, with duplicate managed/ordinary symlink and read-only-parent setup consolidated. All 34 cases pass, including the real inaccessible-ancestor regression; focused curly lint and the mock-factory ratchet pass after the style correction. Independent Codex reviews of the production fix and final consolidation found no actionable P0–P2 findings.
Final CI qualification
Run 40586757847, attempt 1, tested exact head
0579089b09c09fcd2727d958ad92e7c6a0b6d42cas mergeac78886568d512f303796512ffee12cbce723769over main baseline2d7c3497e1fa81e09c3ebeb377b1f81f5fb99cf4. It finished with 31 passing jobs, including security, and one failed source job plus its downstream CI gate.check-lint-core-2reports five existingeslint(curly)errors:ui/src/pages/new-session/draft-body.browser.test.tsx:31/32andui/src/pages/chat/chat-content-column.browser.test.tsx:288/289/362.Both complete file blobs are identical in that baseline and tested merge, and identical to the baseline copies on which focused lint independently reproduced all five diagnostics. This PR changes neither UI file. All 34 sandbox mount-plan cases, the corrected sandbox curly guard, and its mock-factory ratchet pass. The supported inherited-failure landing path retains the failed CI result; it does not describe this run as green or bypass security/review requirements.