Expand description
Shared recursive contract directory walker.
Multiple pv subcommands need to load every YAML contract under
a directory tree (including subdirectories like contracts/aprender/,
contracts/trueno/, contracts/patterns/). This module provides the
canonical walker so commands agree on what counts as a contract and
which sidecar files to skip.
Functions§
- collect_
contracts - Walk
dirrecursively and collect every parseable.yamlcontract intooutas(stem, contract)pairs.