Pcornel
Automation · Validation

State Verification

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

Back to the Topic

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

BoundaryHealthy evidenceSuspicious evidence
Criteria / inputCriteria, source revision, validator and exact target identity are explicitA generic pass exists without versioned criteria or target correlation
Preconditions / operationCurrent authoritative facts are bound to the exact operationStale preflight or requested state substitutes for execution-time facts
Effective outcomeAuthoritative state/read-back and service-relevant evidence match the expected resultTool/test/validator success substitutes for effective target or workload proof
Limits / next actionCoverage limits, unknowns and failures drive the next narrower checkUnknown 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

Confirmation

Confirm action

Continue?