mirror of
https://github.com/sdwolf4103/opencode-working-memory.git
synced 2026-06-02 06:19:36 +02:00
4309cb855f
Architecture review fixes: - Promotion accounting: only clear pending memories that survived workspace memory normalization/cap limits. Use retainedKeys from the returned normalized store instead of attemptedKeys. - Shared sessionID extraction: add sessionIDFromEventProperties() helper and use it in both session.compacted and session.deleted, fixing the previous gap where session.deleted only read info.id. - Strengthen compaction refresh test: seed workspace memory before first transform so firstSystem1 is non-empty, then assert refreshed system[1] preserves existing entries AND contains promoted memories.