Repository navigation
chore: delete one orphan re-export shim - #452
Conversation
📝 WalkthroughWalkthroughThis pull request removes an unused module, Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5fcee109cb
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Closes #449. Per the orphan-module audit (.agent/scratch/swarm-2026-04-26/orphan-module-audit.md), `polylogue/schemas/semantic_inference_scoring.py` (13 LOC) is a re-export shim split out by #321 (closed) with zero importers in production or tests. Deleting it. The audit also flagged three other modules that did not survive verification: - `polylogue/cli/embed.py` (audit claimed 12 LOC) — already absent from the tree at master. - `polylogue/lib/markdown.py` (audit claimed 56 LOC) — already absent. - `polylogue/cli/products_workflow.py` (audit claimed orphan) — actually imported by `tests/unit/cli/test_products_helper_runtime.py`. The audit excluded tests/ from its grep; the module is a real test importer. Restored. The audit reality-check pattern: structural-cohesion lints catch what manual audits miss (test imports, namespace packages, factory loaders). Topology projection regenerated to drop the deleted row. devtools verify --quick passes; tests/unit/cli/test_products_helper_runtime.py passes (was failing before products_workflow.py was restored). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
5fcee10 to
8b15249
Compare
## Summary Closes #449. Deletes one unused re-export shim. Audit reality-check found three of the four flagged modules don't survive verification. ## Problem The orphan-module audit (`.agent/scratch/swarm-2026-04-26/orphan-module-audit.md`) flagged 4 production modules as deletion candidates. On verification against master, only one is genuinely orphan and deletable: | Audit candidate | Reality | |---|---| | `polylogue/cli/embed.py` | already absent from tree | | `polylogue/lib/markdown.py` | already absent from tree | | `polylogue/schemas/semantic_inference_scoring.py` | truly orphan — to delete | | `polylogue/cli/products_workflow.py` | NOT orphan — imported by `tests/unit/cli/test_products_helper_runtime.py`. The audit grep excluded `tests/`. | ## Solution Delete `polylogue/schemas/semantic_inference_scoring.py` (13 LOC) — re-export shim split out by #321 (closed) with zero importers in production or tests. Regenerate `docs/plans/topology-target.yaml` to drop the deleted row. Net deletion: **one** file. The audit's hit rate was 1/4 once tested against the realized tree. ## Verification ``` $ devtools verify --quick verify: all checks passed (incl. all 8 lints) $ pytest tests/unit/cli/test_products_helper_runtime.py 3 passed # confirms products_workflow.py is required by tests ``` ## Pattern observation The structural-cohesion lints (#429/#435/#437) catch what manual audits miss: test importers, namespace packages, factory-loaded modules. Future orphan-deletion sweeps should run `verify-test-ownership` first to cross-check. ## Related - #321 — refactor that obsoleted `semantic_inference_scoring.py`. - #437 — test-ownership manifest. - #401 — post-renewal consolidation umbrella. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
|
Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.
Only the rows listed above are dispositioned. Held findings remain open. |
Summary
Closes #449. Deletes one unused re-export shim. Audit reality-check found three of the four flagged modules don't survive verification.
Problem
The orphan-module audit (
.agent/scratch/swarm-2026-04-26/orphan-module-audit.md) flagged 4 production modules as deletion candidates. On verification against master, only one is genuinely orphan and deletable:polylogue/cli/embed.pypolylogue/lib/markdown.pypolylogue/schemas/semantic_inference_scoring.pypolylogue/cli/products_workflow.pytests/unit/cli/test_products_helper_runtime.py. The audit grep excludedtests/.Solution
Delete
polylogue/schemas/semantic_inference_scoring.py(13 LOC) — re-export shim split out by #321 (closed) with zero importers in production or tests.Regenerate
docs/plans/topology-target.yamlto drop the deleted row.Net deletion: one file. The audit's hit rate was 1/4 once tested against the realized tree.
Verification
Pattern observation
The structural-cohesion lints (#429/#435/#437) catch what manual audits miss: test importers, namespace packages, factory-loaded modules. Future orphan-deletion sweeps should run
verify-test-ownershipfirst to cross-check.Related
semantic_inference_scoring.py.🤖 Generated with Claude Code