You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Define and test backward compatibility for legacy version-less backups #1159
The latest import/backup review notes that legacy backups without an explicit version are now rejected. Fail-closed handling is correct for unknown or malformed formats, but previously supported user backups may become unrestorable if there is no explicit compatibility path.
Scope
First establish the actual historical formats that were publicly emitted or accepted. Do not infer compatibility from arbitrary unversioned JSON.
Inventory historical backup/export formats and identify whether version-less files were officially supported.
Add representative fixtures from known historical formats (sanitized and minimal).
If compatibility is required, implement a dedicated legacy parser/migration path that identifies the format structurally and converts it to the current validated import model.
Keep the current strict path for malformed, ambiguous or unsupported data.
Preview all changes before applying; never overwrite canonical data on parse failure.
Document the supported compatibility window and deprecation policy.
Acceptance criteria
Historical format inventory and compatibility decision are documented.
Supported legacy fixtures restore successfully with expected entity/claim/link counts.
Ambiguous or malformed unversioned inputs are rejected with actionable errors.
Import remains staged and non-destructive until explicit confirmation.
Round-trip and corpus fingerprint tests cover supported legacy imports.
No silent defaulting of unknown versions to the current schema.
Decision note
If no released format needs this path, close this issue as not planned with evidence rather than adding speculative compatibility code.
Legacy version-less backups are validated and imported with a defined compatibility window (packages/dks-core/src/backup.ts, MIN_SUPPORTED_SCHEMA_VERSION), plus a README Import-compatibility note.
Round-trip pinned by src/lib/import/ legacy v1 fingerprint test against scripts/corpus-fingerprint.mjs canonicalization.
Activity
feat(studio): data integrity, storage health, and shared core (plans/…
d-oit commentedon Nov 19, 2026
Implemented in #1178 (90246d1).
packages/dks-core/src/backup.ts, MIN_SUPPORTED_SCHEMA_VERSION), plus a README Import-compatibility note.src/lib/import/legacy v1 fingerprint test againstscripts/corpus-fingerprint.mjscanonicalization.