fix(yoga): the 67 rules both sides or only we changed, resolved per ruling — keep ours where a BUG ruling exists, take her source definitions and retirements otherwise (BUG-2302)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DbBXp2U3BH1SxwAGyhhbe1
This commit is contained in:
@@ -31120,3 +31120,16 @@
|
||||
- 验证:加入她的 35 个测试文件(与本站同名的 4 个加 `_upstream58` 后缀),362 条里 317 条照原样通过,其余逐条跳过并写明原因(她的报告解释包、封存的 jyotish_engine、reference_only 主检测器、本站英文孪生字段、参与星固定顺序、Gajakesari 待核位置;`test_yoga_card_promotion_gate` 因完整规则表附带的主检测器行没有她的卡片字段而跳过,卡片字段改由 `test_yoga_effect_gate_2300` 检查);`test_yoga_p0_2128`(「非……保证」算否定)、`test_yoga_rule_batch_20261107`(结构观察 23 → 28)、`test_report_english_dictionary`(她的 summary_zh / description_zh 配对,legacy_* 记录不要求英文)、`test_yoga_evaluation_status_r3`(载入时未实现的规则在 detect 里留 blocked 行)、`test_neecha_bhanga_tautology_2027`(按 rule_id 认 Neecha 行,Netranasa 的出处说明提到 Neechamsa)按原值 / 新值 / 原因更新;`test_handoff_2e5485f5_sync`(65 → 2,见原值 / 新值 / 原因)、`test_yoga_instances_gana_2075`(34 → 32)更新;前端新增 `chart-yoga-card-status-2301.test.ts`。
|
||||
- 回归:格局相关 135 个测试文件(1,496 条)对照 f534131ad 基线,没有新失败(基线原有的 15 条失败仍在,与本批无关)。
|
||||
- 修复版本:`claude/density-b3`。
|
||||
|
||||
## BUG-2302 | 两边都改过、或只有本站改过的 67 条格局规则,按记录逐条定取舍
|
||||
|
||||
- 状态:fixed-pending-verify。
|
||||
- 现象:信息密度第 3 批对照上游 58f37ee5b(基线 8c775cd0):51 条只有本站改过、16 条两边都改过,其中几条本站的改动没有记录,或她之后已经补了出处。
|
||||
- 修复:
|
||||
- 保留本站(有裁定记录):Pancha Mahapurusha / Moolatrikona / Kemadruma / Hamsa 的 reference_only(BUG-1205/1206/1207);Neecha 4 条的名称与 reference_only(BUG-1205/1572/1714/1715/2079);子女相关作用的改写(BUG-2128/2182:putra_* 9 条、bvr_eka/bahu_puthra_precise、`asha_yoga_jupiter_11`、`dhana_yoga_5_11`、两条 kaalanirdesat);`kalatra_yoga_venus_kendra`、`kalatra_yoga_venus_strong`、`kalatra_yoga_7_strong`、`kusuma_yoga`、`sreenatha_yoga`、`saubhagya_yoga` 的作用与 `meaning_status`(BUG-2214/2218/2219,负责人本轮明确保留);`gajakesari` 严格定义(BUG-1596/1624/1656/2079/2162);`bvr_matrunasa_precise`(BUG-1597/1625/2075);`jupiter_upachaya_from_moon`(BUG-1266);`kalatra_dosha_mars_1_4_7_8_12` 的名称、出处说明和读者解释(BUG-2106/2154/2213)。只有维护注记(accuracy_note / sync_note)的 12 条保留注记。
|
||||
- 取她的:`asraya_yoga`、`asraya_partial` 的退役说明,`kalatra_dosha_mars_7` 的 `alias_of` 与退役说明(本站的归档字段保留,两边结论一致);`kalatra_dosha_mars_1_4_7_8_12` 的 `source_reference`;`parvata_yoga` 按她的 PVR 定义(条件类型 `parvata_pvr`)重新启用(原因:本站 11-07 停用是「等占星师定义」,她已给出;英文作用和模板随之用她的英文 / 补英文模板);`bvr_maalavya_yoga` 的定义与出处(reference_only 不变;她的定义可求值,「未实现」由 2 条降到 1 条);`bvr_003_anapha_precise` 的出处(「非发光体」,她的 luminary 测试);`bvr_chakra_yoga`、`bvr_jananatpurvam_pitru_marana_yog`、`bvr_parihasaka_yoga` 的中文作用(她 11-22 的中文审校);`neechabhanga_lord_exalted` 停用(她已停用;本站本来就 reference_only,不求值)。
|
||||
- 修正:`bvr_sada_sanchara_precise` 的组合模板写成「上升主或月亮在变动星座」,与条件(上升主或其定位星)不符,没有记录;改用她的模板,英文孪生字段照改。
|
||||
- 验证:她的 `test_yoga_luminary_meaning_alignment` 加入并通过;`test_handoff_2e5485f5_sync`(未实现 2 → 1,原值 / 新值 / 原因);`test_yoga_p0_2128`、`test_yoga_meanings_2213`、`test_report_mars_rule_2154`、`test_yoga_rules_integrity`、冻结主题表测试通过。
|
||||
- 另补 BUG-2301 漏改的一条:`test_report_fixes_2105` Jobs 的瑜伽页 57 → 61(新成立 Netranasa、Sarala、Yuddha Marana、Vasumathi 两组;Bhratruvriddhi 条件资料不全不再成页);`test_yoga_card_1967` 不再断言 Parvata 停用。
|
||||
- 回归:格局相关 136 个测试文件(1,525 条)对照 f534131ad 基线,除上面两条(已更新)外没有新失败。
|
||||
- 修复版本:`claude/density-b3`。
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"schema": "yoga-rule-topics-v1",
|
||||
"status": "pending_astrologer_review",
|
||||
"built_from": "references/yoga_rules.json",
|
||||
"built_from_sha256": "8d626a13ad58",
|
||||
"built_from_sha256": "911780ee88b9",
|
||||
"builder": "scripts/research/build_yoga_rule_topics.py",
|
||||
"rule": "Topics come from references/yoga_rule_topics.frozen.json (BUG-2218); a keyword match on the rule's own effect text is only a keyword_proposal. unmapped = no snapshot topic (待映射, never dropped). longevity, fame_authority and spirituality are recorded for review; no chat domain selects by them.",
|
||||
"rules": {
|
||||
@@ -1455,7 +1455,7 @@
|
||||
"category": "nabhasa",
|
||||
"topics": [],
|
||||
"matched_words": {},
|
||||
"basis_text": "Becomes a ruler or head of state | Becomes a ruler or head of state",
|
||||
"basis_text": "Becomes a ruler or head of state | 既有规则的传统描述(非个人事实或结果保证):成为统治者或国家首领",
|
||||
"mapping": "unmapped"
|
||||
},
|
||||
"bvr_chandikaa_yoga": {
|
||||
@@ -1875,10 +1875,11 @@
|
||||
},
|
||||
"matched_words": {
|
||||
"family": [
|
||||
"family"
|
||||
"family",
|
||||
"家庭"
|
||||
]
|
||||
},
|
||||
"basis_text": "Traditional posthumous-birth combination; not confirmation of family history | Traditional posthumous-birth combination; not confirmation of family history",
|
||||
"basis_text": "Traditional posthumous-birth combination; not confirmation of family history | 既有规则的传统描述(非个人事实或结果保证):遗腹子相关组合;不能据此确认家庭经历",
|
||||
"mapping": "frozen"
|
||||
},
|
||||
"bvr_jara_yoga": {
|
||||
@@ -2465,7 +2466,7 @@
|
||||
"category": "special",
|
||||
"topics": [],
|
||||
"matched_words": {},
|
||||
"basis_text": "Humorous and witty speech; traditional association, not an observed personality fact | Humorous and witty speech; traditional association, not an observed personality fact",
|
||||
"basis_text": "Humorous and witty speech; traditional association, not an observed personality fact | 既有规则的传统描述(非个人事实或结果保证):言语幽默机智;不是已观察到的性格事实",
|
||||
"mapping": "unmapped"
|
||||
},
|
||||
"bvr_parijatha_yoga": {
|
||||
@@ -4969,13 +4970,12 @@
|
||||
"topics": [
|
||||
"wealth"
|
||||
],
|
||||
"matched_words": {
|
||||
"wealth": [
|
||||
"富"
|
||||
]
|
||||
},
|
||||
"basis_text": "Exceptional wisdom | Eloquent | Noble character | 智慧卓越 | 富有口才 | 品格高尚",
|
||||
"mapping": "frozen"
|
||||
"matched_words": {},
|
||||
"basis_text": "Traditionally associated with eloquence, generosity and public esteem; these are conditional themes, not verified personal outcomes. | 传统上关联口才、慷慨、声望与幽默;不据此确认个人品格、名气或人生结果",
|
||||
"mapping": "frozen",
|
||||
"keyword_proposal": [
|
||||
"fame_authority"
|
||||
]
|
||||
},
|
||||
"pasa_nabhasa": {
|
||||
"name": "Pasa Nabhasa Yoga",
|
||||
|
||||
+58
-46
@@ -1634,30 +1634,25 @@
|
||||
"id": "parvata_yoga",
|
||||
"name": "Parvata Yoga",
|
||||
"name_cn": "山岳格局",
|
||||
"source": "BPHS",
|
||||
"source": "PVR Integrated Approach (occupant-based profile)",
|
||||
"bvr_id": "BVR-14",
|
||||
"category": "auspicious",
|
||||
"logic": {
|
||||
"type": "custom",
|
||||
"expr": "\nkl = sorted(set([lord(h) for h in [1,4,7,10]]))\nkt = [h for h in [1,5,9]]\nkendra_lords_strong = sum(1 for k in kl if k in ctx.planets and (kendra(house_of(k)) or trikona(house_of(k))))\nif kendra_lords_strong < 2:\n False\nelse:\n lord_6 = lord(6)\n lord_8 = lord(8)\n lord_6_ok = lord_6 in ctx.planets and house_of(lord_6) != 1\n lord_8_ok = lord_8 in ctx.planets and house_of(lord_8) != 1\n lord_6_ok or lord_8_ok\n",
|
||||
"combo_template": "角宫主星有力+凶宫主星不落入1宫",
|
||||
"combo_template_en": "Kendra lords strong and Dusthana lords not in the 1st house"
|
||||
"type": "parvata_pvr",
|
||||
"combo_template": "角宫有吉星且无凶星;第7、8宫空置或仅有吉星",
|
||||
"combo_template_en": "Benefics in the kendras with no malefic there; houses 7 and 8 empty or occupied only by benefics"
|
||||
},
|
||||
"effects": [
|
||||
"智慧卓越",
|
||||
"富有口才",
|
||||
"品格高尚"
|
||||
"传统上关联口才、慷慨、声望与幽默;不据此确认个人品格、名气或人生结果"
|
||||
],
|
||||
"effects_en": [
|
||||
"Exceptional wisdom",
|
||||
"Eloquent",
|
||||
"Noble character"
|
||||
"Traditionally associated with eloquence, generosity and public esteem; these are conditional themes, not verified personal outcomes."
|
||||
],
|
||||
"strength": "中",
|
||||
"strength_en": "moderate",
|
||||
"enabled": false,
|
||||
"accuracy_note": "Disabled 2026-11-07 (astrologer third-round review): the expression never evaluated before (NameError on dict), so it was silently never formed. Repaired it would form on all three audit charts, and its test (kendra lords in kendra/trikona, 6th or 8th lord not in lagna) is not the BVR-14 / BPHS definition below. Kept off until the astrologer rules on the definition.",
|
||||
"source_reference": "BVR-14: Kendra/trikona occupied by benefics only",
|
||||
"enabled": true,
|
||||
"accuracy_note": "Disabled 2026-11-07 (astrologer third-round review): the expression never evaluated before (NameError on dict), so it was silently never formed. Repaired it would form on all three audit charts, and its test (kendra lords in kendra/trikona, 6th or 8th lord not in lagna) is not the BVR-14 / BPHS definition below. Kept off until the astrologer rules on the definition. BUG-2302 (2026-11-24): re-enabled on her own PVR source definition (upstream 58f37ee5b, condition type parvata_pvr), which replaces the old expression.",
|
||||
"source_reference": "PVR Integrated Approach, corpus p137 L2778; explicit occupant-based profile, replacing unsupported lord-based legacy expression",
|
||||
"bvr_chapter": "Chapter 2"
|
||||
},
|
||||
{
|
||||
@@ -2649,7 +2644,7 @@
|
||||
{
|
||||
"id": "asraya_yoga",
|
||||
"name": "Asraya Yoga",
|
||||
"name_cn": "依托格局",
|
||||
"name_cn": "依托格局(旧定义停用)",
|
||||
"source": "BPHS",
|
||||
"bvr_id": null,
|
||||
"category": "nabhasa",
|
||||
@@ -2674,7 +2669,8 @@
|
||||
"strength": "强",
|
||||
"strength_en": "strong",
|
||||
"enabled": false,
|
||||
"accuracy_note": "BUG-2128 quarantine (astrologer Yoga manual 2026-11-21, P0): checks kendra/trikona houses under the Aasraya name, but Aasraya is all planets in movable/fixed/dual signs (PVR 11.5.1) and is already detected as bvr_rajju_yoga / bvr_musala_yoga / bvr_nala_yoga. Disabled until its definition identity is settled."
|
||||
"accuracy_note": "BUG-2128 quarantine (astrologer Yoga manual 2026-11-21, P0): checks kendra/trikona houses under the Aasraya name, but Aasraya is all planets in movable/fixed/dual signs (PVR 11.5.1) and is already detected as bvr_rajju_yoga / bvr_musala_yoga / bvr_nala_yoga. Disabled until its definition identity is settled.",
|
||||
"retirement_reason": "Wrong identity: Aasraya is the Rajju/Musala/Nala sign-modality family, not a kendra/trikona occupancy rule. PVR 11.5.1, corpus Page 131."
|
||||
},
|
||||
{
|
||||
"id": "dala_yoga",
|
||||
@@ -3837,7 +3833,8 @@
|
||||
"strength": "中",
|
||||
"strength_en": "moderate",
|
||||
"enabled": false,
|
||||
"accuracy_note": "BUG-2128 quarantine (astrologer Yoga manual 2026-11-21, P0): the 70% kendra/trikona threshold has no textual source; Aasraya proper is all planets in movable/fixed/dual signs (PVR 11.5.1; bvr_rajju_yoga / bvr_musala_yoga / bvr_nala_yoga). Disabled until a sourced definition replaces it."
|
||||
"accuracy_note": "BUG-2128 quarantine (astrologer Yoga manual 2026-11-21, P0): the 70% kendra/trikona threshold has no textual source; Aasraya proper is all planets in movable/fixed/dual signs (PVR 11.5.1; bvr_rajju_yoga / bvr_musala_yoga / bvr_nala_yoga). Disabled until a sourced definition replaces it.",
|
||||
"retirement_reason": "Unverified 70 percent heuristic applied to the wrong Asraya definition; not a traditional partial-effect rule. Preserved for historical trace only."
|
||||
},
|
||||
{
|
||||
"id": "parisraya_nabhasa",
|
||||
@@ -4591,7 +4588,9 @@
|
||||
"strength_en": "weak",
|
||||
"enabled": false,
|
||||
"duplicate_of": "kalatra_dosha_mars_1_4_7_8_12",
|
||||
"archived_reason": "BUG-2154 (astrologer ruling 2026-11-22 §3): same 1/4/7/8/12 condition as kalatra_dosha_mars_1_4_7_8_12; kept as an archived alias for old report ids, never executed or counted on its own."
|
||||
"archived_reason": "BUG-2154 (astrologer ruling 2026-11-22 §3): same 1/4/7/8/12 condition as kalatra_dosha_mars_1_4_7_8_12; kept as an archived alias for old report ids, never executed or counted on its own.",
|
||||
"retirement_reason": "Duplicate five-house screening; old id retained for historical compatibility, no independent evidence contribution.",
|
||||
"alias_of": "kalatra_dosha_mars_1_4_7_8_12"
|
||||
},
|
||||
{
|
||||
"id": "ayur_yoga_strong",
|
||||
@@ -5274,7 +5273,7 @@
|
||||
"source": "BPHS",
|
||||
"bvr_id": "NB-3",
|
||||
"category": "raja",
|
||||
"enabled": true,
|
||||
"enabled": false,
|
||||
"dedup_key": "neechabhanga_raja",
|
||||
"strength": "强",
|
||||
"strength_en": "strong",
|
||||
@@ -6051,7 +6050,8 @@
|
||||
],
|
||||
"sync_note": "BUG-2154 (astrologer ruling 2026-11-22 §3): canonical entry for the Mars 1/4/7/8/12 screen; kalatra_dosha_mars_7 is an archived alias that resolves here. Report dedup key = dedup_key + reference_point + chart + source_profile.",
|
||||
"reader_explanation": "命中这一火星位置筛查条件。关系层面的传统解释仍需结合参考点、制约与缓解条件及整体结构,不能据此确定婚姻延迟或关系紧张。",
|
||||
"reader_explanation_en": "This Mars placement screen is met. The traditional relationship reading still depends on the reference point, restraining and mitigating conditions, and the chart as a whole; it does not establish delayed marriage or relationship strain."
|
||||
"reader_explanation_en": "This Mars placement screen is met. The traditional relationship reading still depends on the reference point, restraining and mitigating conditions, and the chart as a whole; it does not establish delayed marriage or relationship strain.",
|
||||
"source_reference": "Canonicalized duplicate screening; not a source-verified BPHS attribution."
|
||||
},
|
||||
{
|
||||
"id": "ayur_yoga_saturn_strong",
|
||||
@@ -10626,7 +10626,7 @@
|
||||
"accuracy_note": "高置信:定义来自 PyJHora/B.V. Raman,且可由当前 Yoga 引擎结构化条件表达。",
|
||||
"accuracy_note_en": "High confidence: definition from PyJHora / B.V. Raman and expressible as structured conditions in the current yoga engine.",
|
||||
"dedup_key": "anapha_precise",
|
||||
"source_reference": "BVR-3: Planet(s) other than Moon in 12th from Moon",
|
||||
"source_reference": "BVR-3: qualifying non-luminary planets in 12th from Moon; Mars through Saturn in this implementation",
|
||||
"bvr_chapter": "Chapter 1",
|
||||
"meaning_source_reference": "PVR Integrated Approach, source p.127, section 11.3.2, L2558; traditional results, not established appearance or health"
|
||||
},
|
||||
@@ -11809,8 +11809,8 @@
|
||||
"type": "custom",
|
||||
"expr": "\n# PyJHora/BVR-117 Sada Sanchara: Lagna lord OR the dispositor of Lagna lord is in a movable sign.\nl1 = lord(1)\nif l1 not in ctx.planets:\n False\nelse:\n l1_h = house_of(l1)\n l1_dispositor = lord(l1_h) if l1_h else None\n sign_of(l1) in MOVABLE_SIGNS or (l1_dispositor in ctx.planets and sign_of(l1_dispositor) in MOVABLE_SIGNS)\n",
|
||||
"participants_expr": "([l1] if sign_of(l1) in MOVABLE_SIGNS else [])+([l1,l1_dispositor] if l1_dispositor in ctx.planets and sign_of(l1_dispositor) in MOVABLE_SIGNS else [])",
|
||||
"combo_template": "上升主或月亮在变动星座",
|
||||
"combo_template_en": "Lagna lord or Moon in a movable sign"
|
||||
"combo_template": "上升主或上升主的定位星落在活动星座(Aries/Cancer/Libra/Capricorn)",
|
||||
"combo_template_en": "Lagna lord or the dispositor of the Lagna lord in a movable sign (Aries/Cancer/Libra/Capricorn)"
|
||||
},
|
||||
"effects": [
|
||||
"经常旅行",
|
||||
@@ -13071,7 +13071,7 @@
|
||||
"combo_template_en": "Seven visible planets occupy houses 1, 3, 5, 7, 9 and 11; the nodes do not count"
|
||||
},
|
||||
"effects": [
|
||||
"Becomes a ruler or head of state"
|
||||
"既有规则的传统描述(非个人事实或结果保证):成为统治者或国家首领"
|
||||
],
|
||||
"effects_en": [
|
||||
"Becomes a ruler or head of state"
|
||||
@@ -13080,7 +13080,8 @@
|
||||
"enabled": true,
|
||||
"draft": false,
|
||||
"evidence_note": "Raman no.80: all seven visible planets distributed over the six odd houses; complete positions required.",
|
||||
"sync_note": "产品 2026-11-07 与占星师上游引擎同步(yinduzhanxing e628118d / 8787d9ea)"
|
||||
"sync_note": "产品 2026-11-07 与占星师上游引擎同步(yinduzhanxing e628118d / 8787d9ea)",
|
||||
"effect_translation_review": "yoga_effects_zh_review_2026_11_22; translation_only_not_rule_admission"
|
||||
},
|
||||
{
|
||||
"id": "bvr_chandikaa_yoga",
|
||||
@@ -14066,7 +14067,7 @@
|
||||
"combo_template_en": "Sun in the 6th/8th/12th; 8th lord in the 9th, 12th lord in the 1st, 6th lord in the 5th"
|
||||
},
|
||||
"effects": [
|
||||
"Traditional posthumous-birth combination; not confirmation of family history"
|
||||
"既有规则的传统描述(非个人事实或结果保证):遗腹子相关组合;不能据此确认家庭经历"
|
||||
],
|
||||
"effects_en": [
|
||||
"Traditional posthumous-birth combination; not confirmation of family history"
|
||||
@@ -14075,7 +14076,8 @@
|
||||
"enabled": true,
|
||||
"draft": false,
|
||||
"evidence_note": "Raman, Three Hundred Important Combinations, no.242; all four conditions required. Prior no.220 attribution and OR approximation were incorrect.",
|
||||
"sync_note": "产品 2026-11-07 与占星师上游引擎同步(yinduzhanxing e628118d / 8787d9ea)"
|
||||
"sync_note": "产品 2026-11-07 与占星师上游引擎同步(yinduzhanxing e628118d / 8787d9ea)",
|
||||
"effect_translation_review": "yoga_effects_zh_review_2026_11_22; translation_only_not_rule_admission"
|
||||
},
|
||||
{
|
||||
"id": "bvr_jara_yoga",
|
||||
@@ -14561,26 +14563,34 @@
|
||||
"bvr_id": "BVR-20",
|
||||
"category": "pancha_mahapurusha",
|
||||
"logic": {
|
||||
"type": "compound_conditions",
|
||||
"type": "and",
|
||||
"conditions": [
|
||||
{
|
||||
"type": "planet_in_sign_and_house",
|
||||
"type": "in_houses",
|
||||
"planet": "Venus",
|
||||
"signs": [
|
||||
"Taurus",
|
||||
"Libra",
|
||||
"Pisces"
|
||||
],
|
||||
"house_offsets": [
|
||||
0,
|
||||
3,
|
||||
6,
|
||||
9
|
||||
],
|
||||
"note": "Venus in own/exaltation sign (Ta/Li/Pi) and in kendra (1/4/7/10) from Lagna"
|
||||
"houses": [
|
||||
1,
|
||||
4,
|
||||
7,
|
||||
10
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "or",
|
||||
"conditions": [
|
||||
{
|
||||
"type": "dignity",
|
||||
"planet": "Venus",
|
||||
"dignity": "own"
|
||||
},
|
||||
{
|
||||
"type": "dignity",
|
||||
"planet": "Venus",
|
||||
"dignity": "exalted"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"note": "Venus in own/exaltation sign (Ta/Li/Pi) and in kendra (1/4/7/10) from Lagna"
|
||||
]
|
||||
},
|
||||
"effects": [
|
||||
"传统含义:舒适享受、健康与艺术才能;不保证具体结果"
|
||||
@@ -14595,7 +14605,8 @@
|
||||
"reference_only": true,
|
||||
"reference_only_reason": "Astrologer rulings 2026-10-03 (甲5, BUG-1207): Pancha Mahapurusha has one main detector, scripts/pancha_mahapurusha.py (kendras from the Lagna only; retrograde does not cancel; combustion, malefic conjunction or aspect only reduce strength), emitted via scripts/main_yoga_detectors.py. This BVR duplicate is kept for reference only.",
|
||||
"reference_only_reason_en": "Astrologer rulings 2026-10-03 (item A5, BUG-1207): Pancha Mahapurusha has one main detector, scripts/pancha_mahapurusha.py (kendras from the Lagna only; retrograde does not cancel; combustion, malefic conjunction or aspect only reduce strength), emitted via scripts/main_yoga_detectors.py. This BVR duplicate is kept for reference only.",
|
||||
"meaning_source_reference": "PVR Integrated Approach p.130, Maalavya Yoga."
|
||||
"meaning_source_reference": "PVR Integrated Approach p.130, Maalavya Yoga.",
|
||||
"source_reference": "PVR Integrated Approach p.130, Maalavya Yoga; legacy BVR identifier retained for compatibility."
|
||||
},
|
||||
{
|
||||
"id": "bvr_maathru_saapa_sutakshaya_yoga",
|
||||
@@ -15234,7 +15245,7 @@
|
||||
"type": "parihasaka"
|
||||
},
|
||||
"effects": [
|
||||
"Humorous and witty speech; traditional association, not an observed personality fact"
|
||||
"既有规则的传统描述(非个人事实或结果保证):言语幽默机智;不是已观察到的性格事实"
|
||||
],
|
||||
"effects_en": [
|
||||
"Humorous and witty speech; traditional association, not an observed personality fact"
|
||||
@@ -15243,7 +15254,8 @@
|
||||
"enabled": true,
|
||||
"draft": false,
|
||||
"evidence_note": "Raman no.156: Sun Navamsa dispositor in natal house2 with Vaiseshikamsa distinction; not 2nd-lord dusthana or ridicule.",
|
||||
"sync_note": "产品 2026-11-07 与占星师上游引擎同步(yinduzhanxing e628118d / 8787d9ea)"
|
||||
"sync_note": "产品 2026-11-07 与占星师上游引擎同步(yinduzhanxing e628118d / 8787d9ea)",
|
||||
"effect_translation_review": "yoga_effects_zh_review_2026_11_22; translation_only_not_rule_admission"
|
||||
},
|
||||
{
|
||||
"id": "bvr_parijatha_yoga",
|
||||
|
||||
@@ -171,12 +171,11 @@ def test_her_71_rules_are_not_implemented():
|
||||
engine_ = YogaEngine(str(RULES))
|
||||
ours = {row['rule_id'] for row in engine_.unimplemented_rules}
|
||||
# 原值:65 条,含 bvr_apakeerthi_yoga
|
||||
# 新值:2 条(bvr_anapathya_yoga;reference_only 的 bvr_maalavya_yoga)
|
||||
# 原因:BUG-2301 接上占星师 58f37ee5b 的来源评估器(含 jada_apakeerti_raman)和她改过的规则
|
||||
assert ours == {'bvr_anapathya_yoga', 'bvr_maalavya_yoga'}
|
||||
# 新值:1 条(bvr_anapathya_yoga)
|
||||
# 原因:BUG-2301 接上占星师 58f37ee5b 的来源评估器(含 jada_apakeerti_raman)和她改过的规则;
|
||||
# BUG-2302 取她的 bvr_maalavya_yoga 定义(PVR,可求值;本站仍 reference_only,由主检测器出结果)
|
||||
assert ours == {'bvr_anapathya_yoga'}
|
||||
assert not ours & NOW_IMPLEMENTED_2222
|
||||
maalavya = next(r for r in engine_.unimplemented_rules if r['rule_id'] == 'bvr_maalavya_yoga')
|
||||
assert maalavya['reference_only'] is True
|
||||
if hers.exists():
|
||||
payload = json.loads(hers.read_text())
|
||||
theirs = {r['rule_id'] for r in payload['rules']
|
||||
@@ -188,9 +187,9 @@ def test_her_71_rules_are_not_implemented():
|
||||
def test_yoga_command_reports_not_implemented_count():
|
||||
result = engine.cmd_yoga(SimpleNamespace(ascendant='Aries', planets='Sun:Aries:1:10'))
|
||||
# 原值:65
|
||||
# 新值:2(bvr_anapathya_yoga、bvr_maalavya_yoga 仍含未实现条件类型)
|
||||
# 原因:BUG-2301 接上占星师 58f37ee5b 的 35 个来源评估器和她改过的规则
|
||||
assert result['not_implemented_count'] == len(result['yoga_evaluation']['unimplemented_rules']) == 2
|
||||
# 新值:1(bvr_anapathya_yoga 仍含未实现条件类型)
|
||||
# 原因:BUG-2301 接上占星师 58f37ee5b 的 35 个来源评估器和她改过的规则;BUG-2302 取她的 bvr_maalavya_yoga 定义
|
||||
assert result['not_implemented_count'] == len(result['yoga_evaluation']['unimplemented_rules']) == 1
|
||||
assert not {r['rule_id'] for r in result['yogas']} & {
|
||||
r['rule_id'] for r in result['yoga_evaluation']['unimplemented_rules']}
|
||||
|
||||
@@ -207,8 +206,8 @@ def test_status_merges_runtime_unimplemented():
|
||||
(row['rule_id'], row['condition_status']) for row in status['evaluation_failures']}
|
||||
assert all(row['condition_status'] == 'incomplete_conditions' and row['missing_inputs']
|
||||
for row in status['evaluation_failures'])
|
||||
# 原值:65;新值:2;原因:BUG-2301(同上)
|
||||
assert len(status['unimplemented_rules']) == 2
|
||||
# 原值:65;新值:1;原因:BUG-2301 / BUG-2302(同上)
|
||||
assert len(status['unimplemented_rules']) == 1
|
||||
|
||||
|
||||
# ---- A4 (her test_r37_followup_repairs.py, verbatim) ----
|
||||
|
||||
@@ -117,7 +117,9 @@ def test_yoga_pages_are_keyed_by_rule_in_both_editions():
|
||||
# BUG-2222 原值 53;新值 54:天界花树(Parijatha)按占星师上游的 Raman 47 定义(D1 或 D9 定位链末端任一分支)在这张盘成立
|
||||
# BUG-2295 原值 54;新值 57:经典王者格、财富瑜伽的行在计算处记下参与星(占星师上游 f41efc51,负责人 2026-11-24 同意),
|
||||
# 同一规则不同参与星分页(「王者格(水星)」「王者格(木星、金星)」),各页自己判断与当前大运的关系。
|
||||
assert len(zh) == len(en) == 57
|
||||
# BUG-2301 原值 57;新值 61:接上占星师 58f37ee5b 的来源评估器后,这张盘新成立 Netranasa、Sarala、Yuddha Marana
|
||||
# 和 Vasumathi(木星/水星、金星两组参与星各一页);Bhratruvriddhi 因缺综合有力条件记为条件资料不全,不再成页
|
||||
assert len(zh) == len(en) == 61
|
||||
assert len(set(en)) == len(en) and len(set(zh)) == len(zh)
|
||||
for title in ("Amala Yoga (Benefics in the 10th/11th houses)", "Amala Yoga (Only benefics in the 10th house)",
|
||||
"Durmukha Yoga (Malefic in the 2nd house)",
|
||||
|
||||
@@ -74,8 +74,10 @@ def test_states_are_separated_and_never_collapsed():
|
||||
def test_parvata_is_disabled_for_source_mismatch_and_legacy_spellings_are_superseded():
|
||||
layer = _layer()
|
||||
disabled = {row["rule_id"]: row for row in layer["disabled"]}
|
||||
assert disabled["parvata_yoga"]["reason"] == "disabled_source_mismatch"
|
||||
assert disabled["parvata_yoga"]["rule_state"] == "disabled"
|
||||
# 原值:parvata_yoga 因定义与来源不符停用(disabled_source_mismatch)
|
||||
# 新值:照占星师 58f37ee5b 的 PVR 定义(parvata_pvr)重新启用,不再列为停用
|
||||
# 原因:BUG-2302,本站 11-07 停用是等她给定义,她已给出
|
||||
assert "parvata_yoga" not in disabled
|
||||
superseded = {row["rule_id"]: row["superseded_by"] for row in layer["superseded"]}
|
||||
assert superseded == YOGA_LEGACY_TWINS
|
||||
# Retired legacy spellings are not "disabled" rows and never "not formed".
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
# BUG-2301: the astrologer's tests/test_yoga_luminary_meaning_alignment.py at upstream 58f37ee5b, unchanged except this line.
|
||||
"""Source-reviewed meanings must not revert to unrelated preparation metaphors."""
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def test_vosi_and_sunaphaa_meaning_sources_and_bilingual_scope():
|
||||
data=json.loads((Path(__file__).resolve().parents[1]/'references/yoga_rules.json').read_text())
|
||||
rules=data['rules'] if isinstance(data,dict) else data
|
||||
rows={r['id']:r for r in rules}
|
||||
vosi=rows['bvr_017_vosi_precise'];sunaphaa=rows['bvr_002_sunapha_precise']
|
||||
assert 'source p.125' in vosi['meaning_source_reference']
|
||||
assert 'source p.127' in sunaphaa['meaning_source_reference']
|
||||
assert '内在准备' not in str(vosi['effects'])
|
||||
assert '心智有后续支撑' not in str(sunaphaa['effects'])
|
||||
assert '慈善' in str(vosi['effects']) and 'charity' in str(vosi['effects_en'])
|
||||
assert '国王' in str(sunaphaa['effects']) and 'king or equal' in str(sunaphaa['effects_en'])
|
||||
assert vosi['logic']['from']=='Sun' and vosi['logic']['houses']==[12]
|
||||
assert sunaphaa['logic']['from']=='Moon' and sunaphaa['logic']['houses']==[2]
|
||||
|
||||
|
||||
def test_reviewed_meanings_preserve_author_scope_and_locators():
|
||||
rows={r['id']:r for r in json.loads((Path(__file__).resolve().parents[1]/'references/yoga_rules.json').read_text())['rules']}
|
||||
cases={
|
||||
'bvr_016_vesi_precise':('L2510','迟缓','sluggishness'),
|
||||
'bvr_018_ubhayachara_precise':('L2522','国王','king or equal'),
|
||||
'bvr_003_anapha_precise':('L2558','无病','freedom from disease'),
|
||||
'bvr_004_duradhara_precise':('L2564','交通工具','vehicles'),
|
||||
'bvr_budha_aaditya_yoga':('L2530','燃烧','combustion'),
|
||||
'bvr_kalpadruma_yoga':('L2810','履行职责','duty'),
|
||||
'bvr_parijatha_yoga':('combination 47','中晚年','middle and later life'),
|
||||
'bvr_gaja_yoga':('combination 48','20至29','20–29'),
|
||||
}
|
||||
for key,(locator,zh,en) in cases.items():
|
||||
row=rows[key]
|
||||
assert locator in row['meaning_source_reference']
|
||||
assert zh in ' '.join(row['effects'])
|
||||
assert en in ' '.join(row['effects_en'])
|
||||
for key in ('saraswati_yoga','bvr_saraswathi_yoga'):
|
||||
assert '富足与声誉' in ' '.join(rows[key]['effects'])
|
||||
assert 'prosperity and recognition' in ' '.join(rows[key]['effects_en'])
|
||||
assert 'other than Moon' not in rows['bvr_003_anapha_precise']['source_reference']
|
||||
Reference in New Issue
Block a user