Skip to content

fix: unblock macOS release validation - #119110

Merged
vincentkoc merged 4 commits into
mainfrom
validation/beta8-release-e2e-20260804
Aug 4, 2026
Merged

vincentkoc merged 4 commits into
mainfrom
validation/beta8-release-e2e-20260804

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 4, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where macOS release validation could fail when temporary workspaces used case-insensitive or symlink-aliased paths, while tests also inherited maintainer-machine credentials and path spellings.

The same alias mismatch could make remote sandbox reads, directory creation, and mutations fail through a valid symlinked workspace root.

Why This Change Was Made

The release tests now skip only split-memory assertions that require case-distinct filenames and explicitly isolate credential-sensitive expectations from ambient host state.

Sandbox and Claw workspace paths are canonicalized through their nearest existing ancestor. Remote sandbox policy remains evaluated in the logical mount namespace, while pinned filesystem operations use the canonical root so all operations retain no-follow and mount-escape protections.

User Impact

Maintainers can run the Beta 8 native release-preparation gate on macOS without host-specific false failures.

Remote sandbox users can read, create directories, and mutate files through a valid symlinked workspace root; paths that escape the canonical mount remain rejected. No config, protocol, or persisted-data contract changes.

Evidence

  • Exact candidate head: 3850c2037d651e21d24b784750c24a646ce20d7b
  • Exact base: e0799199b30fda0ee7268c8fed7e195cb6f5251b
  • Fresh Testbox: https://github.com/openclaw/openclaw/actions/runs/30884985852
  • pnpm check:changed -- <22 touched paths>: passed, including core/test typechecks, lint, dead-code, database-first, schema-version, import-cycle, and security guards.
  • Focused Testbox proof: 16 files across 7 Vitest shards, 609/609 tests passed.
  • Linked-root regression covers exclusive create, pinned read, recursive directory creation, and canonical escape rejection.
  • Supported local toolchain: Node 24.18.1 and Python 3.13.14; the same 609 focused tests passed.
  • Fresh exact-head autoreview: clean, no accepted/actionable findings, patch correctness 0.99.
  • ClawSweeper's read/mkdirp canonical-root finding is addressed in this head.
  • AI-assisted: yes.

@vincentkoc vincentkoc self-assigned this Aug 4, 2026
@openclaw-barnacle openclaw-barnacle Bot added commands Command implementations size: XS maintainer Maintainer-authored PR labels Aug 4, 2026
@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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Aug 4, 2026
@clawsweeper

clawsweeper Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 4, 2026, 3:02 AM ET / 07:02 UTC.

ClawSweeper review

What this changes

The PR makes macOS validation tests and remote sandbox filesystem operations work through case-insensitive or symlink-aliased paths while retaining mount-escape protections.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

No actionable exact-head defect found. This maintainer-authored PR remains necessary because current main lacks the canonical-root handling; it needs normal maintainer review after its behind-main refresh.

Priority: P2
Reviewed head: 3850c2037d651e21d24b784750c24a646ce20d7b

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The shared canonical-root repair is coherent and addresses the prior finding with focused boundary coverage.
Proof confidence 🌊 off-meta tidepool Not applicable: This is a MEMBER PR, so the external-contributor proof gate does not apply; its body nevertheless links exact-head Testbox and focused linked-root evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This is a MEMBER PR, so the external-contributor proof gate does not apply; its body nevertheless links exact-head Testbox and focused linked-root evidence.
Evidence reviewed 5 items Current-main gap: Current main still sends reads through the logical mount root and has no canonical-path helper, so the symlink-root failure remains unfixed there.
Exact-head implementation: The PR routes reads and directory creation through the shared pinned-parent preparation, which keeps mount-policy evaluation logical while using a canonical root for mutation helpers.
Boundary regression coverage: The linked-root regression proves exclusive create, pinned read, directory creation, and rejection of a symlink escape.
Findings None None.
Security None None.

How this fits together

Release validation runs OpenClaw’s test suites, while the remote sandbox bridge maps agent file actions into mounted workspaces. The bridge validates the logical mount path, then performs pinned filesystem operations against its canonical root.

