mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
Add the durable session-persistence capability seam (ADR 0016): an
abstract SessionPersistence service (dsh-session-persistence,
ctx.sessionPersistence) defining create/append/load/list/has/delete/
update over the existing SessionEvent — no parallel persisted type — and
a first implementation (dsh-session-persistence-jsonl): an append-only
JSONL log per session with crash-safe atomic writes, truncation-repair
of a never-committed crash tail, and a read/replay path. SessionMeta
(format version, cwd, lineage) travels out-of-log via session.header.
A shared runPersistenceContract suite holds every backend to the same
append-only / contiguous-seq / lazy-materialization / serializability
semantics.
Config-driven create() now uses a per-run ${id}-session-<uuid> session
id so a fixed name no longer collides with an on-disk log once a durable
backend is loaded; each run is a new session (a demo simplification). The
examples drop their hand-rolled session-jsonl.ts and load the JSONL
backend via cordis.yml; CI smoke-loads it too.
The agent-facing create/resume factory that consumes load() is a
separate seam, deferred to a follow-up; this change stops at the load
primitive and does not reach into the loop.
29 lines
941 B
JSON
29 lines
941 B
JSON
{
|
|
"files": [],
|
|
"references": [
|
|
{ "path": "./vendor/cosmokit" },
|
|
{ "path": "./vendor/schemastery" },
|
|
{ "path": "./vendor/cordis" },
|
|
{ "path": "./vendor/loader" },
|
|
{ "path": "./vendor/include" },
|
|
{ "path": "./vendor/group" },
|
|
{ "path": "./vendor/timer" },
|
|
{ "path": "./vendor/hmr" },
|
|
{ "path": "./vendor/logger-console" },
|
|
{ "path": "./packages/llm" },
|
|
{ "path": "./packages/session" },
|
|
{ "path": "./packages/session-persistence" },
|
|
{ "path": "./packages/session-persistence-jsonl" },
|
|
{ "path": "./packages/system-prompt" },
|
|
{ "path": "./packages/agent" },
|
|
{ "path": "./packages/tools" },
|
|
{ "path": "./packages/agent-loop" },
|
|
{ "path": "./packages/bash" },
|
|
{ "path": "./packages/llm-deepseek" },
|
|
{ "path": "./packages/llm-pi-ai" },
|
|
{ "path": "./packages/bash-local" },
|
|
{ "path": "./packages/tool-bash" },
|
|
{ "path": "./packages/invariants" }
|
|
]
|
|
}
|