test(synastry): the marriage-match golden includes the Rajju / Vedha flags added in BUG-1681 (BUG-2410)
Independent Staging Quality Gate / validate-python (push) Successful in 7m23s
Independent Staging Quality Gate / validate-frontend (push) Successful in 7m41s
Independent Staging Quality Gate / publish (push) Successful in 2m57s

The engine has returned ashtakoota_36.additional_checks since 9bce1d6b1;
the golden fixture was never rewritten, so the snapshot test failed on
staging. Regenerated; the only change is the added key (CRLF kept).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp3RzgZVEpT1PXxkwHj
This commit is contained in:
2026-11-26 07:51:23 +08:00
co-authored by Claude Opus 5.5
parent 7a573bc64a
commit 4c1237a320
2 changed files with 27 additions and 0 deletions
+12
View File
@@ -32798,3 +32798,15 @@
- **防复发**:两条测试钉住引擎标签的读者用语。
- **关联记录**:BUG-2280、BUG-2163、BUG-2169、BUG-2030。
- **修复版本**:1.5。
## BUG-2410 | 合盘八分配对的金标准快照过期,`test_snapshot_golden_matches_the_engine` 在 staging 上一直失败
- **状态**:resolved(staging 待推)
- **现象**:`tests/test_marriage_match_api.py::test_snapshot_golden_matches_the_engine` 在 staging 上失败:引擎输出的 `ashtakoota_36` 多一个 `additional_checks`(Rajju / Vedha 标记与不用的规则),金标准文件里没有。
- **触发条件**:每次跑该测试。
- **根因**:BUG-1681(9bce1d6b1,2026-11-07)在 `scripts/marriage_match.py` 加了对称的 Rajju / Vedha 标记,没有重写 `frontend/tests/fixtures/marriage-match-snapshot.json`(最后一次写入是 cf063834c,10-18)。引擎是对的,金标准过期。
- **修复**:用 `WRITE_MARRIAGE_MATCH_GOLDEN=1` 重新生成,核对除新增的 `additional_checks` 外其余字段完全一致;按原文件的 CRLF 换行写回,diff 只有新增的 15 行。
- **验证**:`tests/test_marriage_match_api.py` 全部通过;读同一份快照的 `frontend/tests/marriage-match-service.test.ts` 8 条通过。
- **防复发**:改 `marriage_match.py` 输出时同一提交重写快照(测试已有 `WRITE_MARRIAGE_MATCH_GOLDEN` 开关)。
- **关联记录**:BUG-1681。
- **修复版本**:1.5。
+15
View File
@@ -55,6 +55,21 @@
],
"boundary": "These are voluntary discussion prompts, not a compatibility test or a score."
},
"additional_checks": {
"rajju": {
"status": "different_groups",
"group": null
},
"vedha": {
"status": "not_paired"
},
"not_used": {
"Mahendra": "counted from the bride's nakshatra to the groom's; gender-directed",
"StreeDeergha": "counted from the bride's nakshatra to the groom's; gender-directed",
"BadConstellations": "names risks to in-laws by the bride's or groom's birth star"
},
"boundary": "Flags only. Neither check changes the score or decides the relationship."
},
"classical_varna": {
"status": "excluded_from_default",
"reason": "Historical caste hierarchy is not used in the international product or its default score."