Wire VedAstro orchestrator into strict workflows

This commit is contained in:
732642856
2026-06-29 10:26:54 +08:00
parent 3452beee1b
commit 0f9b06d9d4
18 changed files with 904 additions and 162 deletions
+22 -23
View File
@@ -1830,33 +1830,32 @@ def _maybe_attach_vedastro_evidence(
return result
try:
from vedastro_service_adapter import run_range_scan_for_case
from vedastro_evidence_orchestrator import orchestrate_vedastro_evidence
except Exception:
return result
start_date, end_date = _default_vedastro_scan_window(transit_date)
case = {
"year": year,
"month": month,
"day": day,
"hour": hour,
"minute": minute,
"second": 0,
"lat": lat,
"lon": lon,
"tz": tz,
"ayanamsa_policy": (
_safe_get(result, "meta", "ayanamsa")
or _safe_get(result, "chart", "ayanamsa")
or "lahiri"
),
"node_policy": node_mode or "mean",
}
scan_result = run_range_scan_for_case(
case,
vedastro_domain,
start_date,
end_date,
scan_result = orchestrate_vedastro_evidence(
{
"year": year,
"month": month,
"day": day,
"hour": hour,
"minute": minute,
"second": 0,
"lat": lat,
"lon": lon,
"tz": tz,
"ayanamsa_policy": (
_safe_get(result, "meta", "ayanamsa")
or _safe_get(result, "chart", "ayanamsa")
or "lahiri"
),
"node_policy": node_mode or "mean",
},
route=route,
start_date=start_date,
end_date=end_date,
case_id=f"strict_workflow_{route}",
)
if not isinstance(scan_result, dict):