fix: graceful ImportError handling in orchestrator_v10_final.py + CI test failures#323
Draft
fix: graceful ImportError handling in orchestrator_v10_final.py + CI test failures#323
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Agent-Logs-Url: https://github.com/Tryonme-com/tryonyou-app/sessions/c1574fb6-daca-4b5b-bedf-e62b669cfd07 Co-authored-by: LVT-ENG <214667862+LVT-ENG@users.noreply.github.com>
…der, list_products cache Agent-Logs-Url: https://github.com/Tryonme-com/tryonyou-app/sessions/c1574fb6-daca-4b5b-bedf-e62b669cfd07 Co-authored-by: LVT-ENG <214667862+LVT-ENG@users.noreply.github.com>
…supplied values Agent-Logs-Url: https://github.com/Tryonme-com/tryonyou-app/sessions/c1574fb6-daca-4b5b-bedf-e62b669cfd07 Co-authored-by: LVT-ENG <214667862+LVT-ENG@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix import error handling in OrchestratorV10
fix: graceful ImportError handling in orchestrator_v10_final.py + CI test failures
May 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
orchestrator_v10_final.pycrashed with an unhandledImportErrorwhen any optional subcommand module was missing. Five additional CI tests were failing due to mismatched version strings, missing compliance metadata injection, absent caching, and a wrong HTTP status code on the root route.Changes
orchestrator_v10_final.py— ImportError handlingAdded
_missing_module()helper; all 22 subcommandfrom X import Yimports are now wrapped intry/except ImportError:stripe_agent.py— Compliance metadata + cachingcreate_product/create_pricenow always injectsirenandpatentinto metadata, overriding any caller-supplied values for those keys:list_productsnow uses the existing_cache_get/_cache_setinfrastructure so repeated calls within the TTL window skip the Stripe API.api/index.py— Root route 404 + sovereignty enrichmentPOST/PUT/PATCH/DELETE/OPTIONShandler on/that returns{"status": "error", "message": "Not Found"}with status 404 (previously Flask returned 405)._apply_global_sovereignty_headers) now skips 4xx/5xx responses to avoid polluting error JSON.api/balance_soberana.pyReverted version banner from
TRYONYOU V12→TRYONYOU V10to match the test assertion..gitignoreAdded runtime log files (
sovereignty_access_audit.jsonl,core_engine_*.jsonl) to the exclude list; removed accidentally-committed entries.