feat(skill): advance tajika annual oracle closure

This commit is contained in:
732642856
2026-06-27 03:09:17 +08:00
parent 0f1c1406bb
commit cbfb9eac5d
19 changed files with 503 additions and 54 deletions
@@ -39,8 +39,8 @@ def test_oracle_closure_master_dashboard_aggregates_all_hard_fronts() -> None:
assert report["scope"] == "jyotish_external_oracle_closure_master_dashboard"
assert report["schema_version"] == 1
assert report["summary"]["total_tasks"] == 12
assert report["summary"]["external_verified_tasks"] == 7
assert report["summary"]["open_tasks"] == 5
assert report["summary"]["external_verified_tasks"] == 8
assert report["summary"]["open_tasks"] == 4
assert report["summary"]["can_claim_global_oracle_closure"] is False
assert report["fronts"]["dasha"]["task_count"] == 3
assert report["fronts"]["shadbala"]["task_count"] == 4
@@ -49,7 +49,9 @@ def test_oracle_closure_master_dashboard_aggregates_all_hard_fronts() -> None:
assert report["fronts"]["dasha"]["first_priority"] is None
assert report["fronts"]["shadbala"]["external_verified_tasks"] == 4
assert report["fronts"]["shadbala"]["first_priority"]["case_id"] == "template_redacted_place_shadbala_raman"
assert report["fronts"]["tajika_sahams"]["first_priority"]["case_id"] == "template_steve_jobs_varshaphala_1984_lahiri"
assert report["fronts"]["tajika_sahams"]["external_verified_tasks"] == 1
assert report["fronts"]["tajika_sahams"]["open_tasks"] == 4
assert report["fronts"]["tajika_sahams"]["first_priority"]["case_id"] == "template_einstein_varshaphala_1905_lahiri"
assert report["fronts"]["tajika_sahams"]["first_priority"]["missing_groups"]["target"]["count"] == 10
assert report["fronts"]["shadbala"]["first_priority"]["manual_fill_plan"]["manual_entry_count"] == 55
assert report["next_action_order"][0]["front"] == "tajika_sahams"
@@ -68,6 +70,6 @@ def test_oracle_closure_master_dashboard_markdown_can_be_written(tmp_path: Path)
assert "can_claim_global_oracle_closure: `false`" in markdown
assert "`dasha` | 3 | 3 | `complete`" in markdown
assert "template_redacted_place_shadbala_raman" in markdown
assert "template_steve_jobs_varshaphala_1984_lahiri" in markdown
assert "template_einstein_varshaphala_1905_lahiri" in markdown
assert "manual entries" in markdown
assert "metadata missing" in markdown
+21
View File
@@ -92,3 +92,24 @@ def test_skill_gap_truth_audit_markdown_is_human_readable() -> None:
assert "can_claim_global_first: `false`" in markdown
assert "Dasha external oracle" in markdown
assert "Past Corrections" in markdown
def test_transit_reference_blocks_single_factor_override_claims() -> None:
transit = (ROOT / "references" / "transit-comprehensive-guide.md").read_text(encoding="utf-8")
kantaka = (ROOT / "references" / "navatara-kantaka-shani-guide.md").read_text(encoding="utf-8")
combined = transit + "\n" + kantaka
assert "Natal Promise First Protocol" in transit
assert "本命盘决定事件可发生的范围" in transit
assert "Dasha 决定主题是否进入兑现期" in transit
assert "Transit 主要负责触发" in transit
assert "是否获得奖项/地位必须再看10宫、11宫、D10、Dasha、AV与现实领域证据" in kantaka
forbidden_overclaims = [
"一票否决",
"完全反转",
"免疫纯粹灾难",
"土星过4宫必主",
]
for phrase in forbidden_overclaims:
assert phrase not in combined
@@ -38,7 +38,7 @@ def test_tajika_annual_dashboard_outputs_stable_json_summary() -> None:
assert report["scope"] == "tajika_sahams_annual_benchmark_dashboard"
assert report["schema_version"] == 1
assert report["summary"]["total_tasks"] == 5
assert report["summary"]["ready_for_calibration"] == 0
assert report["summary"]["ready_for_calibration"] == 1
assert report["summary"]["production_tuning_allowed"] is False
assert report["annual_claim"]["can_claim_tajika_sahams_closure"] is False
assert "Solar return" in report["remaining_gap"]
+7 -5
View File
@@ -37,10 +37,10 @@ def test_tajika_annual_closure_status_identifies_first_annual_packet() -> None:
assert report["scope"] == "tajika_sahams_annual_closure_status"
assert report["schema_version"] == 1
assert report["summary"]["annual_task_count"] == 5
assert report["summary"]["external_verified_annual_tasks"] == 0
assert report["summary"]["external_verified_annual_tasks"] == 1
assert report["summary"]["can_claim_tajika_sahams_closure"] is False
assert report["first_priority"]["case_id"] == "template_steve_jobs_varshaphala_1984_lahiri"
assert report["first_priority"]["capture_id"] == "external_template_steve_jobs_varshaphala_1984_lahiri"
assert report["first_priority"]["case_id"] == "template_einstein_varshaphala_1905_lahiri"
assert report["first_priority"]["capture_id"] == "external_template_einstein_varshaphala_1905_lahiri"
assert report["first_priority"]["required_target_fields"] == [
"target.solar_return_datetime",
"target.varsha_lagna_deg",
@@ -58,7 +58,9 @@ def test_tajika_annual_closure_status_identifies_first_annual_packet() -> None:
assert "target.sahams.punya_saham" in report["first_priority"]["missing_fields"]
assert report["first_priority"]["missing_groups"]["metadata"]["count"] == 5
assert report["first_priority"]["missing_groups"]["target"]["count"] == 10
assert report["first_priority"]["prefilled_fields"]["metadata"]["annual_system"] == "Varshaphala/Tajika"
assert report["first_priority"]["prefilled_fields"]["metadata"]["annual_system"] == "varshaphala"
assert report["first_priority"]["prefilled_fields"]["metadata"]["target_year"] == 1905
assert report["first_priority"]["prefilled_fields"]["settings"]["node_mode"] == "mean"
assert report["first_priority"]["manual_fill_plan"]["status_value"] == "external_verified"
assert report["first_priority"]["manual_fill_plan"]["manual_entry_count"] == 15
assert report["first_priority"]["validate_command"]
@@ -73,7 +75,7 @@ def test_tajika_annual_closure_status_markdown_can_be_written(tmp_path: Path) ->
markdown = output.read_text(encoding="utf-8")
assert "# Tajika/Sahams Annual Closure Status" in markdown
assert "can_claim_tajika_sahams_closure: `false`" in markdown
assert "external_template_steve_jobs_varshaphala_1984_lahiri" in markdown
assert "external_template_einstein_varshaphala_1905_lahiri" in markdown
assert "target.sahams.punya_saham" in markdown
assert "## Missing Summary" in markdown
assert "## Prefilled Fields" in markdown
+26 -5
View File
@@ -32,20 +32,41 @@ def test_tajika_annual_queue_outputs_collection_tasks() -> None:
assert queue["scope"] == "tajika_sahams_annual_oracle_collection_queue"
assert queue["schema_version"] == 1
assert queue["summary"]["total_tasks"] == 5
assert queue["summary"]["ready_for_calibration"] == 0
assert queue["summary"]["ready_for_calibration"] == 1
assert queue["summary"]["production_tuning_allowed"] is False
assert "solar return" in queue["boundary"].lower()
first = queue["tasks"][0]
assert first["task_id"].startswith("collect_")
assert first["status"] == "template_only"
assert first["ready_for_collection"] is True
assert first["ready_for_calibration"] is False
assert first["case_id"] == "template_steve_jobs_varshaphala_1984_lahiri"
assert first["status"] == "external_verified"
assert first["ready_for_collection"] is False
assert first["ready_for_calibration"] is True
assert "target.solar_return_datetime" in first["target_fields"]
assert "target.sahams.punya_saham" in first["missing_target_fields"]
assert first["missing_target_fields"] == []
assert first["target_fields"] == [
"target.solar_return_datetime",
"target.varsha_lagna_deg",
"target.muntha_sign",
"target.year_lord",
"target.mudda_dasha_first_lord",
"target.sahams.punya_saham",
"target.sahams.rajya_saham",
"target.sahams.vivah_saham",
"target.tajika_yogas",
"target.source_artifact",
]
assert first["evidence_packet"]["metadata"]["tool_name"] == "PyJHora"
assert first["evidence_packet"]["target_placeholders"]["target.year_lord"] == "Mars"
assert first["evidence_packet"]["target_placeholders"]["target.mudda_dasha_first_lord"] == "Sun"
assert "JHora Varshaphala screenshot" in first["preferred_sources"]
assert first["evidence_packet"]["integrity_checks"]["requires_external_artifact"] is True
second = queue["tasks"][1]
assert second["case_id"] == "template_einstein_varshaphala_1905_lahiri"
assert second["ready_for_collection"] is True
assert "target.sahams.punya_saham" in second["missing_target_fields"]
def test_tajika_annual_queue_markdown_lists_sahams_and_yogas() -> None:
completed = run_queue("--format", "markdown")