Expand description
Storage tier + WAL replay error types (Phase 14.6 — DS-14-storage Q3/Q9).
StorageError— tier-level preconditions (backend lacks capability, codec mismatch, backend I/O failure). Surfaced byBaseStorageTieroperations (M4.B+).RestoreError— replay-time failures fromGraph::restore_snapshot({ mode: "diff" })(M4.E). Distinct fromStorageErrorso callers can disambiguate “tier broken” from “replay couldn’t complete”.RestoreResult— telemetry returned on successful replay (inspection-as-test-harness shape per CLAUDE.md dry-run rule).
Both error enums mirror the TS impl at
packages/pure-ts/src/extra/storage/wal.ts:194-251; variant names align
with the TS string discriminants for parity-test diffability.
Structs§
- Phase
Stat - Per-lifecycle phase telemetry within a
RestoreResult. - Restore
Result - Telemetry returned by a successful
restore_snapshot({ mode: "diff" })call. Every field is observable so tests + dry-run audit paths can pin replay invariants (CLAUDE.md dry-run equivalence rule).
Enums§
- Restore
Error - Replay-time failures from
Graph::restore_snapshot({ mode: "diff" }). - Storage
Error - Tier-level preconditions surfaced by
BaseStorageTieroperations.