Port current mainline fixes onto the orchestrator v2 architecture. Co-authored-by: codex <[email protected]>