Skip to content

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

TypeScript

docs(odd): record the community triage and plan S35 (L121)

Alan Buscaglia30d532c04db2
diff --git a/odd/tasks/gentle-dot.md b/odd/tasks/gentle-dot.md
index d638096..2b6551b 100644
--- a/odd/tasks/gentle-dot.md
+++ b/odd/tasks/gentle-dot.md
@@ -145,6 +145,13 @@ Branch: `feat/gentle-dot` · Delivery strategy: `single-pr` (user choice, L7; fo
- **S33.2 Record a shortcut.** "Change" starts recording: the user presses a combination, shown with macOS symbols on macOS (⌘ ⌥ ⌃ ⇧) and names elsewhere; Esc cancels recording without hiding the panel; a combination needs ⌘, ⌥, or ⌃ unless it is a function key (L107: Shift alone would capture typing); the computer-control panic shortcut ⌥⇧Esc and combinations the system or another app already holds are refused with a clear reason. "Reset to default" restores ⌥ Space.
- **S33.3 Applies at once and persists.** The app registers the new shortcut and unregisters the old one immediately (no restart), keeps the old one if the new one cannot be registered, saves it to `config.json` preserving every other key (private mode), and updates the tray's "Open" item.
+- **S35 — Community bug fixes by root cause (L121).** User: "2" (triage the public repo's issues and PRs first, fix the bugs we caused, and review PRs for the user to decide). Fix at the root, one fix per cluster, each issue closed against named tests:
+ - **S35.1 Immutable bundle (#8, #28).** Loading gentle-pi's NaN provider through jiti writes a transpile cache into the nearest `node_modules/.cache`, inside the signed app bundle; the daemon must write nothing inside the runtime tree.
+ - **S35.2 The daemon lives as long as its app (#22).** A daemon launched with an app channel stops when that channel closes, so a relaunched app always starts a daemon with a channel instead of attaching to an orphan with connectors locked; a locked state names its exit.
+ - **S35.3 The engine owns its home on first start (#13).** A fresh default `agentHome` is not taken by gentle-shell as a foreign home because the daemon wrote files there first, so the engine's first-run setup (companion packages) runs on a clean install, and installs already stuck recover.
+ - **S35.4 The composer keeps what was not sent (#21).** A message the client could not send (disconnected) keeps its text and attachments.
+ - **S35.5 Voice (#10, #25).** A macOS audio configuration change while the engine runs is not an interruption; the mic re-checks voice status when the local model is installed or removed.
+
## Tasks
| ID | Specs | Route | Status | Commit / evidence | Scope |
@@ -201,6 +208,10 @@ Branch: `feat/gentle-dot` · Delivery strategy: `single-pr` (user choice, L7; fo
| T23f | S25.4 (subagents) | after T23c | pending | — | Enable subagents again behind the proxy; real-engine probe |
| T23g | S25.7 | after T23d | pending | — | Linux: Secret Service store and documented limit |
| T23h | S25.8 | after T23c | pending | — | VPS: engine as another OS user, encrypted secrets, PIN approvals |
+| T35 | S35.1 | inline | in progress | — | No jiti cache inside the bundle |
+| T36 | S35.2, S35.3 | delegated writer (daemon + Rust daemon spawn), parallel with T37/T38 | in progress | — | Daemon lifetime and engine home ownership |
+| T37 | S35.4, S35.5 (#25) | delegated writer (UI), parallel | in progress | — | Composer send result; voice re-check |
+| T38 | S35.5 (#10) | delegated writer (Rust voice), parallel | in progress | — | Configuration change is not an interruption |
| 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 (delegated, read-only) → spec → implement (stage 2) | in progress | map L109; units T23a–T23h | 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 |
@@ -313,6 +324,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.
+- **L121 (2026-10-10, user):** "2" (community triage first), then "lo de gentle shell no lo toques no te preocupes, solo mira lo de gentle dot" (the gentle-shell reports the user forwarded were dropped: triage cancelled, its scratch removed, the gentle-pi checkout untouched). gentle-dot triage (read-only explorer over a dump of all 19 open issues and 17 PRs, against HEAD 3cc71f8): buckets A 2 (#11 superseded by c6d7c6f, #15 already fixed), B 1 (#28 duplicate of #8), C 8 (#6, #8, #10, #13, #21, #22, #24, #25), D 7 (#4, #9, #17, #19, #29, #31, #32), E 1 (#7: not reproducible from code; ask the reporter). Clusters: C1 immutable bundle (#8/#28: `createJiti` default fsCache, auth.ts:68-69), C2 daemon lifetime (#22: daemon.ts:269-276 keeps running after its channel closes; daemon.rs attaches without a channel), C3 engine home ownership (#13: gentle-shell treats a non-empty home without `.gentle-shell-home` as foreign, and the daemon writes auth.json/mcp.json there first), C4 uploads/composer (#6 fixed by PR #23; #21 `useDot.send` returns void and the composer always clears), C5 activity titles (#24 fixed by PR #26), C6 voice (#10 configuration-change handler fires while running, macos.rs:126-129, probably since T34; #25 useVoice checks status once). Urgent: #13 blocks clean installs, #22 strands users with locked connectors and no exit. PR notes: #23, #26 merge as is; #27 merge after changes; #14 superseded by the C3 fix; #16 close (already on main); #18 merge; #30 (a new provider by rodrigovzq) and the Niri chain #35-#40, KSNI #33, #20 `--toggle-rose` are the owner's decisions. Recorded as S35 with T35 (inline) and T36-T38 (parallel writers with disjoint surfaces).
- **L120 (2026-10-10):** Independent verifier on 02784d6..9925c39: pnpm test 688 ×2, e2e 17, typecheck, lint, 23 own probes; the MAC reproduced by an independent Python implementation; 12 kinds of tampering set aside once with content preserved; ordering, A2 closure, regression PASS; no blockers. Fixed inline (RED reproduced both → GREEN, pnpm test 690 ×2): A1 with the app present but the integrity key unreadable or unstorable, the file was loaded unverified and secrets stayed reachable; now the check fails closed (`INTEGRITY_UNCHECKED`: file kept as is, no secret read, every window told) until a start that can check it; A3 a signed file deleted while closed started empty in silence; now `MISSING_NOTICE`. Documented: the HMAC has no counter, so putting back an older signed version is accepted (A2; sending still needs native approval), and deleting the key plus removing `mac` reads as a first start. Kept: A4 a legacy `mcp-auth.json` planted while a migration is retrying is still imported.
- **L119 (2026-10-10):** T23e done (`9925c39`) after the writer stalled 4 minutes on a shell command and was resumed in its own session with timeouts on every command. `connector-integrity.ts`: HMAC-SHA256 over `gentle-dot/connectors.json/v1\n` plus the canonical record without `mac` (sorted keys, no spaces), key = 32 random bytes in the store as `integrity/connectors`; verification after `listen` and before migration, enforce/watch, and the engine start, with app commands waiting for it; a signed file is kept byte for byte when no key is available so it is never rewritten unsigned. A2 closed: an unreadable legacy sign-in file is reported and kept, and the migration retries. Documented limit: a same-user process that deletes the Keychain key and removes `mac` makes the next start treat the file as a first start. Independent verifier launched.
- **L118 (2026-10-09, user):** "si" to merging PR #12 and continuing with T23e. PR #12 merged (`3954682`). T23e design: an HMAC-SHA256 key kept in the Keychain through the app channel (`secret_get/put`, id `integrity/connectors`); the daemon signs `connectors.json` on every write (a `mac` field over a canonical serialization of the rest); at start with the channel, a missing or wrong `mac` on a file that was signed before means it changed while Gentle Dot was closed: the file is moved aside (`connectors.rejected-<timestamp>.json`, private), the daemon starts with no connectors, and the user is told once; the first start after T23e signs the current file (migration); without the channel the file cannot be verified and is loaded as today (connectors needing secrets are already locked there).