A personal assistant that lives on your desktop, remembers what matters, and can use your Mac for you.
TypeScript
docs(odd): record T21a, T21b and the helper timeout seam
Alan Buscagliaab12997fa5a8
diff --git a/odd/tasks/gentle-dot.md b/odd/tasks/gentle-dot.mdindex 465c789..2ebc915 100644--- a/odd/tasks/gentle-dot.md+++ b/odd/tasks/gentle-dot.md@@ -113,7 +113,7 @@ Branch: `feat/gentle-dot` · Delivery strategy: `single-pr` (user choice, L7; fo| 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 (macOS only) | explore (delegated, read-only) → spec → implement | in progress | map done (L60) | Computer control with permissions guide, panic stop, and approvals || T21a | S24.1–S24.5 (app side), S24.6 events | delegated writer (parallel with T21b, disjoint surface `apps/desktop/src-tauri/**`) | in progress | — | Rust helper: MCP server, session grant, guards, permissions, panic |-| T21b | S24.5 UI, S24.6, S24.7 | delegated writer (parallel with T21a, surface `packages/**`, `docs/**`) | in progress | — | Protocol, daemon registration, connectors entry, rose state, banner |+| T21b | S24.5 UI, S24.6, S24.7 | delegated writer (parallel with T21a, surface `packages/**`, `docs/**`) | done | `5b59c0e`; RED 20 failing → GREEN; parent re-ran 400 passed / 5 skipped | Protocol, daemon registration, connectors entry, rose state, banner || 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 |@@ -182,4 +182,5 @@ Environment notes: Node v24.14.1 and pnpm are present. `cargo` is on PATH but `r- **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.- **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.- **L60 (2026-10-08):** T21 map returned (no web access in the explorer; key facts re-checked by the parent): Pi forwards MCP image blocks to vision models and resizes above 2000×2000 (pi-mcp README:32, pi-coding-agent docs/models.md:70-89); Anthropic recommends downscaling screenshots (claude.com best-practices article); ad-hoc signed builds lose TCC grants on every rebuild because the grant is keyed to the cdhash (several public fixes, e.g. github.com/ericwbailey/what-cant-i-press 750a2ff); ScreenCaptureKit `SCContentFilter`/`SCScreenshotManager` can exclude windows (developer.apple.com). Decision: option (a), a native Rust helper in the Tauri app serving MCP over loopback, because only there do the grant, panic, blocklist, and risky-action checks live outside the agent (the engine guard and the WS are reachable by the agent, L49). Parent defaults, open to the user's change: 30-minute sessions, panic ⌥⇧Esc, 10 actions per second, long edge 1280 px. S24 refined into S24.1–S24.7; split into T21a (Rust) and T21b (TypeScript), launched in parallel with disjoint surfaces; contract: Tauri commands `computer_endpoint` → `{url, token} | null`, `computer_permissions` → `{accessibility, screenRecording}`, `computer_request_permission {kind: "accessibility"|"screenRecording"}`, `computer_stop`, `computer_status` → `{active, endsAt?}`; event `computer://state` `{active, endsAt?, reason?: "granted"|"stopped"|"panic"|"timeout"}`; client messages `computer_register {url, token}` and `computer_unregister`.-- **Next step:** T21a and T21b, then a seam check and a real-Mac run; the community tester runs docs/linux-testing.md when the user shares it; T23/S25 before any public release.+- **L61 (2026-10-08):** T21a scope additions approved by the parent: `build.rs` COMMANDS + generated `permissions/**`; `rustup component add clippy`; minimumSystemVersion 11.0 → 12.3 (ScreenCaptureKit is strongly linked; screenshots need macOS 14, checked at runtime, `computer_permissions` adds `screenshotsSupported`). T21b done (`5b59c0e`). Accepted risk, deferred to S25: any authenticated WS client (the agent included, L49) can send `computer_register` and repoint the built-in entry; an Origin check would not help because curl can forge it, and the helper still enforces the native grant, so control is never gained this way. The bearer key sits in mcp.json (file tools blocked, bash best-effort) and only reaches the helper.+- **Next step:** T21a, then a seam check and a real-Mac run; the community tester runs docs/linux-testing.md when the user shares it; T23/S25 before any public release.