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.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
docs(adr): ADR-0028 — CU screen indicator sidecar replaces the OS-Level overlay
Ruben Lütkefc5ffb73a2f9
diff --git a/docs/adr/0028-cu-screen-indicator-sidecar.md b/docs/adr/0028-cu-screen-indicator-sidecar.mdnew file mode 100644index 0000000000..934fe10653--- /dev/null+++ b/docs/adr/0028-cu-screen-indicator-sidecar.md@@ -0,0 +1,89 @@+# ADR-0028: Computer-Use screen indicator as a minimal Qt sidecar (replaces the OS-Level overlay)++Date: 2026-07-15+Status: Accepted++## Context++Users need an unmistakable, always-visible signal that Jarvis is+controlling their mouse and keyboard — the affordance Codex ships as a+blue glow around the monitor edges plus an "Esc to cancel" hint. Two+prior states existed:++1. The **Phase-9 OS-Level overlay** contained a finished `EdgeGlowWindow`+ (PySide6 + QtWebEngine rendering a Vite/TypeScript edge-glow page),+ but it was disabled by default, never wired to the Computer-Use loop,+ scoped Windows-only by its own plan, and its import chain once broke+ the CU mouse tools on hosts without its manual editable install+ (fix eda6b318). Dead weight with real breakage risk.+2. **No cancel affordance**: the engine polled its cancel token per step,+ and the voice hangup / kill hotkey / tray stop could cancel missions,+ but nothing on the screen told the user a mission was running or how+ to stop it with one key.++## Decision++- **Delete the OS-Level subsystem entirely** (`OS-Level/`,+ `tests/overlay/`, and its glue in `jarvis/overlay/` — commit+ eb91e393). The live parts of `jarvis/overlay/` (surface ladder,+ drop targets, virtual/system cursor) stay.+- **Rebuild the indicator from scratch as `jarvis/cu/indicator`**, a+ minimal PySide6 sidecar process (`python -m jarvis.cu.indicator`):+ QPainter gradients only — no QtWebEngine, no web frontend, no IPC+ server stack. One frameless, click-through, always-on-top,+ never-activating window per monitor; soft breathing Jarvis-gold glow;+ localized "Esc to cancel" pill on the primary screen; JSON-lines+ stdin/stdout protocol; exits on parent EOF.+- **Lifecycle events, not polling**: `CUControlStarted`/`CUControlEnded`+ are published at the `ComputerUseHarness.invoke()` boundary — exactly+ where mouse/keyboard control begins and ends on every exit path. A+ main-process controller refcounts them (missions overlap), spawns the+ sidecar lazily on the first Started and kills it on the last Ended+ (AP-26: nothing on the boot path; PySide6 never imported in the main+ process).+- **Escape cancels everything**: while ≥1 mission runs, the controller+ arms a global Escape binding through the existing cross-platform+ `HotkeyTrigger` backends and cancels ALL active missions via the same+ CU-scoped token registry the voice hangup uses (engine exit 130,+ honest "cancelled"). A Jarvis-synthesized Esc is stamped by the+ actuation layer and ignored (`self_input`). Escape stays armed even+ when the visual is disabled — it is a safety affordance.+- **Capture hygiene**: on Windows the sidecar windows carry+ `WDA_EXCLUDEFROMCAPTURE`, so neither CU's own perception frames nor+ user screenshots/recordings contain the border+ (`JARVIS_CU_INDICATOR_CAPTURABLE=1` re-enables capture for visual+ verification). On macOS/Linux, where no such API exists, a fail-open+ capture guard blanks the border for the split second of each CU frame+ grab.+- **Universality**: `pyside6-essentials` lives in the `[desktop]` extra.+ Headless hosts, Wayland sessions, and base installs degrade to one+ logged English line — never a crash, never a blocked mission. The+ pill text resolves through the one runtime language resolver with a+ full de/en/es phrase table.++## Consequences++- A user always sees when Jarvis drives their machine and can stop it+ with one key — on Windows, macOS, and Linux-X11 alike.+- The dormant overlay tech debt (87 tracked files + glue) is gone; the+ mascot/cursor-trail features it bundled would need a fresh design if+ ever wanted again.+- Wayland gets no border and no global Escape (no always-on-top surface,+ no global hotkeys there); cancel remains available via voice, tray,+ and the kill hotkey inside focused apps. Documented degradation.+- The sidecar is fire-and-forget: a crash or broken pipe disables the+ visual for the mission and logs once; CU never waits on it beyond the+ 150 ms capture-guard ack timeout.++## Alternatives considered++- **Reuse the OS-Level `EdgeGlowWindow`**: functionally closest, but it+ dragged in QtWebEngine + a TS build chain + a WS/SHM IPC stack for+ what a single QPainter paint routine does, was Windows-scoped by+ design, and the maintainer explicitly chose a from-scratch rebuild.+- **Tk (like the orb/JarvisBar)**: no per-pixel alpha (color-key only →+ jagged glow), macOS Tk is main-thread-only (BUG-057), and click-through+ needs per-OS hacks — three fragile paths instead of one.+- **Per-OS native windows (ctypes/pyobjc/X11)**: zero new dependencies+ but three implementations to build and verify; rejected on risk and+ maintenance grounds.diff --git a/docs/architecture-overview.md b/docs/architecture-overview.mdindex 743c4a881e..31c7a26e10 100644--- a/docs/architecture-overview.md+++ b/docs/architecture-overview.md@@ -195,12 +195,23 @@ The six desktop power-user features that were historically Windows-only are now| UI-element-click | `vision.tree_factory.make_ui_tree_source` | UIA | AX (`pyobjc`) | AT-SPI (`pyatspi`) | live sign-off (AX/AT-SPI tree) || Orb overlay | `overlay.surface.make_overlay_surface` | Tk color-key | Tk `-transparentcolor` | best-effort + tray | live sign-off (transparency) || Hotkey | `trigger.backends.make_hotkey_backend` | `global-hotkeys` | `pynput` | `pynput` (X11); Wayland no-op | live sign-off (capture) |+| CU screen indicator | `cu.indicator.controller.wire_cu_indicator` | PySide6 sidecar + capture-affinity | PySide6 sidecar + capture guard | PySide6 sidecar (X11); Wayland no-op | live sign-off (glow + Esc) || Admin/elevation | `admin.transport.make_admin_transport` + `admin.elevator.make_elevator` | UAC + SDDL pipe | Authorization Services + unix socket | pkexec/sudo + unix socket | live sign-off (prompt); never CI-E2E |**Verification is honestly labelled per feature in `docs/plans/cross-platform-mac-linux/SIGNOFF-LOG.md`.** As of this writing the maintainer has Windows only and nothing is pushed, so every macOS/Linux **live** GUI/permission behavior is `unverified-on-real-desktop` and the `ci.yml` matrix is `CI-configured` (first green run pending push) — **never** claim "CI-verified" or "live-verified" until that log says so.- **Dependency reality (AD-14 — do not "fix" this):** `pynput` + `ptyprocess` live in the `[desktop]` extra (`ptyprocess` gated `sys_platform != 'win32'`); `pyobjc-framework-{Quartz,ApplicationServices,Accessibility}` in `[desktop-macos]` (`sys_platform == 'darwin'`). **Linux `pyatspi` is NOT on PyPI — never add it as a pip dependency.** It is GObject-Introspection, distro-packaged (`apt install python3-pyatspi gir1.2-atspi-2.0`), surfaced via the `capabilities.has_ax_tree` runtime probe.- **Doctrine intact:** the headless €5-VPS base install ships **none** of these desktop extras and still boots on a fresh `python:3.11-slim` Linux container — every port is extras-gated and degrades to a logged no-op (AD-6) when its capability is absent.+- **Computer-Use screen indicator (ADR-0028):** while a CU mission drives the+ local mouse/keyboard, a breathing Jarvis-gold border glows on every monitor+ edge with a localized "Esc to cancel" pill (Codex-style). It is a minimal+ PySide6 sidecar (`jarvis/cu/indicator`, `pyside6-essentials` in+ `[desktop]`) spawned lazily per mission off the `CUControlStarted/Ended`+ events at the `ComputerUseHarness.invoke()` boundary; a global Escape+ (existing hotkey backends, armed only while a mission runs) cancels all+ active missions through the CU-scoped token registry. Windows hides the+ border from all capture via `WDA_EXCLUDEFROMCAPTURE`; macOS/Linux blank it+ around CU's own frame grabs (fail-open). Headless/Wayland → logged no-op.- **CPU-first device selection (ADR-0024):** the default compute device is always `cpu`. A GPU is used only on an *explicit* config request (`device = "cuda"`) with a *verified* capability; `auto`/empty/unknown resolve to CPU, and a known-bad GPU degrades to CPU with a logged warning. One central policy — `jarvis/core/device.py::resolve_device` — expresses this; the capability verdict is injected so the always-on wake path keeps its strict out-of-process inference gate (AP-25) and the policy module adds no `torch`/`ctranslate2` import to any path (AP-26).## Windows specifics (do not skip)