Skip to content

fix: macOS-only Parallels smoke harness regression - #75293

Merged
steipete merged 4 commits into
mainfrom
clawsweeper/clawsweeper-commit-openclaw-openclaw-af5a1fbddb14
Jul 28, 2026
Merged

steipete merged 4 commits into
mainfrom
clawsweeper/clawsweeper-commit-openclaw-openclaw-af5a1fbddb14

Conversation

@clawsweeper

@clawsweeper clawsweeper Bot commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

Summary

Found one macOS-only Parallels smoke harness regression. The new guest script writer creates a root-owned 700 script, then the macOS lane executes it as the desktop user.

What ClawSweeper Is Fixing

  • Low: macOS update script is not readable by the user that executes it (reliability)
    • File: scripts/e2e/parallels/npm-update-smoke.ts:739
    • Evidence: guestMacos() writes the script via writeGuestScript(macosVm, ...), then runs it through prlctl exec ... --current-user ... /bin/bash <scriptPath> or the sudo desktop-user fallback at lines 451-453. But writeGuestScript() writes with plain prlctl exec <vm> /usr/bin/tee <scriptPath> and then chmod 700 <scriptPath> at lines 730-739. The Parallels docs describe --current-user as logging in as the current guest OS user, so the write path and execute path are different identities for the macOS lane. (docs.parallels.com)
    • Impact: pnpm test:parallels:npm-update -- --platform macos can fail before it exercises openclaw update, likely with /bin/bash: /tmp/openclaw-parallels-npm-update-macos-...sh: Permission denied. That breaks the intended release/update smoke coverage on current main; no later commit in the touched files fixes it.
    • Suggested fix: for macOS, write/chmod the temp script through the same resolved transport used to execute it, or explicitly chown it to the resolved desktop user and keep permissions non-world-readable because the script embeds provider credentials. Keep the Linux root-owned path separate.
    • Confidence: high

Expected Repair Surface

  • scripts/e2e/parallels/npm-update-smoke.ts
  • scripts/e2e/parallels/npm-update-scripts.ts

Source And Review Context

Expected validation

  • pnpm check:changed

ClawSweeper already ran:

  • pnpm exec tsx scripts/e2e/parallels/npm-update-smoke.ts --help: passed after installing deps
  • pnpm exec oxfmt --check --threads=1 scripts/e2e/parallels/npm-update-scripts.ts scripts/e2e/parallels/npm-update-smoke.ts: passed
  • git diff --check ...: passed

Known review limits:

  • prlctl is not installed in this environment, so I could not run the actual VM smoke.

ClawSweeper Guardrails

  • Re-check the finding against latest main before changing code.
  • Keep the patch to the narrowest behavior change and matching regression coverage.
  • Do not merge automatically; this PR stays for maintainer review.

ClawSweeper 🐠 replacement reef notes:

  • Cluster: clawsweeper-commit-openclaw-openclaw-af5a1fbddb14
  • Source PRs: none
  • Credit: Detected by ClawSweeper commit review for af5a1fb.; Original commit author: Peter Steinberger.
  • Validation: pnpm check:changed

fish notes: model gpt-5.5, reasoning medium; reviewed against 220a503.

@clawsweeper clawsweeper Bot added clawsweeper Tracked by ClawSweeper automation clawsweeper:commit-finding PR created from a ClawSweeper commit finding labels Apr 30, 2026
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS labels Apr 30, 2026
@clawsweeper

clawsweeper Bot commented Apr 30, 2026 •

Copy link
Copy Markdown
Contributor Author

Codex review: needs maintainer review before merge. Reviewed July 3, 2026, 9:52 PM ET / July 4, 2026, 01:52 UTC.

Summary
The PR changes the Parallels npm-update macOS lane to resolve one guest user/transport, use it for tee/chmod/bash, chown the temp script to that user, and update focused regression assertions.

PR surface: Tests +11, Other +16. Total +27 across 2 files.

Reproducibility: yes. by source inspection: current main still writes/chmods the macOS temp script through plain prlctl exec, then executes it through user-scoped args. I did not run a macOS VM, and current main no longer reproduces the exact original mode-700 denial because the helper now chmods 755.

Review metrics: 1 noteworthy metric.

  • macOS update script transport: 1 same-guest update path changed. The diff changes which guest identity writes, chmods, owns, and executes the credential-bearing macOS update script, which ordinary CI does not prove end to end.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🌊 off-meta tidepool
