HOWTO: Author a Module Spec¶
A module spec is the machine-readable contract that defines everything HyOps needs to validate, execute, and record a module safely. This HOWTO walks through authoring a module spec from scratch: declaring inputs with types and constraints, writing the contract block, defining ordered steps with rollback intent, and registering the supporting records your module will produce. By the end, your module can be invoked by the HyOps CLI with full preflight coverage.
What this covers:
- Module spec schema: inputs, contract, steps, run-record declarations, and version metadata
- Input constraint authoring: required fields, types, secret references, and conditional rules
- Run-record declaration patterns and how they appear in the run record