{ "title": "Split wsg_grabber/downloader.py under the 250-line cap", "objective": "Bring python_pkg/wsg_grabber/downloader.py (420 lines) under the repo-wide 250-line file cap by separating the Worker class's two independent halves -- walking the board and fetching a claimed file -- into mixins, with no change to behaviour, to the public Worker API, or to how the tests drive it.", "acceptance_criteria": [ "downloader.py, _scan.py, _fetch.py and _worker_base.py are each at most 250 lines.", "All 277 python_pkg/wsg_grabber tests pass unchanged, including the ones that call worker._download_one() and worker._fetch_thread() as bound methods.", "The package holds 100% branch coverage: no new uncovered lines are introduced by the split (in particular, no NotImplementedError stub bodies).", "pre-commit passes on all four files with no suppression added -- no # noqa, no # type: ignore, no pylint disable, no new per-file-ignores in meta/pyproject.toml." ], "out_of_scope": [ "Any behaviour, retry, backoff or state-transition change.", "Any change to the test files.", "Splitting the wsg_grabber test files -- that is separate work.", "Adding pylint mixin configuration to meta/pyproject.toml." ], "verifier": "pre-commit run --files python_pkg/wsg_grabber/downloader.py python_pkg/wsg_grabber/_scan.py python_pkg/wsg_grabber/_fetch.py python_pkg/wsg_grabber/_worker_base.py (runs ruff, ruff format, mypy, pylint, bandit and the coverage-gated pytest), plus bash ~/utils/scripts/check_file_length.sh --all for the cap itself." }