What's New
This patch hardens the mem_save prompt capture release after Judgment Day review. It fixes session activity tracking, clarifies prompt-capture documentation, and adds regression coverage around the failure paths.
Changes
Bug Fixes
- Correct session activity:
mem_savenow records save activity against the resolvedsession_id, including explicit caller-provided sessions. - Nil-safe activity tracking: reusable handler paths tolerate missing
SessionActivitywithout panics. - Non-fatal prompt capture: prompt capture failures remain best-effort and do not fail the observation save.
Tests
- Added regressions for explicit
session_idactivity tracking. - Added nil-activity safety coverage.
- Added non-fatal prompt capture failure coverage.
- Added prompt dedupe sync-mutation assertion.
Documentation
- Clarified that only
mem_saveandmem_save_promptaccept the narrow ambiguous-project recovery override. - Reworded “no auto-capture” docs to “no raw tool-call firehose,” while documenting best-effort prompt capture tied to curated
mem_savecalls. - Documented that prompt capture is process-local: the same MCP process lifecycle must receive prompt context before a later
mem_savecan attach it.
Upgrade
brew upgrade engram