A personal assistant that lives on your desktop, remembers what matters, and can use your Mac for you.
TypeScript
docs(odd): scope computer control to macOS
Alan Buscaglia900430a23773
diff --git a/odd/tasks/gentle-dot.md b/odd/tasks/gentle-dot.mdindex c2d391f..3850a7e 100644--- a/odd/tasks/gentle-dot.md+++ b/odd/tasks/gentle-dot.md@@ -76,7 +76,7 @@ Branch: `feat/gentle-dot` · Delivery strategy: `single-pr` (user choice, L7; fo- Mechanism (to verify in the implementation): `ENGRAM_DATA_DIR=<real ~/.engram>` in the child env so the plugin's instance-id check matches the global server; the project forced through the plugin's supported override (Engram has `ENGRAM_PROJECT` / `process_override`; check that gentle-engram honors it), or a workspace whose detected project is `gentle-dot` as the fallback.- **S24 — Computer control (last item).** User (L43): "un item mas al final de todo, que haga como codex y que permitas controlar tu computadora, que pueda manejar tus aplicaciones y tal".- - Acceptance (draft, to be refined before implementation): the assistant can see the screen and operate apps (screenshots, mouse, keyboard, opening and switching apps) after the user grants macOS Accessibility and Screen Recording permissions, with an in-app guide for granting them. Safety: a visible "in control" state on the rose, a global panic shortcut that stops control instantly, approval per control session plus mandatory confirmation for risky actions (send, pay, delete, submit), an optional allowlist of apps, and a clear note when the selected model cannot use images. Likely delivered as a built-in MCP connector behind the S18 approval guard. Linux support follows S13's limits (Wayland restricts input injection and screen capture to portals).+ - Acceptance (draft, to be refined before implementation): the assistant can see the screen and operate apps (screenshots, mouse, keyboard, opening and switching apps) after the user grants macOS Accessibility and Screen Recording permissions, with an in-app guide for granting them. Safety: a visible "in control" state on the rose, a global panic shortcut that stops control instantly, approval per control session plus mandatory confirmation for risky actions (send, pay, delete, submit), an optional allowlist of apps, and a clear note when the selected model cannot use images. Likely delivered as a built-in MCP connector behind the S18 approval guard. Scope (L59): macOS only for now (user: "lo de controlar la computadora por ahora solo para mac"); Linux is out of scope.- **S25 — Connector enforcement outside the agent's reach (stage 2, before publishing to other users).** Decided in L48. The daemon proxies MCP traffic: connector tokens live in the OS secure store (macOS Keychain, with an equivalent on Linux and the VPS), the engine sees only local proxy URLs, and enabled state, mode, and approvals are enforced by the daemon, not by files or an in-engine hook. Subagent child processes are covered too. Approvals must reach the user through a channel the agent cannot reach (L49: with the daemon access key, the agent could connect to the WebSocket and answer its own approval cards), for example a native OS dialog shown by the desktop app, or a per-window key never stored in a file the agent can read.@@ -104,7 +104,7 @@ Branch: `feat/gentle-dot` · Delivery strategy: `single-pr` (user choice, L7; fo| T18 | S18–S20 | explore (delegated) → T18a core + T18b guides/drafts/import, each verified independently | done | `e49bd9d`, `8651bba` (T22), `994abce`, `63c8e9c`; see L46–L55 | Connectors: map the engine's MCP integration and the providers first || T19 | S22 (+ design §4/§6/§7 refresh) | delegated writer (context backstop) | done | `225596d`; parent re-ran 260 tests, typecheck, lint + real-engine handoff probe | Single continuous chat: hide conversations, transparent session rotation, recent-only history || T20 | S23 | delegated writer, after T17 (the runtime refused it in parallel: test surface overlap with T17's `packages/daemon/test/**`) | done | `823363e`, follow-up `400ec73`; parent re-ran 235 tests, typecheck, e2e 12/12 | Global Engram, project gentle-dot |-| T21 | S24 | explore → spec → implement (last) | pending | — | Computer control with permissions guide, panic stop, and approvals |+| T21 | S24 (macOS only) | explore (delegated, read-only) → spec → implement | in progress | — | Computer control with permissions guide, panic stop, and approvals || T22 | S18 (hardening, L47 B1/B2) | delegated writer | done (accepted with documented gaps, L52) | `8651bba`; parent re-ran 328 tests + typecheck | Option A: authoritative in-memory connector state with revert, credential reads blocked, path-independent bash checks, full approval preview, redirect manual, private Engram stop, onboarding overlap fix || T23 | S25 | explore → spec → implement (stage 2) | pending | — | Daemon-side MCP proxy with Keychain tokens || T9 | S1–S6, S9–S12 | delegated verifier (high risk: process supervision, auth) | done | L24 + L31 | Full verification: unit, integration, Playwright, `@real-agent`, `tauri build` + launch, manual macOS checklist with observed results |@@ -171,4 +171,5 @@ Environment notes: Node v24.14.1 and pnpm are present. `cargo` is on PATH but `r- **L56 (2026-10-08, user decision on Linux delivery):** "Compilar desde el código (Recomendado)". The app is not self-contained today (build.rs records the node path and the daemon script path of the build machine's repo), so packages built here would not run on the tester's machine. S13 delivery changes: instead of .deb/AppImage artifacts, a per-distro setup script (Debian/Ubuntu via apt, Omarchy via pacman) that installs dependencies (Node 24, pnpm, Rust, WebKitGTK and the Tauri system deps), builds, and launches the app on the tester's machine, plus the testing checklist. A Linux compile check runs in a Debian container here. Self-contained packages (also needed to give the Mac app to others) are deferred.- **L57 (2026-10-08, Docker check):** The server image builds at HEAD, and a container smoke run reached `idle`, setup 3/3, no token in the logs (only the key file path), and the workspace `.engram/config.json` with `gentle-dot`. T14 was launched (from source, with setup scripts, the tester checklist, and a Debian container build check).- **L58 (2026-10-08, T14 evidence + parent fix):** Commit `3c002e3`. A pure `platform.rs` decides the Wayland strategy: `GDK_BACKEND=x11` set before GTK on GNOME Wayland when XWayland exists, and no self-positioning on native Wayland (Hyprland), where window rules are used. Single-instance with `gentle-dot --toggle`; Linux tray glyphs; an opaque panel without vibrancy; `.cargo` overrides limited to macOS. `macos-private-api` must stay cross-platform (tauri-build allowlist). Setup scripts: Debian/Ubuntu via apt and Arch/Omarchy via pacman; Node 24 from the official tarball with a sha256 check in a private dir (no sudo), pnpm via corepack, rustup; sudo only for packages, after a prompt; plus an uninstall script. Hyprland snippets in Lua (Omarchy v4.0.4, cited) and hyprlang (0.53–0.54 and the older forms). docs/linux-testing.md is the tester checklist. Container evidence (debian:bookworm arm64): the real setup script ran end to end and was idempotent, cargo 53/53, a 16 MB release binary; an X11 smoke run under Xvfb showed the Dot at 72×72 on the right edge and `--toggle` showing and hiding the panel, with one instance. It found and fixed two GTK bugs (a non-resizable 72×72 window drawn at 200×200; a never-shown panel reporting 0×0). Arch package names were checked (libappindicator-gtk3 → libayatana-appindicator). Not verified: a real GNOME/Hyprland session, an Arch end-to-end run, x86_64. Writer-reported engine issue, "Pi requires the `pi` executable in PATH" on clean machines, was fixed by the parent test-first (RED → GREEN): the daemon prepends the bundled `node_modules/.bin` (pi 1.0.4) to the engine PATH. Real-engine check with no `pi` on PATH: 0 errors, the 4 companion packages installed, setup 3/3. 376 tests, typecheck, lint.-- **Next step:** T21 (computer control): read-only map, then spec and implementation; the community tester runs docs/linux-testing.md when the user shares it; T23/S25 before any public release.+- **L59 (2026-10-08, user):** "lo de controlar la computadora por ahora solo para mac". S24 is scoped to macOS; the read-only map was launched.+- **Next step:** the T21 map, then the S24 spec and implementation; the community tester runs docs/linux-testing.md when the user shares it; T23/S25 before any public release.