Repository navigation
feat(macos): package an exact prewarmed development runtime - #124831
hannesrudolph wants to merge 10 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 22, 2026, 11:24 PM ET / August 23, 2026, 03:24 UTC. ClawSweeper reviewWhat this changesAdds an opt-in macOS development build containing an exact Node runtime and verified plugin archives so first-run onboarding can avoid downloading those artifacts. Merge readinessThe prewarmed runtime and archive-cache path remains useful. The prior mutable-cache trust concern is resolved because cache hits still enter the ordinary mutable-archive policy and hook path and the staged archive is re-hashed; direct Codex runtime-contract inspection is still required before merge. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherThe macOS app installer stages a bundled development runtime before starting the local Gateway and onboarding flow. A dormant plugin archive cache can accelerate official-plugin installation, but archives still pass through the normal installer security policy. flowchart LR
A[macOS development build] --> B[Prewarmed runtime manifest]
B --> C[Installer validates version, commit, architecture, and hashes]
C --> D[Staged local runtime]
D --> E[Onboarding plugin install]
E --> F[Archive hash and policy checks]
F --> G[Gateway and macOS app ready]
Decision needed
Why: The repository policy requires direct inspection of the Codex implementation for this changed executable-probe behavior, which this read-only environment cannot perform. Before merge
Findings
Agent review detailsSecurityNeeds attention: Archive integrity and normal policy enforcement are preserved, but the affected Codex executable contract still needs the repository-required direct source check. PR surfaceSource +210, Tests +785, Docs +14, Config 0, Other +1182. Total +2191 across 31 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Keep cached packs as mutable local archives under the existing policy and scan owner, then complete direct Codex source inspection and exact-head macOS acceptance before merging. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds an opt-in development build capability rather than repairing a reported current-main failure. Is this the best way to solve the issue? Unclear: the archive-security design is sound on the reviewed paths, but direct Codex contract evidence is required to conclude this is the best complete implementation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2a87667bb256. LabelsLabel justifications:
EvidenceSecurity concerns:
Acceptance criteria:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (16 earlier review cycles; latest 8 shown)
|
6c28363 to
4fe6098
Compare
4fe6098 to
02a2e31
Compare
8fed736 to
86913da
Compare
d45c5c2 to
956b835
Compare
956b835 to
e34dca1
Compare
|
@clawsweeper please re-review the latest commit; the prewarmed plugin behavior has been redesigned as a dormant exact-package cache. |
|
🦞👀 I queued a lightweight read-only assist pass. It will post a separate answer comment and will not edit the durable ClawSweeper review comment or trigger close, merge, repair, label, or branch changes. Request: please re-review the latest commit; the prewarmed plugin behavior has been redesigned as a dormant exact-package cache. |
|
ClawSweeper assist: This needs a full correctness review of the redesigned cache path; please request Evidence:
Suggested next action: Post Source: #124831 (comment) |
|
@clawsweeper please re-review |
|
🦞👀 I queued a lightweight read-only assist pass. It will post a separate answer comment and will not edit the durable ClawSweeper review comment or trigger close, merge, repair, label, or branch changes. Request: please re-review |
|
ClawSweeper assist: The supplied context supports the Keychain and cold-start fixes, but it does not establish that the outstanding P1 cache-trust finding is resolved. This needs a full correctness re-review of Evidence:
Suggested next action: Source: #124831 (comment) |
|
The two flag-independent macOS onboarding repairs have been split out of this prewarming PR:
Both PRs are based on current |
|
Thanks for the PR. We're closing older pull requests that have gone stale against current This draft has had no commits since August 23, and its flag-independent onboarding repairs were split into #128819 and #128820. Please open a fresh PR on current main if the prewarmed development runtime is still needed. |
Builds on #124829.
What Problem This Solves
Development macOS builds can install the exact OpenClaw core revision that produced the app, but official external plugins may not yet be published at that same version. That makes onboarding tests fail at plugin installation even though the app and core runtime are correct.
Why This Change Was Made
The opt-in prewarmed development build now carries exact
.tgzpackages for every publishable official external plugin (currently 89) in a separate commit/version/hash-bound cache. Installing the app copies that cache transactionally into profile state without installing, enabling, discovering, or exposing any plugin or Codex executable.When normal onboarding later selects an official plugin, the existing managed npm-pack path consumes a matching verified cache entry. Dependencies still download from npm, the resulting install record keeps normal npm semantics, and nonmatching versions or update-channel tags fall back to the registry. No HTTP server, registry override, LaunchAgent environment change, or generic install override is introduced.
User Impact
Developers using
OPENCLAW_BUNDLE_PREWARMED_RUNTIME=1can test the app's matching build and onboarding flow without waiting for that exact official plugin version to reach npm. Standard builds and published releases are unchanged, and prewarmed plugins remain dormant until the user selects one through the normal setup flow.Evidence
pnpm test:macos:cipassed all 496 tests across seven Vitest shards, including Darwin installer and packaging coverage.swift test --package-path apps/macos --filter CLIInstallerTestspassed 24 tests.manifest.json; the manifest SHA matched the schema-2 app manifest and Codex resolved to@openclaw/[email protected].codex login statuswas recognized on the first onboarding pass.src/scripts/ci-changed-scope.test.tsbaseline; this change leaves that file's line count unchanged.packagesinputs are excluded; root-test typechecking is likewise blocked by the deliberately excluded.agents/skills/openclaw-live-updaterfixture.Basestate without restarting or logging out. Exact app commite942563ddc4eacea978b70d1b86c951c9c23d1dainstalled its matching runtime and staged the 89-plugin cache with no Codex plugin or binary present before selection.Using verified prewarmed plugin cache for codex, installed trusted official@openclaw/[email protected], and restarted healthy with Codex loaded.openai/gpt-5.6-solthroughagentHarnessId: codex. The successful onboarded VM snapshot is{010bf818-6ed5-43e6-b290-7bae4f914801}.