A Hidden AFTER_COMMIT Event-Nesting Bug

A subtle transaction-event bug introduced during an AI-assisted refactor