Scripts
Use scripts for adapter logic, validation, and data shaping close to execution.
Script boundaries
Keep scripts narrow and deterministic. External side effects should be explicit and observable.
- Normalize provider payloads
- Apply domain policy before writes
- Format outputs for routine/workflow handoff
Versioning guidance
Prefer small script units with clear names. Replace in place only when behavior is backwards compatible.