Intent-Code Divergence
Medium
- Confidence
- 95% confidence
- Finding
- The top-level helper `take_task()` mutates the in-memory queue by moving a task from `ready` to `in_progress` but never calls `write_queue()` to persist that state. In a task orchestration or agent setting, this can cause the same task to be repeatedly handed out, leading to duplicate execution, inconsistent workflow state, and possible repeated side effects if tasks trigger external actions.
