feat: audit VedAstro raw archive manifest

This commit is contained in:
732642856
2026-07-08 21:33:55 +08:00
parent beaabe4e6a
commit ca4b2b7947
5 changed files with 33 additions and 0 deletions
+2
View File
@@ -2205,6 +2205,8 @@ def test_high_rigor_workflow_reuses_existing_rectification_backtest_and_vedastro
assert result['unified_orchestrator']['surface'] == 'api_web'
assert result['unified_orchestrator']['route']['question_type'] == 'career'
assert result['machine_evidence_packet']['sections']['vedastro_official_raw_archive_manifest']['status'] == 'used'
assert result['runtime_evidence_log']['quality_gate']['technique_audit_table'][1]['technique'] == 'VedAstro Raw Archive Manifest'
assert result['runtime_evidence_log']['quality_gate']['technique_audit_table'][1]['status'] == 'used'
def test_consultation_workflow_uses_unified_orchestrator_contract(monkeypatch) -> None:
+1
View File
@@ -183,6 +183,7 @@ def test_mcp_strict_workflow_returns_runtime_evidence_log(monkeypatch) -> None:
assert result["runtime_evidence_log"]["real_case_calibration"]["status"] == "partial_scored"
assert result["runtime_evidence_log"]["quality_gate"]["technique_audit_table_required"] is True
assert result["runtime_evidence_log"]["quality_gate"]["technique_audit_table"][0]["technique"] == "VedAstro Cloud State"
assert result["runtime_evidence_log"]["quality_gate"]["technique_audit_table"][1]["technique"] == "VedAstro Raw Archive Manifest"
def test_career_blocks_label_when_d10_is_missing_but_preserves_jaimini_context() -> None:
@@ -191,6 +191,7 @@ def test_runtime_evidence_log_exposes_blind_packet_case_and_quality_gate_contrac
assert log["quality_gate"]["technique_audit_table_required"] is True
assert [row["technique"] for row in log["quality_gate"]["technique_audit_table"]] == [
"VedAstro Cloud State",
"VedAstro Raw Archive Manifest",
"External Engine Cross-Validation",
"Evidence Packet",
"Blind Technical Mode",
@@ -216,6 +217,11 @@ def test_runtime_evidence_log_exposes_blind_packet_case_and_quality_gate_contrac
packet = orchestrator.machine_evidence_packet(
chart={"chart": {"planets": {"Sun": {}}, "ascendant": {"sign": "Leo"}}},
route_packet={"question_type": "career", "primary_theme": "career"},
vedastro_archive_manifest={
"scope": "vedastro_official_raw_response_archive_manifest",
"archive_count": 1,
"archives": [{"job_id": "job_1955", "official_raw_response_available": True}],
},
)
log_with_functional = orchestrator.runtime_evidence_log(
surface="api_web",
@@ -229,6 +235,10 @@ def test_runtime_evidence_log_exposes_blind_packet_case_and_quality_gate_contrac
assert functional_row["technique"] == "Functional Benefic/Malefic"
assert functional_row["status"] == "used"
assert "Mars" in functional_row["yogakarakas"]
archive_row = log_with_functional["quality_gate"]["technique_audit_table"][1]
assert archive_row["technique"] == "VedAstro Raw Archive Manifest"
assert archive_row["status"] == "used"
assert archive_row["used"] is True
def test_machine_evidence_packet_materializes_required_section_statuses() -> None: