Automation · Automation Documentation
Inputs
Cheat sheet · https://pcornel.dk/topic.php?topic=6038
Answer
Documenting inputs lists every parameter, its type, allowed values, default and whether it is required, so users know exactly what to provide.
Remember
- Name, type, allowed values, default, required.
- Match the code's validation.
- Show an example.
First checks
- Input reference (name, type, required, default, example) — contract
- Generated docs (argument_specs, terraform-docs) — accuracy
- Validation rules documented — constraints
Verify in this order
code definitions → generated input docs
Where it usually breaks
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Automation Documentation → Inputs · operational reference
| Layer | Automation Documentation → Inputs operational reference |
|---|---|
| Context identity | JSON Schema 2020-12 / automation documentation + exact revision/input/target identity |
| Persistent intent | Versioned contract/configuration with explicit ownership and prerequisites |
| Verification | Validate inputs/read current state → exercise bounded operation → independent target read-back |
| Output contract | Preserve structured status/IDs/properties before human formatting |
| Failure boundary | Separate source/input/engine/controller execution from downstream target outcome |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6038