const MAX_DEPTH: u32 = 100;
Depth cap, kept under append_parent_path’s 128-deep chain buffer so a pathological tree can never produce a truncated path silently.
append_parent_path