fix(rectification): separate adjacent minutes with transition proximity
Independent Staging Quality Gate / validate (push) Successful in 11m56s
Independent Staging Quality Gate / publish (push) Has been cancelled

Day-level events now score Vimshottari/Narayana transition closeness so
nearby candidate minutes can diverge, with gated quality probes and
answer-prior ranking so high-base-rate existence questions stay out.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jesse_Chen
2026-09-01 17:41:06 +08:00
co-authored by Cursor
parent 20df8c6022
commit 8743dcb105
18 changed files with 1402 additions and 55 deletions
+5 -2
View File
@@ -450,7 +450,10 @@ class EventProbesTest(unittest.TestCase):
}],
)
probes = _probes(request, built, ["05:13", "05:40"], "05:13", precision_current="d5_refine")
existence = [item for item in probes if item["domain"] == "education"]
existence = [
item for item in probes
if item["domain"] == "education" and item.get("choice_kind") != "event_quality"
]
self.assertFalse(any(item["year"] in {2015, 2016, 2017} for item in existence))
def test_signature_clusters_use_full_birth_window(self) -> None:
@@ -674,7 +677,7 @@ class EventProbesTest(unittest.TestCase):
self.assertGreaterEqual(int(probe["year"]), 1900)
self.assertNotEqual(int(probe["year"]), 0)
self.assertEqual(distinguish_contract_errors(probe), [])
self.assertIn(probe["source"], {"dasha_boundary", "dasha_activation"})
self.assertIn(probe["source"], {"dasha_boundary", "dasha_activation", "known_event_quality"})
self.assertGreaterEqual(len(probe["style_options"]), 4)
self.assertGreaterEqual(len(probe["candidate_ids"]), 2)
self.assertGreaterEqual(len(probe["expected_outcomes"]), 2)