docs(block): describe retirement guards per attempt

This commit is contained in:
pingqiu committed 2026-12-05 17:54:20 -08:00
1 parent ac32e37bb1
commit bcb01d194d
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1266,7 +1266,7 @@ Notes:
| `INV-CUT-TIMER-SLOT-WAIT-001` | A periodic cut refused for held host slots, pending urgent work or an earlier ticket is a wait, not a failure: no backoff or minimum spacing; it retries at the next poll in ticket order, and status reports the wait until any later cut succeeds. Other errors keep the backoff. | M5 periodic trigger (before Admit) | `core/frontend/durable/provider_chunk.go` `cutPolicy.after`, `chunkLoop`; `core/hostlimit/limiter.go` `ErrSlotsHeld` | `TestCutPolicy_HostSlotBusyIsAWaitNotAFailure`, `TestCutPolicy_SuccessDuringSlotWaitEndsTheWait`, `TestCutWaitSlot_StatusEndsTheWaitAfterALaterCut`, `TestCutPolicy_TicketOrderWaitBound` (`core/frontend/durable/cut_policy_test.go`); `TestTimerCutRunsSoonAfterHostSlotFrees`, `TestSlotWaitEndsWithASuccessfulDetachSeal` (`core/frontend/durable/host_slot_wait_test.go`); `TestAdmitClosedDuringPoolAcquisitionIsRevoked` (`core/hostlimit/limiter_test.go`) | — | ACTIVE |
| `INV-SNAPSHOT-ANSWER-COUNT-001` | Newly produced snapshot creation and listing answers omit the uncomputed chunk count; no manifest scan is added to answer a snapshot. | M9 snapshot answer projection (no transition change) | `core/frontend/chunkstore/control_types.go`, `api.go`; `core/host/volume/chunk_control.go` | `TestSnapshotAfter200MiBWritesOmitsUncomputedChunkCount` (`core/host/volume/snapshot_chunk_count_test.go`) | NONE (pure projection of the published snapshot; no authority or persisted format change) | STUB |
| `INV-SPEC-DELETE-RETIRE-001` | Retire spec-removed metadata only under a permanent reservation after no-live-lease and a subsequent HEAD read proves deleted or absent. Read errors, live HEAD and deleting HEAD keep the records. Retirement never removes the reservation or store data. | M4 delete retirement | `core/host/master/spec_retirement.go`; `core/authority/workspace_retirement.go`, `authority_store_file.go` | `TestSpecRetirementReadsHeadOnlyAfterLeaseAndKeepsTombstone`, `TestSpecRetirementRequiresDeletedOrAbsentAndReadableHead`, `TestSpecRetirementDoesNotUseAbsentHeadWithoutReservation`, `TestRetirementKeepsReservationAndWaitsForLiveLease`, `TestFileAuthorityRetirementSurvivesReloadAndKeepsOtherRecords`, `TestSpecRetirementBackgroundBoundsReadsAndCachesTerminalProof`, `TestSpecRetirementLocalFailureDoesNotStopOtherVolumesOrProductTick` | DeleteRetire.ReadOK; DeleteRetire.RetireLine; DeleteRetire.RetirePlace; DeleteRetire.HostRetire | STUB |
| `INV-SPEC-DELETE-RETRY-001` | One host-owned paced worker, independent of the product loop, retries lease skips, failed reads and local removals without a restart. Every pass rechecks each lease and HEAD guard; Close cancels and joins the worker before stores close. Its reads use a dedicated connection. | M4 delete retirement scheduling | `core/host/master/host.go` `Start`, `Close`; `spec_retirement.go` `startRetirementWorker` | `TestStandaloneRestartRetriesSpecRetirementAfterLeaseFloor`, `TestRetirementWorkerRetriesTimeoutWithoutProductLoopOrRestart`, `TestRetirementWorkerTimerJoinsOnCancellation`, `TestRetirementWorkerServingWithOneHundredSlowHeads`, `TestRetirementPassReportsOnlyPendingRecords`, `TestSpecRetirementUsesItsDedicatedReader`, `TestRetirementCatalogOwnsItsConnection` | DeleteRetire r5 (`RetireOnlyWhenUp = TRUE`): ReadOK; RetireLine; RetirePlace; RetireProgress | STUB |
| `INV-SPEC-DELETE-RETRY-001` | One paced host worker retries lease skips, failed reads and removals independently of the product loop. Per attempt: lease then fresh HEAD; live leases skip reads, pacing or kept terminal proof skips both. Close cancels and joins before stores close. Blockmaster uses a dedicated reader. | M4 delete retirement scheduling | `core/host/master/host.go` `Start`, `Close`; `spec_retirement.go` `startRetirementWorker`; embedded hosts fall back to `LayoutReadHead` if configured, otherwise run no scan | `TestStandaloneRestartRetriesSpecRetirementAfterLeaseFloor`, `TestRetirementWorkerRetriesTimeoutWithoutProductLoopOrRestart`, `TestRetirementWorkerTimerJoinsOnCancellation`, `TestRetirementWorkerServingWithOneHundredSlowHeads`, `TestRetirementPassReportsOnlyPendingRecords`, `TestSpecRetirementUsesItsDedicatedReader`, `TestRetirementCatalogOwnsItsConnection` | DeleteRetire r5 (`RetireOnlyWhenUp = TRUE`): ReadOK; RetireLine; RetirePlace; RetireProgress | STUB |
| `INV-SPEC-UNUSED-PLACEMENT-001` | A spec startup prunes an undesired placement only before serving and with no volume record, authority line, binding or deletion reservation, and no skipped authority recovery. The desired spec and seed are one keep set. | M4 registration input | `cmd/blockmaster/main.go`; `core/host/master/spec_retirement.go` | `TestClusterSpecImportRemovesUnusedPlacementMissingFromSpec`, `TestClusterSpecCleanupKeepsRecordsBindingsAuthorityAndSeed` | NONE (registration-only cleanup before controller activity) | STUB |
| `INV-CHECK-DELETING-001` | A post-lease reserved volume with HEAD deleting, deleted or absent holds no serving work. Its status is informational and checks issue no lease or holder requests for it. Another volume's failures remain visible. | M9 delete observation | `core/host/master/observation_snapshot.go`, `journal_isolation.go`; `cmd/sw-block/shell_check.go` | `TestSpecRetirementRequiresDeletedOrAbsentAndReadableHead`, `TestSpecRetirementReadsHeadOnlyAfterLeaseAndKeepsTombstone`, `TestClusterCheckDoesNotProbeDeletingOrDeletedVolumes` | DeleteRetire.HostRetire | STUB |
| `INV-CLI-DELETE-RETRY-001` | Only the final lease barrier after a committed volume-delete reservation permits retryable true/exit 75 at its horizon. A live-holder Reserve refusal requires stopping the volume first (not_admitted, non-retryable, exit 1). No lease guard is bypassed. | M9 delete admission result projection | `cmd/sw-block/chunk_volume_delete.go` `authorityErr`; `cmd/sw-block/chunk.go` `chunkResult` | `TestVolumeDeleteAdmissionRetryAnswer`; `TestOpsChunkVolumeDeleteRefusalSaysNothingWasPersisted` | MoveAdmission.DelRead; MoveAdmission.DelMark (unchanged guards) | STUB |
+1 -1
View File
@@ -206,7 +206,7 @@ core/host/master/lifecycle_failure.go lifecycleFailStop time.AfterFunc 1 availab
core/host/master/probe_round.go roundEvidenceProvider.round time.NewTimer 1 per-call FencingRound.Deliver; FencingRound.Open one probe round's evidence wait
core/host/master/services.go services.deleteHolderEvidence context.WithTimeout 1 per-call FormatGate.Report one RPC or request
core/host/master/spec_retirement.go Host.reconcileDeletedSpecVolumes context.WithTimeout 1 per-call DeleteRetire.ReadOK one fresh HEAD read after the no-live-lease barrier
core/host/master/spec_retirement.go Host.startRetirementWorker time.NewTimer 1 control-timer DeleteRetire.ReadOK; DeleteRetire.RetireLine; DeleteRetire.RetirePlace one host-owned worker timer between passes; every lease and HEAD guard is rechecked
core/host/master/spec_retirement.go Host.startRetirementWorker time.NewTimer 1 control-timer DeleteRetire.ReadOK; DeleteRetire.RetireLine; DeleteRetire.RetirePlace one host-owned worker timer between passes; each attempt checks the lease barrier and reads HEAD fresh only once no lease is live
core/host/master/spec_retirement.go Host.refreshHostDeletionProofs context.WithTimeout 1 per-call DeleteRetire.ReadOK one post-lease HEAD read for a requested host candidate; error retains work
core/host/master/workspace_service.go services.AckWorkspaceRevoked context.WithTimeout 1 per-call FormatGate.Place; MoveAdmission.ReadForMove; StopAndRestart.ReadClean one RPC or request
core/host/master/workspace_service.go services.MoveWorkspace context.WithTimeout 1 per-call FormatGate.Place; MoveAdmission.ReadForMove; StopAndRestart.ReadClean one RPC or request
Can't render this file because it contains an unexpected character in line 50 and column 123.