deepseek-harness/packages/session-persistence
Tianyi Cui 4bf2ef89c4 fix(jsonl): bind MoveFileExW with the Win32 BOOL ABI
Declare MoveFileExW's return value as Koffi int and model it as a numeric 32-bit Win32 BOOL. The previous Koffi bool declaration represented a one-byte C boolean and could read the native return register with the wrong ABI.

Test zero and nonzero results explicitly and assert the binding result type while preserving the existing write-through flags, error translation, and durable directory race behavior.
2026-07-19 12:44:47 +08:00
..
session-persistence Merge master into codex/simp-session-log-representation 2026-07-17 22:33:42 +08:00
session-persistence-jsonl fix(jsonl): bind MoveFileExW with the Win32 BOOL ABI 2026-07-19 12:44:47 +08:00
session-persistence-sqlite Close SQLite probe handle after journalMode assertion 2026-07-18 12:40:12 +08:00
README.md Document the package hierarchy and finalize the RFC 2026-06-20 23:25:33 +08:00

session-persistence/ — persistence capability family

The durable session-persistence seam and its storage backends. The interface package owns the abstract SessionPersistence service and the shared write coordinator; the backends are concrete implementations that register on ctx.sessionPersistence. All product packages.

Package Role ctx key
session-persistence/ Persistence seam + shared write coordinator ctx.sessionPersistence
session-persistence-jsonl/ JSONL-sidecar persistence backend (registers ctx.sessionPersistence)
session-persistence-sqlite/ SQLite persistence backend (registers ctx.sessionPersistence)

The interface lives at session-persistence/session-persistence/; backends are flat siblings. A new storage backend joins here and registers on ctx.sessionPersistence. See session persistence.