Repository navigation
feat(macos): cache exact plugins for prewarmed builds - #130544
Patrick-Erichsen wants to merge 3 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs real behavior proof before merge. Reviewed August 26, 2026, 8:56 PM ET / August 27, 2026, 00:56 UTC. ClawSweeper reviewWhat this changesAdds a hash-bound archive cache for official plugins to opt-in prewarmed macOS development builds, then uses matching archives during normal plugin onboarding. Merge readiness⛔ Blocked until real behavior proof is added - 9 items remain Keep open: the new profile-state cache can be rewritten with a matching manifest hash and then receives a trusted-install bypass that skips the configured before-install hook. This draft, maintainer-labeled stacked PR needs the trust boundary repaired and demonstrated before merge. Priority: P1 Review scores
Verification
How this fits togetherThe macOS packager stages plugin archives beside a prewarmed runtime, and the installer copies them into profile state. Onboarding later resolves a selected archive and sends it through the managed npm plugin installer. flowchart LR
A[Opt-in macOS build] --> B[Plugin archive cache]
B --> C[Profile-state cache]
C --> D[Onboarding plugin selection]
D --> E[Cache validation]
E --> F[Managed plugin installer]
F --> G[Install policy and hooks]
Decision needed
Why: The current cache digest is stored alongside the mutable archive, so preserving the trusted bypass requires a security-boundary design choice rather than a mechanical test-only change. Before merge
Findings
Agent review detailsSecurityNeeds attention: The patch creates a concrete plugin-install trust escalation from mutable profile-state cache data. PR surfaceSource +205, Tests +476, Docs +2, Config 0, Other +492. Total +1175 across 22 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep profile-staged archives on the ordinary install-safety path unless consumption can verify an immutable authority-bound cache signature or digest independent of the mutable cache. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: replace a cached archive and its manifest SHA together after staging, then select that official plugin during onboarding; the changed path grants trusted installation. Is this the best way to solve the issue? No: the current self-authored cache digest cannot justify bypassing the existing before-install hook after the cache enters mutable profile state. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 35adcc6c6f3b. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
CI note: the two red |
|
Closing as stale: this macOS onboarding/prewarm stack has been inactive since August, and Closed by Roboclaw at the author's request after an audit of his open PRs. The branch is kept, so this can be reopened if needed. |
Summary
Add a commit/version/hash-bound cache of exact official-plugin archives to opt-in prewarmed development builds. Archives stay dormant until normal onboarding selects that plugin, then flow through the existing managed npm-pack and security path; dependencies still resolve normally from npm.
This is the top layer of the macOS onboarding/prewarm stack and extracts the plugin-cache half of #124831. Hannes Rudolph remains the author of the feature commits.
Stack
Scope boundary
This PR adds cache staging, manifest verification, installation, and onboarding consumption. It does not bypass the normal plugin trust/install path and does not install or expose plugins before selection.
Evidence
Mac Studio validation at exact head
fd4b38b6a5727302776dd5975af5165149265e52:CLIInstallerTests: 24/24MacGatewayProfilesTests: 17/17scripts/prewarmed-plugin-cache.d.mtsOpenClaw.apppackage completed successfully with ad-hoc development signing2026.8.1/fd4b38b6a5727302776dd5975af5165149265e52Draft status
Real guest acceptance is blocked before OpenClaw execution. After restoring both pristine
macOS Tahoe Cleansnapshots, Parallels reportedGuestTools: state=not_installed;prlctl exechad no session, the guest exposed no IP/SSH route, andprlctl capturealso hung. The exact VM process was stopped without restarting Parallels, the original snapshot{1cca537a-4fa6-45b0-864c-174cadeca6f4}was restored, the guest was left stopped, and the two unrelated installer VMs remained running and untouched.