From ee3c3e493df09440cd13f68a0ceddc0713bcf1d7 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Tue, 1 Dec 2026 12:58:27 -0800 Subject: [PATCH] Register snapshot incarnation trace in invariant ledger --- seaweed-block/docs/design/invariants.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/seaweed-block/docs/design/invariants.md b/seaweed-block/docs/design/invariants.md index e06e2ff5c9..a0cfcfb50d 100644 --- a/seaweed-block/docs/design/invariants.md +++ b/seaweed-block/docs/design/invariants.md @@ -1258,6 +1258,12 @@ Notes: - B.10 rows are enforced in a library with no production caller; they say nothing about a running volume until a caller is added and its own rows name these. +### Snapshot incarnation format integration + +| ID | Statement | Transition | Enforced in | Guard | Model | Status | +|---|---|---|---|---|---|---| +| `INV-SNAPSHOT-INCARNATION-001` | A snapshot identity is its name and immutable publishing HEAD generation within the volume ID. A resumed delete removes only its admitted incarnation; a recreated name is preserved. Zero requires legacy stamping. | M9 snapshot publication and target-qualified removal | `layout/head.go`, `layout/snapshot_generation.go`; producer integration pending | `TestSnapshotPublishingGenerationGolden`, `TestLegacySnapshotStampKeepsOneIdentityAcrossRetry`, `TestSnapshotDeleteTargetSparesAnUnchangedImageRecreation`, `TestSnapshotDeleteCASConflictKeepsCapturedIncarnation` | SnapDelete rows 241-245 | STUB | + ## Part C. Change rules How a fix or a feature is calibrated against this model: @@ -1395,9 +1401,3 @@ same-process retries; a repeated or earlier frontier is not progress. Late progress cannot clear an already elapsed inactivity window. The existing same-epoch promotion-ready fact alone clears the timeout latch. C.L's start rows remain STUB until recovery and attach controls are qualified together. - -### Snapshot incarnation format integration - -| ID | Statement | Transition | Enforced in | Guard | Model | Status | -|---|---|---|---|---|---|---| -| `INV-SNAPSHOT-INCARNATION-001` | A snapshot identity is its name and immutable publishing HEAD generation within the volume ID. A resumed delete removes only its admitted incarnation; a recreated name is preserved. Zero requires legacy stamping. | M9 snapshot publication and target-qualified removal | `layout/head.go`, `layout/snapshot_generation.go`; producer integration pending | `TestSnapshotPublishingGenerationGolden`, `TestLegacySnapshotStampKeepsOneIdentityAcrossRetry`, `TestSnapshotDeleteTargetSparesAnUnchangedImageRecreation`, `TestSnapshotDeleteCASConflictKeepsCapturedIncarnation` | SnapDelete rows 241-245 | STUB until production stamping and receipt integration |