Earlier quoted context omitted.
I have some experience on this and could make an article if you are interested. The key is to have downstream sources and be very very conservative with the AI, slowly build step by step. You also have to know C and have a spider sense of what's acceptable or not. Another key is to ask for approval before editing any source with a patch of what it intends to do. This way you can judge what it wants to do and ask for…
Please do write an article! I've wanted to get into reusing old android hardware for quite some time now, but never knew where to look for good instructions to get started. Especially PostmarketOS seems very interesting, but rather underdocumented in some places.
As for PostmarketOS, I've built my own tooling scripts around it to make it easier to build patches, debug hex variables, switch between downstream/mainline and rebuilding everything with a single command. (Unrelased yet though).
I find their tooling okay for a release for end-users but a bit clunky for debugging.