Skip to content

fix(sandbox): authorize canonical destinations before pinned fs mutations - #143501

Merged
eleqtrizit merged 7 commits into
openclaw:mainfrom
eleqtrizit:1011
Sep 11, 2026
Merged

eleqtrizit merged 7 commits into
openclaw:mainfrom
eleqtrizit:1011

Conversation

@eleqtrizit

@eleqtrizit eleqtrizit commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

A sandboxed workload with workspace write access could modify files under a policy-protected path such as .git — an ancestor symlink (placed once, or swapped mid-operation) redirected an approved write into a denied directory, and a planted .git/config helper could execute with host privileges on the next git run. This PR authorizes the canonical destination before every write-class mutation and pins the mutation to exactly that destination, so redirects fail closed. It replaces lexical-only authorization in the Codex exec-server filesystem handler and both shipped sandbox bridges.

What was wrong

  1. extensions/codex/src/app-server/sandbox-exec-server/filesystem.ts — the request-local policy was evaluated against the lexical request path only; the handler then delegated to the bridge, which resolved symlinks afterward. The policy never saw the real destination.
  2. src/agents/sandbox/fs-bridge.ts — the local bridge anchored mutations to the canonical (symlink-resolved) path with no link back to what the policy had authorized.
  3. src/agents/sandbox/remote-fs-bridge.ts — the remote bridge had the same authorization/mutation mismatch, and its pinned-target construction kept the filename in parent pins and resolved canonical paths in the physical namespace while policy grants use the logical one (breaking legitimate symlinked workspace roots).

Net effect: an attacker-controlled ancestor symlink could silently redirect any approved workspace write into a read-only or denied path, including .git/config.

