Parent: #467; blocks the budget/termination acceptance of #1096. Related #466 and #491.
Executed against engine source archived from main commit 2eeae7a and against the #1096 draft. This is a pre-existing native callback checkpoint defect, exposed again by broader environment admission.
A warmed, fully native function budgetWrite(rhs) { var result = rhs(); return result; } calls an RHS that increments a global and returns 7. Drive the same function through required bytecode with optimizer disabled/enabled, starting the interpreter counter at each step from 992 through 1023. With a 1024-step budget, main's optimizer returns 7 where bytecode throws RangeError at step 1025. With cooperative stop requested, it returns where bytecode stops at step 1024. The exact-parent control has 8 mismatches out of 64 cells. One example: start 1010, budget 1024, bytecode throws at 1025; native returns 7 at 1025.
The retained-with writer in #1096 has 12 mismatches out of 64 cells. At start 1011, budget 1024, bytecode throws at 1025 before assignment; native reaches 1029 and writes the property. This is an externally visible effect difference, not just accounting.
The entry reservation excludes dispatch consumed by runtime re-entry. After a successful callback, generated code continues using that earlier reservation and may skip the next exact watchdog/cooperative checkpoint.
Definition of done:
- Successful native callbacks publish an exact post-operation continuation, including locals, operand stack, handlers, environments/References, result/base projections and roots; no callback or mutation is replayed.
- Continuation revalidates the remaining native budget/checkpoint window after re-entry and keeps cached loop budget counters consistent with the live interpreter counter.
- The 64-cell exact-parent callback control and 64-cell retained-with control match forced bytecode in result/exception, dispatch count and visible effects; extend to branch/loop, accessor and caught-callback cases.
- Recovery/verifier/OOM, moving-GC, shared-realm and unsuppressed TSan qualification, affected exact-parent conformance and production gates pass; land a small conventional fix on main with evidence.