Skip to content

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

TypeScript

docs(odd): accept T22 with documented gaps

Alan Buscaglia395c2cf436e4
diff --git a/odd/tasks/gentle-dot.md b/odd/tasks/gentle-dot.md
index 2579d36..e5ac2eb 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 | 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 |
+| 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 |
@@ -163,4 +163,5 @@ Environment notes: Node v24.14.1 and pnpm are present. `cargo` is on PATH but `r
- **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.
-- **Next step:** the T22 limited recheck; then T18b, T14, T21; T23 before any public release.
+- **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.
+- **Next step:** T18b (Discord/Slack/Gmail guides, S19 assistant-drafted connectors, S20 import); then T14 (Linux), T21 (computer control); T23/S25 before any public release.