Why this design

  • Authorize the canonical destination before pinning the mutation: resolvePinnedMutationTarget returns two views — policyPath (the caller's logical policy namespace, evaluated together with the lexical path, so an alias cannot hide the real destination) and pinnedPath (the bridge-runtime canonical target, passed back so the mutation lands exactly there).
  • Fail closed after authorization: pinned mutations re-walk their path without following symlinks, so any component swapped mid-flight aborts the mutation instead of redirecting it.
  • Keep directory semantics explicit: directory actions (mkdir, directory copy) authorize the directory itself — an existing alias may rename it and creation of an existing mount root stays an authorized no-op; file actions (write, create, remove, copy) authorize the canonical parent plus the requested basename, so a removal can never act on an unauthorized child.
  • Cover every write-class RPC (fs/writeFile, fs/createDirectory, fs/remove, fs/copy) in both shipped bridges.
  • Introduce no config surface: no configuration, defaults, persisted representation, or public request/response shapes changed; the only observable behavior change is that the previously exploitable redirects are now denied.

Request lifecycle

Every write-class request traverses the same gate ordering; each attack path terminates in a fail-closed state:

stateDiagram-v2
    [*] --> Requested: fs/writeFile · copy · remove · mkdir

    Requested --> LexicalCheck
    LexicalCheck --> Denied: policy denies lexical path
    LexicalCheck --> CanonicalResolution: allowed

    CanonicalResolution --> CanonicalCheck: returns policyPath + pinnedPath
    CanonicalCheck --> Denied: policy denies canonical destination
    CanonicalCheck --> Pinned: both views authorized

    Pinned --> Landed: no-follow walk reaches pinned target
    Pinned --> Aborted: component swapped after authorization

    Denied --> [*]
    Aborted --> [*]
    Landed --> [*]

    Denied: denied before any effect (0 bytes moved, zero bridge mutations)
    Aborted: mutation aborted, not redirected (fail closed)
    Landed: landed on authorized target (final filesystem state verified)
Loading
  • The original exploit (alias into .git) terminates at the canonical-policy gate — the gate that did not exist before this fix.
  • A racing swap (alias changed after authorization) reaches the pinned mutation but terminates in the aborted state: the no-follow walk refuses the redirect.
  • Legitimate aliases (symlinked workspace roots, alias-renamed directories) pass both gates: authorization uses the logical view, the mutation pins to the physical target.

Evidence

Observed final filesystem effects through the real WebSocket exec-server RPC with the shipped remote-shell bridge and real POSIX scripts (no mocks):

Requested path Canonical destination Mode Outcome Bytes moved
/workspace/alias/config (alias -> .git) .git/config write Denied before any mutation: .git/config absent, zero mutation-script invocations 0
/workspace/real-note.txt itself write Lands exactly; content verified 7
/workspace/alias-real/config (alias -> real), alias swapped to a decoy after authorization real/config write Lands on the pinned location; decoy untouched 11
/workspace/nested/src-dir /workspace (existing mount root) recursive copy Directory destination resolved with directory semantics; children pinned to the canonical destination; pre-change semantics preserved child payloads
/workspace/nested/src-dir /workspace/alias-dir (alias -> dir-target) recursive copy Children land in the canonical directory child payloads
/workspace/nested/src-dir /workspace/source-subdir-alias (alias -> source/subdir) recursive copy Rejected before mkdirp or enumeration: zero new mutation calls, no copied output 0
/workspace/alias/gone.txt (alias -> real) real/gone.txt remove Deletes exactly the authorized entry; sibling intact —
pre-upgrade bridge (no resolver, no pins) over all four mutation RPCs legacy shapes write/copy/mkdir/remove Receives byte-for-byte the legacy argument objects; no pin field —

Sink-level observations: every outcome above is asserted by reading back final filesystem state (or its absence) after the RPC completes — see the sandbox-exec-server.fs-bridge-composition.test.ts and local-bridge E2E suites.

SDK / caller upgrade contract

SandboxFsBridge implementers are the affected callers:

  • Keep access, no action required: bridges that do not implement resolvePinnedMutationTarget (and legacy pinnedPath-less call sites) compile and run unchanged — a dedicated regression test constructs the exact pre-upgrade shape (satisfies SandboxFsBridge), drives all four mutation RPCs through the real handler, and asserts each method receives the unchanged legacy argument object.
  • Fail closed on adoption: shipped local and remote bridges opt into the strengthened contract together (resolution plus pin consumption); adopting bridges deny protected canonical destinations and post-authorization alias swaps.
  • Third-party bridge owners may adopt the optional surface on their own timeline; the shipped guarantees do not depend on it.

Boundary decisions requested from maintainers

  1. Merge decision on the intentional tightening: aliases (or racing swaps) that resolve into a policy-denied destination now fail. Their previous success depended on the authorization/mutation mismatch this PR fixes; treating that success as compatibility behavior would preserve the vulnerability.
  2. Optional-interface adoption: resolvePinnedMutationTarget and every pinnedPath parameter are optional, so third-party bridges are not forced to adopt the guarantee in this release. Flag if a mandatory migration is preferred instead.

Testing

  • New: bridge-level canonical-resolution tests (real symlinks, real script execution), pinned-write alias-swap immunity, basename-mismatch rejection, RPC canonical-destination denial and pinned passthrough, recursive-copy containment, and the executable pre-upgrade bridge contract driving all four mutation families.
  • Real-behavior proof: the proper E2E config runs the local bridge's 9 real-shell tests (observed final effects, not mocks); the WebSocket RPC composition suite covers denial-before-effect, exact landing, directory copies into mount roots and aliases, and canonical-descendant rejection.
  • Unchanged-green: the pre-existing focused suites pass unmodified; oxlint, formatting, production/core-test/extension-test typechecks pass for the changed surface; branch autoreview is scoped-clean (no P0/P1/P2 findings).
  • Exact-head CI completed with zero failures; the review's final evidence confirms "no persisted representation, configuration default, or wire parameter is introduced" and that "the earlier migration blocker does not apply to this stateless change."

@eleqtrizit
eleqtrizit requested a review from a team as a code owner September 9, 2026 23:39
@clawsweeper

clawsweeper Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling extensions: codex size: L maintainer Maintainer-authored PR labels Sep 9, 2026
@clawsweeper clawsweeper Bot added P0 Emergency: data loss, security bypass, crash loop, or unusable core runtime. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 9, 2026
@clawsweeper

clawsweeper Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 10, 2026, 10:56 PM ET / September 11, 2026, 02:56 UTC (Revision 10).

ClawSweeper review

What this changes

The PR checks sandbox filesystem mutations against their symlink-resolved destinations and carries those authorized destinations into local and remote filesystem operations.

Merge readiness

⛔ Blocked before merge - 1 item remains

This security fix remains necessary: current main and the latest release still authorize mutations using lexical paths. No blocking patch defect remains, and the expanded legacy-bridge coverage resolves the previous compatibility-proof concern.

Priority: P0
Reviewed head: 5ee8c1b3ca3ef577d2ab5d0cef87e71e67e94043

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent security repair with meaningful final-effect proof and resolved prior findings.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The supplied observations, checked against the production-path harnesses, show real WebSocket-to-bridge protected-destination rejection before mutation, allowed filesystem writes, and post-authorization alias swaps leaving decoys untouched; legacy compatibility tests provide supplemental coverage.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The supplied observations, checked against the production-path harnesses, show real WebSocket-to-bridge protected-destination rejection before mutation, allowed filesystem writes, and post-authorization alias swaps leaving decoys untouched; legacy compatibility tests provide supplemental coverage.
Evidence reviewed 10 items Current main still needs the fix: The current-main write handler checks only filePath before calling the bridge; it does not authorize or pass a canonical destination.
Latest release has the same authorization gap: The supplied latest release, v2026.9.3, also checks only the lexical write path. This review does not establish a released fix.
Introduced authorization and pinning: Inspected the complete introduced production hunks from the pinned merge base. Write, mkdir, remove, and copy authorize canonical policy destinations before passing runtime pins; recursive removal checks canonical protected descendants. Directory copies use directory semantics and reject canonical self/descendant destinations before mutation.
Findings None None.
Security None None.

How this fits together

The Codex sandbox exec-server receives filesystem requests and request-local access policies, then delegates operations to OpenClaw’s sandbox bridges. These bridges translate paths and execute guarded filesystem operations in local or remote workspaces.

flowchart TD
  A[Codex filesystem request] --> B[Resolve canonical destination]
  B --> C[Check lexical and canonical policy paths]
  C -->|Denied| D[Reject before mutation]
  C -->|Allowed| E[Carry authorized destination]
  E --> F[Local or remote no-follow operation]
  F --> G[Filesystem result]
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source +456, Tests +899. Total +1355 across 12 files.

View PR surface stats
Area Files Added Removed Net
Source 6 520 64 +456
Tests 6 899 0 +899
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 12 1419 64 +1355

Review metrics

Metric Value Why it matters
Production versus test growth Production net +456 lines; tests and test support +899 lines Production growth implements canonical resolution and pin consumption for both bridges; coverage exercises authorization, final effects, and compatibility.
Legacy compatibility coverage 4 mutation families; 0 persisted-format changes The expanded pre-upgrade bridge fixture addresses the prior review’s concrete compatibility concern without requiring a migration.

Stored data model

Persistent data-model change detected: serialized state: extensions/codex/src/app-server/sandbox-exec-server/filesystem.ts, unknown-data-model-change: extensions/codex/src/app-server/sandbox-exec-server/filesystem.ts. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Bind authorization and mutation to the same canonical destination while preserving logical policy namespaces, legitimate aliases, and compatibility with existing bridges.

Do we have a high-confidence way to reproduce the issue?

Yes, source inspection establishes the path: current main authorizes a writable lexical alias before the bridge resolves its protected destination. This read-only review did not execute a current-main reproduction.

Is this the best way to solve the issue?

Yes. Authorizing the canonical destination and consuming that exact pin repairs the mismatch at the policy-to-filesystem boundary; optional additions and legacy-bridge coverage preserve existing implementations.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against d36ca99e50d1.

Labels

Label justifications:

  • P0: The source-backed defect allows sandbox writes to bypass explicitly protected destinations, including repository metadata that can influence subsequent host Git execution.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The supplied observations, checked against the production-path harnesses, show real WebSocket-to-bridge protected-destination rejection before mutation, allowed filesystem writes, and post-authorization alias swaps leaving decoys untouched; legacy compatibility tests provide supplemental coverage.
  • proof: sufficient: Contributor real behavior proof is sufficient. The supplied observations, checked against the production-path harnesses, show real WebSocket-to-bridge protected-destination rejection before mutation, allowed filesystem writes, and post-authorization alias swaps leaving decoys untouched; legacy compatibility tests provide supplemental coverage.

Evidence

What I checked:

  • Current main still needs the fix: The current-main write handler checks only filePath before calling the bridge; it does not authorize or pass a canonical destination. (extensions/codex/src/app-server/sandbox-exec-server/filesystem.ts:250, d36ca99e50d1)
  • Latest release has the same authorization gap: The supplied latest release, v2026.9.3, also checks only the lexical write path. This review does not establish a released fix. (extensions/codex/src/app-server/sandbox-exec-server/filesystem.ts:250, 1391f7cd2d40)
  • Introduced authorization and pinning: Inspected the complete introduced production hunks from the pinned merge base. Write, mkdir, remove, and copy authorize canonical policy destinations before passing runtime pins; recursive removal checks canonical protected descendants. Directory copies use directory semantics and reject canonical self/descendant destinations before mutation. (extensions/codex/src/app-server/sandbox-exec-server/filesystem.ts:255, 5ee8c1b3ca3e)
  • Compatibility concern resolved: The resolver and mutation pin parameters are optional. The current legacy-bridge test deliberately omits them and exercises write, directory creation, copy, and removal through the WebSocket handler. The diff changes no persisted representation, schema, configuration default, or wire field, so a migration is unnecessary. (extensions/codex/src/app-server/sandbox-exec-server.fs.test.ts:80, 5ee8c1b3ca3e)
  • Observed authorization boundary proof: The supplied PR body reports real WebSocket requests through the shipped remote-shell bridge and actual POSIX scripts: alias-to-.git writes were denied, the protected file remained absent, and zero mutation scripts ran. Allowed direct and aliased writes reached their intended files. Inspection of the composition harness confirms these final-effect assertions; local and remote bridge harnesses additionally check post-resolution alias swaps and untouched decoys. These runs were reported by the contributor, not executed during this review. (extensions/codex/src/app-server/sandbox-exec-server.fs-bridge-composition.test.ts:121, 5ee8c1b3ca3e)
  • Final mutation enforcement: Inspected both pin consumers and the shared Python mutation owner. Authorized pins avoid resolving writable aliases again; descriptor walks use no-follow directory opens, and writes/copies replace the final entry rather than following a final symlink. Remote pins preserve separate logical policy and physical runtime namespaces. (src/agents/sandbox/remote-fs-bridge-pinned-frame.ts:46, 5ee8c1b3ca3e)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Ayaan Zaidi: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (9 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-10T01:36:20.648Z sha b94edf8 :: needs real behavior proof before merge. :: [P1] Resolve directory-copy destinations with directory semantics | [P2] Restore the alias before resolving subsequent proof targets
  • reviewed 2026-09-10T02:58:07.980Z sha bca63d3 :: needs real behavior proof before merge. :: [P1] Resolve directory-copy destinations with directory semantics
  • reviewed 2026-09-10T18:41:02.136Z sha 16a322d :: blocked before merge. :: none
  • reviewed 2026-09-10T18:52:37.069Z sha 16a322d :: blocked before merge. :: none
  • reviewed 2026-09-10T19:02:01.492Z sha 16a322d :: blocked before merge. :: none
  • reviewed 2026-09-10T19:33:24.016Z sha e3e670b :: blocked before merge. :: [P2] [P2] Reject canonical descendant copies before creating the destination
  • reviewed 2026-09-10T19:58:54.328Z sha 015d4c7 :: blocked before merge. :: none
  • reviewed 2026-09-10T21:12:27.807Z sha 015d4c7 :: blocked before merge. :: none

@clawsweeper

clawsweeper Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Sep 10, 2026
@clawsweeper

clawsweeper Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 10, 2026
@clawsweeper

clawsweeper Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Sep 10, 2026
@clawsweeper

clawsweeper Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper

clawsweeper Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper

clawsweeper Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 10, 2026
@clawsweeper

clawsweeper Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 10, 2026
@clawsweeper

clawsweeper Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper

clawsweeper Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@eleqtrizit

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@eleqtrizit

Copy link
Copy Markdown
Contributor Author

Merge record

Summary: Authorizes the canonical destination before every write-class sandbox filesystem mutation and pins the mutation to exactly that destination across the Codex exec-server handler and both shipped bridges. A symlinked ancestor (placed once or swapped mid-operation) could previously redirect an approved write into a policy-protected path such as .git/config. The fix makes such redirects fail closed while legitimate aliases and symlinked workspace roots keep working.

Decision Reason for Merge: "Merged because the final ClawSweeper review of exact head 5ee8c1b reported no actionable or security findings with Diamond proof confidence, all 226 CI checks passed, and the compatibility gate returned SAFE with executable pre-upgrade bridge proof requiring no migration."

Compatibility Checks Done: 226/226 CI checks green on the merged head; final ClawSweeper review reported no actionable or security findings with Diamond (5/6) proof confidence and checked the data-model compatibility item; compatibility review returned SAFE; an executable pre-upgrade bridge contract test drives all four mutation RPCs through the legacy bridge shape, and real-shell final-effect tests verify denials, exact landing, and post-authorization alias-swap immunity.

@eleqtrizit
eleqtrizit merged commit 628a549 into openclaw:main Sep 11, 2026
225 of 226 checks passed
@eleqtrizit
eleqtrizit deleted the 1011 branch September 11, 2026 03:59
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 11, 2026
…ions (openclaw#143501)

* fix(sandbox): authorize canonical destinations before pinned fs mutations

* fix(sandbox): separate policy namespace from pinned mutation targets

* fix(sandbox): satisfy lint, deadcode, and test-type gates on pinned frames

* test(sandbox): prove canonical authorization through RPC

* test(sandbox): prove legacy bridge upgrade compatibility

* fix(sandbox): reject canonical descendant copies

* test(sandbox): cover legacy bridge mutation contracts
@eleqtrizit eleqtrizit self-assigned this Sep 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling extensions: codex maintainer Maintainer-authored PR P0 Emergency: data loss, security bypass, crash loop, or unusable core runtime. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant