Skip to content

chore(audit): delete zero-importer Python modules and dead backend imports - #2565

Merged
groupthinking merged 3 commits into
mainfrom
cursor/delete-zero-importer-python-0ce1
Nov 4, 2026
Merged

groupthinking merged 3 commits into
mainfrom
cursor/delete-zero-importer-python-0ce1

Conversation

@kk-agent

@kk-agent kk-agent commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Deletes Python modules nothing imports, and removes dead import sites for the deleted backend.

Closes #2328

#2328 covers three kinds of leftovers: archived folders, deleted-backend Python stubs, and docs tied to removed systems. #2557 (archived folder), #2560 (obsolete docs) and #2565 (deleted-backend stubs) together cover all three, and all three carry this closing keyword. docs/knowledge_prototypes is the only archived folder left on main. This PR covers the deleted-backend-stub part.

Findings

Done:

  • src/backend/ — ActionRepository had no other hit. Deleted the empty package and in-memory repository.
  • src/youtube_extension/experiments/ — 19 from experiments import * re-exports (the audit counted 20). No importer of this tree. src/experiments/ kept.
  • src/youtube_extension/intelligence/ — __init__.py imports .agents, .gemini, and .multimodal, which are not in the tree. No importer. Deleted.
  • src/youtube_extension/integrations/cloud_ai.py — import resolves to cloud_ai/__init__.py. The module file never loads. Deleted.
  • processors/video_processor.py, services/video_processor_facade.py, services/pipeline_job_store.py, core/blocking_io.py — no Python importers. Blocking I/O callers use integrations/cloud_ai/blocking_io.py. Deleted.
  • src/integration/test_file.txt and src/agents/prompts/debug_prompts.js — no references. Deleted.
  • Shim re-exports services/agents/agent_orchestrator.py, hybrid_vision_agent.py, video_master_agent.py — tests already import services/agents/adapters/. No test import updates. Deleted.
  • src/agents/enhanced_video_processor.py and src/agents/video_to_action_workflow.py — no importer besides each other, and no tests. Deleted.
  • mcp_agent_network.py — removed the get_youtube_tool branch and the youtube_extension.backend.ai_code_generator try.
  • mcp_ecosystem_coordinator.py — removed the backend.containers.service_container try and the loop that only called it.
  • pipeline_orchestrator.py — removed the backend.llm_router import that then passed.
  • integrations/__init__.py — removed the module docstring that listed Frontend, Deployment, Optimization, and QA integrations that are not in the tree.

Skipped:

  • src/integration/gemini_video_fix.py — tests/unit/test_gemini_parameters.py imports integration.gemini_video_fix through importlib. Left in place.

Not touched: src/youtube_extension/main.py, cli.py, services/ai/hybrid_processor_service.py, src/skills/, src/uvai/ml/.

Verification

  • python3 -m compileall -q src/ passed.
  • Local pytest tests/unit/ (CI flags): 3052 passed. The other 11 failed only because this environment has no python binary on PATH (bash: python: command not found in test_dependency_review_workflow.py). Re-ran that file with python on PATH: 24 passed.
  • pytest tests/test_skills_integration.py tests/security/test_local_mcp_config.py tests/security/test_mcp_catalog_approval.py -q -o addopts='': 72 passed.
  • GitHub CI on 41e2e947: Python 3.11, Python 3.12, guards, build, lint-python, and lint-frontend passed.
  • CI / test-frontend failed on home-sell-surface.test.ts looking for prepares proposed work and build rails for you to review in Studio. apps/web/src/app/page.tsx says Studio prepares proposed work and build rails for you to review. That mismatch is already on main (cd7e1998f); main's test-frontend job is red for the same reason. This pull request does not change web files.

No web files changed, so npm ci, build, lint, and test were not run locally.

Open in Web Open in Cursor 

Remove modules nothing imports and the dead backend import sites those modules left behind.

Co-authored-by: KK <kk-agent@users.noreply.github.com>
@vercel

vercel Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
v0-uvai Ready Ready Preview, v0 Nov 4, 2026 6:56am UTC

@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T16:11:19.768946Z 41e2e94 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

⚠️ Repository reconciliation: this PR does not reference exactly one canonical issue.

Please add a Closes #<issue> reference in the PR description so it can be tracked against the delivery plan.

See governance: #898

@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

🔍 PR Validation

⚠️ Large PR detected (1198 lines changed)

@github-actions github-actions Bot added javascript Pull requests that update javascript code python labels Nov 3, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 41e2e94759

ℹ️ 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".

Comment thread src/agents/mcp_agent_network.py Outdated
Comment on lines 228 to 230
# Route to Vercel API
elif endpoint.startswith("https://api.vercel.com"):
if endpoint.startswith("https://api.vercel.com"):
return await self._call_vercel_api(action, payload)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve explicit failures for the removed tool routes

When running the legacy pipeline through scripts/testing/run_orchestrator.py, the unchanged config/agent_network.json still routes video ingestion to localhost:8010 and code generation to internal://ai_code_generator. Removing their handlers makes both calls fall through to static {"status": "routed", ...} responses instead of the explicit errors previously returned for unavailable implementations. VideoPipelineOrchestrator._execute_agent_stage treats any response without an error key as successful, so it now emits successful stage events, can record successful VERA proofs, and passes empty routing metadata downstream without processing the video or generating code. Keep explicit unsupported/unavailable errors for both removed routes rather than allowing these configured actions to fall through.

Useful? React with 👍 / 👎.

Comment thread src/agents/mcp_agent_network.py Fixed
Stop agent network config and pipeline dispatch from calling the removed YouTube and code-generator handlers, and drop the routed success returns those calls used.

Co-authored-by: KK <kk-agent@users.noreply.github.com>

# Route to Vercel API
elif endpoint.startswith("https://api.vercel.com"):
if endpoint.startswith("https://api.vercel.com"):
@groupthinking
groupthinking merged commit 39fb06d into main Nov 4, 2026
30 checks passed
@groupthinking
groupthinking deleted the cursor/delete-zero-importer-python-0ce1 branch November 4, 2026 07:08
groupthinking added a commit that referenced this pull request Nov 4, 2026
Resolve config/agent_network.json against #2565: keep main's tool edits and
drop the seven uvai-skills agents and the gtm-skills server, as this PR intends.

This branch was successfully deployed

1 active deployment
Preview — 0bdea787 Deployed Nov 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

javascript Pull requests that update javascript code python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove dead archives, backend stubs, and obsolete docs

4 participants