Go ~X speed for Y distance(+/-) on Z heading until you reach A landmark and then start a new set of instructions.
Dead reckoning via inertial sensors, cameras, etc are way to complex for the flight controllers without heavier hardware since theyre hugely inefficient.
AI at the sophistication to do this stuff is essentially bloatware. Like running electron instead of a bare metal gui.
So the limit isnt batteries, its fiber spools.
There has been lots of work to make fibre connected drones, so that they can't be located as easily (also the pilot)
A friend of mine worked on a covert comms system for the Rangers to use in the Battle For Berlin that thankfully never occurred. The idea was to clamp onto plumbing, fences, and similar infrastructure where possible. Nodes with radios handed off to other comms systems. It worked reasonably well in tests but I don't know that it went anywhere, point is that the theory is sound.
Perfect for Christmastime