mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-09-12 04:01:20 +00:00
Opening a per-record unit splits a legacy `<root>/<name>.json` (the pre-per-record single-file layout) into per-record documents; an already-present new record wins, and the legacy file is deleted once every record migrated. The migration also runs when the new tree is absent — the fresh-upgrade shape — and foreign, shapeless, or malformed legacy files are left alone. This preserves previously cached session titles, list metadata, stats, and subagent identity across the medium change.
storage/ — non-session storage family
English | 中文
This family persists application data other than session event logs through named backends and typed data forms.
| Package | Role | ctx key |
|---|---|---|
storage/ |
Connects registered backends with typed data forms | ctx.storage |
storage-json/ |
Stores data in JSON files | registers backend json |
storage-sqlite/ |
Stores data in SQLite | registers backend sqlite |
storage-domain/ |
Provides validated domain-record storage | ctx.storageDomain |
Consumers use a data form rather than accessing a backend directly. The domain storage decision records the family design.
The subsystem reference — the backend contract, StorageForms, DomainSpec/Domain, domain/changed — is docs/subsystems/storage.md.