Repository navigation
chore: clean baseline — drop 3 dead modules, split artifacts/__init__.py (#599, #729) - #752
Conversation
Closes #599, partially closes #729. ## Problem - `polylogue/artifacts/__init__.py` had grown to 1072 lines mixing type definitions with a large runtime artifact graph data block (#599). - Static analysis (#729) identified 5 dead-or-test-only modules. Three are truly unused; two were misclassified. ## Solution ### #599 — split artifacts/__init__.py - `polylogue/artifacts/descriptors.py` (60 lines) — `ArtifactLayer`, `ArtifactNode`, `ArtifactPath`. - `polylogue/artifacts/runtime.py` (1005 lines) — `RUNTIME_ARTIFACT_NODES`, `RUNTIME_ARTIFACT_PATHS`, builders. - `polylogue/artifacts/__init__.py` (21 lines) — re-export shim. All existing imports keep working. ### #729 — delete dead modules (3 of 5 candidates) Deleted, with their tests: - `polylogue/showcase/context.py` — confirmed dead. - `polylogue/cli/insights_rendering.py` + `tests/unit/cli/test_insights_helper_runtime.py` — docstring already noted "replaced by generic render_insight_items()". - `polylogue/cli/shared/qa_finalization.py` + `tests/unit/cli/test_qa_finalization.py` — never wired to a CLI verb. Kept (with rationale): - `polylogue/cli/shared/schema_command_support.py` — actually used by `devtools/schema_generate.py:9`. #729 missed this devtools dependency. - `polylogue/archive/query/read_fields.py` + `tests/unit/core/test_query_read_fields.py` — load-bearing for the API-method-parameter parity check in `test_query_field_catalog_covers_api_query_method_names` (covers `content_projection`). Will be subsumed by the unified `QueryFieldDescriptor` in #621. ### Generated surface drift Regenerated `docs/verification-catalog.md` via `python3 devtools/render_all.py`. ## Verification - `ruff format --check polylogue/ tests/ devtools/` — clean - `ruff check polylogue/ tests/ devtools/` — clean - `mypy polylogue/artifacts/` — clean - `pytest tests/unit/core/test_query_fields.py tests/unit/core/test_query_read_fields.py` — 12 passed - Earlier full-dir pytest (1038 passed, 1 expected failure now resolved by restoring read_fields.py) - `python -c "from polylogue.artifacts import ArtifactLayer, ArtifactNode, ArtifactPath, RUNTIME_ARTIFACT_NODES, RUNTIME_ARTIFACT_PATHS, build_runtime_artifact_nodes, build_runtime_artifact_paths"` — imports OK Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (9)
📝 WalkthroughWalkthroughThe PR refactors the artifact system into separate, typed modules and removes obsolete CLI/showcase components. It extracts artifact descriptor models and runtime graph definitions into dedicated modules, converts the main artifacts module to a re-export surface, updates documentation references, and deletes five modules that no longer fit the architecture. ChangesArtifact System Refactoring
CLI and Showcase Module Deletions
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested labels
Poem
✨ 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. Review rate limit: 0/1 reviews remaining, refill in 60 minutes.Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5156b312e0
ℹ️ 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".
…anup (#634) (#765) Remove 3 stale topology entries for files deleted in #752 (showcase/context.py, insights_rendering.py, qa_finalization.py). Regenerate topology-status.md. lib/ → archive/ migration done. storage/backends → sqlite done. products → insights done. Closing #634. --------- Co-authored-by: Claude Opus 4.7 <[email protected]>
….py (#599, #729) (#752) ## Summary Drops 3 confirmed-dead production modules and splits the 1072-line `polylogue/artifacts/__init__.py` into 3 files. ## Problem - `polylogue/artifacts/__init__.py` had grown to 1072 lines mixing type definitions with runtime graph data (#599) - Static analysis (#729) identified 5 candidates; 3 are truly dead ## Solution ### #599 — split artifacts/__init__.py - `descriptors.py` (60 lines), `runtime.py` (1005 lines), `__init__.py` (21 lines re-export shim) ### #729 — delete dead modules - `showcase/context.py`, `cli/insights_rendering.py`, `cli/shared/qa_finalization.py` + dependent tests Kept: `schema_command_support.py` (used by devtools), `read_fields.py` (load-bearing; subsumed by #621) ## Verification - ruff/mypy/import smoke — clean Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
…anup (#634) (#765) Remove 3 stale topology entries for files deleted in #752 (showcase/context.py, insights_rendering.py, qa_finalization.py). Regenerate topology-status.md. lib/ → archive/ migration done. storage/backends → sqlite done. products → insights done. Closing #634. --------- Co-authored-by: Claude Opus 4.7 <[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
Drops 3 confirmed-dead production modules and splits the 1072-line
polylogue/artifacts/__init__.pyinto 3 files.Problem
polylogue/artifacts/__init__.pyhad grown to 1072 lines mixing type definitions with runtime graph data (refactor(artifacts): move catalog declarations out of package root #599)Solution
#599 — split artifacts/init.py
descriptors.py(60 lines),runtime.py(1005 lines),__init__.py(21 lines re-export shim)#729 — delete dead modules
showcase/context.py,cli/insights_rendering.py,cli/shared/qa_finalization.py+ dependent testsKept:
schema_command_support.py(used by devtools),read_fields.py(load-bearing; subsumed by #621)Verification
Summary by CodeRabbit
Documentation
Refactor
Tests