Repository navigation
chore(audit): remove fake-success skills and hybrid mock path - #2566
Conversation
Delete the seven BaseSkill packages that reported success without a model call, and return a Gemini-unavailable failure instead of mock JSON. Co-authored-by: KK <kk-agent@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
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. |
🔍 PR Validation |
|
Please add a See governance: #898 |
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.
# Conflicts: # skills-lock.json
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Outcome
A missing Gemini key no longer becomes a successful AI result. The seven BaseSkill packages that logged a future Gemini call and returned
generated: True/ queued success are gone, and the hybrid processor returns a failure when Gemini is unavailable.Findings
src/skills/**fake-success packages: done. Deletedcontent_generation,email_campaign,seo_optimizer,analytics_dashboard,lead_scorer,ab_testing,social_scheduler, andbase.py. Deletedtests/test_skills_integration.py, the only test that covered that tree. Removed the matchinguvai-skillsentries fromskills-lock.jsonandconfig/agent_network.jsonso discovery cannot load the deleted modules.hybrid_processor_service.pymock success path: done. Deleted_generate_mock_response,enable_mock, andYOUTUBE_EXTENSION_MOCK_AI. Unavailable Gemini now returnssuccess=False,response=None,error="Gemini not available or not initialized". Deleted_record_api_usage(it imported the already-removedapi_cost_monitor) and the usage-tracking call that depended on it.ProcessingModeis onlyCLOUD_ONLY. Dropped the compatibility header.rgstill finds importers inservices/ai/__init__.py,hybrid_vision_agent.py,personality_agent.py,strategy_agent.py,transcript_action_agent.py, andtests/unit/test_agent_adapters.py.YOUTUBE_EXTENSION_MOCK_AI: done.rgon currentmainfound it only in the hybrid service andtests/unit/test_hybrid_processor_service.py. Both references are removed. No env-example hits.src/skills/oruvai-skills(docs/ARCHITECTURE_DIAGRAM.md, triage notes): skipped. They are not live success paths.Related: #2328
Verification
rg YOUTUBE_EXTENSION_MOCK_AIandrg 'backend="mock"|_generate_mock_response'outside docs: no matches after the change.python3 -m compileall -q src/passed.PYTHONPATH=src python3 -m pytest tests/unit/ -q --timeout=120 --cov=src/youtube_extension --cov-fail-under=0 --ignore=tests/unit/test_transcript_action_workflow.py -k "not integration": 3027 passed, 11 failed. The 11 failures aretests/unit/test_dependency_review_workflow.pybecause this environment has nopythonbinary (bash: python: command not found). Re-ran that file withpythononPATH: 20 passed. Hybrid processor tests passed in the same run.PYTHONPATH=src python3 -m pytest tests/security/test_local_mcp_config.py tests/security/test_mcp_catalog_approval.py -q -o addopts='': passed (included in the 130-passed follow-up run).npm ci/npm run build/npm run lint/npm testwere not run locally.build,guards,lint-python, and the Python test jobs passed on this head.reportpassed on the rerun after the body edit (an earlier run was cancelled).Checks left red
test-frontendfails on this head for a reason already onmain:apps/web/src/lib/__tests__/home-sell-surface.test.tsexpectsprepares proposed work and build rails for you to review in Studio, andapps/web/src/app/page.tsxsaysStudio prepares proposed work and build rails for you to review.This diff does not touchapps/web. Left unchanged.No merge. Hayden merges.
Closes #2583