sync: import latest three-engine closure packets
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
PACKET = ROOT / "references/oracle/three_engine_bav_sav_field_closure_packet_2026_07_21.json"
|
||||
INDEX = ROOT / "references/oracle/evidence_packet_index_2026_07_19.json"
|
||||
|
||||
|
||||
def test_bav_sav_packet_classifies_without_truth_upgrade():
|
||||
data = json.loads(PACKET.read_text(encoding="utf-8"))
|
||||
|
||||
assert data["scope"] == "three_engine_bav_sav_field_closure_packet"
|
||||
assert data["claim_status"] == "partial"
|
||||
assert data["truth_matrix_allowed"] is False
|
||||
assert data["summary"]["rows_total"] == 8
|
||||
assert data["summary"]["local_pyjhora_jyotishganit_agree"] == 5
|
||||
assert data["summary"]["multi_engine_variant"] == 3
|
||||
assert data["summary"]["truth_upgrades"] == 0
|
||||
|
||||
|
||||
def test_bav_sav_rows_require_worked_examples_and_method_metadata():
|
||||
data = json.loads(PACKET.read_text(encoding="utf-8"))
|
||||
rows = {row["ticket_id"]: row for row in data["rows"]}
|
||||
|
||||
assert rows["TEMCQ-011"]["closure_status"] == "partial_consensus_vedastro_variant_blocked"
|
||||
assert rows["TEMCQ-012"]["closure_status"] == "multi_engine_variant_worked_example_required"
|
||||
assert rows["TEMCQ-016"]["closure_status"] == "multi_engine_variant_worked_example_required"
|
||||
assert rows["TEMCQ-018"]["closure_status"] == "multi_engine_variant_worked_example_required"
|
||||
for row in rows.values():
|
||||
assert row["required_evidence"] == [
|
||||
"public worked BAV/SAV table",
|
||||
"contributor set",
|
||||
"Lagna inclusion policy",
|
||||
"shodhana state",
|
||||
"rashi order/orientation"
|
||||
]
|
||||
assert row["claim_boundary"] == "ashtakavarga_table_comparison_only_no_formula_truth"
|
||||
|
||||
|
||||
def test_bav_sav_packet_is_registered():
|
||||
index = json.loads(INDEX.read_text(encoding="utf-8"))
|
||||
entry = next(
|
||||
row for row in index["packets"]
|
||||
if row["packet_id"] == "three_engine_bav_sav_field_closure_packet_2026_07_21"
|
||||
)
|
||||
|
||||
assert entry["domain"] == "three_engine_parity"
|
||||
assert entry["claim_status"] == "partial"
|
||||
@@ -0,0 +1,55 @@
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
PACKET = ROOT / "references/oracle/three_engine_d2_field_closure_packet_2026_07_21.json"
|
||||
INDEX = ROOT / "references/oracle/evidence_packet_index_2026_07_19.json"
|
||||
|
||||
|
||||
def test_d2_packet_closes_local_pyjhora_jyotishganit_agreement_only():
|
||||
data = json.loads(PACKET.read_text(encoding="utf-8"))
|
||||
|
||||
assert data["scope"] == "three_engine_d2_field_closure_packet"
|
||||
assert data["claim_status"] == "partial"
|
||||
assert data["truth_matrix_allowed"] is False
|
||||
assert data["summary"]["rows_total"] == 7
|
||||
assert data["summary"]["local_pyjhora_jyotishganit_agree"] == 7
|
||||
assert data["summary"]["vedastro_endpoint_semantics_blocked"] == 7
|
||||
assert data["summary"]["truth_upgrades"] == 0
|
||||
|
||||
|
||||
def test_d2_rows_keep_vedastro_as_endpoint_semantics_not_formula_error():
|
||||
data = json.loads(PACKET.read_text(encoding="utf-8"))
|
||||
|
||||
expected = {
|
||||
"Sun.sign": ("Leo", "Gemini"),
|
||||
"Moon.sign": ("Cancer", "Pisces"),
|
||||
"Mars.sign": ("Leo", "Aries"),
|
||||
"Mercury.sign": ("Leo", "Virgo"),
|
||||
"Jupiter.sign": ("Cancer", "Aquarius"),
|
||||
"Venus.sign": ("Cancer", "Leo"),
|
||||
"Saturn.sign": ("Cancer", "Gemini"),
|
||||
}
|
||||
rows = {row["field"]: row for row in data["rows"]}
|
||||
assert set(rows) == set(expected)
|
||||
for field, (consensus, vedastro) in expected.items():
|
||||
row = rows[field]
|
||||
assert row["ticket_id"].startswith("TEMCQ-00")
|
||||
assert row["local_value"] == consensus
|
||||
assert row["pyjhora_jhora_value"] == consensus
|
||||
assert row["jyotishganit_value"] == consensus
|
||||
assert row["vedastro_value"] == vedastro
|
||||
assert row["closure_status"] == "partial_consensus_vedastro_endpoint_blocked"
|
||||
assert row["claim_boundary"] == "three_engine_consensus_not_global_truth"
|
||||
|
||||
|
||||
def test_d2_packet_is_registered_in_evidence_index():
|
||||
index = json.loads(INDEX.read_text(encoding="utf-8"))
|
||||
entry = next(
|
||||
row for row in index["packets"]
|
||||
if row["packet_id"] == "three_engine_d2_field_closure_packet_2026_07_21"
|
||||
)
|
||||
|
||||
assert entry["domain"] == "three_engine_parity"
|
||||
assert entry["claim_status"] == "partial"
|
||||
@@ -0,0 +1,51 @@
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
PACKET = ROOT / "references/oracle/three_engine_d4_d9_d10_field_closure_packet_2026_07_21.json"
|
||||
INDEX = ROOT / "references/oracle/evidence_packet_index_2026_07_19.json"
|
||||
|
||||
|
||||
def test_d4_d9_d10_packet_closes_partial_consensus_only():
|
||||
data = json.loads(PACKET.read_text(encoding="utf-8"))
|
||||
|
||||
assert data["scope"] == "three_engine_d4_d9_d10_field_closure_packet"
|
||||
assert data["claim_status"] == "partial"
|
||||
assert data["truth_matrix_allowed"] is False
|
||||
assert data["summary"]["rows_total"] == 3
|
||||
assert data["summary"]["local_pyjhora_jyotishganit_agree"] == 3
|
||||
assert data["summary"]["vedastro_endpoint_semantics_blocked"] == 3
|
||||
assert data["summary"]["truth_upgrades"] == 0
|
||||
|
||||
|
||||
def test_d4_d9_d10_rows_preserve_exact_values_and_boundaries():
|
||||
data = json.loads(PACKET.read_text(encoding="utf-8"))
|
||||
rows = {(row["section"], row["field"]): row for row in data["rows"]}
|
||||
|
||||
expected = {
|
||||
("D4", "Moon.sign"): ("TEMCQ-008", "Gemini", "Pisces"),
|
||||
("D9", "Moon.sign"): ("TEMCQ-009", "Scorpio", "Leo"),
|
||||
("D10", "Moon.sign"): ("TEMCQ-010", "Pisces", "Sagittarius"),
|
||||
}
|
||||
assert set(rows) == set(expected)
|
||||
for key, (ticket, consensus, vedastro) in expected.items():
|
||||
row = rows[key]
|
||||
assert row["ticket_id"] == ticket
|
||||
assert row["local_value"] == consensus
|
||||
assert row["pyjhora_jhora_value"] == consensus
|
||||
assert row["jyotishganit_value"] == consensus
|
||||
assert row["vedastro_value"] == vedastro
|
||||
assert row["closure_status"] == "partial_consensus_vedastro_endpoint_blocked"
|
||||
assert row["claim_boundary"] == "three_engine_consensus_not_global_truth"
|
||||
|
||||
|
||||
def test_d4_d9_d10_packet_is_registered():
|
||||
index = json.loads(INDEX.read_text(encoding="utf-8"))
|
||||
entry = next(
|
||||
row for row in index["packets"]
|
||||
if row["packet_id"] == "three_engine_d4_d9_d10_field_closure_packet_2026_07_21"
|
||||
)
|
||||
|
||||
assert entry["domain"] == "three_engine_parity"
|
||||
assert entry["claim_status"] == "partial"
|
||||
@@ -0,0 +1,44 @@
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
PACKET = ROOT / "references/oracle/three_engine_field_status_batch_2026_07_21.json"
|
||||
INDEX = ROOT / "references/oracle/evidence_packet_index_2026_07_19.json"
|
||||
|
||||
|
||||
def test_field_status_batch_adds_panchanga_ticket_and_keeps_truth_closed():
|
||||
data = json.loads(PACKET.read_text(encoding="utf-8"))
|
||||
|
||||
assert data["scope"] == "three_engine_field_status_batch"
|
||||
assert data["claim_status"] == "observation_only"
|
||||
assert data["truth_matrix_allowed"] is False
|
||||
assert data["summary"]["truth_upgrades"] == 0
|
||||
assert data["panchanga_ticket"]["ticket_id"] == "TEMCQ-061"
|
||||
assert data["panchanga_ticket"]["closure_status"] == "open"
|
||||
|
||||
|
||||
def test_field_status_batch_classifies_all_mapped_rows():
|
||||
data = json.loads(PACKET.read_text(encoding="utf-8"))
|
||||
rows = data["rows"]
|
||||
|
||||
assert len(rows) == 18
|
||||
assert data["summary"]["rows_total"] == 18
|
||||
assert data["summary"]["endpoint_semantics"] == 10
|
||||
assert data["summary"]["worked_example_required"] == 8
|
||||
assert {row["status_after_bridge"] for row in rows} == {
|
||||
"ready_for_endpoint_semantics_check",
|
||||
"ready_for_worked_example_comparison",
|
||||
}
|
||||
assert all(row["claim_boundary"] == "status_classification_only_no_numeric_truth" for row in rows)
|
||||
|
||||
|
||||
def test_field_status_batch_is_registered():
|
||||
index = json.loads(INDEX.read_text(encoding="utf-8"))
|
||||
entry = next(
|
||||
row for row in index["packets"]
|
||||
if row["packet_id"] == "three_engine_field_status_batch_2026_07_21"
|
||||
)
|
||||
|
||||
assert entry["domain"] == "three_engine_parity"
|
||||
assert entry["claim_status"] == "observation_only"
|
||||
@@ -0,0 +1,55 @@
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
LEDGER = ROOT / "references/oracle/whole_machine_jyotish_fragment_scan_2026_07_21.json"
|
||||
INDEX = ROOT / "references/oracle/evidence_packet_index_2026_07_19.json"
|
||||
|
||||
|
||||
def test_whole_machine_fragment_scan_records_external_and_privacy_buckets():
|
||||
data = json.loads(LEDGER.read_text(encoding="utf-8"))
|
||||
summary = data["summary"]
|
||||
|
||||
assert data["scope"] == "whole_machine_jyotish_fragment_scan_2026_07_21"
|
||||
assert summary["files_with_signals"] >= 2000
|
||||
assert summary["external_signal_files"] >= 1500
|
||||
assert summary["privacy_blocked_files"] >= 900
|
||||
assert summary["reviewable_external_files"] >= 700
|
||||
|
||||
|
||||
def test_scan_keeps_old_workbuddy_out_of_truth_source():
|
||||
data = json.loads(LEDGER.read_text(encoding="utf-8"))
|
||||
policy = data["decision_policy"]
|
||||
|
||||
assert policy["workbuddy_fragment"] == "reference only; never truth source"
|
||||
assert policy["privacy_review_required"] == "forbidden until human privacy review"
|
||||
|
||||
workbuddy_rows = [
|
||||
row for row in data["reviewable_external_candidates"]
|
||||
if row["category"] == "workbuddy_fragment"
|
||||
]
|
||||
assert workbuddy_rows
|
||||
assert all(row["decision"] == "reference_only_candidate_not_truth_source" for row in workbuddy_rows)
|
||||
|
||||
|
||||
def test_scan_records_reference_layers_that_exist_but_are_not_fully_called():
|
||||
data = json.loads(LEDGER.read_text(encoding="utf-8"))
|
||||
runtime = data["runtime_invocation_findings"]
|
||||
|
||||
assert runtime["interpretation_source_runtime_coverage_status"] == "partial"
|
||||
assert "references/open_source_sources/jyotishganit" in runtime["not_fully_closed_reference_layers"]
|
||||
assert "references/open_source_sources/VedicAstro" in runtime["not_fully_closed_reference_layers"]
|
||||
assert runtime["inventory_gate_status"] == "pass"
|
||||
|
||||
|
||||
def test_fragment_scan_is_registered_in_evidence_index():
|
||||
index = json.loads(INDEX.read_text(encoding="utf-8"))
|
||||
entry = next(
|
||||
row for row in index["packets"]
|
||||
if row["packet_id"] == "whole_machine_jyotish_fragment_scan_2026_07_21"
|
||||
)
|
||||
|
||||
assert entry["domain"] == "fragment_governance"
|
||||
assert entry["claim_status"] == "open_queue"
|
||||
assert "not truth source" in entry["claim_boundary"]
|
||||
Reference in New Issue
Block a user