2026-07-10 12:43:32 +09:00
|
|
|
SPECIFICATION SafetySpec
|
|
|
|
|
|
|
|
|
|
CHECK_DEADLOCK TRUE
|
|
|
|
|
|
|
|
|
|
\* Stress envelope: MaxProgress=2 (partial resume), MaxAttempts=2 (retry),
|
|
|
|
|
\* multi-service faults (Coordination+Durable), single-shot fault budgets.
|
|
|
|
|
\* Deeper multi-shot budgets live in Remora.cfg; deeper MaxAttempts in RemoraFencing.
|
|
|
|
|
CONSTANTS
|
|
|
|
|
Jobs = {j1}
|
|
|
|
|
Workers = {w1, w2}
|
|
|
|
|
InitialWorkers = {w1}
|
|
|
|
|
NoJob = NoJob
|
|
|
|
|
NoWorker = NoWorker
|
|
|
|
|
MaxAttempts = 2
|
|
|
|
|
MaxProgress = 2
|
|
|
|
|
LeaseLimit = 1
|
2026-07-14 18:12:28 +09:00
|
|
|
ReservationLimit = 1
|
2026-07-10 12:43:32 +09:00
|
|
|
LocalLimit = 1
|
|
|
|
|
GlobalLimit = 1
|
|
|
|
|
FaultsEnabled = TRUE
|
|
|
|
|
FaultServices = {"Coordination", "Durable"}
|
|
|
|
|
MaxCoordLosses = 1
|
|
|
|
|
MaxPartitions = 1
|
2026-07-16 23:01:17 +09:00
|
|
|
MaxCredentialIntents = 0
|
2026-07-10 12:43:32 +09:00
|
|
|
|
|
|
|
|
INVARIANTS
|
|
|
|
|
TypeOK
|
|
|
|
|
StateConsistency
|
|
|
|
|
AllocatedTokensUsed
|
2026-07-10 14:16:29 +09:00
|
|
|
LiveProgressWellFormed
|
|
|
|
|
LiveProgressCompatibleWithLiveLease
|
2026-07-10 12:43:32 +09:00
|
|
|
AtMostOneLiveLeasePerJob
|
|
|
|
|
AuthorityWellFormed
|
|
|
|
|
CommittedResultConsistent
|
|
|
|
|
CancellationSafety
|
|
|
|
|
PermitSafety
|
|
|
|
|
ResumeValidity
|
|
|
|
|
StagingOwnership
|
2026-07-16 23:01:17 +09:00
|
|
|
CredentialLifecycleWellFormed
|
|
|
|
|
NoOrphanSecrets
|
2026-07-10 12:43:32 +09:00
|
|
|
|
|
|
|
|
PROPERTIES
|
|
|
|
|
TerminalStateIsImmutable
|
|
|
|
|
FencingTokensMonotonic
|
|
|
|
|
CommitIsFencedCAS
|
2026-07-13 16:41:51 +09:00
|
|
|
FailureDispositionHonored
|