Intent-Code Divergence
Medium
- Confidence
- 91% confidence
- Finding
- The code hard-codes sample size re-estimation to occur only when the simulator knows it is running under the alternative hypothesis, using simulation truth rather than observable trial data. This leaks oracle knowledge into the adaptive rule, producing biased power/Type I error estimates and potentially unsafe trial design recommendations that could invalidate a clinical study.
