Applies `ruff format` to the accumulated formatting debt on this branch.
Formatting-only — no behavioral changes. Required for CI/lint's format
gate (`nox -s format -- --check`), which the branch was failing on 288
tracked files that drifted from ruff's canonical style.
In-progress WIP files are intentionally excluded so this commit stays a
clean formatting-only diff.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
dispatch_implementer.py is 3225 lines — well over the ~500-line per-
module budget the rest of tools/ honours. C2 is the long-overdue
decomposition; this commit starts the work with the smallest /
cleanest extraction available: the pure G1 metadata-only classifier
(no module state, single public surface) moves to a new sibling
_implementer_metadata_classifier.py, loaded through the existing
_loader.load_sibling machinery just like every other helper in this
file.
The leading-underscore alias dispatch_implementer._classify_metadata_only
re-exports the function so the G1 tests (and any other call sites)
keep working unchanged. The extraction is a pure refactor — the
full 1754-test auto-agents suite passes unchanged.
Subsequent C2 steps (extract _post_session_action_with_escalation —
the ~350-line nested loop the harvest plan singled out by name —
plus prompt-assembly + short-circuit blocks) are larger pieces that
warrant fresh-context attention. This commit establishes the
pattern (new module, _load_sibling line, leading-underscore alias)
for those follow-ups.
Refs: docs/development/final-working-harvest-plan.md (C2).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>