Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

docs: BUG-064 (non-framework bundle fix), BUG-056/057/061 follow-ups, FIX-TRACKER, changelog

Joana Lütke3fe1dc0b5c7a
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 02eafb516f..7fd095a150 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,44 @@ versioning per [SemVer](https://semver.org/lang/de/).
---
+## [Unreleased]
+
+### Fixed
+
+- **macOS installer no longer dies with a bare exit code on uv-provisioned
+ Pythons.** The app bundle's native launcher is now an in-repo compiled C
+ stub linked against the exact Python runtime in use — replacing the py2app
+ alias stub, which only worked on framework Pythons and left Intel Macs
+ (uv standalone bootstrap) with an unlaunchable bundle. Desktop-integration
+ failures now write `data/logs/install-desktop-integration.log` and print
+ the actual error instead of discarding it (BUG-064).
+- **Voice endpointing degrades honestly without onnxruntime.** The WebRTC VAD
+ fallback tier is now actually wired (Silero ONNX → WebRTC VAD → RMS energy);
+ previously the middle tier was documented but never imported, so
+ onnxruntime-less systems (e.g. Intel Macs) silently fell back to bare
+ energy endpointing (BUG-061 follow-up).
+- **The installer's speech-model report is honest** — it reflects which
+ models/runtimes are actually usable on the machine instead of assuming the
+ full stack, and can always be produced without raising.
+- **Windows-only dev scripts refuse to run on other platforms** with a
+ one-line message instead of an ImportError traceback.
+
+### Added
+
+- **Real macOS menu-bar icon.** The tray icon is hosted on the AppKit main
+ thread (pystray `darwin_nsapplication` + `run_detached`), completing the
+ BUG-056 follow-up — macOS gets the same tray surface as Windows/Linux.
+- **Mascot/orb on macOS.** The mascot/orb overlay now renders in its own
+ subprocess host (BUG-057 follow-up), with Aqua-Tk alpha transparency.
+- **macOS audio ducking.** Music and Spotify are ducked via AppleScript for
+ the duration of a voice session and restored afterwards, with an opt-in
+ master-volume fallback.
+
+### Removed
+
+- The stale root-level `install.sh` (legacy clone-then-run script). The one
+ advertised one-line installer remains `install/install.sh`.
+
## [1.0.10] — 2026-07-16
### Fixed
diff --git a/docs/BUGS.md b/docs/BUGS.md
index 9421b7a393..9b174c73ed 100644
--- a/docs/BUGS.md
+++ b/docs/BUGS.md
@@ -4063,12 +4063,15 @@ four call sites (``__main__.py`` tray app, ``desktop_app.py``,
Dock icon remain the macOS surface. Guard:
``tests/unit/ui/test_tray.py::test_tray_start_is_noop_on_macos``.
-**Follow-up (needs real Mac hardware).** A real macOS menu-bar icon
-requires main-thread hosting: ``pystray.Icon(...,
-darwin_nsapplication=<pywebview's NSApplication>)`` + ``run_detached()``,
-with the icon constructed on the main thread (e.g. PyObjC
-``performSelectorOnMainThread``). Tracked in
-``docs/plans/cross-platform-mac-linux/FIX-TRACKER.md``.
+**Follow-up (implemented 2026-07-17).** The real macOS menu-bar icon
+shipped exactly along the sketched path: ``JarvisTray.start()`` hosts the
+icon on the pywebview ``NSApplication`` via ``pystray.Icon(...,
+darwin_nsapplication=...)`` + ``run_detached()``, constructed on the AppKit
+main thread; every later mutation from a worker thread (menu rebuild,
+tooltip, stop) is marshaled onto the main thread via
+``PyObjCTools.AppHelper.callAfter``. The 2026-07-14 logged no-op remains the
+degrade path when no main-thread NSApplication is available (e.g. headless).
+Tracked in ``docs/plans/cross-platform-mac-linux/FIX-TRACKER.md``.
**Class rule.** ANY AppKit/UI object on macOS (status items, windows,
menus) must be created and driven on the main thread; a worker-thread
@@ -4180,9 +4183,13 @@ the tray floor. macOS keeps the desktop window + Dock icon. Guards:
windows-still-spawns test),
``tests/overlay/test_overlay_surface.py::test_factory_selects_tray_floor_on_macos``.
-**Follow-up (needs real Mac hardware).** A visible macOS bar/orb needs a
-main-thread or own-process host — same follow-up as the BUG-056 menu-bar
-icon, tracked in the cross-platform FIX-TRACKER.
+**Follow-up (implemented 2026-07-17).** The bar/orb got the own-process
+host: the mascot/orb now renders inside the jarvisbar subprocess host as
+``SubprocessMascotOverlay`` (``jarvis/ui/jarvisbar/subprocess_overlay.py``),
+so its Tk root lives on the subprocess's own main thread and never touches a
+worker thread in the backend process; ``OrbOverlay`` additionally gained
+macOS Aqua-Tk alpha transparency (a ``-transparent`` root instead of the
+Windows magenta color key). Tracked in the cross-platform FIX-TRACKER.
**Class rule.** BUG-056 generalizes: on macOS EVERY UI toolkit in the
process (AppKit, Aqua-Tk, pystray) is main-thread-only, and the "Python
@@ -4364,6 +4371,19 @@ marker now carries the same ``platform_machine == 'arm64'`` condition
re-resolve for the affected platform — direct markers do not stop
transitive pulls.
+**Follow-up (2026-07-17).** Two corrections. (a) The "Silero VAD degrades
+to WebRTC VAD" claim above was aspirational until now: the runtime imported
+``webrtcvad`` nowhere and actually fell straight through to the bare energy
+RMS floor. The WebRTC middle tier is now wired in ``jarvis/audio/vad.py``
+(Silero ONNX → WebRTC VAD → RMS energy), so an onnxruntime-less Mac gets a
+real VAD instead of energy-only endpointing. (b) NO-GO decision recorded on
+re-adding an older onnxruntime pin for darwin-x86_64: a pin whose wheel
+matrix is frozen in the past is the exact recurrence class this entry
+documents, and wake already defaults to ``vosk_kws``, which is fully
+functional on Intel Macs. Revisit trigger: field reports that WebRTC-tier
+endpointing is insufficient, or concrete demand for ``custom_onnx`` wake on
+Intel.
+
**Class rule.** A pinned dependency whose wheel matrix has DROPPED a
platform must never sit unconditionally in the base lock: gate it with
platform markers and give the capability an honest degrade. Wheel
@@ -5368,3 +5388,60 @@ host).
**Class rule.** Aqua-Tk cosmetics verified on Tk 8.6 are unproven on Tk 9 —
and the failure mode is silent (no TclError). Where the effect matters,
assert it natively via AppKit instead of trusting a Tk color name.
+
+## BUG-076: macOS app bundle unlaunchable on non-framework (uv standalone) Python — installer exit 4 with the real error discarded (HIGH, FIXED 2026-07-17)
+
+<!-- Ported from the public Mac line, where this entry was numbered BUG-064.
+ Renumbered: local BUG-064 is the Grok realtime deafness bug (the two
+ registers assigned 063..069 independently after the 2026-07-14 cut). -->
+
+**Symptom.** Fresh managed install on an Intel Mac (and on any system where
+install.sh's uv bootstrap provisions Python): the installer aborts with a
+bare exit code 4 at the desktop-integration step. No error text names what
+actually failed — the terminal shows only the failure itself, so the bundle
+build looked like an opaque hard stop.
+
+**Root cause (two layers).**
+
+1. **py2app requires a framework Python.** The BUG-060 hardened bundle used
+ a py2app alias stub as its native Mach-O launcher; that stub resolves the
+ interpreter through the ``Python.framework`` layout at launch time.
+ install.sh's uv bootstrap (taken on Intel Macs and on systems whose
+ system Python is 3.14) provisions a python-build-standalone CPython —
+ a NON-framework interpreter the py2app stub can never launch. The
+ LaunchServices identity probe (BUG-060's own guard) correctly detected
+ the unlaunchable bundle and rolled it back — the guard worked; the
+ foundation under it was wrong for a whole interpreter class.
+2. **The real error was discarded.** ``install/installer.py`` ran the
+ desktop-integration subprocess and, on failure, surfaced only the exit
+ code — the captured stderr carrying the actual probe/build diagnosis was
+ thrown away, so the visible symptom was "exit 4" instead of the cause.
+
+**Fix (2026-07-17).**
+
+- The bundle's native launcher is now an in-repo compiled C stub
+ (``jarvis/setup/macos_stub_launcher.c``), replacing py2app entirely:
+ ``_resolve_runtime_dylib`` locates the exact runtime libpython/framework
+ dylib of the active interpreter (framework AND standalone layouts) and
+ ``_build_native_bundle`` compiles + links the stub against it, so the
+ bundle launches on whatever Python actually runs the install. The py2app
+ dependency is removed.
+- ``install/installer.py`` writes the full integration output to
+ ``data/logs/install-desktop-integration.log`` and prints the stderr tail
+ on failure — the diagnosis is never swallowed again.
+
+Guards: new CI matrix row "Intel standalone (uv)" in
+``.github/workflows/macos-desktop.yml`` builds + self-probes the bundle on a
+uv-provisioned non-framework Python;
+``tests/unit/setup/test_macos_app_bundle.py`` covers
+``_resolve_runtime_dylib`` (framework, standalone, and unversioned uv-sibling
+layouts) and ``_build_native_bundle``;
+``tests/unit/install/test_installer_update_contract.py`` covers the log +
+stderr-tail surfacing.
+
+**Class rule.** A launcher that hardcodes one interpreter layout is broken
+for every other layout the installer itself can provision — build native
+stubs against the RUNTIME the install actually uses, probed at build time.
+And an installer must never reduce a failed subprocess to its exit code:
+persist and print the captured stderr, or the next such bug is again
+undiagnosable in the field.
diff --git a/docs/plans/cross-platform-mac-linux/FIX-TRACKER.md b/docs/plans/cross-platform-mac-linux/FIX-TRACKER.md
index 09e744155a..361b59ed18 100644
--- a/docs/plans/cross-platform-mac-linux/FIX-TRACKER.md
+++ b/docs/plans/cross-platform-mac-linux/FIX-TRACKER.md
@@ -1,119 +1,25 @@
-# Cross-Platform Fix Tracker — execution of DEEP-DIVE-AUDIT-2026-06-19.md
-
-> Autonomous /loop work log. Each target: TDD (RED→GREEN), ruff on touched files,
-> `scripts/ci/check_import_clean.py` green, a code-reviewer pass, then a hunk-isolated
-> LOCAL commit (no push). Tick only with test evidence. Test python:
-> `C:\Program Files\Python311\python.exe`. **Scope:** B1, H1, H2, H3, H4+M2, M1 docs, M5.
-> **Out of scope (do NOT build here):** B2 browser-audio bridge, real-hardware sign-off.
->
-> Honesty: every fix is proven at the SEAM level on a Windows host (win32/mss/platform
-> forced via fakes), NOT on real macOS/Linux hardware. The remaining gap is the live
-> sign-off owed in SIGNOFF-LOG.md.
-
-## Targets
-
-- [x] **B1 — Computer-Use pixel-click coordinate fallback** (`jarvis/harness/screenshot_only_loop.py`)
- - Non-win32 `_capture_monitor_geometry()` now falls back to mss geometry via a new
- `_mss_monitor_geometry()` helper, so `_resolve_click_pixel` scales the model's 0-1000
- coords to real pixels instead of using them as raw pixels (top-left 1000×1000 trap).
- - Windows path UNTOUCHED (AD-7): only the win32-import-except branch changed.
- - **Evidence:** `tests/unit/harness/test_screenshot_only_loop.py::test_capture_monitor_geometry_mss_fallback_off_windows` (RED→GREEN) + `::test_capture_monitor_geometry_headless_returns_zero`. Full file + click-refine suites: **67 passed**. ruff clean on touched files (6 remaining errors in screenshot_only_loop.py are pre-existing backlog, not on touched lines). import-clean gate: PASS. code-reviewer: **APPROVE_WITH_NITS** (0 BLOCKER/0 HIGH; 1 MEDIUM single-monitor edge = safe-not-a-bug, 2 MINOR nits — not gating). **Commit: `e6e3e527`.**
- - ⚠️ Shared-tree lesson: the first commit attempt swept a parallel session's uncommitted `screenshot_only_loop.py` work (309 insertions). Recovered by reset + base-restore + re-apply + restore-their-work-as-unstaged. **For every remaining target: `git diff <file>` BEFORE `git add` and stage only own hunks.**
-- [x] **H1 — macOS Screen-Recording permission probe + onboarding** (`jarvis/platform/probes.py`, `jarvis/vision/screenshot.py`)
- - New tri-state `probes.screen_recording_granted()` (mirrors `ax_permission_granted`; CGPreflightScreenCaptureAccess via lazy Quartz; non-darwin→True, denied→False, pyobjc-absent→None). New `_SCREEN_RECORDING_MSG` + one-shot `warn_if_screen_recording_denied()` wired into `ScreenshotSource._capture` before the mss grab, so a denied grant surfaces a clear English message instead of silently capturing the wallpaper. AD-7: Windows unchanged.
- - **Evidence:** `tests/unit/platform/test_probes.py` (3 new + smoke line) + `tests/unit/vision/test_screen_recording_warning.py` (3 new) → **25 passed**; bitblt capture regression green. ruff clean on touched lines (2 remaining E501 in screenshot.py are pre-existing German log strings, not mine). import-clean gate: PASS (653). code-reviewer: **APPROVE-WITH-NITS** (0 BLOCKER/0 HIGH; applied the MEDIUM per-frame-probe one-shot guard + 2 nits). **Commit: `42f94014`.**
- - Seam-verified only (fake Quartz on a Windows host); real CGPreflightScreenCaptureAccess on macOS is `unverified-on-real-desktop`. Known LOW gap noted by review: a WARNING log is lost on a headless VPS — a future EventBus→onboarding-UI surface would be more durable (out of scope for H1).
-- [x] **H2 — `switch_window` macOS (osascript) + Linux (wmctrl/X11) impls** (`jarvis/plugins/tool/switch_window.py`) + English strings
- - `execute()` dispatches by `detect_platform`: Windows ctypes path byte-identical (AD-7, asserted by a test); new `_find_and_focus_macos` (osascript/System Events) + `_find_and_focus_linux` (wmctrl); `_execute_non_windows` degrades on Wayland (`is_wayland`) + headless (`display_present`) with clear English messages (AD-13). Subprocess calls carry `creationflags=NO_WINDOW_CREATIONFLAGS` (0 on POSIX) + 10s timeout.
- - **Evidence:** `tests/unit/plugins/tool/test_switch_window.py` (13 passed) → macOS success/denied/missing/no-match, Linux success/missing/no-match, dispatch routing + Wayland/headless degrade + **Windows-unchanged (German readback preserved)**, plus injection-escape + case-insensitive parity. ruff clean on both files. import-clean: PASS. code-reviewer: **CHANGES-REQUIRED → fixed**: HIGH AppleScript newline-injection (now lowercased + fully escaped + control-char strip, test-pinned), MEDIUM macOS/Linux case-sensitivity parity (AppleScript `lowercase of`), LOW wmctrl error-detail string. **Commit: `a4d69e35`.**
- - Seam-verified only (faked osascript/wmctrl on a Windows host); real osascript/wmctrl on macOS/Linux is `unverified-on-real-desktop`.
-- [x] **H3 — Gemini/Codex worker spawns via `create_worker_subprocess`** (`jarvis/missions/workers/{gemini_worker,codex_worker}.py`)
- - Both workers spawned via a raw `asyncio.create_subprocess_exec`, skipping `start_new_session=True` on POSIX → worker shared the orchestrator's process group → the Job Object's `os.killpg` reaper could signal the orchestrator itself. Both now route through `create_worker_subprocess` (POSIX session/group + Win32 creationflags + WinError-5 breakaway retry), matching the Direct workers. CodexWorker is legacy-but-exported, so FIXED (not deleted) to avoid breaking `workers/__init__.py` + leaving a copyable bad template. Stale personal path dropped from the GeminiWorker docstring (privacy).
- - **Evidence:** `tests/missions/test_posix_containment.py` (14 passed incl. 2 new source-level spawn-discipline tests; the helper's start_new_session-on-POSIX property is pinned in the same file). Both modules + `CodexWorker` import cleanly; import-clean gate PASS; foreign `tests/missions/critic/test_capability_honesty.py` (11) green. ruff: no new errors on touched lines (UP035/UP041/ASYNC240 are pre-existing backlog). code-reviewer: **APPROVE-WITH-NITS** (0 BLOCKER/0 MAJOR; fixed the 2 MINOR docstring issues incl. the personal path + the test-comment NIT). **Commit: `456d39e9`.**
- - NOTE: a hard `kill -9` of the orchestrator still leaks POSIX workers (userspace reaping can't match the kernel Job Object) — that honesty gap is M1 (docs), below.
-- [x] **H4+M2 — lazy-guard `sounddevice` + harden import gate** (`jarvis/audio/{player,capture}.py`, `jarvis/speech/{diagnose,voice_compare}.py`, `scripts/ci/check_import_clean.py`)
- - All 4 module-scope `import sounddevice as sd` (not just player/capture — diagnose + voice_compare too, required to add sounddevice to the gate) now `try/except → sd=None`, so the modules import on a headless/slim box without libportaudio2. Behavior byte-identical when sounddevice is present (AD-7). Gate `FORBIDDEN_MODULE_SCOPE` += sounddevice,torch,mss,pyautogui,pynput,ptyprocess (the gate skips try/except-guarded imports, so the wrapped ones pass; verified no other bare module-scope import of these 6 exists in jarvis/).
- - **Evidence:** `tests/unit/audio/test_headless_import.py` (6: 4 subprocess-isolated import-safety + `_PortAudioError` sentinel + gate forbidden-set). The REAL `scripts/ci/check_import_clean.py` PASSES (653 files); full `tests/unit/audio/` = **96 passed** (no regression). ruff clean on touched lines (E402 I introduced by sentinel placement → fixed by moving it after imports; remaining S110/E501 etc. are pre-existing backlog). code-reviewer: **APPROVE-WITH-NITS → HIGH fixed**: `except sd.PortAudioError` was a runtime expr that AttributeErrors when sd=None → resolved a module-scope `_PortAudioError` sentinel (test-pinned). MEDIUM (TYPE_CHECKING import) + LOW (`_require_sd` guard) noted as low-priority follow-ups (non-gating, not on the headless path). **Commit: `26d0d30e`.**
- - Test trap caught + fixed: an in-process re-import test polluted sibling audio tests → switched to a fresh-subprocess import check (zero pollution).
-- [x] **M1 — honesty docs** — softened the absolute "No zombies on orchestrator crash" claim in README.md + CLAUDE.md: Windows Job Object = kernel guarantee; macOS/Linux = POSIX process-group reaper (reaps on clean shutdown/cancel/timeout/exception, H3) but userspace, so leaks on a hard `kill -9` of the orchestrator (PR_SET_PDEATHSIG = Linux follow-up; no macOS equivalent).
- - **Evidence:** `git diff` showed exactly 2 lines changed (one per file); both carry "POSIX process-group reaper" (grep-verified); English (language gate clean). CLAUDE.md had a parallel session's uncommitted "one-repo doctrine" rewrite (28+/10-) — isolated via backup/checkout-base/re-apply/restore so my commit holds only my worker-bullet hunk and their work is preserved as an unstaged diff. **Commit: `cb34d3b4`.**
-- [x] **M5 — tray display_present gate + English strings** (`jarvis/ui/tray.py`)
- - `JarvisTray.start()` early-returns with a logged English no-op when `display_present()` is False (headless / Wayland-without-AppIndicator) instead of spawning a daemon thread that dies on the first draw (AD-6); `_run()` wraps the pystray Icon start in try/except so a missing tray host logs a warning instead of dying silently. German MenuItem labels + the `set_error` title translated to English (Output-Language Policy). Windows/macOS `display_present()`=True, so the tray still starts normally (AD-7).
- - **Evidence:** `tests/unit/ui/test_tray.py` (3 passed): display-absent → no thread + "Tray not started" log; display-present → thread spawns/_run called (AD-7 guard); menu strings English (German absent). ruff clean on touched lines (UP042/S110 are pre-existing backlog). import-clean gate PASS. code-reviewer: **APPROVE-WITH-NITS** (0 BLOCKER/0 MAJOR; applied LOW = +2 English-string assertions, MEDIUM = clarifying comment; German module docstring/comments left as out-of-scope pre-existing). **Commit: `ab230a99`.**
-
-## STOP CONDITION (all must hold before ending the loop)
-- [x] every target above checked with test evidence
-- [x] ruff clean on all touched files (pre-existing backlog left untouched; no new errors on touched lines)
-- [x] `check_import_clean.py` green with the extended forbidden set (653 files)
-- [x] every targeted test suite green
-- [x] final code-reviewer pass: zero unaddressed BLOCKER/HIGH (every BLOCKER/HIGH from the per-target reviews was fixed)
-- [x] README + CLAUDE.md honesty edits done (M1)
-- [x] FINAL SUMMARY appended below
-
-## FINAL SUMMARY (loop complete 2026-06-19)
-
-All seven targets implemented test-first, each code-reviewed (per-target subagent),
-hunk-isolated and committed to **local `main`** (NOT pushed). Every fix was proven
-at the SEAM level on this Windows host (forced `detect_platform`/`sys.platform`/
-module-presence via fakes); none was run on real macOS/Linux hardware.
-
-| # | Fix | Commit | Proof (one line) |
-|---|---|---|---|
-| B1 | Computer-Use pixel-click works off-Windows | `e6e3e527` | `_capture_monitor_geometry` falls back to mss geometry on non-win32 → 0-1000 coords scale to real pixels instead of the top-left 1000×1000 trap (`test_capture_monitor_geometry_mss_fallback_off_windows`) |
-| H1 | macOS Screen-Recording permission surfaced | `42f94014` | new tri-state `probes.screen_recording_granted()` + one-shot warning at the screenshot capture site so a denied grant degrades with a clear message instead of clicking the wallpaper (25 tests) |
-| H2 | `switch_window` on macOS + Linux | `a4d69e35` | osascript (macOS) + wmctrl (Linux/X11) behind the platform seam; Wayland/headless degrade in English; AppleScript injection escaped + case-insensitive parity (13 tests; Windows path byte-identical) |
-| H3 | worker POSIX kill-on-crash isolation | `456d39e9` | Gemini/Codex workers spawn via `create_worker_subprocess` (`start_new_session` on POSIX) so the killpg reaper can't hit the orchestrator itself (14 containment tests) |
-| H4+M2 | lazy `sounddevice` + hardened import gate | `26d0d30e` | 4 audio modules import on a slim Linux box without libportaudio2; gate forbids eager sounddevice/torch/mss/pyautogui/pynput/ptyprocess; `_PortAudioError` sentinel (96 audio tests + gate green) |
-| M1 | honest cross-platform kill-on-crash docs | `cb34d3b4` | README + CLAUDE.md no longer claim absolute "no zombies on crash" — Windows = kernel guarantee, POSIX = reaped on clean teardown but leaks on a hard `kill -9` (PR_SET_PDEATHSIG = Linux follow-up) |
-| M5 | tray display gate + English strings | `ab230a99` | `JarvisTray.start()` gated on `display_present()` (logged no-op headless) + `_run` try/except (no silent daemon-thread death) + English menu strings (3 tests) |
-
-**The single remaining gap:** `unverified-on-real-desktop` — needs a live sign-off
-on a real Mac and a real Linux desktop + a green CI matrix run after push. The audit
-and every fix here were proven at the seam level on a Windows host via platform
-fakes / forced `detect_platform`; none was run on real macOS/Linux hardware. Nothing
-is pushed (local `main` only). Out of scope for this loop: the B2 browser-audio
-bridge (a feature, not a fix) and the real-hardware sign-off.
-
-## POST-LOOP ADDENDUM (2026-07-14) — first real-Mac boot falsified M5's macOS assumption
-
-The first fresh-install boot on real Mac hardware (the live sign-off owed above)
-aborted natively: pystray's darwin backend creates an `NSStatusItem` in
-`Icon.__init__`, and AppKit is main-thread-only — from the `jarvis-tray` worker
-thread that is an uncatchable C-level abort ("Python quit unexpectedly"), not a
-Python exception, so M5's `_run` try/except never helps. M5's line
-"Windows/macOS `display_present()`=True, so the tray still starts normally" was
-wrong for macOS: the tray *started* and killed the whole app. Full forensics:
-`docs/BUGS.md` **BUG-056**.
-
-- **Fix (committed):** `JarvisTray.start()` now gates on `sys.platform ==
- "darwin"` → logged English no-op (AD-6/AD-11); desktop window + Dock icon
- remain the macOS surface. Guard:
- `tests/unit/ui/test_tray.py::test_tray_start_is_noop_on_macos`.
-- [ ] **Follow-up (needs real Mac hardware):** real menu-bar icon via
- main-thread hosting — construct the icon on the main thread and
- `run_detached(darwin_nsapplication=<pywebview's NSApplication>)`; verify
- against a live pywebview run loop before lifting the gate.
-
-**Second real-Mac boot (2026-07-14, later): BUG-057.** With the tray gated,
-the next boot died identically one layer further in: the default JarvisBar
-builds its Tk root on the `jarvis-backend` worker thread — Aqua-Tk is
-main-thread-only on macOS. Full boot-path audit gated ALL off-main-thread Tk
-creators on darwin (bar, mascot orb, virtual cursor, `make_overlay_surface`
-→ tray floor); Dock icon + pywebview window confirmed main-thread-safe.
-Commit `b82d821a`, shipped public same day. The follow-up above therefore
-grows: main-thread/own-process hosting is needed for the menu-bar icon AND
-the bar/orb before macOS gets any on-screen overlay.
-
-**Own-process bar host (2026-07-14, this session).** The BUG-057 follow-up
-for the bar landed: `jarvis.ui.jarvisbar.host` is a companion process whose
-MAIN thread runs the bar's Tk mainloop (legal on Aqua-Tk), remote-driven by
-`SubprocessBarOverlay` over a JSON-per-line stdio protocol (stdin EOF =
-parent died → host exits; events like mute-toggle stream back on stdout).
-`_build_overlay_surface` on darwin now returns the proxy for
-`style == "jarvis_bar"` (NullOverlay stays the fallback + the mascot's
-surface). macOS transparency: no color key there — the root sets
-`-transparent` + `systemTransparent` and frames carry a real alpha channel
-(`renderer.key_to_alpha`).
-- [ ] **Verify on real Mac hardware:** bar visible, transparent (no magenta
- rectangle), draggable, mute/hang-up clicks round-trip, no Dock icon for
- the host (pyobjc accessory policy is best-effort), clean exit on quit.
+# Cross-Platform macOS Surface — Fix Tracker
+
+Tracker for the macOS desktop-surface work that BUG-056/057 deferred to
+"main-thread or own-process hosting". Referenced from `jarvis/ui/tray.py`
+and `docs/BUGS.md` (BUG-056, BUG-057).
+
+## Done
+
+| Item | Status | Detail / Reference |
+|---|---|---|
+| Menu-bar tray icon | Done 2026-07-17 | `pystray.Icon(..., darwin_nsapplication=...)` + `run_detached()` on the AppKit main thread; worker-thread mutations marshaled via `PyObjCTools.AppHelper.callAfter` (`jarvis/ui/tray.py`, BUG-056 follow-up). |
+| Mascot/orb subprocess host | Done 2026-07-17 | Mascot/orb renders in the jarvisbar subprocess host as `SubprocessMascotOverlay` (`jarvis/ui/jarvisbar/subprocess_overlay.py`); `OrbOverlay` gained macOS Aqua-Tk alpha transparency (`-transparent` root) (BUG-057 follow-up). |
+| JarvisBar subprocess host | Pre-existing | The own-process Tk host the mascot work builds on (BUG-057). |
+| macOS audio ducking | Done 2026-07-17 | AppleScript (`osascript`) ducking of known players (Music, Spotify) with an opt-in master-volume fallback; every call wrapped, degrades per player (`jarvis/audio/ducking/macos.py`). |
+| WebRTC VAD tier | Done 2026-07-17 | The middle fallback tier (Silero ONNX → WebRTC VAD → RMS energy) is actually wired in `jarvis/audio/vad.py` — previously aspirational (BUG-061 follow-up). |
+| Native stub launcher | Done 2026-07-17 | In-repo compiled C stub (`jarvis/setup/macos_stub_launcher.c`) linked against the exact runtime dylib replaces py2app; launches on framework AND uv-standalone Pythons (BUG-076; numbered BUG-064 on the Mac line before the registers were merged). |
+
+## Open
+
+| Item | Notes |
+|---|---|
+| BUG-058 on-device confirmation | The PortAudio single-flight + Quartz event-tap hardening is audit-based; a real-Mac first-boot run through onboarding is still pending. |
+| Full-screen-Spaces overlay limitation | The subprocess bar/orb does not appear over full-screen Spaces; needs an NSWindow collection-behavior host to join Spaces. |
+| Browser/VLC not ducked | The AppleScript ducking tier only covers players with a scriptable app volume (Music, Spotify); browsers and VLC fall through to the opt-in master-volume fallback. |
+| Template-style tray icon | The menu-bar icon should ship a macOS template image so it adapts to dark/light menu bars instead of a fixed-color bitmap. |