IMO the main reason why agile isnt working is, that we just think of it as something that need to be applied on our processes, but we dont design our products — which is code in case of software development — to be agile as-well. I designed my architecture "Khipu" with this in mind: https://blog.devgenius.io/khipu-rapid-and-sustainable-software-creation-in-swift-using-engineering-and-science-principles-312a933cce57?sk=8359f48cc06571e53de156db8cbc005c
in my first article (Khipu == Core|UI) I even mention it as my prime motivation: https://decodemeester.medium.com/fully-declarative-swift-for-real-world-projects-9b6ee9403f4c?source=friends_link&sk=fb421abb99432831b6ecb8ac8d57ebf8