I totally agree. I am currently trying to figure out how to best do that with todo.txt with the minimal amount of dependencies. I liked in taskwarrior how all the tasks were numbered and could be referenced, but it required a big infrastructure in taskwarrior, which is more painful in todo.txt.