Commit Graph

1 Commits

Author SHA1 Message Date
drew 363bcfad61 refactor(auto-agents): extract _classify_metadata_only as the first C2 step
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>
2026-05-15 20:29:59 -04:00