Use it when gating automation around Validation. Keep authoritative criteria, immutable source/input, exact target identity, validator version, observed/effective state and workload acceptance as separate proof boundaries.
Validation
Validation establishes whether automation inputs, definitions, prerequisites, resulting state and acceptance conditions satisfy explicit rules before evidence is used to authorize progression or declare success.
1. Validation at every stage: inputs, syntax, schemas, preflight, postconditions, health.
2. Fail fast.
3. Automate in pipelines.
4. Clear messages.
5. Store evidence.
input → validate → change → validate → done
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
authoritative intent/criteria → input/schema/syntax → configuration semantics → preflight/preconditions → bounded operation → observed/effective state → post-change validation → health checks → acceptance verdict
Healthy evidence: criteria, versions, target identity and observed state are explicit, failures stop or constrain progression, and final acceptance is based on read-back plus independent service evidence.
Step 2 Target-state verification ladder Verify boundary
Validation uses a strict target-state ladder for asserted target state verification: request accepted → job/task succeeded → target object changed → effective runtime state confirmed → original workload verified.
Step 3 Verification path Verify boundary
To verify Validation, first record validation run ID, input/artifact revision, schema/rule version, target identity and acceptance-criteria version. Then check the result reported by the tool, and finally read the decision to permit/block automation and the independently observed post-change state when validation is used after mutation directly and compare it with what you intended.
Also test the cases that usually go wrong: stale schema, wrong input revision, permissive coercion, warning suppression, validation that checks syntax but not semantics and treating preflight success as post-change evidence.
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: validators run against stale inputs, results lack target identity, preflight is treated as permanent truth, or a green check substitutes for post-change workload evidence.
It does not show behavior or state outside the explicit criteria, test scope, evidence sources and observation window. Validation closes only the criteria that were explicitly evaluated against the captured inputs and state, but it does not show untested behavior, future stability or end-to-end service success.
Next check: Continue from the first unproven validation boundary: preserve criteria, source/input revision, validator version and exact target identity; re-read authoritative current state; distinguish requested, accepted, observed and effective state; then run the original health or acceptance condition before retry, bypass or closure.
Step 5 Where it fails Narrow the fault
Trace a failure along the path it takes: input/artifact → parser/schema → semantic/policy checks → acceptance decision → automation action → post-change state verification.
Typical problems with Validation: stale schema, wrong input revision, permissive coercion, warning suppression, validation that checks syntax but not semantics and treating preflight success as post-change evidence.
What to watch: rule/schema identity, input revision, fail/warn semantics, acceptance criteria and post-change evidence.
Before you retry a change, read the target's current state first, using validation run ID, input/artifact revision, schema/rule version, target identity and acceptance-criteria version.
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.
Subtopics
Go one level deeper into this subject.
Input Validation rejects malformed, out-of-range, ambiguous or unauthorized automation inputs before they can influence control flow or target state.
Subtopic Syntax ValidationSyntax Validation proves that an automation artifact conforms to the grammar and parser rules expected by the exact interpreter, tool or format version.
Subtopic Configuration ValidationConfiguration Validation evaluates whether a desired configuration is internally coherent, policy-compliant, compatible with the target and likely to converge before or after it is applied.
Subtopic Schema ValidationSchema Validation checks structured automation data against a declared versioned shape, required fields, data types, constraints and allowed composition rules.
Subtopic Preflight ChecksPreflight Checks gather decision-grade evidence immediately before automation starts so unsupported, unsafe or impossible operations fail before mutation.
Subtopic PreconditionsPreconditions are explicit facts that must be true at the decision point for an automation step to be valid, safe and deterministic.
Subtopic Post-change ValidationPost-change Validation determines whether an automation operation produced the intended effective state and preserved required service behavior after the target had time to converge.
Subtopic State VerificationState Verification proves what state a target actually exposes after automation, separating requested, accepted, observed, persistent and effective runtime state.
Subtopic Health ChecksHealth Checks sample explicit liveness, readiness and dependency conditions to decide whether an automated component or workload can safely receive traffic or continue a workflow.
Subtopic Acceptance CriteriaAcceptance Criteria convert intended automation outcomes into explicit measurable pass/fail conditions that must be satisfied before change, release or workflow closure.
- Validation passed ≠ workload outcome proven.
- A syntactically valid definition ≠ semantically safe or operationally correct.
- A pre-change check ≠ a guarantee that the condition remains true at execution time.
- One successful assertion ≠ complete validation coverage.
- Validation stages (input, syntax, config, pre/post) — coverage
- Validation failures stop runs — gating
- Validation results stored — evidence
ReferenceWhat it is1 section · depth on demand
Core model
Start from authoritative intent and versioned criteria, validate representation and semantics, show preflight/preconditions against current target state, execute only within the validated scope, then read back effective state and evaluate post-change health plus acceptance criteria.
ReferenceWhy it matters1 section · depth on demand
In depth
Validation in automation is the set of checks that prove inputs, generated changes and results are correct. It moves error detection as early as possible — ideally before anything touches a production system.
| Layer | Example |
|---|---|
| Input validation | Parameter types and ranges |
| Syntax validation | YAML, HCL, config syntax |
| Schema validation | Data matches the model |
| Preflight checks | Target ready for change |
| Post-change validation | Intended state reached |
Treat validation code like production code: version it, test it and review changes to it.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Validation closes only the criteria that were explicitly evaluated against the captured inputs and state, but it does not show untested behavior, future stability or end-to-end service success.
Mechanics
Automation → Validation is owned at runtime by the validator/schema/policy engine plus the automation workflow that gates a change based on validation results. Durable intent is versioned validation rules, schema/policy version, inputs, acceptance criteria and explicit failure policy; stable identity is validation run ID, input/artifact revision, schema/rule version, target identity and acceptance-criteria version. The consumer-visible target is the decision to permit/block automation and the independently observed post-change state when validation is used after mutation. The operating invariants are that rules are versioned, validation inputs are the intended revision, failures are specific, warnings are not silently accepted and post-change checks observe the real target. Follow the chain of components input/artifact → parser/schema → semantic/policy checks → acceptance decision → automation action → post-change state verification and record which layer currently owns truth.
ReferenceConfiguration & state1 section · depth on demand
Lifecycle
A fresh noninteractive execution should be reproducible from source-controlled intent plus documented prerequisites, and the release must retain enough identity to tie every result back to validation run ID, input/artifact revision, schema/rule version, target identity and acceptance-criteria version.
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. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://json-schema.org/learn/getting-started-step-by-step · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
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
Validation validation proof-boundary map
Fast criteria/scope, execution and effective-outcome proof boundaries for Validation.
| 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 |
Deep reference
Healthy vs suspicious evidence
Output interpretation
Capture at minimum validation run ID, input revision, schema/rule version, check name, pass/fail/warn, path/field, diagnostic, acceptance decision and post-change result.