Skip to content

refactor: split infrastructure/embedding_engine.py — 582 lines, over the §4.1 hard limit #173

Description

@cdeust

Dated remediation item (2026-07-25, per coding-standards §13) surfaced during #169/PR #172: embedding_engine.py was already 506 lines (over the repo's 300-line cap and the §4.1 500 hard limit) before the fallback work and grew to 582 with it. The overage predates #169; the fix is an extraction along the concern boundary (model lifecycle / neural encode path / fallback selection are three responsibilities). Refactorer-shaped task: behavior-preserving split, no API change, tests unchanged.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions