Pcornel
Automation · Source of Truth

Desired State

Cheat sheet · https://pcornel.dk/topic.php?topic=5854

Back to the Topic

Answer

Desired state in a source of truth is the intended configuration recorded there, such as which VLANs a port should carry, which automation turns into actual device configuration.

Remember

  • The source of truth records intent, not observed state.
  • Automation renders config from it.
  • Changes start in the source.

First checks

  • Intended config/state stored in SoT/git — intent
  • Render configs from SoT — generation
  • Compare intent with actual — drift

Verify in this order

SoT intent → generated config → device

Where it usually breaks

Configuration/input → graph/state refresh → plan → provider API request → provider terminal result → resource read-back → effective service state → workload.

Source of Truth → Desired State · operational reference

LayerSource of Truth → Desired State operational reference
Context identityOpenGitOps 1.0 principles/current glossary + exact revision/input/target identity
Persistent intentVersioned contract/configuration with explicit ownership and prerequisites
VerificationValidate inputs/read current state → exercise bounded operation → independent target read-back
Output contractPreserve structured status/IDs/properties before human formatting
Failure boundarySeparate source/input/engine/controller execution from downstream target outcome

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5854

Confirmation

Confirm action

Continue?