flowchart LR
A[Agent file action] --> B[Logical workspace mount]
B --> C[Mount policy validation]
C --> D[Canonical root resolution]
D --> E[Pinned file operation]
E --> F[Remote workspace files]
Loading

Before merge

  • Resolve merge risk (P1) - The branch is behind current main, so the exact-head sandbox proof must be refreshed after rebasing before merge.
  • Complete next step (P2) - No mechanical repair remains; this maintainer-owned sandbox-boundary PR needs its normal post-rebase exact-head validation and merge judgment.
Agent review details

Security

None.

PR surface

Source +99, Tests +186. Total +285 across 22 files.

View PR surface stats
Area Files Added Removed Net
Source 7 222 123 +99
Tests 15 207 21 +186
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 22 429 144 +285

Review metrics

Metric Value Why it matters
Production versus test delta production +222/-123; tests +207/-21 The net production growth is justified by extracting the canonical-root owner boundary and applying it consistently across pinned remote filesystem operations.

Stored data model

Persistent data-model change detected: database schema: src/claws/workspace.test.ts, migration/backfill/repair: src/commands/doctor-workspace.test.ts, serialized state: src/agents/sandbox-paths.test.ts, serialized state: src/agents/sandbox/remote-fs-bridge.test.ts, serialized state: src/claws/workspace.test.ts, unknown-data-model-change: src/commands/doctor-workspace.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Refresh exact-head validation (recommended)
    Rebase onto current main and rerun the focused remote-sandbox proof so valid symlinked workspace operations remain available after the final merge result.

Technical review

Best possible solution:

Rebase onto current main, rerun the focused linked-root sandbox proof on that exact head, and land the shared canonical-root implementation if it remains clean.

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

Yes: the exact-head regression creates a symlinked workspace root, verifies read/create/mkdirp through it, and verifies an escape remains rejected.

Is this the best way to solve the issue?

Yes: a shared canonical-path resolver at the remote bridge boundary is preferable to operation-specific symlink exceptions because it preserves one logical-policy and pinned-operation flow.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 3ac70832135b.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This is a MEMBER PR, so the external-contributor proof gate does not apply; its body nevertheless links exact-head Testbox and focused linked-root evidence.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This repairs a bounded macOS validation and remote-workspace availability failure without evidence of a broad current outage.
  • merge-risk: 🚨 availability: The changed canonical-root path directly controls whether valid remote workspace reads and directory creation can proceed.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This is a MEMBER PR, so the external-contributor proof gate does not apply; its body nevertheless links exact-head Testbox and focused linked-root evidence.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Git history and blame connect the existing remote filesystem bridge and the canonical-root repair to this contributor. (role: introduced behavior and recent area contributor; confidence: high; commits: ba2764a25678, ce0fd2d61898, 3850c2037d65; files: src/agents/sandbox/remote-fs-bridge.ts, src/agents/sandbox/remote-fs-bridge-canonical-path.ts, src/agents/sandbox/remote-fs-bridge.test.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Rebase onto current main and refresh the exact-head remote-sandbox validation before merge.

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 (3 earlier review cycles)
  • reviewed 2026-08-04T05:15:57.705Z sha 858bc4c6f5d7666904bc6b12612298f8a6d29581 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-04T06:27:28.715Z sha d4d0ef235d36ca18429c4900b8c1c33b9645f323 :: found issues before merge. :: [P2] Canonicalize roots for every pinned helper operation
  • reviewed 2026-08-04T06:38:00.975Z sha 00f55f3b6face7bddb96e670d61a8be52fe8cabc :: found issues before merge. :: [P2] Canonicalize roots for every pinned helper operation

@vincentkoc
vincentkoc force-pushed the validation/beta8-release-e2e-20260804 branch from 858bc4c to d4d0ef2 Compare August 4, 2026 06:21
@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime cli CLI command changes docker Docker and sandbox tooling agents Agent runtime and tooling size: M and removed size: XS labels Aug 4, 2026
@clawsweeper clawsweeper Bot added 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. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. 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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Aug 4, 2026
@vincentkoc
vincentkoc force-pushed the validation/beta8-release-e2e-20260804 branch from d4d0ef2 to 00f55f3 Compare August 4, 2026 06:31
@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. label Aug 4, 2026
@vincentkoc
vincentkoc force-pushed the validation/beta8-release-e2e-20260804 branch from 00f55f3 to 3850c20 Compare August 4, 2026 06:43
@vincentkoc vincentkoc changed the title fix(test): guard split-memory tests on case-insensitive filesystems fix: unblock macOS release validation Aug 4, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Exact head 3850c2037d651e21d24b784750c24a646ce20d7b now canonicalizes the pinned root for readFile and mkdirp as requested. The linked-root regression covers both operations, and exact-head Testbox check:changed plus 609 focused tests are green.

@vincentkoc
vincentkoc marked this pull request as ready for review August 4, 2026 06:53
@vincentkoc
vincentkoc requested a review from a team as a code owner August 4, 2026 06:53
@clawsweeper

clawsweeper Bot commented Aug 4, 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 repository_dispatch).
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. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 4, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

