The Chain That Forces the Design
Start from a requirement nobody argues with: the two versions must be the same course. Same structure, same examples, same code, same links, same claims. That single requirement runs a chain to the bottom, and every link is forced.
Correspondence means the two cannot be written independently, because two independent authors produce two different courses. Not-independent means one is written first and the other follows it. Following means the second author holds the first version while writing. Holding it means the second version is shaped by it. So contamination is not a mistake in the process; it is a consequence of the requirement.
Which changes the question entirely. You do not get to ask how to avoid contamination. You only get to ask where it is removed — and it cannot be removed by the context that produced it, because that context is exactly what would have to be set aside.
Why One Pass Cannot Do Both
Authoring and de-contaminating are not two halves of a task; they are two tasks with incompatible requirements. The authoring session must hold the source — that is its job, and withholding it would produce a different course. The repairing session must not hold it — that is its job, and holding it produces exactly the defect being repaired.
Asking one session to do both is asking it to forget on command, which is the single thing attention does not do on request. Every failed attempt in this workshop's history was a version of that request, phrased more and more politely.
The Alternative That Was Measured and Rejected
The obvious escape is a clean room: let a second author write the other version from scratch, from the same outline, never seeing the first. It was considered seriously and rejected, because syncing structure, code, and links across two independent authors is not hard — it is impractical to the point of producing two different products. Every later edit would need to be applied twice, by two people, with no mechanism to prove they matched.
What survives from that idea is narrower and still useful: a different author may write the second version as translation, with the source in frame. That keeps correspondence and moves the contamination to a different mind, which is worth something. It does not remove the need for the cold pass, because the second author is still holding the source.