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(parity): make macOS/Linux feature parity a binding rule + gap register

Ruben Lütke12d1eb17e9b6
diff --git a/AGENTS.md b/AGENTS.md
index 0006864364..53ab5c8bfb 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -206,16 +206,40 @@ plugins (OAuth + MCP), AND credential STORAGE itself. Every one must:
(`config._ensure_keyring_backend`). A save/connect must never 500 on a host
without a Secret Service.
+### OS feature parity — macOS and Linux are first-class (BINDING)
+
+**Every feature ships working on ALL THREE OSes — Windows, macOS, and Linux
+(desktop AND headless server) — in the SAME change, never as a "later"
+follow-up.** The maintainer's Windows box is one install target among three,
+never the yardstick. Concretely:
+
+- A feature that needs an OS-specific backend (window control, screenshots,
+ input injection, hotkeys, app launching, audio, autostart, notifications)
+ implements **per-OS backends behind ONE capability probe** — e.g. Win32/UIA
+ on Windows, AppleScript/Quartz/AXUIElement on macOS, xdotool/AT-SPI/D-Bus on
+ Linux. Checking `sys.platform == "win32"` and silently doing nothing
+ elsewhere is a defect, not a gate.
+- Where a backend is genuinely impossible (no display on a headless server),
+ the feature degrades to a **clearly-messaged English no-op** — never a
+ crash, never a silent absence the user can't diagnose.
+- A Windows-only implementation may land ONLY with (a) the capability gate +
+ honest degradation above, AND (b) a tracked parity-gap entry in
+ [`docs/os-parity.md`](docs/os-parity.md) so the gap is a visible backlog
+ item, not folklore.
+
**Definition of done (NON-NEGOTIABLE).** A change touching config,
credentials, a provider/integration, or OS-specific code is NOT done until you
-verify (test or honest manual trace) the THREE non-maintainer paths:
+verify (test or honest manual trace) the FOUR non-maintainer paths:
1. **Fresh install, ONE arbitrary key** — a downloader whose only credential
is for a DIFFERENT provider reaches a working path (chat + voice +
Jarvis-Agent + the touched feature), entirely in-app.
2. **Headless Linux** — base `pip install` + boot + the feature work on
`python:3.11-slim`; local-only parts degrade to a logged no-op.
-3. **Cross-family fallback** — when the configured provider/integration is
+3. **macOS** — the touched feature works on a Mac (test or honest manual
+ trace: no Windows-only import, path, or API on its code path), or degrades
+ there with an honest message + a `docs/os-parity.md` entry.
+4. **Cross-family fallback** — when the configured provider/integration is
absent or dead, the path crosses to whatever the user actually has, or
degrades honestly.
diff --git a/CLAUDE.md b/CLAUDE.md
index 0006864364..53ab5c8bfb 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -206,16 +206,40 @@ plugins (OAuth + MCP), AND credential STORAGE itself. Every one must:
(`config._ensure_keyring_backend`). A save/connect must never 500 on a host
without a Secret Service.
+### OS feature parity — macOS and Linux are first-class (BINDING)
+
+**Every feature ships working on ALL THREE OSes — Windows, macOS, and Linux
+(desktop AND headless server) — in the SAME change, never as a "later"
+follow-up.** The maintainer's Windows box is one install target among three,
+never the yardstick. Concretely:
+
+- A feature that needs an OS-specific backend (window control, screenshots,
+ input injection, hotkeys, app launching, audio, autostart, notifications)
+ implements **per-OS backends behind ONE capability probe** — e.g. Win32/UIA
+ on Windows, AppleScript/Quartz/AXUIElement on macOS, xdotool/AT-SPI/D-Bus on
+ Linux. Checking `sys.platform == "win32"` and silently doing nothing
+ elsewhere is a defect, not a gate.
+- Where a backend is genuinely impossible (no display on a headless server),
+ the feature degrades to a **clearly-messaged English no-op** — never a
+ crash, never a silent absence the user can't diagnose.
+- A Windows-only implementation may land ONLY with (a) the capability gate +
+ honest degradation above, AND (b) a tracked parity-gap entry in
+ [`docs/os-parity.md`](docs/os-parity.md) so the gap is a visible backlog
+ item, not folklore.
+
**Definition of done (NON-NEGOTIABLE).** A change touching config,
credentials, a provider/integration, or OS-specific code is NOT done until you
-verify (test or honest manual trace) the THREE non-maintainer paths:
+verify (test or honest manual trace) the FOUR non-maintainer paths:
1. **Fresh install, ONE arbitrary key** — a downloader whose only credential
is for a DIFFERENT provider reaches a working path (chat + voice +
Jarvis-Agent + the touched feature), entirely in-app.
2. **Headless Linux** — base `pip install` + boot + the feature work on
`python:3.11-slim`; local-only parts degrade to a logged no-op.
-3. **Cross-family fallback** — when the configured provider/integration is
+3. **macOS** — the touched feature works on a Mac (test or honest manual
+ trace: no Windows-only import, path, or API on its code path), or degrades
+ there with an honest message + a `docs/os-parity.md` entry.
+4. **Cross-family fallback** — when the configured provider/integration is
absent or dead, the path crosses to whatever the user actually has, or
degrades honestly.
diff --git a/docs/os-parity.md b/docs/os-parity.md
new file mode 100644
index 0000000000..827e41db7e
--- /dev/null
+++ b/docs/os-parity.md
@@ -0,0 +1,59 @@
+# OS Feature Parity — macOS / Linux Gap Register
+
+**Binding rule:** [`CLAUDE.md`](../CLAUDE.md) §3 *"OS feature parity — macOS
+and Linux are first-class"*. Every feature ships working on Windows, macOS,
+and Linux (desktop AND headless) in the same change. A Windows-only
+implementation may land only with a capability gate, honest degradation, and
+an entry in this register.
+
+**Last full audit:** 2026-07-16 — five-agent sweep across the entire feature
+surface (Computer-Use/desktop actions, voice/audio stack, core/launcher/infra,
+data/knowledge features + agent system, full feature inventory).
+
+## Audit verdict summary
+
+**No hard breakers found.** No feature crashes on macOS or headless Linux;
+no ungated Windows module-level import exists anywhere in `jarvis/`; no
+runtime code path hardcodes a Windows path. The platform seams
+(`jarvis/cu/actuate/`, `jarvis/vision/tree_factory.py`,
+`jarvis/platform/probes.py`, `jarvis/missions/isolation/job_object.py`,
+`config._ensure_keyring_backend`) all carry real macOS and Linux
+implementations, not stubs.
+
+| Area | Verdict |
+|---|---|
+| Computer-Use / desktop actions (click, type, hotkey, scroll, drag, windows, apps, screenshots, UI trees) | Full per-OS backends (Win32/UIA, Quartz/AX, xdotool/AT-SPI); honest degradation on Wayland/headless/missing TCC grants |
+| Voice / audio (capture, playback, VAD, wake, STT, TTS, realtime) | Clean; headless disables voice honestly; WASAPI logic is inert-by-data off Windows |
+| Core (launcher, config, keyring, restart, autostart, tray, elevation, paths) | Clean; per-OS autostart (Registry / LaunchAgent / XDG `.desktop`), keyring falls back to a 0600 file on headless hosts |
+| Data / agents (wiki, contacts, telephony, sessions, missions, skills, self-mod, channels, MCP) | Clean; mission workers run on POSIX with a real process-group reaper |
+
+## Open parity gaps
+
+Ordered by user impact. "Behavior" describes what a macOS/Linux user actually
+experiences today.
+
+| # | Impact | Area | Gap | Evidence | Behavior off-Windows |
+|---|---|---|---|---|---|
+| P-01 | Medium | Orb/UI | macOS has no floating orb — tray-only surface (deliberate: Aqua-Tk worker-thread root natively aborts the process, BUG-057) | `jarvis/overlay/surface.py:177-229` | Tray icon color feedback instead of a floating orb; all voice features still work |
+| P-02 | Medium | Awareness | Idle detection is Windows-only, and `IdleDetector.start()` lacks the platform gate its sibling watcher has — the 1 s loop spins forever reporting "never idle" | `jarvis/awareness/watchers/idle.py:58,151` | Idle-based awareness silently dead on macOS/Linux; wasted loop |
+| P-03 | Medium | Awareness | Window-focus watcher is Windows-only (`SetWinEventHook` pump); clean no-op elsewhere | `jarvis/awareness/watchers/window.py:119` | No window-focus history in awareness on macOS/Linux (CU window control itself HAS per-OS paths) |
+| P-04 | Medium | CU typing | Linux non-ASCII typing (umlauts, CJK, emoji) requires `xdotool`; pyautogui silently drops those chars without it | `jarvis/cu/actuate/posix.py:387-438` | With `xdotool` (installer provisions it since 2026-07-15): fine. Without: warning + silent char loss |
+| P-05 | Low | Wiki | Wiki search hard-fails (RuntimeError with actionable apt/pysqlite3 remediation) on distros whose system SQLite lacks FTS5 | `jarvis/memory/wiki/fts_index.py:279` | `python:3.11-slim` and macOS ship FTS5 — only exotic/old distros affected; message is honest |
+| P-06 | Low | Launcher | No POSIX launcher script parity to `run.bat` (installer bundle / `python -m jarvis.ui.web.launcher` exist) | `run.bat` | Functional via installer; convenience gap only |
+| P-07 | Low | Audio | Host-API preference tables are Windows-name-driven ("Windows WASAPI", "WDM-KS"); no macOS/Linux preference exists, and headset-name heuristics are Windows-centric | `jarvis/audio/player.py:94-103`, `jarvis/audio/capture.py:154-168` | Device auto-pick falls back to OS default order — works, less clever than on Windows |
+| P-08 | Low | Audio | Latent: `AudioPlayer.stop()` calls `sd.stop()` unguarded — AttributeError if sounddevice is absent AND stop() is ever reached (currently unreachable on headless) | `jarvis/audio/player.py:989` | None today; one-line guard removes the trap |
+| P-09 | Low | Core | `ui/shell/single_instance.py` POSIX branch enforces nothing — dead code (the load-bearing lock `desktop_app.acquire_single_instance_lock` IS cross-platform) | `jarvis/ui/shell/single_instance.py:109-112` | None; remove or port to filelock before any future use |
+| P-10 | Low | Missions | POSIX worker reaper: a hard SIGKILL of the orchestrator itself reparents the worker tree to init (Windows kernel Job Object covers this case); documented limit, `PR_SET_PDEATHSIG` noted as future fix | `jarvis/missions/isolation/job_object.py:327-340` | Only on orchestrator SIGKILL; normal cancel/kill paths reap correctly |
+| P-11 | Info | Launcher | Startup log line prints `http://127.0.0.1:{port}` even when bound to `0.0.0.0` (VPS) | `jarvis/ui/web/launcher.py:716` | Cosmetic/misleading log only; bind itself is correct |
+| P-12 | Info | CU legacy | Frozen legacy CU loops are Windows-only, but NOT on the live path (harness force-routes to v2); imports are lazy | `jarvis/cu/loops/screenshot_only_loop.py` et al. | None at runtime |
+| P-13 | Info | Wiki | Wiki DB/vault anchor at `repo_root()` — read-only *wheel* installs would fail writes (not OS-specific; `JARVIS_DATA_DIR` override exists) | `jarvis/memory/wiki/db_path.py:9`, `vault_root.py:59` | None on the advertised install paths |
+| P-14 | Info | CU extras | macOS/Linux actuation and UI trees depend on optional extras (pynput, pyobjc, pyatspi); without them everything degrades honestly to screenshot + pixel-click | `jarvis/cu/actuate/posix.py`, `jarvis/vision/tree_factory.py` | By design (§3); bare install keeps the CU loop functional |
+
+## Maintenance
+
+- Fixing a gap: remove its row (git history keeps the record).
+- Landing a new Windows-only implementation: add a row (required by
+ CLAUDE.md §3) with impact, evidence, and off-Windows behavior.
+- Re-audit cadence: rerun the five-area sweep after any release that touches
+ platform seams (`jarvis/platform/`, `jarvis/cu/actuate/`, `jarvis/vision/`,
+ `jarvis/audio/`, `jarvis/missions/isolation/`).