WhyThis document explains the two different traversal strategies for package hydration in Porch’s rendering pipeline: Depth-First Search (DFS) and Breadth-First Search (BFS). These strategies determine the order in which kpt packages and their subpackages are processed during mutation and validation. BackgroundPorch uses a hydration process to transform kpt packages by running functions (mutators and validators) defined in Kptfiles. The order in which packages are processed can significantl...