Repository navigation
feat(mac): add canonical elevation host workflow - #123569
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
c7a6c49 to
ec74de5
Compare
|
Codex review: needs maintainer review before merge. Reviewed August 14, 2026, 8:25 AM ET / 12:25 UTC. ClawSweeper reviewWhat this changesThis PR adds a Foundation-signed macOS elevation-host package and separate launchd lifecycle, plus runtime suppression and CI-stability test updates. Merge readinessKeep open for macOS release-owner review: this adds a privileged signed unattended-host boundary, while its stated dependency prerequisite and real lifecycle certification are deferred. Likely related people: steipete (assigned workflow owner; high confidence). Priority: P2 Review scores
Verification
How this fits togetherThe macOS app normally owns interactive presentation, Gateway connectivity, and the local Peekaboo Bridge. The proposed elevation host is a separate launchd-managed runtime that installs a signed artifact, waits for Bridge readiness, and reports degraded permissions through status. flowchart LR
A[Release operator] --> B[Notarized elevation archive]
B --> C[Elevation host installer]
C --> D[Separate launchd job]
D --> E[Unattended macOS app]
E --> F[Gateway and Peekaboo Bridge]
C --> G[Status and recovery]
Decision needed
Why: This is a privileged deployment surface with release credentials and a deferred dependency contract, so source review cannot safely substitute for release-owner acceptance. Before merge
Findings
Agent review detailsSecurityNeeds attention: The code hardens the signing boundary, but the privileged artifact and launchd workflow still lacks the deferred real certification trace. PR surfaceTests +366, Docs +50, Config 0, Other +731. Total +1147 across 25 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Complete the required Peekaboo revision, then validate one Foundation-signed artifact through the full isolated launchd lifecycle with a redacted trace before approving this deployment path. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a new deployment workflow, not a report of broken current-main behavior; its claimed real lifecycle proof is explicitly deferred. Is this the best way to solve the issue? Unclear: the canonical runtime and separate launchd owner are coherent, but the required dependency revision and real signed lifecycle proof are still absent. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7fcddedaaf63. LabelsLabel justifications:
EvidenceSecurity concerns:
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 (6 earlier review cycles)
|
5df2071 to
6db33b1
Compare
051500b to
6b997a8
Compare
6b997a8 to
6d9590f
Compare
|
Land-ready at exact head Proof completed:
Known sequencing boundary: the final Foundation-signed package/install/status/recover/degraded-TCC lifecycle certification intentionally waits for the compatible landed Peekaboo revision. This PR does not claim or publish a disposable artifact from the current dependency pin. |
|
Merged via squash.
|
* feat(mac): add canonical elevation host workflow * fix(mac): clarify elevation host deployment * test(ui): stabilize cloud startup effort flow * fix(mac): fail closed on unknown TCC status * test: synchronize async CI boundaries * test: remove remaining CI timing races
Summary
--elevation-hostruntime plan that implies attach/background behavior, keeps Gateway connectivity, Mac node, termination handling, and Peekaboo Bridge active, and suppresses updater, Dock promotion, automatic windows, deep links/reopen, pairing/exec presenters, Quick Chat hotkeys, voice/cookie startup, GUI Keychain loading, and modal startup errorsai.openclaw.mac.elevation-hostlaunchd lifecycle (package,install,status,recover,uninstall) with conflict refusal, RunAtLoad/KeepAlive ownership, transactional rollback, passive TCC reporting, and no changes to ordinaryai.openclaw.macLaunch at loginpackageas a Foundation release-operator path rather than a public artifact sourceOPENCLAW_STATE_DIRis isolatedmainindependently landed the workspace and terminal owner fixes, so the rebase drops this branch's duplicate terminal commitsRoot cause and ownership
--background-onlyowned presentation suppression, not a complete unattended-host contract. The existing development packager could produce a signed but unnotarized app, ordinary Launch at login intentionally remains user-quittable and interactive, signing propagated app entitlements to the MLX helper, and attach-only ignored a default-profile state-directory override. The result required operator-specific launchd files and indirect artifact evidence.This change keeps the normal login owner untouched and gives deployment one explicit owner: a closed runtime mode, one release artifact contract, and one separate transactional service lifecycle. Missing TCC is reported without opening System Settings.
installsucceeds only after the exact launchd-owned process is Bridge-ready; incomplete TCC is then a degradedstatusresult rather than a false rollback signal.Production/tooling delta is
+737/-46lines; tests are+478/-72after discounting 281 lines moved unchanged into the split recovery suite (+759/-353raw), and docs are+57/-7. The positive production delta is the new package/install/status/recover/uninstall capability and its fail-closed artifact/rollback/TCC boundary; the runtime change itself consolidates behavior behind one plan instead of adding parallel service implementations.Proof
pnpm buildpnpm test:macos:ci— 212 tests locally; delegated Linux lane 307 pass / 38 platform skipspnpm format:swift;pnpm lint:swift— zero violationspnpm format:check;pnpm check:docs;git diff --checkshellcheckandbash -nfor all changed shell ownerspnpm check:changedon Blacksmith Testboxtbx_01kzznjc55bz6he16x7v6cz803— all 34 original phases passedcheck:changedon Testboxtbx_01kzzsq7cg415pt3jhkx2nry97/ run31788345897— greencheck:changedon Testboxtbx_01kzzt38pn7j0729525ee9hyfs/ run31788814066— green, including guards, both typecheck lanes, UI/script lint, and 309 macOS/tooling testsmainindependently landed the better workspace-popover and exact-agent terminal fixes; after rebasing and dropping duplicate terminal commits, the four affected UI files pass together 19/19 on the final treecheck:changedon Testboxtbx_01kzzwfzqxryk7gg1df30qf9nm/ run31791702174— green, including exact 760/295-line split, max-lines ratchet, typecheck, and targeted lint with zero warnings/errorsstatusregressions return degraded code 4 for both a failed permission command and invalid JSON, never printTCC: ready, and pass 9/9; the stricter predicate also accepts the installed Peekaboo permission documentrpcReqinstead of send-before-listen, and restart-drain proof awaits its controlled persistence deferred instead of polling; the full 55-test gateway file passes three consecutive runs (165/165)check:changedon Testboxtbx_01kzzzt3t4gk470eqy4719avvj/ run31795565395— green across env/max-lines/API/plugin guards, both typecheck lanes, targeted UI/gateway/script lint, and 311 macOS/tooling testscheck:changedon Testboxtbx_01m001rq1yhybr436y0r2hs9g4/ run31797862442— green; current-main rebase then dropped the superseded terminal hunk and preserved the audit/Windows patches exactly6b997a804a2passed all eight UI shards, gateway chat, audit writer, Windows LAN-host, macOS Node, macOS Swift, and ClawSweeper; its sole failure was a five-byte startup-gzip overage caused by SHA-dependent compression against a nearly exhausted baseline, then currentmain@ad400d810b3landed the owning baseline update and the six-commit patch rebased identicallysatisfies_contractat 0.97 confidence; all 4 user tasks and 4 anti-cheat probes passedKnown proof boundary
No release, tag, appcast, notarization submission, installation, service change, or TCC mutation is part of this PR. The current OpenClaw dependency still pins Peekaboo Bridge protocol 1.24 while the required 1.26 revision is in a separate landing lane. A disposable current-pin notarization would duplicate an Apple submission and produce misleading terminal evidence, so the real
package/install/status/recover/uninstalltrace is intentionally deferred until the final Peekaboo revision lands. Final elevation artifact certification will use that landed source revision and will attach the redacted lifecycle trace; existing background-host smoke is not represented here as full lifecycle proof.