Lands reviewed fixes based on #25839 (@pewallin), #25841 (@joshjhall), and #25737/@25713 (@DennisGoldfinger/@peteragility), with additional hardening + regression tests for queue cleanup and shell script safety. Fixes #25836 Fixes #25840 Fixes #25824 Fixes #25868 Co-authored-by: Peter Wallin <[email protected]> Co-authored-by: Joshua Hall <[email protected]> Co-authored-by: Dennis Goldfinger <[email protected]> Co-authored-by: peteragility <[email protected]>