Skip to content

A personal assistant that lives on your desktop, remembers what matters, and can use your Mac for you.

TypeScript

docs(odd): restore the log truncated by 70c3f69 and reapply S30 (L88-L90)

Alan Buscaglia9d4bf616ee1d
diff --git a/odd/tasks/gentle-dot.md b/odd/tasks/gentle-dot.md
index 48a6842..ff11f7c 100644
--- a/odd/tasks/gentle-dot.md
+++ b/odd/tasks/gentle-dot.md
@@ -116,6 +116,7 @@ Branch: `feat/gentle-dot` · Delivery strategy: `single-pr` (user choice, L7; fo
- **S30.1 Desktop speech to text (macOS).** The Tauri app recognizes speech natively (Speech framework, on-device when available; microphone captured natively), asking for Microphone and Speech Recognition permissions with usage strings in Info.plist. Partial text shows live while speaking; the final text is the message.
- **S30.2 OpenAI API key, when connected.** If an OpenAI API key is connected in Accounts, the daemon transcribes recorded audio with OpenAI (`/v1/audio/transcriptions`, a gpt-4o transcribe model) and speaks replies with OpenAI text to speech; the key never leaves the daemon. On the desktop the key is preferred when present; in the web UI it is the only way to talk (the web shows the mic only when a key is connected, over HTTPS or localhost). Recordings are capped (about 60 s) to fit the WebSocket limit.
- **S30.3 Spoken replies.** Without a key, replies are spoken with the system voices (speechSynthesis in the UI, matching the reply language when possible). Only replies to a spoken message are read aloud; a mute toggle in the panel header silences them (remembered), and starting to talk or pressing Stop cuts the speech.
+ - **S30.5 Optional local model (L89).** User: "no seria mejor sino tener un modelo de ia local chiquito? Parakeet es muy muy bueno", then "pero que sea opcional para descargarlo si solo quiere". Voice settings offer a "Download local voice model" action for NVIDIA Parakeet TDT 0.6B v3 (25 European languages incl. Spanish, huggingface.co/nvidia/parakeet-tdt-0.6b-v3), run through the `sherpa-onnx` Rust crate (offline transducer, int8 model; works on macOS and Linux). Nothing downloads unless the user asks; the download shows size and progress, can be cancelled, verifies the files, and can be removed. When present, it is the preferred speech-to-text engine on that machine (fully offline); otherwise S30.1/S30.2 apply. On Linux it is the only desktop voice engine besides an API key.
- **S30.4 Mic button.** A mic button in the composer: tap to start, tap to stop; while recording it shows the level and elapsed time, Esc or ✕ cancels, and the final transcript is sent as the user's message (assumption: sent automatically, since the user asked for a voice conversation; the transcript stays visible as the message). When voice is unavailable the button explains why (missing permission, unsupported, web without a key).
## Tasks
@@ -160,6 +161,7 @@ Branch: `feat/gentle-dot` · Delivery strategy: `single-pr` (user choice, L7; fo
| T29 | S30 | explore (delegated, read-only) → spec → implement | in progress | map done (L88) | Voice conversation: mic button, transcription, spoken replies |
| T29a | S30.1 | delegated writer, parallel with T29b (surface `apps/desktop/src-tauri/**`) | in progress | — | Native macOS speech recognition commands and events |
| T29b | S30.2–S30.4 | delegated writer, parallel with T29a (surface `packages/**`) | in progress | — | Daemon OpenAI-key transcription/TTS, mic button, spoken replies |
+| T29c | S30.5 | after T29a (same surface) | pending | — | Optional Parakeet local model via sherpa-onnx: download, verify, remove, prefer |
| 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 |
@@ -179,5 +181,83 @@ Environment notes: Node v24.14.1 and pnpm are present. `cargo` is on PATH but `r
- **L9 (2026-10-08, T3 evidence):** 18 gateway tests cover the token (4401), protocol (4400), Origin (403), seq numbering, streaming, broadcast, requestId dedupe, tool activity, asks and late joiners, conversations and history, id traversal refusal, malformed frames, interruption after restart, static UI with traversal block, and health. Exception: `parseClientMessage` was written before its unit test (the test passed on first run). Design §4 updated: `send` while busy steers, plus `user_message`, `ask_resolved`, `conversations`, `interrupted` payloads. Risk tier: high (auth on a local socket); independent verification in T9.
- **L10 (2026-10-08, T4 evidence):** the launcher forwards unknown args to Pi (`runtime/gentle-shell-launcher.mjs:153,971`), so `--append-system-prompt` works; the S4 assumption holds. `pnpm test:real` (opt-in through `GENTLE_DOT_REAL_AGENT=1` so ordinary runs cost no model calls) passed 2/2. Answer: "I’m Gentle Dot, a personal assistant that lives on your desktop and in your browser. I can work with your files, run tasks, remember things across conversations, and bring in focused helpers when needed." No hidden names appeared in any UI-bound message. Info toasts are hidden as harness chatter.
- **L11 (2026-10-08, T5/T6 evidence):** Route: T5/T6 inline and T7 delegated in parallel (Writer trigger (a): disjoint surfaces `packages/ui` and `apps/desktop/src-tauri`, contract fixed first in design §9). RED observed for components, client, and Dot (missing modules); exception: the store reducer was written before its tests ran (tests passed on the first run). Screenshots exposed 3 defects that the tests missed: lost user line breaks, start/end activity ids split, and a title stuck at "New conversation"; each got a RED test, then a fix (`4ca84d3`). Totals: vitest 88 passed + 2 opt-in skipped; Playwright 7/7 (chat, ask card, conversations, interruption + Continue, reload, rejected key, missing key).
-
-[Showing lines 1-181 of 259 (50.0KB limit). Use offset=182 to continue.]
\ No newline at end of file
+- **L12 (2026-10-08, T8 evidence):** HostGator cPanel/WHM Apache owns ports 80/443, so the default compose binds `127.0.0.1:${DOT_PORT}` behind an Apache include (`docker/apache-gentle-dot.conf`, Basic Auth + WebSocket proxy), and Caddy is an opt-in profile for a VPS without a web server. The safety policy blocked creating `.env.example`; the variables are documented in `docs/deploy-vps.md` step 3 instead. Image fixes found by the smoke run: `gentle-pi` installs its gentle-ai binary as root with mode 0700 (chown to `dot`), and companion setup needs `curl` plus `pi` on PATH (pinned to gentle-pi's bundled version). Final smoke: health `idle`, companion packages installed, verification 3 passed. A chat inside the container was not run because it needs a model key.
+- **L13 (2026-10-08, user):** "Me haces un diseño de cómo se podría ver el iconito que vamos a cliquear para levantar a la gente y demás. Acordate que te dije que tendríamos que tener uno flotante también para Mac, cosa que si lo quieren tener en el escritorio, así dando vueltas mientras uno trabaja y le puedes hacer clic en cualquier lugar, tenemos que tener esa representación también." A violet orb design was produced (`9e8cecc`), then superseded by L15.
+- **L14 (2026-10-08, user):** "Genérame un cloud de design, por favor, y pásame el link." Options offered (a Claude Design prompt, a Higgsfield file link, a Higgsfield site); the user cancelled and redirected in L15. Nothing was published.
+- **L15 (2026-10-08, user):** S9 quote. Evidence: the rose source is `gentle-pi/assets/gentle-logo-only.png` (1254×1254 neon PNG), copied to `docs/brand/rose-source.png`. `docs/brand/tools/trace_rose.py` (isolated venv with numpy, Pillow, and scikit-image; threshold 120, closing disk(3), skeletonize) traced 178 strokes and 45 sparkles into `rose-lines.svg`. Traced strokes are illegible at 18 pt, so a hand-drawn `rose-glyph.svg` is used for the menu bar. Sheet: `rose-design.html`/`.png`; video: `rose-animation.webm` (`d4672e3`). T7 integrated (`81d70c3`) after removing unused Android/iOS/Windows icons.
+- **L16 (2026-10-08, user):** S10 and S11 quotes (login and profiles from the bot).
+- **L17 (2026-10-08, explore evidence):** `/login` is a built-in TUI command that RPC does not execute, and `/gentle:profiles`/`/gentle:models` use `ctx.ui.custom` (undefined in RPC). The daemon can sign in through `ModelRuntime.create({authPath, modelsPath}).login(providerId, type, {prompt, notify, signal}, {getDeviceId})`, exported from `@earendil-works/pi-coding-agent` (verified by the parent at `dist/core/model-runtime.d.ts:56-108`), with `AuthStorage` file locking. New credentials apply on the next request, but the model list needs a restart. Profiles live in `${GENTLE_PI_CONFIG_HOME:-~/.pi/gentle-ai}/profiles.json`; switching them globally exists only inside `extensions/gentle-ai.ts`.
+- **L18 (2026-10-08, user):** S12 quote. Decision: the assistant owns its instance (bundled `[email protected]` with pinned `pi-coding-agent`, `pi-ai`, and `pi-tui` 1.0.4). pnpm 11 `allowBuilds`: esbuild and gentle-pi allowed; `@google/genai` and protobufjs denied.
+- **L19 (2026-10-08, T13/T11 evidence):** A smoke run with a fresh data dir and `gentle-shell` removed from PATH started the bundled engine in `<data>/agent`: companion setup passed 3/3, the agent was idle, and `auth_list` returned 42 providers (9 with subscription sign-in: Claude Pro/Max, ChatGPT Plus/Pro and subscription, GitHub Copilot, xAI, Kimi, Meta, OpenRouter, Radius) with none configured. Defects found by the e2e and fixed test-first: (1) "Back to accounts" kept the finished flow on screen; (2) a fresh `ModelRuntime` with `refreshOnCreate: false` did not see stored credentials (verified with a direct probe), so it now refreshes on create, still offline. The real API key flow is one `secret` prompt with no network check, and `auth.json` is written with mode 0600. The Tauri capability adds `opener:default` for sign-in pages; cargo build + 29 tests pass. Dockerfile updated for the bundled engine (chown /app to dot; global `pi` pinned to the bundled version). Risk tier: high (credentials, item 2); independent verification in T9. Not verified: a real OAuth subscription sign-in (needs the user's account in a browser).
+- **L20 (2026-10-08, user decision):** "Propios del bot, con importar (Recomendado)": the assistant keeps its own profiles in `~/.gentle-dot`. When the person has Gentle Shell, an "Import my Gentle Shell profiles" button copies them once, and changes made in the assistant never touch Gentle Shell. `/gentle:profiles` takes no arguments (panel only, `extensions/gentle-ai.ts:3606`), so the daemon must manage profiles itself; a read-only map of what applying a profile writes is running. The Docker image with the bundled engine was verified (`8d5a135`): health idle, setup 3/3.
+- **L21 (2026-10-08, user):** "Ve evaluando que tan fácil es portarlo para Linux y actualiza el todo". Read-only evaluation: the daemon, UI, protocol, auth, and Docker image are already platform-neutral (the container is Linux). The desktop shell has macOS-only points (`src/shell.rs`): HudWindow vibrancy (macOS/Windows only), the accessory activation policy (already `cfg(target_os = "macos")`), `icon_as_template`, `accept_first_mouse`, the `macos-private-api` feature/`macOSPrivateApi`, Info.plist `LSUIElement`, and `.cargo/config.toml` pinning `/usr/bin/cc`. Linux constraints: on Wayland, apps cannot position their own windows or reliably stay on top, and global shortcuts need the GlobalShortcuts portal, so edge snapping, the floating rose, and Alt+Space are X11-only; on GNOME the tray needs the AppIndicator extension; transparency needs a compositor. Estimate: X11 parity is small (about 1–2 days); Wayland needs fallbacks (a normal window instead of the free-floating rose, a tray-or-panel launcher, a shortcut set by the user in desktop settings). Recorded as T14, pending a go-ahead.
+- **L22 (2026-10-08, T10 evidence):** The rose is an inline SVG built from the traced strokes: 178 static outline strokes, with light traveling along the 60 longest (at 64 px the shorter ones read as flicker). Finding: macOS system WebKit does not draw CSS `drop-shadow` on `<g>` inside inline SVG, so the rose is three stacked `<svg>` layers (base, light, sparkles), each with its own glow; verified with `qlmanage` system-WebKit renders. The Dot window is 64×84 with `initial_dot_position` using the real size. There are four tray template glyphs at 18/36 px (working is a static dashed variant, not two frames), plus a neon-rose squircle app icon and the favicon. Reduce motion hides the light layer and keeps a steady glow. Risks for T9: live animation in WKWebView is not yet observed, and the working tray glyph is subtle at 18 pt. The unused `icons/tray.png` was removed.
+- **L23 (2026-10-08, T12 evidence):** The writer stalled once on a bash command and was resumed in its own session with timeouts on every long command. The daemon reimplements the `gentle-pi.agent_model_profiles` v1 store: atomic 0600 writes through one queue. Applying a profile writes the four files in order, restores all four on failure, never touches agent `.md` files, then sends `set_model` and `set_thinking_level` (deferred until `agent_settled` while busy). Models forward only provider, id, name, and reasoning (a gateway test asserts that `headers` never reach a client). The import is read-only, skips `active`, renames collisions to `-imported[-N]`, and reports missing sign-ins. Extras beyond the request: editing the active profile re-applies it, identical imports are skipped, and Delete is disabled for the active profile. `SettingsManager` was not used because it cannot delete `defaultThinkingLevel`; a `settings.json.lock` mkdir lock (stale after 10 s) mimics proper-lockfile. Verification: 179 tests passed (2 opt-in skipped), typecheck OK, biome OK, e2e 9/9 (the e2e test was written after the implementation, so no RED). Open for T9: `set_model` against the real engine, lock compatibility with proper-lockfile, and one flaky `supervisor.test.ts:54` (busy after settle), seen once in four runs.
+- **L24 (2026-10-08, T9 evidence and user feedback):** Independent verifier (scratch copy, temp HOME): runners all green (179 tests, typecheck, lint, e2e 9/9, cargo 34/34, `test:real` 2/2, supervisor ×10 = 10/10). Verdicts: pass S2, S3, S4, S5, S8, S10; not verifiable S1, S9; FAIL S6, S7, S11, S12. BLOCKERS: B1 the token printed by `cli.ts:21` lands in `~/.gentle-dot/daemon.log` (0644, dir 0755), readable by other local users. B2 the first run writes outside the instance (`~/.gentle-shell/config.json` provisioned mark, `~/.pi/agent/pi-pretty/fff/*.mdb` via a fixed `$HOME`, `~/.gentle-ai/state.json`, and `~/.gentle-ai/backups`). B3 with the default workspace `~`, the engine reads `~/.pi/gentle-ai/models.json` as project config and writes it into `<data>/agent/agents/*.md` frontmatter, and an applied profile that omits a role does not clear that frontmatter. B4 deploy-vps step 3 (`docker compose run … gentle-shell`) cannot work. Advisories: generic error with no account; a `busy` race in `supervisor.ts:118-123`; stale `ready.model` after `set_model`; `auth_logout` accepts any providerId; `auth_reply` has no owner check; symlinked session files are accepted; rollback leaves 0600; internal role ids in the payload; unpinned `engram@latest`; the token in `docker logs`. App launched on the user's Mac: CGWindowList shows the Dot window floating (layer 5) but at 59×76 and about 106 px from the edge, against a saved 64×84 at a 12 pt margin; screenshots are not possible (no screen-recording permission). User: menu bar icon and menu OK; clicking the rose or ⌥ Space opens the panel beside it; on the rose: "ponle un fondo negro y que sea un circulo".
+- **L25 (2026-10-08, user):** S10 change quote. Reproduced: the accounts list is alphabetical with 42 rows, so the only subscription button on the first screen is "Sign in with Anthropic (Claude Pro/Max)", and ChatGPT, Copilot, Grok, Kimi, Meta, OpenRouter, and Radius sit far below among the API keys. Fix: a daemon policy that drops and refuses Anthropic OAuth (sent to the T15 daemon writer), and an accounts UI with a "Use your subscription" section first and "Use an API key" below (parent, inline).
+- **L26 (2026-10-08, user):** "entonces demos una mejor variante, elegir entre sub y api primero. Para lo de Linux... la que use debian, ubuntu o omarchy". The user had shared screenshots of Pi's `/login` showing the method choice and the 9 subscription providers (Anthropic, GitHub Copilot, Kimi For Coding, Meta, OpenAI, OpenAI Codex (legacy), OpenRouter, Radius, xAI), which matches the assistant's list; rows now use provider names with the plan underneath (`7998aea`). Linux targets all default to Wayland (Debian/Ubuntu GNOME, Omarchy Hyprland), so S13 includes Wayland fallbacks.
+- **L27 (2026-10-08, user):** "puedo poner a alguien de la comunidad a probarlo en linux no pasa nada". T14 will deliver a tester checklist (`docs/linux-testing.md`) and the build artifacts. Sharing them with the tester (push, release, or file transfer) stays the user's decision.
+- **L28 (2026-10-08, T15 design part evidence):** The Dot window is 72×72 pt, with a 66 pt near-black disc and a faint pink rim (subtle state cues on the rim: pink while working, amber with the "!" when it needs the user, grey when restarting or failing). The rose is cropped to `90 78 1040 1040` (its minimal enclosing circle). RED → GREEN: UI 3 failing → 72/72; Rust 6× E0425 → 39/39; tauri build OK; the parent re-ran both. Window bug: all placement now uses logical points, converting each rectangle with its own scale factor (tao 0.37.1 on macOS uses per-window or per-monitor `backingScaleFactor`, and `set_outer_position`/`set_inner_size` are async). The size is re-applied after positioning, on each snap, and on `ScaleFactorChanged`, and positions persist as `dot_points` (the legacy `dot` key is ignored once). The root cause of 59×76 is not proven without the GUI; the CGWindowList recheck on the user's Mac should read 72×72 with x + 72 + 12 equal to the work-area width.
+- **L29 (2026-10-08, T15 daemon part evidence):** Commit `05000c8`. B1: data dir 0700, token 0600, the token printed only on a TTY, Tauri log 0600. B2: the child gets its own `HOME=<data>/home` plus XDG dirs, `GIT_CONFIG_GLOBAL` pointing at the real gitconfig, and its own Engram on port 7438 (gentle-engram rejects the user's server as foreign under another HOME); probe: seeded HOME hash identical before and after a first start. B3: workspace defaults to `<data>/workspace`, and frontmatter sync is guarded by realpath with rollback of bytes and modes. B4: the deploy doc signs in from Accounts. A1–A6 fixed, the L25 Anthropic OAuth refusal added (`auth_unsupported`). 196 tests, e2e 9/9, cargo 39/39, supervisor ×10 = 11/11 each. Incident: the writer's `pkill -n -f "engram serve"` may have restarted the user's Engram (same instance id, healthy, verified by the parent). Parent follow-ups `ac86f64`: "Back to accounts" returns to step 1 (RED → GREEN), access-key texts no longer mention a printed link, the unused container memory server removed, design §3/§9/§10 updated, and stray `packages/daemon/src/*.d.ts` untracked and ignored. On the user's Mac the Dot window now measures 72×72 at x = 1836 (1836 + 72 + 12 = 1920), confirming the window fix; the restarted app uses its own `home`, `workspace`, and Engram on 7438. The limited recheck is running.
+- **L30 (2026-10-08, user):** "una cosa, en la app no muestra los queue messages, y me gustaria que la app tenga la misma visual que la pagina web de gentlemanprogramming.com el mismo estilo, tambien si uno empieza a escribir deberia de cerrar las opciones abiertas, para las partes de profiles no entiendo porque el icono de contraste". Style evidence was measured with Playwright from the live https://gentlemanprogramming.com (computed styles and :root variables; the values are in S15). The site is dark-only.
+- **L31 (2026-10-08, limited recheck):** An independent verifier (scratch copy, temp HOMEs, ports away from the user's 4317/7437/7438) passed B1, B2, B3, B4, L25, and L26 at `ac86f64`, and each failure reproduced at baseline `deeb33a`. B2 probe: the seeded HOME hash is identical before and after a first start (`b5f7056…`). L25: 42 providers, 8 OAuth, none Anthropic, and Anthropic OAuth is refused with no runtime call. Regression: 197 tests, typecheck, lint, e2e 9/9, cargo 39/39. No blockers remain. Advisories for later: (1) the assistant's Engram server outlives the daemon (orphaned after stop); (2) deploy-vps telemetry opt-out line likely does not work in the container (pre-existing); (3) old daemon.log files from earlier builds still hold the token (now 0600; the token was not rotated); (4) e2e does not re-check the method buttons after "Back to accounts" (UI test covers it); (5) a small TOCTOU window between realpath and write in the frontmatter sync. With L24 (S1/S9 confirmed on the user's Mac: tray, menu, panel, 72×72 window), T9 is complete for S1–S12 except the items not verifiable here (live animation in WKWebView, real OAuth subscription sign-in).
+- **L32 (2026-10-08, user):** "como podemos hacer para un apartado de conectores, por ejemplo gmail, slack, discord, etc". The parent verified that the engine reads `<agentHome>/mcp.json` (`mcpServers`) and keeps `mcp-auth.json` and `mcp-cache.json` there, and that `@earendil-works/pi-mcp` provides stdio and Streamable HTTP transports plus an MCP OAuth client (`pi-mcp/oauth`; it does not open a browser or choose storage). The proposal was accepted: "dale me gsuta )".
+- **L33 (2026-10-08, user):** "Notion, Linear, Atlassian tmabien, esta bueno, y pon un apartado de conectar mcp extra, que directamente se lo pida al agente, creo que podria hacerlo no? es mas podriamos reconocer los mcps del user o no ?". Decision recorded: the assistant drafts and the daemon applies after user approval (prompt-injection guard). Import of the user's MCP servers is read-only, per server, and explicit. The explorer was asked to extend its map.
+- **L34 (2026-10-08, user):** "y creo que encontre un bug, si mientras el agente esta respondiendo un mensaje, abro otra conversacion, da error y no dice que hubo error en el mismo chat". Reproduced from the user's `~/.gentle-dot/daemon.log` (error lines only): `12:17:05 assistant error: This operation was aborted`. Pi's `switch_session` aborts the active run (`agent-session-runtime.js` teardownCurrent → `session.abort()`); the bridge turned the aborted `message_end` into a generic error toast outside the chat. Also, `command get_history failed: Agent is not ready` repeats at every startup (history requested before the agent is ready). Both were added to T17 (same files: bridge.ts and UI).
+- **L35 (2026-10-08, T18 map + web verification):** MCP is a built-in pi-coding-agent 1.0.4 extension that reads `<agentDir>/mcp.json` only at `session_start` and stores OAuth in `mcp-auth.json` (keys `mcp__<ns>|<url>`, locked writes); new tokens are picked up on the next turn. Headless OAuth runs as a separate process (`pi mcp login <name>` with the assistant's agent dir and HOME), because `/mcp login` in RPC sends the URL as an info notice that the sanitizer hides. The assistant disables codemode, so each server needs `exposure: "direct"|"deferred"`. Approval is enforced by an extension loaded with `-e` that hooks `tool_call` (it can block, covers nested calls, and asks through `ctx.ui.confirm` → ask card). Pi documents agents running `pi mcp add` through bash, so the daemon must be the only writer of `mcp.json` and must validate it against the approved set (hash) before each start; `propose_connector` returns drafts only. Tool annotations are kept, so read-only means `readOnlyHint` AND a curated list (fail closed). Providers, from official docs on 2026-10-08: Notion `https://mcp.notion.com/mcp` (OAuth + PKCE); Linear's official remote server (OAuth 2.1 with dynamic client registration, or an API key); Atlassian Rovo `https://mcp.atlassian.com/v2/mcp` (OAuth 2.1, or an API token; the explorer's v1 URL was outdated); Slack's official hosted server requires a registered Slack app with client_id + client_secret; Gmail's official `https://gmailmcp.googleapis.com/mcp/v1` is in Developer Preview and needs the user's own Google Cloud project and consent screen; Discord has only community servers (bot token). The import map (S20) found configs for Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, OpenCode, and Gentle Shell on this Mac (key names only).
+- **L36 (2026-10-08, user decision):** Slack and Gmail: "Guía paso a paso ahora (Recomendado)" — each user creates their own Slack app or Google Cloud project with an in-app guide; no Gentle Dot-owned OAuth apps for now.
+- **L37 (2026-10-08, user):** "ah no puede atender mas de una conversacion a la vez?" The assistant answers one conversation at a time (one RPC agent process with one active session). An agent pool (one process per active conversation, capped at 3) was proposed with its costs; user: "dejemos uno solo por ahora". Decision: keep a single active conversation; no spec added.
+- **L38 (2026-10-08, user):** "por ahora entonces si es una sola sesion no pongas la capacidad de hacer nuevos chats, dejalo como esta pero ocultalo que sea un solo chat continuo te parece? mi unico miedo es que pasa cuando compacta mucchas veces y asi, si no sera mucho contexto". Evidence (pi-coding-agent docs/compaction.md:20-45, session-format.md "Context Building" and "CompactionEntry"): auto-compaction triggers when context > window - reserveTokens (16384) and keeps about 20k recent tokens plus the latest summary, so the model context stays bounded. Detail degrades with repeated summaries (Engram mitigates that), and the session file keeps every entry, so it grows forever on disk. Hence S22 rotation.
+- **L39 (2026-10-08, user):** "y que pasa con engram? veo que no usa el engram total puede ser ? el global qiuero decir, estaria bueno que use el global y que siempre escriba en un proyecto llamado gentle-dots" then "gentle-dot perdon". The parent found that Engram's Go code reads `ENGRAM_DATA_DIR` and `ENGRAM_PORT` and has `ENGRAM_PROJECT` with a `process_override` project source, and that the Pi plugin reads `ENGRAM_URL`, `ENGRAM_PORT`, and `ENGRAM_BIN`, with project override support unverified. T20 was launched in parallel with T17.
+- **L40 (2026-10-08, T17 evidence):** RED → GREEN in two batches (18 failing → 125/125; S21 10 failing → 136/136), plus two bridge races found and fixed: a send right after `new_conversation` was wiped by the late history (reproduced 5/5 with a Playwright WS capture, 4/4 after the fix), and stale history is re-read up to twice. Exceptions: no Playwright RED for the new e2e, and the gateway race test was written after the fix. Final: 227 tests, typecheck, e2e 12/12 in two consecutive runs; lint is green after the parent excluded `test-results` and `playwright-report` in biome.json. Decisions: the primary button text is `#1a1218` on `#f095c8` (8.60:1; white is 2.13:1, the site's `#f6eff3` 1.89:1); the daemon does abort-then-switch with a 10 s bounded wait; errors and stops appear inline (`message_done.error`/`stopped`) and the error toast was removed. Open: design.md §4/§6 still describe the old payloads and violet tokens; a residual race (a get_history requested before new_conversation arriving after the new history). The user's app was rebuilt and restarted with T17.
+- **L41 (2026-10-08, T20 decision):** The writer found that the Pi memory plugin has no per-client project override, and `ENGRAM_PROJECT` applies to the engram server process, so it would hijack every client of the global server. The supported per-directory override is `<workspace>/.engram/config.json` `{"project_name":"gentle-dot"}` (Engram detection step 0, source `config`). Parent decision: the agent's cwd is always the daemon-owned workspace that holds this config. A user-configured `workspace` becomes a preferred-folder instruction (an extra `--append-system-prompt`) instead of the cwd, so nothing is written into user folders and the project is always `gentle-dot`. Approved editing of the env-assertion block in `gateway.test.ts` (T17 finished).
+- **L42 (2026-10-08, T20 evidence):** The child gets `ENGRAM_DATA_DIR=<real ~/.engram>` (gentle-engram 0.3.0 accepts a server only when `<data dir>/.instance-id` matches `/health`, `index.ts:580-649`), and the user's `ENGRAM_URL`/`ENGRAM_PORT` are kept. The project comes from `<data>/workspace/.engram/config.json` `{"project_name":"gentle-dot"}` (Engram detection step 0). A custom workspace becomes `preferredFolder` (an extra `--append-system-prompt`, never the cwd, nothing written in it). `GENTLE_DOT_ENGRAM=private` keeps the old private mode. RED 9 → GREEN 49/49. Probe against a stand-in global server: observation saved under `gentle-dot`, HOME hash identical, no private `.engram` created. Parent follow-ups (`400ec73`): the identity now pins memory to project `gentle-dot` (an explicit `project` in mem_save would otherwise win), and the stale `GENTLE_DOT_WORKSPACE` was removed from the Dockerfile, entrypoint, and e2e serve (`sh -n` OK, e2e 12/12). Docker build not re-run because Docker Desktop is stopped. On the user's Mac: the app restarted, the old private Engram (PID 93883, `~/.gentle-dot/home/.engram`) was stopped by PID with nothing listening on 7438, and the global server resolves `~/.gentle-dot/workspace` to project `gentle-dot` (source config). Memories saved earlier in the private store were not migrated (test data from today; the DB file is left in place).
+- **L43 (2026-10-08, user):** "un item mas al final de todo, que haga como codex y que permitas controlar tu computadora, que pueda manejar tus aplicaciones y tal". Recorded as S24/T21, the last item, after T19, T18, and T14.
+- **L44 (2026-10-08, T19 evidence):** The UI hides conversations behind `ready.features.conversations` (default off; `GENTLE_DOT_CONVERSATIONS=1`), and the daemon refuses `new_conversation`/`open_conversation` with `conversations_off` when off. Rotation (`rotation.ts`) triggers on 20 MB or 10 compactions, only when idle. The handoff is a hand-written Pi v3 session file (header with `parentSession` plus one `custom_message`, `display:false`, `customType gentle-dot.handoff`) followed by `switch_session`, with a verification of `get_state` and `get_messages` and a `new_session` fallback; formats are copied from `session-manager.js` with paths cited. History now reads the session files (including pre-compaction messages) with 100-message pages, `hasEarlier`, and `get_earlier` across the chain persisted in `state.json`. Finding: Pi emits `message_end` on stdout before writing the entry to the file, so history reads do a `get_state` round trip first. The Stop pill is centered (inline-flex, no vertical padding; measured 7/8 px). Design §4/§6/§7/§9/§10 and the README were updated. RED → GREEN for protocol, UI, and the daemon module; e2e written after the code. 260 tests, typecheck, lint, e2e 14/14. Parent real-engine probe (bundled engine, temp HOME/data, private Engram on a temp port, stopped by PID): `switch_session` to the hand-written file returned `cancelled:false`, `get_state.sessionFile` equals the file, and `get_messages` holds one `custom` message of type `gentle-dot.handoff` with the probe text. Open: the tray still shows "New conversation" (apps/desktop follow-up); with the flag on, conversation switches combined with the chain are untested.
+- **L45 (2026-10-08, T18a finding):** The T18a writer found `rotation.test.ts` flaky in full runs (4/4 runs on a clean `git archive HEAD` copy, each time a different rotation test timing out; 3/3 in isolation). The likely cause is a T19 race in bridge.ts: when the prompt response and `agent_settled` arrive in one stdout chunk, `rotateWhenIdle` runs while `sending` is still 1, so rotation is skipped until the next run settles. In production this only delays rotation to the next run, but it is a real defect. Decision: fix in T18a, test first, with a single in-flight rotation flag and at least 3 full runs. The parent's two earlier green full runs were luck.
+- **L46 (2026-10-08, T18a evidence):** Commit `e49bd9d`. Catalog: Notion, Linear `https://mcp.linear.app/mcp` (verified), and Atlassian v2, with curated read-only lists (fail closed). The daemon is the only writer of `mcp.json` (`exposure: direct`, read-only mode as `toolExposure {"*":"hidden", curated:"direct"}`, validated with the engine's own `validateMcpServerConfig`), restored by hash in a new supervisor `prepareSpawn` hook before every spawn. The guard policy JSON travels in the engine env (`GENTLE_DOT_CONNECTOR_POLICY`); missing or malformed means everything asks. Sign-in runs the engine CLI `mcp login` as a child process; the daemon completes a pasted redirect only after validating origin, path, and state, and cancel kills the CLI by PID. The approval guard (`-e`, `tool_call` hook) asks with a preview and blocks writes to control files; the real-engine probe found and fixed a `/var` vs `/private/var` bypass (realpath compare). Tray "New conversation" only with conversations on. The L45 rotation race was fixed test-first (`rotationDeferred`, 14/14 ×3; the writer reported 6 green full runs). RED → GREEN per layer; e2e written after the code. Parent re-ran: 312 tests twice, typecheck, cargo 42/42. Risks reported: bash blocking is textual, the agent can read `mcp-auth.json`, separate sign-in queues for models and connectors, and the browser may open twice. Parent-observed UI defect: the onboarding banner overlaps the first chat message. Risk tier high (security) → an independent adversarial verifier is running.
+- **L47 (2026-10-08, T18a adversarial verification):** 2 BLOCKERS, reproduced with the real engine (scratch copy, fake model/MCP/CLI, temp HOME). B1: with one bash call from `<data>/workspace`, the agent edited `../agent/mcp.json` and `../connectors.json` (enabled, recomputed sha256 or deleted hash), ran `kill $PPID`, and the supervisor restarted it; `prepareSpawn` trusted the altered registry and `notion-search` ran without a card on a connector the user had disabled (catalog-only; sends still ask after the mode flip). B2: `read ../agent/mcp-auth.json` (the guard checks only write/edit) and `cat` returned the token to the model. Root cause: textual bash blocking (`approval-guard.ts:113-119`) and an integrity hash stored in the same agent-writable file. Passing: write asks/decline blocks/no UI blocks; read-only hides write tools; curated-list fail-closed; malformed policy asks; sign-in redirect validation against all variants; one flow at a time; clean logs; mcp.json valid and restored; rotation 3/3 at HEAD vs 2/3 failing at baseline; typecheck, lint, e2e 16/16, cargo 42/42. Advisories: gentle-pi subagent children do not load the guard (subagent tools not exposed today); project `.pi/mcp.json` and session_start re-reads bypass the restore; the preview shows at most 6 fields × 160 chars; orphaned private Engram; `fetch` follows redirects; the guard loads only with `agentHome`. Fundamental limit: the agent runs as the user with unrestricted bash, so file-based protections cannot be airtight.
+- **L48 (2026-10-08, user decision):** "A ahora, B después (Recomendado)". T22 hardens now (residual risk documented: an agent tricked into using unrestricted bash can still read what the user's account can read). T23/S25 adds the daemon-side MCP proxy with Keychain tokens as stage 2, before publishing to other users.
+- **L49 (2026-10-08, T22 finding):** The T22 writer found that `<data>/token` (the daemon access key) was readable by the agent. With it, the agent could open the WebSocket like a window and answer its own approval asks (`ui_response confirmed:true`), a self-approval bypass. T22 blocks reading it (best-effort, like the other file checks); a real fix is in S25's scope (the approval channel outside the agent's reach).
+- **L50 (2026-10-08, T22 finding + user decision):** The real-engine probe showed that the assistant's engine DOES offer `subagent_*` tools (and `orchestrator_*`). Children are spawned as `pi --mode rpc --tools <agent tools>` with only gentle-pi's internal child extensions, without the approval guard, and they inherit env, so a child's bash/read is unguarded and it could use connector tools without approval. Forwarding the guard to children has no supported hook. User: "Desactivar subagentes hasta S25". T22 sets `GENTLE_PI_AGENTS=0` in the engine env, with a probe assertion; S25 must cover children before subagents return. This narrows S3's "everything like Gentle Shell" until stage 2.
+- **L51 (2026-10-08, T22 evidence):** Commit `8651bba`. B1: connector state is in memory (loaded once), `prepareSpawn` renders from memory, the self-referential hash was removed, and changes to connectors.json/mcp.json are reverted while a `<workspace>/.pi/mcp.json` is removed (symlink-safe). The watcher uses fs.watch, a 1 s poll (macOS FSEvents missed early writes), a check before each spawn, and one after each settle; the UI shows "A change to your connectors was blocked.". B2: the guard blocks read/grep/find/ls/write/edit on auth.json, mcp-auth.json, models.json, mcp.json, connectors.json, `<data>/token`, and the guard file (realpath, dev:ino, case, `@`), and bash/powershell by basename after unquoting (documented best-effort). A3: full preview up to 8000 chars. A5: `redirect: manual`. A4: the private Engram is stopped by verified PID. A1: subagents disabled (`GENTLE_PI_AGENTS=0`; the probe asserts no `subagent_*`/`orchestrator_*`). The onboarding banner sits in the chat flow. Real-engine probe: before (base copy) notion-search ran with 0 cards and the files stayed altered; after, no MCP calls, files restored, notice shown. 328 tests ×3, typecheck, lint, e2e 17/17. Residuals documented for S25: edits while the daemon is down, edit-and-kill races, obfuscated bash, `presentText` normalizing whitespace in previews, A4 not exercised with a real Engram. The user's app was rebuilt and restarted with T22. Limited recheck running.
+- **L52 (2026-10-08, limited recheck + user decision):** The recheck was partial: the verifier's environment safety classifier blocked its own attack harness. Verified: the repo's real-engine probe of the original B1 attack passes (connector stays disabled, files restored, no MCP calls, notice shown); no `subagent_*` tools; 328 tests ×2, typecheck, lint, e2e 17/17. Not independently exercised: B1 variants (symlinked `.pi`, rename, python/node writers, the enforce→read race; code reading shows a second barrier, since the guard denies servers that are disabled in the in-memory policy) and B2 at runtime (covered only by the author's tests). The parent removed the scratch copies and confirmed that no probe Engram was left running. "Needs your decision" presented; user: "1" — accept T22 with the documented gaps and continue; S25 remains the real fix before any public release.
+- **L53 (2026-10-08, T18b evidence):** Commit `994abce`. Guided connectors: Discord via `@pasympa/[email protected]` (pinned; MIT, 18 releases, last 2026-09-03, readOnlyHint on its tools; the alternatives have not published since 2025), Slack official `https://mcp.slack.com/mcp` (no DCR; localhost redirect only with PKCE, so the client secret is optional), and Gmail official remote (Developer Preview) with the user's own app; each has an in-app guide, secret prompts, and a fail-closed curated list. Security finding: the engine resolves env/headers/`oauth.clientSecret` with `resolveConfigValue` (`!` runs a shell command, `$NAME` expands), so every typed or imported literal is escaped (`$`→`$$`, `!`→`$!`). S19: a `propose_connector` tool in the guard sends drafts through `ctx.ui.setStatus` (a namespaced key read only by the daemon); approval adds the server read-only with all tools hidden; at most 5 pending drafts, kept in memory only. S20: a read-only scan of 7 client formats (sse rejected, dedupe, names only in payloads, source hashes unchanged). Also coalesced burst restarts ("Agent is not ready"). RED: 27 failures plus a missing module → GREEN 362 tests ×2, typecheck, lint, e2e 18/18; T18b probe passed (the engine offers propose_connector; drafts and imports are accepted by `mcp list`; imported tools are hidden from the model; secrets are absent from scan payloads; the private Engram is stopped). Parent re-ran 362 tests + typecheck and reviewed the screenshots (import list with key names only; Slack guide). Risks: Slack and Gmail not tested end-to-end (no credentials; Gmail needs the Developer Preview), masking is heuristic, env refs in imported args are copied literally, and the S25 residual now includes a custom command server injected while the daemon is down. Risk tier high → independent verifier (code review + repo probes) running.
+- **L54 (2026-10-08, T18b verification):** No path found where a value runs a command or expands a variable, or where a connector is added without approval. Escaping covers exactly what the engine resolves (env, headers, `oauth.clientSecret`; `command`/`args`/`cwd`/`url` are not resolved), verified in the real mcp.json (`dummy-token-$!x` → `dummy-token-$$$!x`). Drafts pass (state changes only through a window's `connector_draft_reply`; approved servers are hidden and read-only; max 5). Import passes (read-only, 7 formats, sse rejected; the isolated HOME means `~`-relative credentials are not found). Guided connectors pass (pinned Discord; Slack/Gmail oauth fields valid; the guide's redirect equals the engine's `redirect_uri`). T22 protections are intact. Runs: 362 tests ×2, typecheck, lint, e2e 18/18, both probes. BLOCKER B1: `summarize()` (`connectors.ts:1434-1450`) leaks credentials inside imported args to the `connector_imports` and `list()` payloads (`--header "Authorization: Bearer …"`, URL query keys, userinfo in connection strings, tokens in URL paths); local authenticated windows only, not the model or logs. Advisories: `${input:}` in draft args or URL puts secrets in argv or a model-chosen URL; Gentle Shell `!command` imports run commands without a visible note; the S25 residual includes a custom command server injected while the daemon is down (medium; not blocking before S25); Gmail's `gmail.compose` scope can send; unpinned transitive Discord deps; minor UI and dedupe issues; the self-approval risk via the daemon token (S25). The parent cleaned the scratch dirs. One correction batch is running (B1 + advisories A–E).
+- **L55 (2026-10-08, T18b correction + recheck):** Commit `63c8e9c`. B1: `summarize()` masks structurally (URL userinfo dropped, query values masked, long opaque path segments masked, `--header`/`-H` and auth-like header values masked, values after secret-like flags masked, prefix masks kept). Advisories: A, `draftSecretProblem` in the guard (the model gets "Secrets can only go into environment variables.") plus `parseDraft` as a second layer; B, notes for values that run a command or read an env var (never showing the command text); C, accurate Gmail/Slack/Discord copy; D, UI drafts capped at 5 and cleared on `ready`; E, an S25 bullet for custom/imported servers edited while the daemon is down. RED 9 → GREEN; 370 tests ×2, typecheck, lint, e2e 18/18. Parent limited recheck of B1: the five verifier cases (mcp-remote `--header Authorization: Bearer`, `?api_key=`, `postgresql://user:pass@`, a token in the URL path, `--api-key`) produced summaries without the secret while keeping command, host, path, and `--port 8080`; the full suite passed again. Known over-masking (flags containing key or pass). T18 complete.
+- **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.
+- **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`.
+- **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.
+- **L62 (2026-10-08):** T21a done (`176f547`): ScreenCaptureKit capture excluding our pid's windows, JPEG ≤1280 px, NSAlert dialogs via tauri-plugin-dialog; clippy clean; `macos.rs` not yet run on a real Mac. Seam check found that the engine's MCP client cuts a call after 30 s (`pi-mcp` client.js:3) while the helper blocks on native dialogs; Pi reads a per-server `timeout` in seconds (`pi-coding-agent` mcp/runtime.js:160), so the built-in entry now renders `timeout: 300` (RED observed, GREEN 400 passed; `3ebfe5c`). Independent verifier launched on 85bd25d..3ebfe5c.
+- **L63 (2026-10-08):** independent verifier on 85bd25d..3ebfe5c: all checks green (400 TS, 145 Rust, clippy, typecheck, lint); S24.2, S24.3, S24.5–S24.7 PASS; S24.4 FAIL with B1 (pointer owner resolved to the WindowServer cursor window, blocklist bypass) and B2 (same-point drag skips risky confirmation); critical R1 (daemon spawned without TCC responsibility disclaim, so the agent's bash likely inherits the app's grants, contradicting S24.1). One correction batch launched: B1, B2, R1 (posix_spawn with `responsibility_spawnattrs_setdisclaim`), and advisories A1 (space on send-like button), A2 (control characters), A4 (system dialog blocklist + focused-element pid), A5 (fresh screenshot per session), A6 (rename a saved `computer` connector instead of dropping it). Recheck limited to those items.
+- **L64 (2026-10-08):** correction batch `3e29886` (B1, B2, R1 disclaim via posix_spawn, A1, A2, A4, A5, A6). Recheck: B1, B2, A1, A2, A4, A5, A6 FIXED; R1 correct in code (the child is its own responsible process), real-Mac confirmation pending. New advisories closed inline by the parent: N1 (`type` refuses a space or newline after a tab, since the focus may have moved onto a send button) and N2 (Unicode line/paragraph separators and C1 controls refused); RED 2 failing → GREEN, cargo test 169/169, clippy clean.
+- **L65 (2026-10-08, user, real-Mac run):** screenshot of the panel toast "A change to your connectors was blocked." right after the app started. Reproduced: daemon.log showed "the desktop app registered computer control" then, 34 ms later, "put back …/connectors.json". Root cause: `enforce()` treated a missing file as untouched only with no saved connector and no computer helper, for both files, so on an install with no saved connector the registration made the missing record count as tampering. Fix `d099a89`: each file is judged by what it would hold (RED reproduced the exact log line; GREEN 402 passed; the key-leak test no longer assumes the record exists). App restarted: registration logs no revert. Note: the registration restarts the engine during startup and logs one "agent failed to start: Agent is not ready; retrying", which recovers to idle.
+- **L66 (2026-10-08, user):** real-Mac run: "anda muy bien pero lento, bastante lento". Measured from the engine session: the model takes 5–9 s per step and the helper 0.8–1 s per action (300 ms settle + capture + JPEG in an unoptimized debug build); mentioning five people took ten round trips (~70 s); one `type` with an emoji took 18 s. Proposed batch, faster helper, lighter screenshots; user: "hagamos todas si". Recorded as S24.8/T24.
+- **L67 (2026-10-08, user):** "y mete un modo yolo". Asked what it skips and how it turns on; answers: "Solo las confirmaciones (recomendado)", "Interruptor, se apaga solo (recomendado)". Recorded as S24.9, added to T24.
+- **L68 (2026-10-08, user):** "ah y pon un ocultar la rosa, que la puedas abrir bajo demanda y un full screen para el chat cuando quieras". Checked: the shortcut and tray "Open" already open the panel without the rose (`shell.rs:280,397`). Recorded as S26/T25, queued after T24 because both edit shell.rs and packages/ui.
+- **L69 (2026-10-08, user):** "y se le puede poner su propio mouse? en vez de utilizar el mio?". Answered: macOS has one cursor per session; recommended Accessibility actions first, keyboard to an app, real mouse with cursor restore as the last resort, and a visible ghost pointer; a separate cursor needs a VM.
+- **L70 (2026-10-08, user):** "que sea como un glow rosa". Recorded as S27/T26 with the ghost pointer as a pink glow, queued after T25.
+- **L71 (2026-10-08, user):** "no no no lo pongas lo del segundo mouse no te preocupes". S27/T26 dropped, the pink glow included; nothing was implemented.
+- **L72 (2026-10-08, user):** "lo del glow rosa si eso si para saber que esta haciendo el agente y solo mientras este interactuando". The glow alone is back as S28/T27, queued after T25.
+- **L73 (2026-10-08):** T24 done (`952830e`): batch through one per-step `perform` path with pacing instead of refusal and 100 ms between steps; SETTLE 150 ms; JPEG 65 (synthetic UI 254,592 → 211,264 bytes); dev profile opt-level 3 for image/zune and 1 for the app crate (JPEG encode 200 → 40 ms, accepted by the parent: the generic encoder monomorphizes in our crate); yolo in memory, native confirm, 1 h expiry, tray item and UI switch. The 18 s `type` is not the helper's doing (two chunks + 150 ms settle, pinned by a test); likely a native confirmation or the model. Open: Stop and panic end the session but leave yolo on. Independent verifier on 8e99e7a..952830e and the T25 writer launched in parallel.
+- **L74 (2026-10-08, user):** "si y si" to: the panic shortcut also turns yolo off (recommended), and removing the verifier scratch dirs. Panic now ends yolo with or without a session; Stop leaves it on (RED → GREEN, cargo test 195/195; the old test pinning the previous rule was updated). Removed $TMPDIR/tmp.WlsFPGwLSP (13 GB), tmp.I3NLBN7JIb, tmp.49ULuteyHt.
+- **L75 (2026-10-08):** independent verifier on 8e99e7a..952830e (detached worktree copy): cargo test 193, clippy clean, pnpm test 407, typecheck, lint, 9/9 probes; S24.8a–c and S24.9 PASS, S24.8d partial (the 18 s needs a real-Mac look); no blockers. Advisories kept for later: A1 100 ms between batch steps narrows the post-tab focus re-read window (check with slow/Electron apps); A2 the yolo and grant dialogs default to the affirmative button; A3 a Stop right after yolo expiry can report a stale yolo for up to 1 s; A4 a batch with many confirmations can outlast the engine's 300 s timeout; A5 `wait` with a risky intent asks nothing (baseline). Scratch removed.
+- **L76 (2026-10-08):** T25 done (`8b274ed`): `rose_hidden` in desktop.json, tray item toggling "Hide the rose"/"Show the rose", header buttons, panel placement without the Dot (last spot on the current display, else right edge), full screen to the work area with restore, ⌘⇧F, Esc precedence (handled → restore full screen → hide). Risk tier medium (window behavior covered by tests; no high-risk item), so no separate verifier. Gaps: the tray icon does not show in-control (the panel banner and the yolo tray check do); real-Mac checks pending (set_size on the non-resizable panel, mixed-scale displays). T27 launched with the explicit constraint that pointer-owner resolution must skip the overlay window.
+- **L77 (2026-10-08):** T27 done (`f01dfdf`): marks after each successful `post`, a click-through `glow` window (level 102, all Spaces, orderFrontRegardless/orderOut), owner resolution skips only the overlay's window number, the AX hit test re-runs inside the owning app when it lands on the overlay, a `glow` capability with listen/unlisten only, reduced motion static. Verifier launched on a2fbc65..f01dfdf; app bundle rebuilt for a real-Mac round of T24, T25, T27.
+- **L78 (2026-10-08):** independent verifier on a2fbc65..f01dfdf: cargo test 217, clippy, pnpm test 426, typecheck, lint, 11/11 probes; owner resolution, element re-hit-test, marks, overlay/capabilities, and UI PASS; no blockers. A1 (an empty `type` marked a glow without input) fixed inline: RED → GREEN, cargo test 218, clippy clean. Advisories kept: A2 reduced motion read once at mount; A3 an unresponsive app under the overlay yields an empty AX chain (same as baseline for hung apps); A4 out-of-lock state reports can reorder grant/end (baseline); A5 `?surface=glow` on the web is a blank page. App rebuilt and restarted for the real-Mac round (permissions must be granted again after a rebuild).
+- **L79 (2026-10-09, user):** "anda increible!! ahora lo unico que te falta... es hacerle un instalador a la app" (after a real-Mac run where Gentle Dot controlled Ghostty and typed into this session). The yolo mark became an amber rim (`28049af`, user: "y cambialo por mas integrado"). Checked: no codesigning identity ("0 valid identities found"); the app embeds build-machine Node, daemon script, and PATH; Engram is the user's own binary.
+- **L80 (2026-10-09, user):** installer for "Solo para mí y gente de confianza", platforms "macOS y Linux". Recorded as S29/T28; read-only map launched.
+- **L81 (2026-10-09):** T28 map (explorer without web; parent re-checked): ship a full Node 24 distribution (first run does `npm install --prefix <agentDir>/npm`; Discord uses `npx`); SEA and bun compile do not fit (the daemon re-executes `process.execPath` with gentle-shell.mjs and the pi CLI; gentle-pi loads extensions/skills from disk via jiti); per-platform dependency installs (ffi-rs N-API, fff-bin, the `gentle-ai` Go binary from gentle-pi's postinstall with mode 0700); the pnpm `.bin/pi` shim is not relocatable; Engram ships as a fallback binary (MIT, goreleaser darwin/linux amd64/arm64). Verified on the web: macOS 15 removed the Control-click Gatekeeper override (developer.apple.com/news/?id=saqachfa); a persistent self-signed identity keeps TCC grants across updates while ad-hoc does not (github.com/duongductrong/Snapzy docs/SELF_SIGNED_CERT.md). Plan as T28a–T28g with the S29.5 layout as the contract; T28a and T28b launched in parallel. Risks: the engine writing into a read-only package tree, first-run network dependence, Engram version skew on ~/.engram, amd64 under emulation.
+- **L82 (2026-10-09):** T28a done (`84a38a4`). T28b done: `build:runtime` (esbuild ESM bundle of daemon + protocol, engine external, lockfile-exact `package.json`, relocatable `bin/pi`), runtime-mode UI/engine/pi paths, Engram resolution passed as `ENGRAM_BIN`, `--self-check`; smoke: `bin/pi --version` → 1.0.4 from a hand-built runtime. Advisory: the login-shell lookup for Engram runs synchronously with a 5 s timeout at daemon start. T28c launched; its smoke must use a private Engram on a temp port so it never touches the user's 7437 server or ~/.engram.
+- **L83 (2026-10-09):** T28c done: `pnpm package:runtime --target darwin-arm64` stages 346.4 MB (408 MB on disk: daemon/node_modules ~267 MB, Node ~128 MB, Engram 20 MB) in 11 s with cache; Node 24.14.1 and Engram 3.2.1 (latest release; the user's is a dev pseudo-version) checksum-verified; refuses non-host targets. Clean-HOME smoke (`scripts/package/smoke-runtime.mjs`): idle in 23.1 s, private Engram on a temp port from `<rt>/bin/engram`, first-run npm install of the companions, 0 runtime files changed. Read-only smoke: idle, 0 changes, no EACCES/EPERM (risk R1 cleared). Fix: the engine gets a private TMPDIR when none is set (jiti cached in shared /tmp/jiti). Notes for later: transitive deps resolved by npm at staging; `.nvmrc` says only "24"; the engine log says "Gentle AI sends anonymous usage metrics" (privacy/white-label to review); size trims possible (esbuild ~21 MB, @shikijs/cli 17.6 MB). Scratch removed.
+- **L84 (2026-10-09):** T28d done (`546aa92`): `pnpm package:mac` → `Gentle Dot_0.1.0_aarch64.dmg` 111.2 MB (app 368 MiB); runtime injected with `tauri build --config` (a resource in tauri.macos.conf.json would be copied on every cargo build and fail without a staged runtime); nested Mach-O signed inside-out except `gentle-ai`, whose sha256 gentle-pi checks; codesign --verify --deep --strict valid; mounted-DMG copy smoke idle in 23.1 s and read-only smoke ok, 0 runtime changes; ad-hoc DR changed between builds (57c5… → 43e0…). Biome now ignores `build/` and `.cache/`. Quarantine/Gatekeeper on a downloaded DMG still needs a real second Mac. User consented to T28e ("Sí, crealo"): identity "Gentle Dot Local Signing" created in the login keychain; the trust step was not needed (codesign signs with the untrusted identity and the DR reads `certificate leaf = H"4611e0a8…"`), so the script skips it. Two signed builds running to compare the DR.
+- **L85 (2026-10-09):** T28e proven: two release builds signed with "Gentle Dot Local Signing" both have `designated => identifier "dev.gentleman.gentle-dot" and certificate leaf = H"4611e0a8b9c71afb97cafdbf79dccf4816d80e6b"`, codesign verify ok, DMG 116,354,516 bytes. The user saw many keychain prompts on the first signed run (each of 8 nested signatures asks); fixed by "Permitir siempre" once. User (screenshot, the assistant saying its memory search is limited to Gentle Dot): "porque esto? si tiene access a la memoria global?". Cause: `identity.md` also scoped searches to `gentle-dot`, beyond S23's "siempre escriba". Fixed: save to gentle-dot, search with `all_projects: true` (RED 2 failing → GREEN, pnpm test 478).
+- **L86 (2026-10-09, user):** "te pido una cosa mas?... posibilidad de audio a chat, cosa que puedas \"hablar\" con el agente, y que esto use la sub o api que ya tenes conectada"; choices "Conversación por voz", "Botón de micrófono". App restarted so the engine took the memory-recall identity (verified in ~/.gentle-dot/identity.md). Recorded as S30/T29; read-only map launched (which connected accounts can transcribe/speak; fallbacks; mic in WKWebView).
+- **L87 (2026-10-09):** T28f done: `pnpm package:linux --arch arm64|amd64` → gentle-dot_0.1.0_arm64.deb 116.1 MB (38 s cached), gentle-dot_0.1.0_amd64.deb 119.1 MB and gentle-dot-0.1.0-1-x86_64.pkg.tar.zst 107.5 MB (emulated, 2 min 20 s); `pnpm package:linux:check` passed in clean debian:bookworm and ubuntu:24.04 (both arches) and archlinux (x86_64): daemon smoke over the root-owned tree, read-only smoke, and an Xvfb launch of /usr/bin/gentle-dot to /health idle (18–23 s native, 40–58 s emulated), 0 runtime files changed, GLIBC_2.34 max. pacman needed DisableSandbox under emulation. No Arch aarch64 (no official image). Docker images (gentle-dot-linux-builder:arm64/amd64, gentle-dot-arch-builder) and cache volumes kept for rebuilds. T28g done: docs/install.md Linux section and the signing identity note; root scripts package:mac, package:linux, package:linux:check. Pending real-hardware checks: a downloaded DMG on a second Mac (quarantine, Open Anyway), real x86_64 and GNOME/Hyprland desktops.
+- **L88 (2026-10-09):** T29 map: one connected account, OpenAI "Sign in with ChatGPT" OAuth (`auth.json` provider ids only, no secrets read); pi-ai 1.0.4 has no audio input or transcription; Info.plist lacks NSMicrophoneUsageDescription; WS messages cap at 1 MiB. Verified on the web: Sign in with ChatGPT does not support the transcription API or audio input (OpenAI SIWC preview limitations); Codex CLI removed its voice transcription (openai/codex PR #16114). User choice: "Voz de macOS, y API key si la conectas (recomendado)". S30 refined into S30.1–S30.4; contract: Tauri commands `voice_status` → `{available, reason?}`, `voice_start`, `voice_stop` → `{text}`, `voice_cancel`; events `voice://partial {text}`, `voice://level {level 0..1}`, `voice://error {message}`; WS `voice_transcribe {mime, data(base64)}` → `voice_transcript {text}` or error `voice_unavailable`; `voice_speak {text}` → `voice_speech {mime, data}`; capabilities `voice: {transcribe, speak}` in the ready/accounts payload. T29a and T29b launched in parallel.
+- **L89 (2026-10-09, user):** "lo del certificado es algo inseguro para mi? porque sino la cuenta apple te pido ser develor por 99 al año, tambien, no seria mejor sino tener un modelo de ia local chiquito? Parakeet es muy muy bueno"; then "pero que sea opcional para descargarlo si solo quiere". Verified: Parakeet TDT 0.6B v3 covers 25 European languages incl. Spanish (Hugging Face, NVIDIA NIM matrix); sherpa-onnx has an official Rust Parakeet example; FluidAudio offers a CoreML build (~110× real time on Apple Silicon). Recorded as S30.5/T29c after T29a; T29a told to keep a pluggable backend over native PCM capture.
+- **L90 (2026-10-09):** incident: commit `70c3f69` wrote back a 50 KB-truncated read of this document (log L12–L87 lost from HEAD, reported by both T29 writers). Restored from `70e5498` and the S30/L88/L89 changes reapplied with a full-file edit; lesson: never rewrite this document from a paged read.
+- **Next step:** T29a/T29b, then T29c; grant both permissions, take a screenshot (the Dot must be absent), click and type in a harmless app, a risky "Send" confirmation, ⌥⇧Esc panic, a blocked app (System Settings), and `screencapture -x /tmp/t.png` from the agent's bash must fail (R1); the community tester runs docs/linux-testing.md when the user shares it; T23/S25 before any public release.