@pack.initialize to add company files and defaults to a newly scaffolded agent. It runs after Harnest prepares its scaffold and before company configuration validation.
Register one synchronous initializer per pack. It proposes changes during planning, including dry runs; it never runs during upgrades. See the initializer contract for registration and validation rules.
Add defaults and generated files
The following hook assumespack declares a team option and a templates directory containing ci.yml:
config_model matches the fields the initializer produces.
Operations default to WritePolicy.IF_MISSING. They preserve values already provided by Harnest’s scaffold or an earlier pack. The planner still blocks overlapping ownership between different packs. See write policies.