Product 2026-11-07: sync the astrologer's working branch (ea2a9d65..d09feab7). - 0266b6ad: year lord picks by the native five-fold Panchavargiya only; a PyJHora score (research switch) is attached per candidate as external_oracle_comparison (observation_only_not_selection_input) and never selects. panchavargiya_selection_policy on the result; candidate_list and the reader-report candidate table carry the five components and raw total. The legacy Sun/Mars/Saturn table relabel is not applicable: calc_sodhita_av was already removed here (BUG-1209). - 8c4bff8a + a5b75886: Sodhita no longer votes in finance adjudication; the bridge keeps raw 2/11 scores with prediction_scoring_allowed false. - ba8e36ec: finance delivery inventory (raw, no vote), wrapped producer status counts as blocked in machine-evidence sections, transit section, report gate evidence_claims bindings, finance support review readiness. - 5962368d: dispositor chain dispositor_sign is the dispositor's own sign. - 8813c851: BCP observed at the reading date (bcp_reference, PL9 row). - d09feab7: nakshatra_advanced.calculate_stellar_jeeva_sareera and the nadi-stellar-roles CLI; specialized-jyotish SKILL.md, usage packs, ontology and gap scanner mirrored. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
132 lines
5.7 KiB
Python
132 lines
5.7 KiB
Python
#!/usr/bin/env python3
|
|
"""Finance astrology support review for wealth-focused readings."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from typing import Any
|
|
|
|
|
|
FINANCE_PRIORITY_GAPS = [
|
|
"D2",
|
|
"D11",
|
|
"Vimshottari",
|
|
"Narayana",
|
|
"Shadbala",
|
|
"Ashtakavarga",
|
|
"Transit",
|
|
"Functional Benefic/Malefic",
|
|
"real_case_calibration",
|
|
]
|
|
|
|
|
|
def _present(value: Any) -> str:
|
|
if isinstance(value, dict) and str(value.get("status", "")).lower() in {
|
|
"blocked", "missing", "error", "failed", "not_available_yet", "not_executed", "not_applicable"
|
|
}:
|
|
return "blocked"
|
|
return "present" if bool(value) else "missing"
|
|
|
|
|
|
FINANCE_EXISTING_MODULES = {
|
|
"argala": "scripts/argala.py",
|
|
"dispositor_chains": "scripts/jyotish_engine.py",
|
|
"tajika": "scripts/solar_return.py",
|
|
"bhrigu_pada_dasha": "scripts/bhrigu_pada_dasha.py",
|
|
"sudasa": "scripts/sudasa.py",
|
|
}
|
|
|
|
|
|
def build_finance_delivery_inventory(modules: dict[str, Any]) -> dict[str, Any]:
|
|
"""Preserve existing optional data without calling presence execution or a vote."""
|
|
from copy import deepcopy
|
|
|
|
rows = []
|
|
for name, producer in FINANCE_EXISTING_MODULES.items():
|
|
value = modules.get(name)
|
|
presence = _present(value)
|
|
rows.append({
|
|
"technique": name, "producer": producer,
|
|
"source_path": "modules." + name,
|
|
"delivery_status": {"present": "payload_delivered", "missing": "not_delivered",
|
|
"blocked": "producer_status_blocked"}[presence],
|
|
"source_status": value.get("status") if isinstance(value, dict) else None,
|
|
"execution_status": "not_verified_by_inventory",
|
|
"raw": deepcopy(value),
|
|
})
|
|
return {
|
|
"rows": rows,
|
|
"claim_boundary": "delivery_inventory_only_not_execution_or_prediction_validation",
|
|
"missing_means": "not_delivered_in_this_packet_not_missing_from_repository",
|
|
"presentation_order": ["executive_summary", "thematic_narrative", "evidence_appendix"],
|
|
"inference_constraints": [
|
|
"Strength is not outcome valence; SAV and Bhava Bala do not prove retention.",
|
|
"Repeated planet or house evidence is not independent confirmation.",
|
|
"Drig is not a wealth vote without a named source-specific domain rule.",
|
|
"Unknown birth precision requires sensitivity evidence for narrow windows.",
|
|
"Retain varga methods, full period boundaries and dispositor chains.",
|
|
"Repeated model agreement is not event validation or calibrated probability.",
|
|
],
|
|
}
|
|
|
|
|
|
def build_finance_astrology_support_review(
|
|
*,
|
|
route_packet: dict[str, Any] | None,
|
|
machine_evidence_packet: dict[str, Any] | None,
|
|
runtime_evidence_log: dict[str, Any] | None,
|
|
market_evidence: dict[str, Any] | None = None,
|
|
) -> dict[str, Any]:
|
|
route_packet = route_packet if isinstance(route_packet, dict) else {}
|
|
machine_evidence_packet = machine_evidence_packet if isinstance(machine_evidence_packet, dict) else {}
|
|
runtime_evidence_log = runtime_evidence_log if isinstance(runtime_evidence_log, dict) else {}
|
|
market_evidence = market_evidence if isinstance(market_evidence, dict) else {}
|
|
|
|
sections = machine_evidence_packet.get("sections") if isinstance(machine_evidence_packet.get("sections"), dict) else {}
|
|
audit = runtime_evidence_log.get("quality_gate", {}).get("technique_audit_table") if isinstance(runtime_evidence_log.get("quality_gate"), dict) else []
|
|
audit = audit if isinstance(audit, list) else []
|
|
route = str(route_packet.get("question_type") or route_packet.get("primary_theme") or "general")
|
|
|
|
finance_surface = {
|
|
"status": "used" if route in {"finance", "wealth"} else "not_applicable",
|
|
"route": route,
|
|
"priority_gaps": list(FINANCE_PRIORITY_GAPS),
|
|
"coverage": {
|
|
"d2": _present(sections.get("D2")),
|
|
"d11": _present(machine_evidence_packet.get("D11") or sections.get("D11")),
|
|
"vimshottari": _present(sections.get("dasha_boundaries")),
|
|
"narayana": _present(sections.get("narayana") or sections.get("narayana_dasha")),
|
|
"shadbala": _present(sections.get("shadbala")),
|
|
"ashtakavarga": _present(sections.get("ashtakavarga")),
|
|
"transit": _present(sections.get("transit")),
|
|
"functional_benefic_malefic": _present(sections.get("functional_benefic_malefic")),
|
|
},
|
|
"market_research_surface": {
|
|
"status": str(market_evidence.get("status") or "missing"),
|
|
"schema": str(market_evidence.get("schema") or ""),
|
|
"backtest_status": str((market_evidence.get("backtest") or {}).get("status") or "missing"),
|
|
"signal_count": len(market_evidence.get("ranked_signals") or []) if isinstance(market_evidence.get("ranked_signals"), list) else 0,
|
|
},
|
|
"recommendations": [
|
|
"Treat D2 and D11 as the first-class wealth axis.",
|
|
"Use Vimshottari and Narayana together before any money-window conclusion.",
|
|
"Keep transit and strength as modifiers, not standalone proof.",
|
|
],
|
|
}
|
|
|
|
finance_surface["missing_evidence"] = [
|
|
key for key, state in finance_surface["coverage"].items() if state != "present"
|
|
]
|
|
finance_surface["readiness"] = (
|
|
"not_applicable" if route not in {"finance", "wealth"} else
|
|
"incomplete" if finance_surface["missing_evidence"] else "payloads_present_execution_unverified"
|
|
)
|
|
finance_surface["audit_rows"] = [
|
|
{
|
|
"technique": "Finance Astrology Support Review",
|
|
"status": finance_surface["status"],
|
|
"used": finance_surface["status"] == "used",
|
|
"effect_on_confidence": finance_surface["readiness"],
|
|
}
|
|
]
|
|
return finance_surface
|