Skip to content

chore: delete four orphan modules #449

Closed

Description

@Sinity

Discovered by

orphan-module-audit agent (swarm 2026-04-26). Full report: .agent/scratch/swarm-2026-04-26/orphan-module-audit.md.

Problem

Four production modules are unused outside of trivial re-exports and have no __main__ block, no console-script registration, and no factory/loader pattern that would justify their presence:

Path LOC Notes
polylogue/cli/embed.py 12 Trivial; appears to be refactoring debris
polylogue/cli/products_workflow.py (already flagged) Compatibility shim per #414; this issue tracks the deletion
polylogue/schemas/semantic_inference_scoring.py small Replaced by semantic_inference_scoring_* split (per #321)
polylogue/lib/markdown.py 56 No importers anywhere in production or tests

The audit confirmed each via grep (no from polylogue.X.Y or import polylogue.X.Y in production), checked __main__, and confirmed they aren't in pyproject.toml's [project.scripts].

Target

Delete the four files. Update any test files that reference them. Run devtools verify to confirm nothing breaks.

The cli/products_workflow.py deletion is partly covered by #414 already; this issue tracks the actual git rm and verifies #414's scope can drop it cleanly.

Acceptance criteria

  • Four files deleted in one focused PR.
  • devtools verify --quick and full pytest pass.
  • devtools verify-test-ownership (per feat(devtools): test-ownership manifest #437) reports no new uncovered modules (these were already not covered).
  • git log -p evidence cited for each deletion: who last wrote it, what feature it was added for, why it's safe to remove.

Out of scope

The audit also flagged 5 moderate-priority modules requiring architectural verification before deletion (operations/archive.py 1,012 LOC, cli/query_output.py 884 LOC, etc.). Those need separate investigation; not part of this issue.

Related

Activity

  1. added
    type:chore
    phase:architecture
    on Apr 26, 2026
  2. added a commit that references this issue on Apr 26, 2026
    8b15249
  3. added a commit that references this issue on May 7, 2026
    1a1b676
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    phase:architecturetype:chore

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions