fix: reset rectification corrections safely

This commit is contained in:
Jesse_Chen
2026-07-21 05:57:30 +08:00
parent 887b40df43
commit 5c8d965f16
8 changed files with 584 additions and 34 deletions
@@ -511,6 +511,10 @@ def test_evidence_correction_lineage_is_bounded_projected_and_validated_atomical
"insert into public.birth_time_rectification_event_evidence"
)
assert "where evidence.case_id = p_case_id" in save
assert "group by correction.value::uuid having pg_catalog.count(*) > 1" in save
assert save.index("group by correction.value::uuid having pg_catalog.count(*) > 1") < save.index(
"insert into public.birth_time_rectification_turns"
)
def test_case_mutations_enforce_cumulative_load_limits_under_the_case_lock() -> None: