@lykso in particular, we can construct this inductively, because a parallel directory traversal always starts from a single root, and proceeds fully hierarchically, so to begin we have no problems with open()ing a file descriptor for the root directory.
and it was at this precise point where i learned from the maintainer of musl libc (who had just recently implemented POSIX 2024.1's genuinely good decision to formalize posix_getdents(), which by itself makes a great deal of progress towards true transactional semantics for VFS operations in the filesystem
it also helped me greatly to motivate a radically different and highly experimental refactoring of this unbounded pseudorandom recursive unstructured parallel problem in terms of discrete actors operating upon fixed-size queues (which is essentially like a shell pipeline although the data flows over a kind of tetradron around the individual actors, as opposed to the extremely uniform sequential semantics of a pipe and/or ring buffer