From 4411f2dc594f174237e00ecb5443ae85588d4a2e Mon Sep 17 00:00:00 2001 From: pingqiu Date: Wed, 2 Dec 2026 07:46:28 -0800 Subject: [PATCH] docs: the name-delete row names the --gen 0 refusal; the holder resume row states its bound Co-Authored-By: Claude Opus 5.5 --- seaweed-block/docs/design/invariants.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seaweed-block/docs/design/invariants.md b/seaweed-block/docs/design/invariants.md index f55d8b2c19..746c216e41 100644 --- a/seaweed-block/docs/design/invariants.md +++ b/seaweed-block/docs/design/invariants.md @@ -1368,8 +1368,8 @@ Notes: | `INV-SNAP-OP-FINGERPRINT-001` | A retained operation ID reused with changed snapshot intent refuses before any cut or HEAD write. | M9 operation admission (planned) | `CreateSnapshotOperation` canonical fingerprint; create executor wired; delete executor pending | `TestSnapshotOperationSameIDChangedIntentRefusesBeforeWrite` (`core/host/volume/snapshot_operation_red_test.go`) | SnapOps.Send; rows 211–219 | STUB | | `INV-SNAP-OP-READMIT-001` | A create whose HEAD publication applied before its answer was lost reconciles that original outcome on re-admission; later removal cannot cause another execution under its retained operation ID. | M9 operation re-admission (planned) | `SnapshotOperationBinding`, `LayoutStore.GuardSnapshotOperations`; create executor and compact index wired; native qualification pending | `TestSnapshotOperationLostPublishAnswerReadmitDeleteCannotRepublish`, `TestSnapshotOperationRemovalBeforeReadmitKeepsPublishedOutcome` (`core/host/volume/snapshot_operation_red_test.go`) | SnapOps.Send/Publish/Settle/Delete; rows 211–219 (persisted-stall removal controls included; concurrent-owner controls pending) | STUB | | `INV-SNAP-OP-CLI-001` | Snapshot observation preserves the printed operation ID across retries, polling, interruption and no-wait submission; observing an operation never admits another identity. | M9 operation observation (planned) | `chunkObserveSnapshot`, holder asynchronous create executor | `TestSnapshotOperationCLIUsesPrintedIDForAsyncObservation`, `TestSnapshotOperationCLIInterruptThenResumeUsesPrintedID` (`cmd/sw-block/snapshot_operation_red_test.go`, `cmd/sw-block/snapshot_operation_interrupt_unix_test.go`) | SnapOps.Send/Start; rows 211–219 (server crash controls owed) | STUB | -| `INV-SNAP-DELETE-HOLDER-RESUME-001` | A holder delete operation that meets an earlier delete's unconsumed intent (busy) or a moved HEAD kicks the cleaning and resumes its own admitted operation, within a bound, to its terminal receipt: no second admission, never left stalled by its request. | M9 holder delete execution | `core/host/volume/chunk_control.go` `deleteSnapshotOperation` | `TestSnapshotDeleteHolderResumesAfterThePreviousIntentIsConsumed` | SnapDelete rows 241-245 | ACTIVE | -| `INV-SNAP-DELETE-NAME-001` | The name-only delete primitive (an old client's) refuses a v1.1 HEAD without a HEAD write. Retries in one CLI invocation keep its request id and resolved incarnation, so a lost reply never deletes a replacement; a new invocation resolves the name again (--gen pins it). | M9 legacy delete admission | `layout.RunDeleteSnapshot`; catalog, CLI and host delete routes | `TestSnapshotDeleteOldClientNameOnlyRefusesAV1Head`, `TestSnapshotDeleteAfterALostLegacyReplyIsANewIntent`, `TestSnapshotDeleteHolderAfterALostLegacyReplyIsANewIntent`, `TestSnapshotDeletePublicOperationKeepsTargetAcrossRecreation`, `TestSnapshotDeletePublicNoWaitResumesSameAdmission`, `TestSnapshotDeletePublicAbsentHeadRefuses` | SnapDelete row 242; rows 241-245 | STUB | +| `INV-SNAP-DELETE-HOLDER-RESUME-001` | A holder delete operation that meets an earlier delete's unconsumed intent (busy) or a moved HEAD kicks the cleaning and resumes its own admitted operation within a bound: no second admission; past the bound it is left resumable (stalled, with its receipt), never answered as terminal. | M9 holder delete execution | `core/host/volume/chunk_control.go` `deleteSnapshotOperation` | `TestSnapshotDeleteHolderResumesAfterThePreviousIntentIsConsumed` | SnapDelete rows 241-245 | ACTIVE | +| `INV-SNAP-DELETE-NAME-001` | The name-only delete primitive (an old client's) refuses a v1.1 HEAD without a HEAD write. Retries in one CLI invocation keep its request id and resolved incarnation, so a lost reply never deletes a replacement; a new invocation resolves the name again (--gen >= 1 pins it). | M9 legacy delete admission | `layout.RunDeleteSnapshot`; catalog, CLI and host delete routes | `TestSnapshotDeleteOldClientNameOnlyRefusesAV1Head`, `TestSnapshotDeleteAfterALostLegacyReplyIsANewIntent`, `TestSnapshotDeleteExplicitGenZeroIsRefusedBeforeAdmission`, `TestSnapshotDeleteHolderAfterALostLegacyReplyIsANewIntent`, `TestSnapshotDeletePublicOperationKeepsTargetAcrossRecreation`, `TestSnapshotDeletePublicNoWaitResumesSameAdmission`, `TestSnapshotDeletePublicAbsentHeadRefuses` | SnapDelete row 242; rows 241-245 | STUB | | `INV-SNAP-DELETE-LOGICAL-001` | A delete receipt succeeds only after its retained target is proven absent. Actual unlink and its durable reclamation intent publish in one HEAD CAS; physical continuation depends on HEAD/pages, not the receipt. | M9 delete running to succeeded | `snapshotDeleteLogicalStep`, `RunDeleteSnapshotWithIntent` | `TestSnapshotDeleteLogicalCommitKeepsIndependentIntent`, `TestSnapshotDeleteLogicalCommitResumesAcrossLostAnswers`, `TestSnapshotDeleteLogicalCommitSparesReplacement` | SnapDelete rows 241-245; PageChain rows 246-253 | STUB | | `INV-SNAP-DELETE-EXECUTOR-001` | A catalog delete attempt reads its issued handle before work, takes ownership by receipt CAS, and persists uncertain work as stalled. It never infers terminal success from a callback return; terminal replay reads the same incarnation. | M9 delete attempt transport | `BCatalog.RunSnapshotDeleteOperation`; CLI execution seam | `TestSnapshotDeleteCatalogResumesDurableIntentOnAnotherExecutor`, `TestSnapshotDeleteCatalogRefusesWrongIntentBeforeWork`, `TestSnapshotDeleteCatalogCannotInferSuccessFromWorkReturn`, `TestSnapshotDeleteOfflineCLILeavesProgressInFiler` | SnapDelete retained target; SnapOps owner/state refinement; V8 completion adapter and public command activation owed | STUB | | `INV-SNAP-OP-ADMISSION-CLOSE-001` | Admission checks HEAD after receipt publication and refuses a deleting/deleted or absent volume. Closed incarnations cannot answer retained operation queries; their terminal receipt bytes are not rewritten by closing. | M9 admission and observation | `checkSnapshotOperationAdmission`, `readOperationIndex`, create/delete admission | `TestSnapshotOperationAdmissionRechecksHeadAfterPublication`, `TestSnapshotOperationClosedVolumeRefusesReceipts`, `TestSnapshotOperationTerminalReadmissionRechecksHeadAfterFlag` | SnapVolDel rows 257-260 (per-incarnation) | STUB |