From fa38e3e10258c70191f7635e0deff5eb345f0e22 Mon Sep 17 00:00:00 2001 From: Joakim Persson Date: Tue, 13 Oct 2026 15:32:40 +0200 Subject: [PATCH] CHANGELOG: pi -p skips the palace wake-up and mailbox poll (mempalace-toolkit d5a03f4) Measured on tor-ms22: 3 palace requests and 1.6 s, against 15 requests (12 tools/call) with MEMPALACE_WAKEUP_PRINT=1. check-doc-drift.sh: DRIFT before this entry, rc=0 after. --- CHANGELOG.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a5a17a6..a5754cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,7 +18,7 @@ Pre-v1.0.0 tags followed the pi npm version (`v{pi_version}[letter]`). | Component | Baked in v1.11.0 | Next build | Why | |---|---|---|---| | pi-extensions | `a88fa99` | **`750b2a8`** (or later: CI resolves `main` at build time) | `mcp-loader.ts` retired; `install.sh` prunes stale links (below) | -| mempalace-toolkit | `975ab92` | **`f590a3a`** (or later) | `pi -p` returns in seconds: `2f0edf5` clears the feed's leftover 5-min timer, and `f590a3a` skips the feed in print/JSON mode (below). Also `a30af61`: the bridge's `RemoteMcpClient` is now the only copy, and `scripts/check-mcp-client-sync.sh` is removed (comment/README only) | +| mempalace-toolkit | `975ab92` | **`d5a03f4`** (or later) | `pi -p` returns in seconds: `2f0edf5` clears the feed's leftover 5-min timer, `f590a3a` skips the feed in print/JSON mode, and `d5a03f4` skips the wake-up and mailbox poll there too (below). Also `a30af61`: the bridge's `RemoteMcpClient` is now the only copy, and `scripts/check-mcp-client-sync.sh` is removed (comment/README only) | ### Fixed @@ -43,6 +43,17 @@ Pre-v1.0.0 tags followed the pi npm version (`v{pi_version}[letter]`). both changes, and each change's pre-fix source fails it. Until the next build, scripts that call `pi -p` on a devbox should keep their `timeout` or set `MEMPALACE_FEED=0`. +- **`pi -p` no longer gets the palace wake-up.** In print and JSON mode the + mempalace bridge now skips the wake-up injection and the mid-session mailbox + poll (mempalace-toolkit `d5a03f4`). The injection is status, diary, and the + owed/closed mailbox lists. The `mempalace_*` tools are still registered. + Measured on tor-ms22: `pi -p` makes 3 palace requests (the MCP handshake) + and exits in 1.6 s. With the wake-up it made 15 requests, 12 of them + `tools/call`. The wake-up is for the person at an interactive session, who + sees it in the next one. In a script it is cost, and once it was harm: a + probe's flash model read the injected diary's open items as its task, ran + about 12 tool calls, and filed a wrong drawer in the shared palace. + `MEMPALACE_WAKEUP_PRINT=1` restores the wake-up for `pi -p`. ### Changed