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:
Gmer4Lfe
2026-08-01 22:44:23 -04:00
parent 5c4f8db497
commit c377ddfcca
24 changed files with 1237 additions and 32 deletions
+25
View File
@@ -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
# ==============================================================================================
#