loop_guard.py now checks Gitea API for open issues before returning queue items. Closed issues are filtered out and queue.json is automatically cleaned. Graceful fallback: if API unreachable, returns unfiltered queue (no regression).