Explain this code in simple engineering terms.

Focus on:
- What this code does
- Important inputs and outputs
- Hidden dependencies
- Possible risks or edge cases

Do not rewrite the code.
Keep it short.

---

**Recommended model:** Claude Haiku 4.5 / GPT 5 mini Low
