A personal assistant that lives on your desktop, remembers what matters, and can use your Mac for you.
TypeScript
docs(odd): record T22 evidence
Alan Buscaglia6ed6613cc46b
diff --git a/odd/tasks/gentle-dot.md b/odd/tasks/gentle-dot.mdindex 8b7fa52..2579d36 100644--- a/odd/tasks/gentle-dot.md+++ b/odd/tasks/gentle-dot.md@@ -104,7 +104,7 @@ Branch: `feat/gentle-dot` · Delivery strategy: `single-pr` (user choice, L7; fo| T19 | S22 (+ design §4/§6/§7 refresh) | delegated writer (context backstop) | done | `225596d`; parent re-ran 260 tests, typecheck, lint + real-engine handoff probe | Single continuous chat: hide conversations, transparent session rotation, recent-only history || T20 | S23 | delegated writer, after T17 (the runtime refused it in parallel: test surface overlap with T17's `packages/daemon/test/**`) | done | `823363e`, follow-up `400ec73`; parent re-ran 235 tests, typecheck, e2e 12/12 | Global Engram, project gentle-dot || T21 | S24 | explore → spec → implement (last) | pending | — | Computer control with permissions guide, panic stop, and approvals |-| T22 | S18 (hardening, L47 B1/B2) | delegated writer | in progress | — | 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 |+| T22 | S18 (hardening, L47 B1/B2) | delegated writer | done (limited recheck running) | `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 |@@ -162,4 +162,5 @@ Environment notes: Node v24.14.1 and pnpm are present. `cargo` is on PATH but `r- **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.-- **Next step:** T22 (running); then T18b, T14, T21; T23 before any public release.+- **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.+- **Next step:** the T22 limited recheck; then T18b, T14, T21; T23 before any public release.