Split container handling from the file table and add a read-only PE view for the patch engine. Apply declarative script edits at unique anchors and preserve the input line endings and unmodified bytes. Round-trip the 2.61.0.37 GUI pack byte-for-byte and verify that invalid edit definitions and ambiguous matches are rejected.