Complete the header template across Partnership, Kernel, Deployment and Plugin
Finishes the pass: every script now documents its safeguards, and the deliberate absences in the sourced libraries are recorded so they are not "corrected" later.
This commit is contained in:
@@ -28,6 +28,31 @@
|
||||
# Step 5: Write State — ACTIVE written locally and pushed to new mirror
|
||||
#
|
||||
# ==============================================================================================
|
||||
# DESIGN PRINCIPLES
|
||||
# ==============================================================================================
|
||||
#
|
||||
# Config Changes Hands, Data Does Not
|
||||
# No containers move and no appdata is copied. A transfer rewrites who is authoritative
|
||||
# and where WebUIs point; the sync direction reverses naturally on the next fallback or
|
||||
# critical-sync cycle. Keeping data out of the transfer is what makes it cheap enough to
|
||||
# be reversible.
|
||||
#
|
||||
# Owner Initiates, Always
|
||||
# Only the current owner can run this. The owner holds the authoritative config, so a
|
||||
# mirror-initiated transfer would be writing ownership state it does not own — and if both
|
||||
# sides ran it, neither would be owner.
|
||||
#
|
||||
# Prove Health Before Swapping
|
||||
# Both servers must pass consecutive health checks first. Handing ownership to a partner
|
||||
# that is unhealthy converts a recoverable situation into an outage with the authoritative
|
||||
# side on the weaker host.
|
||||
#
|
||||
# Roles Swap Atomically
|
||||
# Owner and mirror are two ends of one relationship, not independent flags. Any window
|
||||
# where both believe they are owner — or neither does — is worse than the transfer simply
|
||||
# failing, so the swap is written as one transition rather than two updates.
|
||||
#
|
||||
# ==============================================================================================
|
||||
# OPERATIONAL SAFEGUARDS
|
||||
# ==============================================================================================
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user