Pcornel
Automation · Automation Documentation

Inputs

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

Back to the Topic

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

LayerAutomation Documentation → Inputs operational reference
Context identityJSON Schema 2020-12 / automation documentation + exact revision/input/target identity
Persistent intentVersioned contract/configuration with explicit ownership and prerequisites
VerificationValidate inputs/read current state → exercise bounded operation → independent target read-back
Output contractPreserve structured status/IDs/properties before human formatting
Failure boundarySeparate 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

Confirmation

Confirm action

Continue?