feat: complete verifiable birth-time rectification flow

This commit is contained in:
Jesse_Chen
2026-07-21 22:16:18 +08:00
parent eb8ed8bee4
commit bfc6870614
117 changed files with 6215 additions and 1038 deletions
@@ -15,6 +15,18 @@ def test_packet_is_private_and_never_confirms(monkeypatch) -> None:
assert packet["vedastro"]["status"] == "requires_gateway_raw_archive"
def test_case_hash_uses_only_normalized_calculation_input() -> None:
equivalent = {
**CASE,
"second": 0.0,
"ayanamsa": " LAHIRI ",
"nodeMode": "MEAN",
"display_name": "must not affect calculation identity",
}
assert case_hash(equivalent) == case_hash({**CASE, "ayanamsa": "lahiri", "node_mode": "mean"})
def test_high_rigor_packet_queues_safe_vedastro_receipt_without_raw(monkeypatch) -> None:
monkeypatch.setattr("scripts.rectification_three_engine_packet._local_d1", lambda _: {"Sun": "Aries"})
monkeypatch.setattr("scripts.rectification_three_engine_packet._pyjhora_d1", lambda _: {"Sun": "Aries"})