A personal assistant that lives on your desktop, remembers what matters, and can use your Mac for you.
TypeScript
docs(odd): record the T23c verification and the B2 fix (L114)
Alan Buscaglia4f865145d254
diff --git a/odd/tasks/gentle-dot.md b/odd/tasks/gentle-dot.mdindex dd1194e..5424e1e 100644--- a/odd/tasks/gentle-dot.md+++ b/odd/tasks/gentle-dot.md@@ -194,8 +194,8 @@ Branch: `feat/gentle-dot` · Delivery strategy: `single-pr` (user choice, L7; fo| T33 | S33 | delegated writer (context backstop; Rust + UI) | done (real Mac pending) | `2d1f5e4`; RED 51 compile errors + UI import → GREEN; cargo test 314, pnpm test 609 | Settings screen with a recordable, live-applied shortcut || T34 | S30.6 | delegated writer (Rust, `apps/desktop/src-tauri/src/voice/**`), parallel with the S25 map | in progress | — | Apple Speech fed with native buffers || T23a | S25.4 | delegated writer (daemon proxy), parallel with T23b | done (verified, no blockers) | `6016b43`; RED 14+8 failing → GREEN; mutation check; pnpm test 636 | MCP proxy in the daemon: list/call filtering, hidden-tool refusal, resources, upstream HTTP and stdio |-| T23b | S25.5 (app side), S25.3 (dialogs) | delegated writer (Rust), parallel with T23a | B1 fixed in `8ac11aa` (recheck running) | `1c345b5`; RED 22 failing → GREEN; 2 mutation checks; cargo test 348 | Keychain store and native approval dialog in the app |-| T23c | S25.1–S25.3 | delegated writer (Rust + TS), parallel with the T23a/b verifier | done (verify running; real Mac pending) | `8ac11aa`; RED across protocol, daemon, Rust, UI → GREEN; 4 mutation checks; pnpm test 658, cargo test 366 | Private app channel (socketpair on fd 3); privileged actions and native approvals only through it |+| T23b | S25.5 (app side), S25.3 (dialogs) | delegated writer (Rust), parallel with T23a | done (B1 fixed in `8ac11aa`, rechecked PASS) | `1c345b5`; RED 22 failing → GREEN; 2 mutation checks; cargo test 348 | Keychain store and native approval dialog in the app |+| T23c | S25.1–S25.3 | delegated writer (Rust + TS), parallel with the T23a/b verifier | done (verified; B2 fixed `4d1eafb`; real Mac pending) | `8ac11aa`; RED across protocol, daemon, Rust, UI → GREEN; 4 mutation checks; pnpm test 658, cargo test 366 | Private app channel (socketpair on fd 3); privileged actions and native approvals only through it || T23d | S25.5 (daemon side) | after T23c | pending | — | OAuth in the daemon with the app-backed store; migration from files || T23e | S25.6 | after T23d | pending | — | connectors.json HMAC || T23f | S25.4 (subagents) | after T23c | pending | — | Enable subagents again behind the proxy; real-engine probe |@@ -313,6 +313,7 @@ Environment notes: Node v24.14.1 and pnpm are present. `cargo` is on PATH but `r- **L102 (2026-10-09, user):** "bien pero, mientras estoy hablando no me aparece lo que se va enviar como cuando uso el bui† in de mac" — Parakeet transcribes correctly with our capture, so the earlier garbage came from Apple Speech with our converted 16 kHz audio (open: feed Apple the device's native buffers). Live text with the local model (`e027b19`): the recording so far (last 30 s at most) is decoded again every 0.8 s of new audio, skipping when the model is still loading or a decode runs (never blocking the audio thread), serialized with the final decode, and never shown after stop/cancel; RED (compile) → GREEN, cargo test 296. The Voice chip now names the engine ("Offline", "macOS", "Off"; `1396457`). Rebuilt, signed, restarted (also applies the model-chip fix `7ab0c0a`).- **L103 (2026-10-09, user):** "estaria bueno que si pongo el boton de grabar de nuevo en vez de enviarlo, que se quede escrito en el input para confirmarlo, como se comporta ahora estaria bueno que sea una opcion que uno elijiese". S30.4 updated: review in the input is the default; "Send when I stop" (switch in the recording strip, stored in localStorage) keeps send-on-stop; the mic button reads "Stop and review" or "Stop and send". `e0010eb`: RED 3 failing → GREEN, pnpm test 593 (the earlier tests now cover the option). Rebuilt, signed, restarted.- **L104 (2026-10-09, user):** "sube todo esto al repo y fijate el readme de gentle ai como es para copiar el estilo y hacer el propio para Gentle Dot"; choices "Gentleman-Programming/gentle-dot, público" and "main + feat/gentle-dot, y abro el PR (recomendado)"; then "usa la rosa con glow como banner". TruffleHog over the whole history: no verified secrets (unverified hits are masking-test fixtures). README rewritten in Gentle-AI's layout with an honest Security status; banner and divider rendered from the Dot's own rose strokes and glow (`docs/brand/tools/build-banner.mjs`); MIT LICENSE as in Gentle-AI. Created the public repo github.com/Gentleman-Programming/gentle-dot, `main` at the first commit `5ec596c`, pushed `feat/gentle-dot` (153 commits, 286 files, +57,416), and opened PR #1 (single-pr). Merge is the user's decision.+- **L114 (2026-10-09):** Independent verifier on 03c5994..8ac11aa: pnpm test 658, cargo test 366, clippy, typecheck, lint; B1 recheck PASS (only the Allow response allows; refuse, abort, stop, cancel, unknown, main-thread call, or failure refuses; the plugin path maps Escape, close, and failure to the refusing label), A2 PASS, channel authentication PASS (10 privileged commands over the WebSocket, including a spoofed clientId, return `app_required` with connectors.json, mcp.json, the proxy's tools/list, and the engine pid unchanged), channel integrity PASS (no listening Unix socket; fd 3 reaches no child: engine, `mcp login`, bash, detached, shell, exec, spawnSync, pi-mcp StdioTransport; frames over 1 MiB close the channel and the WebSocket keeps working), approvals PASS except blocker B2: the import re-read the latest scan after the native answer, so a scan sent while the dialog was open swapped the imported server (reproduced: the dialog showed the filesystem server, `connectors.json` got `/bin/sh -c "echo pwned"`). Fixed inline (`4d1eafb`): `importPlan` freezes a copy of the chosen servers at confirmation and the import uses it; RED reproduced the swap → GREEN, pnpm test 659. Advisories: N1 a legacy `mcp-auth.json` planted after migration adds sign-ins for connectors the daemon lacks (T23d/T23e close it); N2 a 0-byte current `mcp-auth.json` blocks migration; N3 an aborted approval leaves its native dialog open up to 120 s, queuing later ones; N4 anyone launching the daemon with their own socketpair on fd 3 becomes "the app" (by design; T23d/T23e); N5 a malformed `computer_register` over the WebSocket answers `bad_message` instead of `app_required` (still refused). User: "actualiza TODO" (todo list rebuilt). App rebuilt, signed, restarted: the daemon holds fd 3 as a Unix socket connected to the app and the computer helper registered over the channel.- **L113 (2026-10-09):** T23c done (`8ac11aa`): socketpair end passed as fd 3 (`channel_pair` with CLOEXEC, posix_spawn adddup2 / Linux pre_exec), `AppChannel` (line-delimited JSON), `childInherits` startup probe (on macOS Node 24's libuv spawns children with POSIX_SPAWN_CLOEXEC_DEFAULT, so fd 3 does not reach them); privileged actions over the WebSocket answer `app_required` ("Open the Gentle Dot app to change connectors."); the panel sends them with the Tauri command `connector_command`; proxy approvals and widening changes are confirmed in native dialogs from a worker thread; WebSocket ask cards are informational; the computer helper registers over the channel and unregisters when it closes (closes the L61 risk). B1 fixed: NSAlert directly on macOS, allow only on `NSAlertSecondButtonReturn`, everything else refuses; off macOS `OkCancelCustom(allow, refuse)` so cancel or failure maps to the refusing label. A2 fixed: legacy sign-ins migrate whenever the old file exists, keeping the daemon's own. Open: engine-own asks for servers the proxy does not cover stay answerable over the WebSocket; Linux fd inheritance unverified; NSAlert behavior needs a real Mac. Independent verifier (T23c + B1/A2 recheck) launched. The running app is an older build: rebuild only after the verifier, since a new daemon with an old app would refuse connector changes.- **L112 (2026-10-09):** Independent verifier on 7cde26d..6016b43 (detached worktree): pnpm test 636, cargo test 348, clippy, typecheck, lint; T23a PASS on auth, policy (case, unicode lookalike, NUL, ZWSP, prefixed names, late-listed tools, same name across connectors), approvals (one ask, full arguments, late approval never forwarded), secrets (no token, env, command, or upstream URL in the engine's mcp.json; failing `!cmd` leaks nothing), migration, regression. T23b FAIL, blocker B1: `alert.rs` passes `OkCancelCustom(refuse, allow)` and tauri-plugin-dialog 2.8.1 maps rfd's `Cancel` (Escape-like responses, display or channel failure on macOS's CFUserNotification path; Escape or close on GTK) to `Custom(<second label>)`, the allow label, so cancelling or failing allowed computer grants, risky confirmations, yolo, and approvals (the baseline refused). The user's running build predates `1c345b5`. Fix assigned to the T23c writer: show NSAlert directly on macOS (Refuse first with Return and Escape, allow only on the Allow response), failures refuse elsewhere. Advisories: A1 a daemon ask survives the window closing and the next window can answer it (T23c's native path replaces it); A2 the migration skips when the sign-in home exists, so a partial failure strands legacy tokens (fix assigned to T23c); A3 modes are not re-imposed after a chmod; A4 `cat ../connector-signin/*` passes the best-effort bash check (same class as baseline); A5 `storedSignIn` reads the token from disk each request; A6 the WS preview is rewritten by `presentText`, and the native dialog clips values at 600 characters or 12 lines with a marker; A7 concurrent requests with the same JSON-RPC id share a slot.- **L111 (2026-10-09):** T23a done (`6016b43`): `mcp-proxy.ts` (Bearer per engine launch, Origin check, JSON-RPC over POST, mode filtering of tools/resources/prompts, hidden-tool refusal, one approval with the full preview before sending, upstream via pi-mcp HTTP or daemon-run stdio), engine `mcp.json` with proxy entries only, sign-in in `<data>/connector-signin` (0700/0600, protected, put back, one-time verified migration), guard `policy.proxied`. The user's install has no legacy `mcp-auth.json` and an empty `connectors.json`, so the migration is a no-op there. Design change for S25.1 by the parent: instead of a key, the app passes one end of a Unix socketpair as fd 3 when it spawns the daemon; the connection itself authenticates, with no key to steal and no listening socket to impersonate. Independent verifier on 7cde26d..6016b43 and the T23c writer launched in parallel.