fix(rectification): ask finance and health, show Bhava and Pranapada
Interviews skipped D2/D11 and D30 unless the user volunteered them, so those scoring layers almost never ran. Ask them after family, keep relocation out of rotation, and display Bhava/Pranapada transitions without delaying adopt. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -122,9 +122,14 @@ _LAYER_LABEL = {
|
||||
"d7": "D7",
|
||||
"d12": "D12",
|
||||
"d24": "D24",
|
||||
"d2": "D2",
|
||||
"d11": "D11",
|
||||
"d30": "D30",
|
||||
"pada": "Nakshatra pada",
|
||||
"hora": "Hora Lagna",
|
||||
"ghati": "Ghati Lagna",
|
||||
"bhava": "Bhava Lagna",
|
||||
"pranapada": "Pranapada Lagna",
|
||||
}
|
||||
|
||||
|
||||
@@ -139,15 +144,20 @@ def _scan_layer_value(feature: dict[str, Any], layer: str) -> int | None:
|
||||
"d7": vargas.get("D7"),
|
||||
"d12": vargas.get("D12"),
|
||||
"d24": vargas.get("D24"),
|
||||
"d2": vargas.get("D2"),
|
||||
"d11": vargas.get("D11"),
|
||||
"d30": vargas.get("D30"),
|
||||
"pada": feature.get("pada_index"),
|
||||
"hora": feature.get("hora_sign_index"),
|
||||
"ghati": feature.get("ghati_sign_index"),
|
||||
"bhava": feature.get("bhava_sign_index"),
|
||||
"pranapada": feature.get("pranapada_sign_index"),
|
||||
}.get(layer)
|
||||
return raw if isinstance(raw, int) else None
|
||||
|
||||
|
||||
def window_scan(built: dict[str, Any]) -> dict[str, Any]:
|
||||
"""D1/D9/D10/D4/D5/D7/D12/D24 plus display-only pada/Hora/Ghati. Indices only; never sign names."""
|
||||
"""D1/D9/D10/D4/D5/D7/D12/D24/D2/D11/D30 plus display-only pada/Hora/Ghati/Bhava/Pranapada."""
|
||||
counts: dict[str, set[int]] = {layer: set() for layer in _LAYER_LABEL}
|
||||
transitions: list[dict[str, Any]] = []
|
||||
previous: dict[str, int | None] | None = None
|
||||
@@ -404,6 +414,8 @@ def oos_blind_prompts(request: dict[str, Any]) -> list[dict[str, Any]]:
|
||||
("career", "校时还没用过事业这条线。有没有一件没提过、但记得大概时间的工作变化?"),
|
||||
("family", "校时还没用过家人这条线。有没有一件没提过、但记得大概时间的家人变化?"),
|
||||
("education", "校时还没用过学习这条线。有没有一件没提过、但记得大概时间的学业变化?"),
|
||||
("finance", "校时还没用过财务这条线。有没有一件没提过、但记得大概时间的收入或资产变化?"),
|
||||
("health_pressure", "校时还没用过健康压力这条线。有没有一件没提过、但记得大概时间的身体或压力变化?"),
|
||||
)
|
||||
prompts = [
|
||||
{"domain": domain, "user_meaning": meaning, "used_for_scoring": False}
|
||||
|
||||
Reference in New Issue
Block a user