Repository navigation
fix(sandbox): skip binds that conflict with protected skill mounts - #93985
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 12:00 AM ET / 04:00 UTC. ClawSweeper reviewWhat this changesThis PR skips configured Docker or Podman binds whose normalized container destination conflicts with a protected read-only skill mount, and reports the omission to the operator. Merge readinessKeep this PR open for maintainer review. The patch correctly removes the current duplicate-destination path for shell and browser sandboxes, keeps protected skill overlays read-only, and supplies focused plus live-engine proof; merging still intentionally changes the result for an explicitly dangerous reserved-target bind from an engine startup failure to a skipped bind with a warning. Priority: P2 Review scores
Verification
How this fits togetherSandbox configuration produces Docker or Podman bind arguments for shell and browser containers. Protected workspace skill directories are added as read-only overlays, while the filesystem bridge uses the same mount model to decide which host paths sandbox operations may access. flowchart LR
A[Sandbox configuration] --> B[User bind specifications]
C[Protected skill directories] --> D[Read-only skill mounts]
B --> E[Normalized destination check]
D --> E
E --> F[Docker or Podman arguments]
E --> G[Filesystem mount view]
F --> H[Shell and browser sandboxes]
Decision needed
Why: The source and tests establish the bug and the proposed precedence, but this is an intentional security-boundary and compatibility decision for operators who opted into dangerous reserved-target binds. Before merge
Agent review detailsSecurityNone. PR surfaceSource +92, Tests +116, Other +234. Total +442 across 10 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Accept protected read-only skill mounts as the canonical owner of their destinations, omit only exact normalized conflicting user binds with a visible warning, and retain matching behavior in shell, browser, and filesystem diagnostic paths. Do we have a high-confidence way to reproduce the issue? Yes, from source: on current main, an allowed bind to a protected skill destination is appended before the protected overlay in both shell and browser creation paths, yielding duplicate destinations. The supplied PR context also includes after-fix Docker and Podman engine evidence, though this read-only worker did not execute containers. Is this the best way to solve the issue? Yes, technically: one shared normalized destination filter keeps the protected mount authoritative and aligns runtime arguments with filesystem diagnostics. The remaining question is not implementation shape but whether maintainers approve that compatibility and security-boundary outcome. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 3374f78ad8e9. 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)
|
5b83d51 to
f9f8b87
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
2407184 to
f9f8b87
Compare
|
🦞🧹 I asked ClawSweeper to review this item again. |
* origin/main: fix(ui): keep canvas lease renewals lifecycle-owned and timer-safe (openclaw#117173) fix(teams): restore the official square product icon (openclaw#117170)
|
@clawsweeper re-review Please review exact prepared head
Evidence is in the updated PR body. The in-progress |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review Please review final prepared head
Evidence is in the updated PR body. Earlier reviews target superseded heads. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Please review final prepared head
Evidence is in the updated PR body. Earlier reviews target superseded heads. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
* origin/main: fix(onboard): stop a full reset from resetting the default workspace when the config is unreadable (openclaw#114110) refactor(i18n): remove unused Apple contradiction report (openclaw#117182) fix(google): stop scraping Gemini CLI OAuth credentials (openclaw#117167) perf: count large histories before Gateway prewarm (openclaw#117118) fix(signal): restore provider-safe original attachment filenames (openclaw#115107) refactor(channels): unify setup ownership across bundled channels (openclaw#117188) fix: allow gateway service commands for named profiles (openclaw#116314) fix(plugins): invalidate bundled artifact locations after metadata refresh (openclaw#117041) fix(ollama): honor model requests and pull completion contracts (openclaw#117171) fix(agents): prevent fallback after stale lifecycle abort (openclaw#117168) fix(telegram): confirm polling before long poll (openclaw#116970) fix(tlon): wire autoDiscoverChannels through the settings-store round-trip (openclaw#114949) fix(gateway): yield before post-ready background work (openclaw#117083) test(google): cover live transcript overflow fix(google): bound live transcript accumulation
|
@clawsweeper re-review Please review final prepared head
Evidence is in the updated PR body. Earlier reviews target superseded heads. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Native GitHub merge was attempted after I am therefore landing the verified series with signed two-parent merge commit |
* origin/main: fix(onboard): stop a full reset from resetting the default workspace when the config is unreadable (openclaw#114110) refactor(i18n): remove unused Apple contradiction report (openclaw#117182) fix(google): stop scraping Gemini CLI OAuth credentials (openclaw#117167) perf: count large histories before Gateway prewarm (openclaw#117118) fix(signal): restore provider-safe original attachment filenames (openclaw#115107) refactor(channels): unify setup ownership across bundled channels (openclaw#117188) fix: allow gateway service commands for named profiles (openclaw#116314) fix(plugins): invalidate bundled artifact locations after metadata refresh (openclaw#117041) fix(ollama): honor model requests and pull completion contracts (openclaw#117171) fix(agents): prevent fallback after stale lifecycle abort (openclaw#117168) fix(telegram): confirm polling before long poll (openclaw#116970) fix(tlon): wire autoDiscoverChannels through the settings-store round-trip (openclaw#114949) fix(gateway): yield before post-ready background work (openclaw#117083) test(google): cover live transcript overflow fix(google): bound live transcript accumulation
Preserve the contributor commit series because GitHub merge commits are disabled and squash or rebase are not authorized. PR: openclaw#93985
What Problem This Solves
Linked context
Closes #93854
Contract
Protected skill mounts are security-owned overlays. A user bind with the same normalized container destination is omitted; unrelated user binds are unchanged. The sandbox continues to start, and the warning makes the operator-visible decision explicit.
Rejecting the entire run would turn a recoverable configuration conflict into an agent dead end. Skip-and-warn preserves the protected read-only mount without hiding the conflict.
Implementation
resolveProtectedSkillMountContainerPaths()andfilterBindsConflictingWithProtectedMounts().buildSandboxFsMounts()aligned with the live mount model.dot segments and trailing slashes.
Mounts[].RWfield.Evidence
Exact prepared head:
a56467a64a117b06305647cdc3e45927cd7eef67/workspace/skillsmount, read-only, sourced from the protected skills directory./workspace/skillsmount, read-only, sourced from the protected skills directory.workdir: "/workspace/.".origin/mainrefresh on the final prepared head.git diff --checknode --check scripts/e2e-sandbox-bind-conflict.mjsoxlinton the final four-file correction: clean.ClawSweeper rank-up moves
process.exitCode = failureCount > 0 ? 1 : 0.origin/maininto the preserved contributor series; native merge verification owns later conflict-free mainline drift.focused Docker, Podman, and filesystem-view regressions cover
/workspace/..