Repository navigation
Description
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 --quickand 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 -pevidence 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
- refactor: rationalize product ownership and package boundary #414 — product ownership; products_workflow.py shim removal coordinates here.
- refactor: unify query semantics under field descriptors #321 — query/semantic refactor that obsoleted semantic_inference_scoring.py.
- chore: track post-renewal consolidation and architectural cohesion #401 — post-renewal consolidation umbrella.
Activity
chore: delete one orphan re-export shim
chore: delete one orphan re-export shim (#452)