instrument

private fun instrument(cof: Map<String, ByteArray>, killIdField: String, evalId: Int): Map<String, ByteArray>

Instrument every real .class in the compiled script — top-level AND lambda/iterator synthetics (the iterator{} body lives in a synthetic $...invokeSuspend class, so instrumenting only the top-level class would miss the cross-tick loop). Metadata (.kotlin_module) rides along untouched. A failure on any one class fails the whole eval.