Patch quality: 🦞 diamond lobster
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Capture redacted macOS Parallels npm-update proof or apply an explicit proof override.
  • Rerun or explicitly handle the failed Scan changed paths (precise) check.

Risk before merge

  • [P1] No redacted live macOS Parallels npm-update run proves that tee, chmod, chown, and bash all succeed under the intended guest identity on a target VM.
  • [P1] The required Scan changed paths (precise) check failed for the current head, so maintainers need a rerun or explicit handling before merge.

Maintainer options:

  1. Prove the macOS update lane and rerun the scan (recommended)
    Run the current head through the macOS npm-update smoke with redacted output covering tee, chmod, chown, and bash under the intended user, then rerun or explicitly handle the failed precise scan.
  2. Accept source-level proof explicitly
    Maintainers can waive live VM proof if they are comfortable owning the unexercised Parallels transport risk and separately handling the failed scan check.
  3. Pause or close the bot branch
    If macOS VM proof is not worth pursuing for this bot-authored branch, pause or close it rather than leaving it as a blocked landing candidate.

Next step before merge

  • [P2] The code repair is already present on the PR branch; the remaining action is maintainer live-proof or override plus failed-check handling, not an automated code change.

Security
Cleared: The diff narrows macOS temp-script permissions and does not add dependencies, workflows, lockfile changes, secret sources, or new supply-chain execution surface.

Review details

Best possible solution:

Land the narrow same-identity macOS update-script repair after redacted Parallels npm-update proof or an explicit proof override, with the failed precise scan rerun or handled.

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

Yes, by source inspection: current main still writes/chmods the macOS temp script through plain prlctl exec, then executes it through user-scoped args. I did not run a macOS VM, and current main no longer reproduces the exact original mode-700 denial because the helper now chmods 755.

Is this the best way to solve the issue?

Yes source-wise: resolving the macOS exec identity once and using it for tee, chmod, chown, and bash is the narrowest maintainable fix. A chmod-only path avoids the denial but leaves a credential-bearing temp script more broadly readable than needed.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 2ffeedf406e7.

Label changes

Label justifications:

  • P2: This is a normal-priority Parallels release/update smoke harness repair with limited runtime blast radius but real release-validation value.
  • merge-risk: 🚨 automation: The PR changes Parallels release/update smoke automation that ordinary CI does not execute end to end on a macOS guest.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This is a ClawSweeper-authored bot PR, so the contributor proof gate is not applicable; maintainers still need live Parallels proof or an explicit override before merge.
Evidence reviewed

PR surface:

Tests +11, Other +16. Total +27 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 13 2 +11
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 43 27 +16
Total 2 56 29 +27

What I checked:

  • Current main still has split macOS write/execute identity: Current main writes the macOS temp script with plain prlctl exec, resolves user-scoped macOS exec args afterward, and runs /bin/bash through those args; the helper still chmods via plain exec. (scripts/e2e/parallels/npm-update-smoke.ts:1043, 2ffeedf406e7)
  • PR head resolves one macOS execution identity: PR head resolves MacosUpdateExec before writing the script, passes its execArgs into tee/chmod with mode 700, chowns to ownerUser, and executes bash with the same args. (scripts/e2e/parallels/npm-update-smoke.ts:1048, 91bd40d6882d)
  • Focused regression assertions were added: The PR updates the fallback ownership assertion and adds a source-level assertion that macOS tee/chmod use the resolved desktop-user transport. (test/scripts/parallels-npm-update-smoke.test.ts:779, 91bd40d6882d)
  • Entrypoint and docs confirm this is release/update smoke automation: package.json exposes test:parallels:npm-update, and the testing docs describe it as same-guest install/update verification with per-lane logs. (package.json:1896, 2ffeedf406e7)
  • Live PR status still needs check handling: Live GitHub status for head 91bd40d... reports the PR as mergeable but unstable; Scan changed paths (precise) failed on June 23, 2026. (91bd40d6882d)
  • History points to Parallels smoke transport ownership: The implicated macOS update-smoke transport work appears in Peter Steinberger's April commits, with recent adjacent Parallels npm-update work by Vincent Koc in June. (scripts/e2e/parallels/npm-update-smoke.ts:1038, af5a1fbddb14)

