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.

verify(cross-platform): Linux leg of #2 verified in a local python:3.11-slim container

Ruben Lütke21db1fb145a0
diff --git a/docs/plans/cross-platform-mac-linux/SIGNOFF-LOG.md b/docs/plans/cross-platform-mac-linux/SIGNOFF-LOG.md
index 913e6b2732..b64422d6e1 100644
--- a/docs/plans/cross-platform-mac-linux/SIGNOFF-LOG.md
+++ b/docs/plans/cross-platform-mac-linux/SIGNOFF-LOG.md
@@ -10,6 +10,7 @@
| Label | Meaning |
|---|---|
| `verified-on-windows <date>` | Provable on the Windows host present in this environment: factory selection on Windows, platform-independent logic, the real-PTY echo round-trip, the import-cleanliness gate. **Not** a claim about macOS/Linux behavior. |
+| `verified-in-linux-container <date>` | Provable in a local `python:3.11-slim` Docker container present in this environment: base-install boot, module imports with the `[desktop]` extras absent, the import-cleanliness gate, and headless/logic test suites — on **real Linux**, not just configured CI. **Not** a claim about Linux **GUI/desktop** behavior (AX/AT-SPI tree, Orb, hotkey, elevation), which still need a real desktop session. |
| `CI-configured — first green run pending push` | The `ci.yml` matrix is *configured* to prove this on the ubuntu/macos runners (terminal real-PTY, app-launch resolution, the import-clean gate on Linux/macOS), but the workflow **has not run yet** — nothing is pushed. **Not** "CI-verified". |
| `unverified-on-real-desktop` | A macOS/Linux **live** GUI/permission behavior (AX/AT-SPI tree, Orb transparency, hotkey capture, elevation prompt). There is **no macOS/Linux hardware in this environment**, so it could not be observed. Run `signoff_probe.py` on a real device to fill it in. |
| `live-verified <date> on <device>` | Observed on a dated real device. **None recorded yet** — this environment is Windows-only. |
@@ -20,13 +21,41 @@
- **macOS hardware:** none available in this environment.
- **Linux desktop hardware:** none available in this environment (the €5 VPS is a
*headless* Linux box — it can exercise degrade paths and capability probes, but
- not a GUI-present Linux session; it was not reached in this pass).
+ not a GUI-present Linux session). The **headless / import / logic** layer WAS
+ reached this pass via a local `python:3.11-slim` Docker container (see §0); the
+ GUI layer was not.
- **CI matrix (`ci.yml`):** configured for `ubuntu-latest` + `macos-latest` +
`windows-latest`, triggered on push to `main` / the migration branch and on PRs.
**No push has occurred → the matrix has not run → no green run exists yet.**
---
+## 0. Local Linux container pass — `verified-in-linux-container 2026-06-20`
+
+Run on a fresh `python:3.11-slim` Docker container (the cloud-first base target),
+source piped in via `tar` — the host working tree was never mounted or modified:
+
+- **Base install** — `pip install .` (pyproject base deps, **no `[desktop]` extras**)
+ boots cleanly; every dependency resolved via wheels (no build tools needed). ✅
+- **Imports** — `jarvis.browser_voice.{session,route}`, `jarvis.telephony.audio`,
+ `jarvis.audio.{player,capture}` all import with **sounddevice absent** (the H4
+ lazy-import / `_PortAudioError` sentinel degrade to `sd = None`). ✅
+- **B2 backend** — `tests/unit/browser_voice/` **13/13 passed** on Linux. ✅
+- **Import-cleanliness gate** — PASS on Linux. ✅
+- **Headless-import test** — `tests/unit/audio/test_headless_import.py` 6/6 passed. ✅
+- **Not regressions** — the telephony failures are `ModuleNotFoundError: twilio`
+ (the `[telephony]` extra) and the audio device-layer failures (WDM-KS /
+ persistent-stream / device-rate) need real sounddevice (the `[desktop]` extra):
+ i.e. correct cloud-first behaviour — the base install legitimately omits them.
+
+**Scope boundary (AD-3 honesty):** this proves the **headless / import / logic**
+layer on real Linux. It does **NOT** verify Linux **GUI/permission** behaviour — the
+AX/AT-SPI tree, Orb transparency, hotkey capture, and pkexec/sudo elevation remain
+`unverified-on-real-desktop` (no GUI Linux session here). macOS remains entirely
+unverified (no macOS host; Docker on Windows cannot run macOS).
+
+---
+
## 1. UI-element-click — real accessibility tree
| Row | Behavior | Verdict |
diff --git a/scripts/crossplatform/linux_container_verify.sh b/scripts/crossplatform/linux_container_verify.sh
new file mode 100644
index 0000000000..6db9af5981
--- /dev/null
+++ b/scripts/crossplatform/linux_container_verify.sh
@@ -0,0 +1,42 @@
+#!/usr/bin/env bash
+# Verify the cloud-first BASE install + the B2 / headless / logic layer on REAL
+# Linux, inside a throwaway `python:3.11-slim` Docker container — no CI, no Linux
+# hardware required. Run from anywhere in the repo:
+#
+# bash scripts/crossplatform/linux_container_verify.sh
+#
+# The host working tree is NEVER mounted or modified: the source subset is piped
+# in via `tar` over stdin and installed inside the container only. This proves the
+# HEADLESS / IMPORT / LOGIC layer on real Linux (base-install boot with the
+# [desktop] extras absent, sounddevice-absent degrade paths, the import-clean
+# gate, the B2 backend). It does NOT verify Linux GUI/permission behaviour
+# (AX/AT-SPI tree, Orb, hotkey, elevation) — those need a real desktop session.
+# See docs/plans/cross-platform-mac-linux/SIGNOFF-LOG.md (§0).
+#
+# Requires: Docker. macOS cannot be checked this way (Docker-on-Windows/Linux
+# cannot run a macOS image).
+set -euo pipefail
+
+cd "$(git rev-parse --show-toplevel)"
+
+tar -cf - jarvis tests scripts/ci pyproject.toml README.md \
+ | docker run --rm -i -e PYTHONDONTWRITEBYTECODE=1 python:3.11-slim bash -c '
+ set -e
+ mkdir -p /build && cd /build && tar -xf -
+ echo "=== base install on slim Linux (pyproject deps, NO [desktop] extras) ==="
+ pip install -q . pytest pytest-asyncio
+ echo "=== import-cleanliness gate ==="
+ python scripts/ci/check_import_clean.py
+ echo "=== imports with sounddevice absent ==="
+ PYTHONPATH=/build python -c "import jarvis.browser_voice.session, jarvis.browser_voice.route, jarvis.telephony.audio, jarvis.audio.player, jarvis.audio.capture; print(\"imports OK on Linux\")"
+ echo "=== B2 backend + headless-import test suites ==="
+ PYTHONPATH=/build python -m pytest \
+ tests/unit/browser_voice \
+ tests/unit/audio/test_headless_import.py \
+ -q -o cache_dir=/tmp/pytest-cache
+ '
+
+echo
+echo "Linux container verification complete — headless/import/logic layer green."
+echo "GUI/permission layer (AX, Orb, hotkey, elevation) + macOS remain unverified;"
+echo "see docs/plans/cross-platform-mac-linux/SIGNOFF-LOG.md."