DSH Session Ledger: Traceable Session Evidence and User-Confirmed Long-Term Memory
dsh-session-ledger provides traceable session evidence and user-confirmation-based long-term memory for DeepSeek Harness. It reuses ctx.sessionQuery and ctx.storageDomain, extending existing capabilities with memory semantics, provenance chains, confirmation states, deletion and audit, as well as index health and performance acceptance. The plugin invokes ctx.sessionLedgerConfirmation.request() to present candidates along with their provenance; only when the user explicitly chooses to save is the entry promoted to long-term memory, while a rejection transitions it to dismissed. It exposes the ctx.sessionLedger service with interfaces including searchEvidence, createCandidate, issueConfirmation, promote, listMemories, revoke, delete, and health, persisting candidates, memories, audit records, and metadata in the session_ledger domain under ctx.storageDomain, with support for restart recovery and idempotent promotion.
Read More