ClawSweeper rank-up move reviewed: skipping the requested rebase.

Native scripts/pr prepare-run 119110 passed at exact head 3850c2037d651e21d24b784750c24a646ce20d7b, including 83 passing hosted checks and the prepared-head verification. Since base e0799199b30f, current origin/main has zero changed-path overlap with this PR and git merge-tree reports no conflict. The repository's native landing workflow treats this behind-main drift as advisory unless it is relevant; rebasing here would invalidate already-green exact-head proof without changing the patch.

The focused linked-root regression, 609-test Testbox run, check:changed, and fresh autoreview all remain exact to the prepared PR head. Final merged-main behavior will also be covered by the frozen-SHA Beta 8 release validation lane.

@vincentkoc
vincentkoc merged commit 7a5f108 into main Aug 4, 2026
190 of 199 checks passed
@vincentkoc
vincentkoc deleted the validation/beta8-release-e2e-20260804 branch August 4, 2026 07:05
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 4, 2026
* origin/main:
  fix(test): isolate shared state between test files (#118781)
  fix(telegram): use monotonic polling liveness
  fix(setup): keep compatible Claude wrappers selectable
  fix(agents): gate Claude live session protocol
  fix(agents): preserve Claude fork successor on stalls
  fix(agents): preserve Claude follow-up replies after background tasks
  fix: unblock macOS release validation (#119110)
  improve(qa): cover vision channel offload (#118862)
  test(qa): cover sandboxed exec behavior (#119053)
  fix(ai): preserve Google simple completion sanitation
  fix(macos): keep setup activation within app checks
  fix(tts): use prepared completion transport
  fix(ai): prefer provider-owned completion streams
  test(setup): type provider kind fixture
  fix(setup): complete prepared model activation
  fix(protocol): regenerate Swift wizard models
  fix(ollama): activate the model selected during setup
  fix(setup): preserve the prepared model handoff
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 5, 2026
* fix(test): guard split-memory tests on case-insensitive filesystems

* fix(sandbox): canonicalize aliased mount roots

* fix(claws): canonicalize aliased manifest paths

* test: isolate release validation from host state
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 5, 2026
* origin/main:
  fix(test): isolate shared state between test files (openclaw#118781)
  fix(telegram): use monotonic polling liveness
  fix(setup): keep compatible Claude wrappers selectable
  fix(agents): gate Claude live session protocol
  fix(agents): preserve Claude fork successor on stalls
  fix(agents): preserve Claude follow-up replies after background tasks
  fix: unblock macOS release validation (openclaw#119110)
  improve(qa): cover vision channel offload (openclaw#118862)
  test(qa): cover sandboxed exec behavior (openclaw#119053)
  fix(ai): preserve Google simple completion sanitation
  fix(macos): keep setup activation within app checks
  fix(tts): use prepared completion transport
  fix(ai): prefer provider-owned completion streams
  test(setup): type provider kind fixture
  fix(setup): complete prepared model activation
  fix(protocol): regenerate Swift wizard models
  fix(ollama): activate the model selected during setup
  fix(setup): preserve the prepared model handoff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling cli CLI command changes commands Command implementations docker Docker and sandbox tooling gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L 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