Drive the bd queue to zero. You are done when ALL of the following hold:

(1) the most recent `bd ready --json` invocation surfaced in this conversation returned an empty array `[]`; AND
(2) no issue is in the `in_progress` status (verify with `bd list --status in_progress --json` if not already surfaced this turn); AND
(3) the latest turn surfaced either a successful `git push` (when a remote is configured) or a transcript-visible confirmation that no remote is configured (`git remote` empty).

You may stop early if EITHER:
(a) you have closed <NTASKS> issues in this session (count only `bd close` calls that returned success), OR
(b) you have used <NITERS> turns since this goal was set.

When this condition is met, end the session. Do not start another task. Do not output a sentinel; the evaluator reads this transcript.
