Repository navigation
Conversation
When a new agent workspace has no skills or .agents/skills directories, the read-only mount instructions are silently skipped. This creates a first-write vulnerability window where the agent can freely create executable scripts before the protective ro mount is applied on restart. Create both directories eagerly during workspace initialization so the Docker ro mount lock always applies from the first container launch. Fixes openclaw#94425 Co-Authored-By: Claude <[email protected]>
|
Codex review: needs real behavior proof before merge. Reviewed June 18, 2026, 3:00 AM ET / 07:00 UTC. Summary PR surface: Source +5. Total +5 across 1 file. Reproducibility: yes. from source inspection. The Review metrics: 1 noteworthy metric.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Create the host Do we have a high-confidence way to reproduce the issue? Yes from source inspection. The Is this the best way to solve the issue? No. Adding the directories in Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c6aa8e74236f. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +5. Total +5 across 1 file. View PR surface stats
Security concerns:
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
The sandbox skills dir creation code adds .agents/skills/ before the workspace-vanished check. The freshly-created .agents/ parent directory was then detected as user content evidence by hasSkipBootstrapWorkspaceContentEvidence, preventing the WorkspaceVanishedError from being thrown when a workspace was wiped. Add .agents to the metadata skip list — it is a standard config directory (agent-level skills, etc.), not user-created content. Fixes the agents-core-runtime CI failure on PR openclaw#94433. Co-Authored-By: Claude <[email protected]>
|
Closing stale PR: no human engagement detected. Only bot comments found. Will reopen if a maintainer expresses interest. |
Summary
Create skills and .agents/skills directories eagerly during ensureAgentWorkspace to prevent a first-write vulnerability window in sandbox containers.
Problem
When a new agent workspace has no skills or .agents/skills directories, read-only mount instructions are silently skipped by resolveReadOnlyWorkspaceSkillMounts. This creates a window where the agent can freely run mkdir skills and write executable scripts before the protective ro mount is applied on restart.
Root Cause
ensureAgentWorkspace does not create the skills directories upfront. The Docker ro mount is only applied if the paths already exist on the host, so the first container launch runs without the sandbox protection on these paths.
Changes
src/agents/workspace.ts— +5 lines: create both skills and .agents/skills directories eagerly during ensureAgentWorkspace, guaranteeing they exist before any sandbox container spawns. The Docker ro mount lock now always applies from the first launch.Testing
CI verification (pnpm not available locally).
Related
Closes #94425