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(parity): anchor the three-layer device-divergence triage ritual
Ruben Lütkef610208a7983
diff --git a/AGENTS.md b/AGENTS.mdindex d28ba9ce09..3386edad84 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -239,6 +239,28 @@ in doubt, gate behind an extras group with a graceful no-op and lead the docswith the VPS path. Doctrine: [`CLOUD.md`](CLOUD.md) +[`docs/PHILOSOPHY.md`](docs/PHILOSOPHY.md) (doctrine wins). See AP-21/22/23.+### Device-parity triage ritual (BINDING)++"Works on the dev box, broken on device X" has THREE independent causes;+check them **in order** and never diagnose a cross-device defect without+stating which layer it is (full runbook:+[`docs/device-parity-debugging.md`](docs/device-parity-debugging.md)):++1. **Version lag** — the device runs older code. Compare the running version+ on the device (`GET /api/update/status` → `current`) against the dev box;+ remember that uncommitted edits and unpublished commits exist NOWHERE+ else, fresh installs clone public `main`, and the in-app updater only+ moves between **published GitHub Releases** (a pushed tag without a+ Release updates nobody).+2. **Setup divergence** — config, credentials, and data never travel with the+ code (deliberate, §2). A fresh install starts empty, and key-aware+ fallback chains (AP-22) degrade QUIETLY — "feature broken on device X" is+ usually "feature downgraded because that machine lacks the key/provider".+ Compare provider/key presence, mode, and wake word on both machines and+ align them in-app before debugging.+3. **OS gap** — only after layers 1+2 match may an OS-specific defect be+ assumed; then the OS-parity rules above + `docs/os-parity.md` apply.+---## 4. Naming — internal system "Jarvis-Agents", user-visible brand is DYNAMIC (BINDING)diff --git a/CLAUDE.md b/CLAUDE.mdindex d28ba9ce09..3386edad84 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -239,6 +239,28 @@ in doubt, gate behind an extras group with a graceful no-op and lead the docswith the VPS path. Doctrine: [`CLOUD.md`](CLOUD.md) +[`docs/PHILOSOPHY.md`](docs/PHILOSOPHY.md) (doctrine wins). See AP-21/22/23.+### Device-parity triage ritual (BINDING)++"Works on the dev box, broken on device X" has THREE independent causes;+check them **in order** and never diagnose a cross-device defect without+stating which layer it is (full runbook:+[`docs/device-parity-debugging.md`](docs/device-parity-debugging.md)):++1. **Version lag** — the device runs older code. Compare the running version+ on the device (`GET /api/update/status` → `current`) against the dev box;+ remember that uncommitted edits and unpublished commits exist NOWHERE+ else, fresh installs clone public `main`, and the in-app updater only+ moves between **published GitHub Releases** (a pushed tag without a+ Release updates nobody).+2. **Setup divergence** — config, credentials, and data never travel with the+ code (deliberate, §2). A fresh install starts empty, and key-aware+ fallback chains (AP-22) degrade QUIETLY — "feature broken on device X" is+ usually "feature downgraded because that machine lacks the key/provider".+ Compare provider/key presence, mode, and wake word on both machines and+ align them in-app before debugging.+3. **OS gap** — only after layers 1+2 match may an OS-specific defect be+ assumed; then the OS-parity rules above + `docs/os-parity.md` apply.+---## 4. Naming — internal system "Jarvis-Agents", user-visible brand is DYNAMIC (BINDING)diff --git a/docs/device-parity-debugging.md b/docs/device-parity-debugging.mdnew file mode 100644index 0000000000..d6741ac07d--- /dev/null+++ b/docs/device-parity-debugging.md@@ -0,0 +1,89 @@+# Device Parity Debugging — "works on the dev box, broken on device X"++**The single most expensive misdiagnosis in this project:** a feature behaves+differently on a second device (test Windows box, test Mac, a fresh install)+and the difference is treated as a code bug. Historically, most of these+reports were NOT code bugs — they were one of three divergence layers below.+This document is the binding triage ritual: check the layers **in order**, and+never diagnose a cross-device defect without stating which layer it is.++---++## Why a second device is never "the same Jarvis"++The dev box runs the live working tree: every fix takes effect immediately,+including uncommitted ones, on top of a configuration that has grown for+months (multiple provider families with keys, a trained wake word, realtime+mode, wiki content, activated skills). A second device runs **the published+code** with **an empty or minimal setup**. Identical code therefore does NOT+mean identical behavior — by design, features gate on capabilities and+degrade quietly when a key or provider is missing (§3 of `CLAUDE.md`).++## Layer 1 — Version lag (check FIRST, takes 2 minutes)++The device may simply run older code.++- **On the device:** read the running version in the app (top bar / Settings →+ About) or `GET /api/update/status` → `current`. Do not trust "I just+ reinstalled" — reinstalls have picked up stale checkouts and pre-release+ builds before.+- **On the dev box:** `git describe --tags`, then+ `git log --oneline public/main..main` (unpublished commits) and+ `git status --short` (uncommitted work — exists on the dev box ONLY).+- **Delivery pipeline facts:** a fresh install clones public `main`+ (`install/install.sh` / `install.ps1`, `JARVIS_INSTALL_REF` defaults to+ `main`); the in-app updater (`jarvis/ui/web/update_routes.py`) moves a+ managed install only between **published GitHub Releases** — pushing a tag+ without publishing a Release updates nobody.++A fix that lives only as an uncommitted edit or an unpublished commit does+not exist anywhere else in the world. Ship it before expecting it on a device.++## Layer 2 — Setup divergence (the usual culprit after a fresh install)++Configuration, credentials, and data **never travel with the code** — that is+deliberate credential protection, not a sync failure: `data/`, `.env`,+`jarvis.toml`, the OS keyring, and the Vault are untracked (§2 of+`CLAUDE.md`).++A fresh install therefore starts with: no keys, default providers, default+mode, no wake word, no wiki, no skills, no trained voices. Because every tier+resolves through key-aware fallback chains (AP-22), a missing key does not+error — it silently lands on a simpler path or a degradation message. To the+user this reads as "the feature is broken on this device".++**Compare the two machines' setups before debugging anything:**++- Which providers are connected per tier (brain/router, STT, TTS, wake) —+ key **presence** only, never values. Settings → Providers on both devices,+ or the `jarvis` CLI against each running instance.+- Mode: realtime vs. classic pipeline (`[tts].provider`, realtime config).+- Wake word set? Skills activated? Relevant feature toggles?+- `python -m jarvis --check` on both, and diff the output.++If the setups differ, align them (in-app — §3 requires every credential path+to be recoverable in-app) and re-test **before** filing a bug.++## Layer 3 — OS gaps (only after layers 1+2 match)++Only when the device runs the same version with an equivalent setup and a+feature still misbehaves is an OS-specific defect plausible (macOS+permissions, window control, audio backends). Then the OS-parity rules apply:+`docs/os-parity.md` + §3 "OS feature parity" in `CLAUDE.md`. File it as a+tracked parity gap, not folklore.++---++## Release completeness (the layer-1 prophylaxis)++A release ships the ENTIRE current local state (§2). Before tagging:++1. `git status --short` — every dirty file is either committed by its owning+ session or **explicitly reported to the maintainer** as excluded. Never+ silently cut a release that lacks visible local fixes.+2. `git log --oneline public/main..main` must be empty after the push.+3. The GitHub **Release** must be published (not just the tag pushed) —+ otherwise managed installs are never offered the update.+4. The frontend `dist/` bundle in the release must match the frontend+ sources (rebuild if any commit after the last dist rebuild touched+ `jarvis/ui/web/frontend/src`).