Replace patch-stack reconstruction with safe pinned initialization and legacy checkout migration; use an engine-local packer and write artifact identities. Co-Authored-By: Codex <noreply@openai.com>