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 Engram project mechanism decision

Alan Buscaglia0107510f5a12
diff --git a/odd/tasks/gentle-dot.md b/odd/tasks/gentle-dot.md
index 3523fea..f9a7e35 100644
--- a/odd/tasks/gentle-dot.md
+++ b/odd/tasks/gentle-dot.md
@@ -144,4 +144,5 @@ Environment notes: Node v24.14.1 and pnpm are present. `cargo` is on PATH but `r
- **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).
- **Next step:** T20 (running); then T19 (continuous chat) and T18 (connectors); docs §4/§6 refresh; then T14 (Linux).