Sync of risense-ai/respire-magpie v0.3.15 (2c5a237c). memory-tools.mjs is byte-identical to upstream at that commit.
- `--clear-parent` joins the forbidden memory options.
- Every `--parent` (both `--parent ID` and `--parent=ID`) must be a full id that was shown first, on remember and update alike; a non-trivial remember still needs one.
Run at 79b99037 on mote (Bun 1.4.2, Node 22): `node scripts/check.mjs` in the package (isolated temp HOME, detached worker, archive checks) passed; `bun test packages/respire-memory` 1 pass; `bun scripts/check.mjs respire-memory` passed.
Broken by hand: with 0.3.14's memory-tools.mjs the new placement checks fail ("Missing expected rejection").
Not tried: a real Respire install against a live model.
PR #633 by @luodaoyi.
respire-memory 0.3.10 (luodaoyi, follow-up to #553):
- readDiary looks up the turn's source hash with `diary-search --mode lexical` instead of hybrid, so unrelated semantic matches no longer fill (and overrun) the 4000-character readback budget. Ordinary model diary searches keep the hybrid default.
- readDiary checks every matching candidate (lexical limit 5) for the complete written body, instead of only the first match, so an earlier diary with the same deterministic marker no longer makes a real write "unconfirmed". Source id/version, Unicode ranges, overlap, budgets and no-replay checks are unchanged; any inconsistent fragment still fails closed.
- A model's diary-search/diary-fragment result is held to the requested --max-chars on the compact `details` JSON, in Unicode characters (was: whole envelope <= 8000 UTF-16 units). This is the Runtime's own contract (respire-cli docs/diary-fragments.md: the budget bounds compact-serialized `details`; crates/app/src/diary.rs budget()).
- Settings page and README tell first-time users to install the Respire CLI (`npm install -g rsrs-cli`, risense-ai/respire-cli) and start its Runtime before configuring the plugin; README install line uses the listing's short name `respire-memory`, which magpie's resolver accepts (registry.json name).
Reviewed head 507db0483db4c7caaa49208fb17c93ef436179e2, merged onto origin/main 8b01396, run on mote (macOS):
- packages/respire-memory: `node scripts/check.mjs` and `bun scripts/check.mjs` pass; `bun test` 1 pass 0 fail (Bun 1.4.2).
- root `bun scripts/check.mjs`: exit 0.
- Broken by hand, each red in scripts/check.mjs: readback search back to hybrid (diary-output-too-large); first candidate only (diary-readback-unconfirmed); throw instead of continue on a non-matching candidate; body check removed (missing rejection); old whole-envelope 8000 budget; budget check removed.
- Not guarded by a test (stayed green when broken): the exact budget boundary (only a 4033-vs-4000 fixture; a +33 slack passes), UTF-16 vs code-point counting (fixtures are ASCII), and on the now-lexical readback path the search's own budget check and the source_id filter (the over-budget/unrelated fixtures are hybrid-only).
- Tests use a local http server only; no network.
- Not tried: a real Respire Runtime (author's CI and NPM-LIVE-0.3.10 report cover that). Not on npm yet: first version needs an owner publish; magpie installs it from dist meanwhile.
Adds the respire-memory gateway middleware (packages/respire-memory, 0.3.6) by luodaoyi, with its registry.json entry and README row. It recalls from a loopback Respire Runtime on each new turn, reads the engine policy each turn and puts it in the history once (again only when it changes), keeps turn state in an encrypted store, and optionally archives turns in a detached worker through a user-configured Chat Completions service. Diary writes are confirmed by a bounded fragment readback.
Run at 7aba754 on mote (Node 22.22.0, Bun 1.4.2):
- packages/respire-memory: `node scripts/check.mjs` ok (4 protocol, policy dedup/change/revert, byte-identical prefixes, failed read, diary readback); `bun test` 1 pass.
- root: `HOME=$(mktemp -d) bun test` 4187 pass, 9 skip, 0 fail (4196 tests, 328 files); `bun scripts/check.mjs` exit 0.
- Review probe (fake loopback Runtime, 2000-byte policy, six chat turns with a host restart at turn 3, a policy change, then the Runtime down), Bun and Node: per-turn overhead grows ~524 bytes a turn (the read receipt), not the policy; no earlier prefix changed; one policy read per turn; two policy blocks after the change; with the Runtime down the latest turn is unchanged. With no Runtime at all the body passes through unchanged.
- Capture probe: with capture on, a turn whose JSON exceeds the ~4000-char readback budget is written and then recorded unconfirmed, and archival skips it. The PR's check asserts this and the README documents it.
- Harm check: no new dependencies, install scripts or workflow changes; network only to the loopback Runtime and the user's own generation URL.
Not tried: a real Respire Runtime.