Likely related people:

  • steipete: The PR body identifies @steipete as the original GitHub author, and local history shows Peter Steinberger authored the April npm-update smoke transport hardening and immediate macOS fallback-user permission follow-up. (role: introduced behavior and adjacent feature contributor; confidence: high; commits: af5a1fbddb14, 359d871293e8; files: scripts/e2e/parallels/npm-update-smoke.ts, scripts/e2e/parallels/npm-update-scripts.ts)
  • vincentkoc: Recent history shows Vincent Koc touching adjacent Parallels npm-update smoke harness, tests, and guest transport behavior around the same validation surface. (role: recent area contributor; confidence: high; commits: 2499b64f9be6, e085fa1a3ffd; files: scripts/e2e/parallels/npm-update-smoke.ts, test/scripts/parallels-npm-update-smoke.test.ts, scripts/e2e/parallels/guest-transports.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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
  • 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.

@clawsweeper

clawsweeper Bot commented May 14, 2026 •

Copy link
Copy Markdown
Contributor Author

🦞🔧
ClawSweeper applied a repair to this PR branch.

Repair: kept the fix on this contributor branch instead of opening a replacement PR.
Validation: pnpm check:changed; pnpm lint; pnpm check:test-types
Updated head: 91bd40d6882d
Run: https://github.com/openclaw/clawsweeper/actions/runs/28033407457

Current state: exact-head review queued immediately; GitHub checks and the review verdict gate final merge.

Automerge progress:

  • 2026-06-23 14:41:50 UTC review queued 91bd40d6882d (after repair)

@clawsweeper
clawsweeper Bot force-pushed the clawsweeper/clawsweeper-commit-openclaw-openclaw-af5a1fbddb14 branch from 220a503 to 883981c Compare May 14, 2026 09:29
@RomneyDa

Copy link
Copy Markdown
Member

Heads up: this PR needs to be updated against current main before the new required Dependency Guard check can pass.

@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle Bot added the stale Marked as stale due to inactivity label Jun 14, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. status: needs maintainer proof decision A ClawSweeper-authored PR needs a maintainer proof capture or override decision. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. stale Marked as stale due to inactivity labels Jun 14, 2026
@clawsweeper

clawsweeper Bot commented Jun 14, 2026 •

Copy link
Copy Markdown
Contributor Author

ClawSweeper status: this ClawSweeper-authored replacement PR is blocked on real behavior proof.

Reviewed head: 883981c8b24365e897793f295b4907be3f8b836f
Proof status: not_applicable
Updated: 2026-06-23T11:12:42.925Z

Maintainer decision needed:

  • capture real behavior proof for this head
  • apply proof: override if the proof requirement should be waived
  • pause or close the replacement if proof should not be pursued

@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. status: needs maintainer proof decision A ClawSweeper-authored PR needs a maintainer proof capture or override decision. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: needs maintainer proof decision A ClawSweeper-authored PR needs a maintainer proof capture or override decision. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Jun 14, 2026
@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. status: needs maintainer proof decision A ClawSweeper-authored PR needs a maintainer proof capture or override decision. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: needs maintainer proof decision A ClawSweeper-authored PR needs a maintainer proof capture or override decision. labels Jun 22, 2026
@clawsweeper
clawsweeper Bot force-pushed the clawsweeper/clawsweeper-commit-openclaw-openclaw-af5a1fbddb14 branch from 883981c to 91bd40d Compare June 23, 2026 14:41
@clawsweeper clawsweeper Bot added status: 🛠️ actively grinding The PR author has acted after the latest ClawSweeper review and work remains. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. status: needs maintainer proof decision A ClawSweeper-authored PR needs a maintainer proof capture or override decision. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 🛠️ actively grinding The PR author has acted after the latest ClawSweeper review and work remains. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jun 23, 2026
@clawsweeper

clawsweeper Bot commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor Author

ClawSweeper status: this ClawSweeper-authored replacement PR is blocked on real behavior proof.

Reviewed head: 91bd40d6882d1296adafe55ee24b932e13a6ca78
Proof status: not_applicable
Updated: 2026-07-01T11:06:32.018Z

Maintainer decision needed:

  • capture real behavior proof for this head
  • apply proof: override if the proof requirement should be waived
  • pause or close the replacement if proof should not be pursued

@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. status: needs maintainer proof decision A ClawSweeper-authored PR needs a maintainer proof capture or override decision. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: needs maintainer proof decision A ClawSweeper-authored PR needs a maintainer proof capture or override decision. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jun 26, 2026
@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com>
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:commit-finding PR created from a ClawSweeper commit finding clawsweeper Tracked by ClawSweeper automation merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. proof: override Maintainer override for the external PR real behavior proof gate. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: S stale Marked as stale due to inactivity 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.

2 participants