State Verification
Cheat sheet · https://pcornel.dk/topic.php?topic=5921
Answer
State Verification proves what state a target actually exposes after automation, separating requested, accepted, observed, persistent and effective runtime state.
Remember
- Requested state ≠ accepted state.
- Accepted state ≠ observed state.
- Stored configuration ≠ effective runtime state.
- One state surface healthy ≠ end-to-end workload path healthy.
First checks
- Operational state collection (pyATS/facts/API) — state
- Expected vs actual comparison — verification
- Evidence stored — audit
Verify in this order
collect state → compare expected → pass/fail
Where it usually breaks
State Verification proves only the state surfaces actually read and correlated; it does not substitute for functional workload tests across adjacent dependencies.
Configuration/input → graph/state refresh → plan → provider API request → provider terminal result → resource read-back → effective service state → workload.
State Verification validation proof-boundary map
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Criteria / input | Criteria, source revision, validator and exact target identity are explicit | A generic pass exists without versioned criteria or target correlation |
| Preconditions / operation | Current authoritative facts are bound to the exact operation | Stale preflight or requested state substitutes for execution-time facts |
| Effective outcome | Authoritative state/read-back and service-relevant evidence match the expected result | Tool/test/validator success substitutes for effective target or workload proof |
| Limits / next action | Coverage limits, unknowns and failures drive the next narrower check | Unknown evidence becomes pass, retries hide failures or broad success is inferred from one check |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5921