"Desired state is the sentence 'this machine should…' — written down, versioned, and owned."
Policy is a promise you write down
Desired state is the layer where you record what a machine is for — not what it's doing this second, but what it's supposed to be. It's a small set of policy fields, and it's the whole difference between a dashboard that nags and one worth trusting.
The fields of "should"
A host's policy carries things like an availability_policy (is it always-on, sleep-allowed, manual, or in maintenance?), a desired_power_state, the expected_services that ought to be loaded, which allowed_operation_classes may target it, and an alert_after that says how long silence is tolerable before it means something. Each field is a promise the status engine can check reality against.
Overrides are typed, not edits
When Dad leaves on a trip, the right move is not to delete the laptop or rewrite its truth to offline is fine forever. It's a temporary override with an owner, a reason, a start, and an expiry: this machine may be unreachable until the 20th. The base policy is untouched, the override lapses on its own, and nobody has to remember to undo it.
Desired can't contradict membership
Policy has a boss: membership. A retired machine can't be expected online — its management_enabled is derived from its membership state, so suspended and retired hosts are simply never eligible for new work. Desired state is powerful, but it lives inside the lifecycle, never above it.