Use it when gating automation around State Verification. Keep authoritative criteria, immutable source/input, exact target identity, validator version, observed/effective state and workload acceptance as separate proof boundaries.
State Verification · Validation
State Verification proves what state a target actually exposes after automation, separating requested, accepted, observed, persistent and effective runtime state.
1. State verification confirms the system behaves as intended.
2. Structured state collection.
3. Compare against expectations.
4. Automate pass/fail.
5. Keep evidence.
collect state → compare expected → pass/fail
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
requested intent → operation acceptance → authoritative read-back → persistent state → runtime/effective state → dependency correlation → acceptance decision
Healthy evidence: desired, persisted and runtime state are correlated by stable identity/version and mismatches are explained before acceptance.
Step 2 Known-good, broken and when it is fixed Verify boundary
Known-good means an independent read-only observation from the authoritative target matches the intended invariant for the exact object and time window, and the corresponding workload/acceptance check succeeds where state is meant to affect service. A cached controller summary is weaker than direct target read-back unless its freshness and source are confirmed.
Step 3 Failure modes and next checks Narrow the fault
Suspicious evidence: automation trusts its own request payload, stale cache or one control-plane object while effective runtime state differs.
Step 4 Native failure isolation and next-check logic Narrow the fault
When state differs, confirm you queried the correct target, namespace/VRF/tenant/object and fresh observation before changing anything. Compare desired and observed fields one by one and inspect reconciliation/apply status if the platform is eventually consistent. If state matches but the service fails, move to dependent runtime/data-path checks rather than declaring the automation wrong.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Requested state ≠ accepted state.
- Accepted state ≠ observed state.
- Stored configuration ≠ effective runtime state.
- One state surface healthy ≠ end-to-end workload path healthy.
- Operational state collection (pyATS/facts/API) — state
- Expected vs actual comparison — verification
- Evidence stored — audit
ReferenceWhat it is1 section · depth on demand
Core model
Identify the authoritative state surfaces, read them after relevant convergence, distinguish control-plane/configuration from runtime/data-plane state, correlate stable object versions, and reconcile mismatches before declaring success.
ReferenceHow it works1 section · depth on demand
How it works
State verification asks the authoritative target what exists now and compares it with the desired invariant. It differs from configuration rendering and from service testing: a rendered file may never be applied, and correct target state may still depend on unhealthy adjacent systems. Verification should identify object, scope, time and source of observation.
ReferenceImportant terms & boundaries3 sections · depth on demand
What this shows and what it does not
State Verification shows only the state surfaces actually read and correlated; it does not substitute for functional workload tests across adjacent dependencies.
Common mistakes
- Checking config instead of operational state.
In depth
In validation, state verification compares the actual state of systems after automation with the expected state, using structured data rather than eyeballing output.
expected = {"Gi1/0/10": {"vlan": 120, "status": "connected"}}
actual = parse_show_interfaces_status(conn.send_command("show interfaces status"))
mismatch = {i: (e, actual.get(i)) for i, e in expected.items() if actual.get(i, {}) | e != actual.get(i, {})}
assert not mismatch, mismatch
Verify from the system's own operational data (not from the automation's success messages), and verify the result users depend on, not just configuration presence.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Validation > State Verification. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://json-schema.org/learn/getting-started-step-by-step · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
State Verification validation proof-boundary map
Fast criteria/scope, execution and effective-outcome proof boundaries for State Verification.
| 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 |