Fix shadbala closure board completed-state reporting

This commit is contained in:
732642856
2026-06-27 19:18:33 +08:00
parent 04d901e1be
commit 79a6c8622b
2 changed files with 52 additions and 28 deletions
+3 -22
View File
@@ -41,23 +41,8 @@ def test_shadbala_oracle_closure_status_identifies_first_absolute_value_packet()
assert report["summary"]["can_claim_shadbala_absolute_closure"] is True
assert report["summary"]["required_planets"] == ["Sun", "Moon", "Mars", "Mercury", "Jupiter", "Venus", "Saturn"]
assert report["summary"]["required_components"] == ["sthana", "dig", "kala", "chesta", "naisargika", "drik", "total_rupa"]
assert report["first_priority"]["case_id"] == "template_redacted_place_shadbala_raman"
assert report["first_priority"]["capture_id"] == "external_template_redacted_place_shadbala_raman"
assert report["first_priority"]["required_target_fields"] == [
"target.moon_sidereal_longitude_deg",
"target.shadbala_components",
]
assert "metadata.tool_name" in report["first_priority"]["missing_fields"]
assert "target.shadbala_components.Sun.sthana" in report["first_priority"]["missing_fields"]
assert "target.shadbala_components.Saturn.total_rupa" in report["first_priority"]["missing_fields"]
assert report["first_priority"]["missing_groups"]["metadata"]["count"] == 5
assert report["first_priority"]["missing_groups"]["target"]["count"] == 50
assert report["first_priority"]["missing_groups"]["bodies"]["Sun"]["count"] == 7
assert report["first_priority"]["prefilled_fields"]["metadata"]["ayanamsa"] == "Raman"
assert report["first_priority"]["manual_fill_plan"]["status_value"] == "external_verified"
assert report["first_priority"]["manual_fill_plan"]["manual_entry_count"] == 55
assert report["first_priority"]["reject_global_scaling"] is True
assert report["first_priority"]["validate_command"]
assert report["first_priority"] is None
assert report["next_actions"][0] == "Shadbala external absolute-value closure is complete for the current target set."
def test_shadbala_oracle_closure_status_markdown_can_be_written(tmp_path: Path) -> None:
@@ -69,8 +54,4 @@ def test_shadbala_oracle_closure_status_markdown_can_be_written(tmp_path: Path)
markdown = output.read_text(encoding="utf-8")
assert "# Shadbala External Absolute-Value Closure Status" in markdown
assert "can_claim_shadbala_absolute_closure: `true`" in markdown
assert "external_template_redacted_place_shadbala_raman" in markdown
assert "target.shadbala_components.Sun.sthana" in markdown
assert "## Missing Summary" in markdown
assert "## Prefilled Fields" in markdown
assert "## Manual Fill Plan" in markdown
assert "closure is complete for the current target set" in markdown