closing a batch orphans the issues
When closing a batch (not needed cancelled etc) it leaves open tickets that are in a batched state but would be then orphaned as no onward process to clean up or restore without manually changing the label for every ticket. this addresses that issue
"3 — pre-batch pass: live now in main(), runs before the queue is read. This is the part that guarantees correctness; nothing can be missed by a batch run.
1 — scheduled job: dmr-reconcile is defined and its rule is ready. It fires on a schedule carrying DMR_RECONCILE=true, and is also available as a manual button on main.
Two things I can't finish from here.
The schedule itself has to be created in GitLab — CI/CD → Schedules → New schedule, on main, with a variable DMR_RECONCILE = true. Nightly is plenty. I've deliberately not created it: the job doesn't exist on main yet, so a schedule now would run pipelines with nothing in them until this merges. I can create it via the API once it's landed, if you'd like. "