Repository navigation
refactor(infrastructure): remove viz_client, a read client with no caller (#724, slice 5) - #900
Conversation
…ller (#724, slice 5) viz_client.py was written for the query_workflow_graph handler, which left mcp_server/ with the extraction of the visualization stack into cortex-viz (docs/audits/visualization-companion-backends-2026-11-05.md §6). No module imports it; only its own test exercised it. The craftsmanship baseline drops its fetch_live_graph method-size entry. Refs #724 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018kyZYtBmbg1yQFN984DbSe
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Claude finished @cdeust's task in 1m 41s —— View job PR #900 review (review 1 of 3)
Result: no Blocker found. No code, tests, scripts, workflows or configs still reference I didn't run pytest, ruff or the craftsmanship gate. These findings come from reading the code. The three Notes (stale ADR-1112 sentence, ADR-0623 status, audit §6 checklist) and the verdict are in the review comment. Verdict: approve |
Review 1 of 3: PR #900 (
|
Summary
Slice 5 of #724: removes
mcp_server/infrastructure/viz_client.pyand its test. The module was the read side of thequery_workflow_graphhandler, which leftmcp_server/when the visualization stack moved to cortex-viz (docs/audits/visualization-companion-backends-2026-11-05.md§6). No module imports it. The writer of the registry it read (mcp_server/server/viz_instance.py) is gone too. Only its own test called it. CLAUDE.md forbids compatibility shims, and §9 of the template forbids dead code, so the module is removed rather than given a caller.Refs #724 (slice 5 of 6; not
Closes: slices 1–4 wait for the owner's decision on the companion's SQLite support, and slice 6 lives in the companion repository).Root cause: the extraction of the visualization stack (commits
77dba678/67286929per the audit, not verifiable in this shallow clone) removed the handler but not its infrastructure client.Type of change
Test plan
grep -rn viz_client mcp_server tests_py scripts benchmarks --include=*.py: no match after removal.python scripts/check_craftsmanship.py: before, it reports the stale baseline entry[method-size] viz_client.py: fetch_live_graph. After--write-baselineit reportsOK, with only that entry dropped (diff −6/+1).pytest tests_py/core/test_wiki_drift.py tests_py/scripts tests_py/infrastructure/test_project_wiki_mirror.py tests_py/test_shared_host_decisions.py: 1903 passed, 15 skipped. PostgreSQL is absent in this session.ruff check(0.17.3, theuv.lockversion) reports 8 E501 errors. All 8 are onmaintoo, in files this PR does not touch (scripts/ci_pipeline_source_contract.py,scripts/tests/test_no_main_comparison.py,tests_py/scripts/test_ci_review_required.py).Not verified here: the full suite.
torchcould not be installed through this session's proxy, so the environment was synced with--no-install-package torch. CI is the receipt.Audit notes
wiki/adr/migration/0623-viz-client.mdand its mirror) and theviz_clientsentence of ADR-1112 are kept unchanged. They are historical decision records, and the migration ADRs preserve evidence verbatim. Whether to mark ADR-0623supersededis left to the owner.Coding-standards compliance
Breaking changes
None: no caller existed.
Generated by Claude Code