Validated Hooks v2 configuration loading, merging, and hashing.
Precedence (highest first, earlier in reduction order):
{project_root}/.deepagents/hooks.json~/.deepagents/hooks.json (or config_dir/hooks.json in tests)Sources are concatenated per event. Project groups precede user groups so a
project continue: false wins before lower-precedence handlers run.
Legacy list-shaped documents are migrated only for events whose lifecycle semantics genuinely match Hooks v2.