feat: queue VedAstro rectification evidence packets

* feat: queue VedAstro rectification evidence packets

* fix: make report artifacts portable and normalize d11

* test: use portable runtime smoke temp directory

* test: make frontend smoke temp paths portable
This commit is contained in:
732642856
2026-07-20 01:28:57 +08:00
committed by GitHub
parent b4fee10439
commit 64fcb62f83
12 changed files with 228 additions and 7 deletions
@@ -13,3 +13,39 @@ def test_packet_is_private_and_never_confirms(monkeypatch) -> None:
assert "year" not in str(packet)
assert packet["can_confirm"] is False
assert packet["vedastro"]["status"] == "requires_gateway_raw_archive"
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"})
monkeypatch.setattr("scripts.rectification_three_engine_packet._jyotishganit_d1", lambda _: {"Sun": "Aries"})
monkeypatch.setattr(
"scripts.vedastro_gateway.enqueue_gateway_job",
lambda *_args, **_kwargs: {
"job_id": "vgw_safe_receipt",
"status": "queued",
"poll_path": "/api/vedastro_gateway/jobs/vgw_safe_receipt",
"request": CASE,
"result": {"official_raw_response": {"private": "never expose"}},
"raw_response_archive": {
"status": "pending",
"official_raw_response_available": False,
},
},
)
packet = build_packet(CASE, enqueue_vedastro_gateway=True)
assert packet["vedastro"] == {
"scope": "vedastro_gateway_job_receipt",
"status": "queued",
"job_id": "vgw_safe_receipt",
"poll_path": "/api/vedastro_gateway/jobs/vgw_safe_receipt",
"raw_response_archive": {
"status": "pending",
"official_raw_response_available": False,
},
"boundary": "VedAstro raw response remains server-side; this receipt never returns request data or raw evidence.",
}
assert "year" not in str(packet)
assert "private" not in str(packet)