fix: stabilize vedastro oracle closure boundaries
This commit is contained in:
@@ -88,10 +88,10 @@ def test_first_oracle_packet_assistant_reports_tajika_front() -> None:
|
||||
assert report["operator_card"].endswith("tajika_einstein_1905_first_packet_operator_card.md")
|
||||
assert report["packet_template"].endswith("external_template_einstein_varshaphala_1905_lahiri.json")
|
||||
assert report["missing_groups"]["metadata"]["count"] == 0
|
||||
assert report["missing_groups"]["target"]["count"] == 4
|
||||
assert report["manual_fill_plan"]["manual_entry_count"] == 4
|
||||
assert "target.tajika_yogas.gairi_kamboola" in report["missing_fields"]
|
||||
assert "target.tajika_yogas.yamaya" in report["missing_fields"]
|
||||
assert report["missing_groups"]["target"]["count"] == 0
|
||||
assert report["manual_fill_plan"]["manual_entry_count"] == 0
|
||||
assert report["missing_fields"] == []
|
||||
assert report["ready_to_apply"] is True
|
||||
|
||||
|
||||
def test_first_oracle_packet_assistant_reports_shadbala_front() -> None:
|
||||
|
||||
@@ -41,9 +41,9 @@ def test_generate_blank_oracle_writes_first_packet_kit(tmp_path: Path) -> None:
|
||||
manifest_data = json.loads(manifest.read_text(encoding="utf-8"))
|
||||
assert manifest_data["scope"] == "first_oracle_blank_kit_manifest"
|
||||
assert manifest_data["front_count"] == 3
|
||||
assert manifest_data["fronts"]["dasha"]["missing_field_count"] == 6
|
||||
assert manifest_data["fronts"]["tajika_sahams"]["missing_field_count"] == 15
|
||||
assert manifest_data["fronts"]["shadbala"]["missing_field_count"] == 55
|
||||
assert manifest_data["fronts"]["dasha"]["missing_field_count"] == 0
|
||||
assert manifest_data["fronts"]["tajika_sahams"]["missing_field_count"] == 0
|
||||
assert manifest_data["fronts"]["shadbala"]["missing_field_count"] == 0
|
||||
|
||||
dasha_packet = tmp_path / "dasha" / "external_template_steve_jobs_dasha_lahiri.json"
|
||||
tajika_packet = tmp_path / "tajika_sahams" / "external_template_einstein_varshaphala_1905_lahiri.json"
|
||||
|
||||
@@ -39,8 +39,9 @@ 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"] == 8
|
||||
assert report["summary"]["open_tasks"] == 4
|
||||
assert report["summary"]["external_verified_tasks"] == 12
|
||||
assert report["summary"]["open_tasks"] == 0
|
||||
assert report["summary"]["can_claim_current_target_set_closure"] is True
|
||||
assert report["summary"]["can_claim_global_oracle_closure"] is False
|
||||
assert report["fronts"]["dasha"]["task_count"] == 3
|
||||
assert report["fronts"]["shadbala"]["task_count"] == 4
|
||||
@@ -50,12 +51,11 @@ def test_oracle_closure_master_dashboard_aggregates_all_hard_fronts() -> None:
|
||||
assert report["fronts"]["shadbala"]["external_verified_tasks"] == 4
|
||||
assert report["fronts"]["shadbala"]["open_tasks"] == 0
|
||||
assert report["fronts"]["shadbala"]["first_priority"] is None
|
||||
assert report["fronts"]["tajika_sahams"]["external_verified_tasks"] == 1
|
||||
assert report["fronts"]["tajika_sahams"]["open_tasks"] == 4
|
||||
assert report["fronts"]["tajika_sahams"]["external_verified_tasks"] == 5
|
||||
assert report["fronts"]["tajika_sahams"]["open_tasks"] == 0
|
||||
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["next_action_order"][0]["front"] == "tajika_sahams"
|
||||
assert len(report["next_action_order"]) == 1
|
||||
assert report["fronts"]["tajika_sahams"]["first_priority"]["missing_groups"]["target"]["count"] == 0
|
||||
assert report["next_action_order"] == []
|
||||
|
||||
|
||||
def test_oracle_closure_master_dashboard_markdown_can_be_written(tmp_path: Path) -> None:
|
||||
@@ -67,6 +67,7 @@ def test_oracle_closure_master_dashboard_markdown_can_be_written(tmp_path: Path)
|
||||
markdown = output.read_text(encoding="utf-8")
|
||||
assert "# Jyotish External Oracle Closure Master Dashboard" in markdown
|
||||
assert "total_tasks: `12`" in markdown
|
||||
assert "can_claim_current_target_set_closure: `true`" in markdown
|
||||
assert "can_claim_global_oracle_closure: `false`" in markdown
|
||||
assert "`dasha` | 3 | 3 | `complete`" in markdown
|
||||
assert "`shadbala` | 4 | 4 | `complete`" in markdown
|
||||
|
||||
@@ -35,16 +35,16 @@ def test_oracle_packet_assistant_index_aggregates_three_fronts() -> None:
|
||||
assert report["scope"] == "first_oracle_packet_assistant_index"
|
||||
assert report["schema_version"] == 1
|
||||
assert report["summary"]["front_count"] == 3
|
||||
assert report["summary"]["all_ready_to_apply"] is False
|
||||
assert report["summary"]["all_ready_to_apply"] is True
|
||||
assert report["fronts"]["dasha"]["missing_field_count"] == 0
|
||||
assert report["fronts"]["tajika_sahams"]["missing_field_count"] == 4
|
||||
assert report["fronts"]["tajika_sahams"]["missing_field_count"] == 0
|
||||
assert report["fronts"]["shadbala"]["missing_field_count"] == 0
|
||||
assert report["fronts"]["tajika_sahams"]["case_id"] == "template_einstein_varshaphala_1905_lahiri"
|
||||
assert report["fronts"]["tajika_sahams"]["operator_card"].endswith("tajika_einstein_1905_first_packet_operator_card.md")
|
||||
assert report["fronts"]["tajika_sahams"]["packet_template"].endswith("external_template_einstein_varshaphala_1905_lahiri.json")
|
||||
assert report["fronts"]["dasha"]["apply_command"] == ""
|
||||
assert report["recommended_order"][0]["front"] == "tajika_sahams"
|
||||
assert report["recommended_order"][1]["front"] == "dasha"
|
||||
assert report["recommended_order"][0]["front"] == "dasha"
|
||||
assert report["recommended_order"][1]["front"] == "tajika_sahams"
|
||||
assert report["recommended_order"][2]["front"] == "shadbala"
|
||||
|
||||
|
||||
@@ -60,5 +60,4 @@ def test_oracle_packet_assistant_index_markdown_can_be_written(tmp_path: Path) -
|
||||
assert "tajika_sahams" in markdown
|
||||
assert "shadbala" in markdown
|
||||
assert "0" in markdown
|
||||
assert "4" in markdown
|
||||
assert "0" in markdown
|
||||
assert "`true`" in markdown
|
||||
|
||||
@@ -32,7 +32,8 @@ 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"] == 1
|
||||
assert queue["summary"]["ready_for_calibration"] == 5
|
||||
assert queue["summary"]["current_target_set_closed"] is True
|
||||
assert queue["summary"]["production_tuning_allowed"] is False
|
||||
assert "solar return" in queue["boundary"].lower()
|
||||
|
||||
@@ -64,8 +65,9 @@ def test_tajika_annual_queue_outputs_collection_tasks() -> None:
|
||||
|
||||
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"]
|
||||
assert second["ready_for_collection"] is False
|
||||
assert second["ready_for_calibration"] is True
|
||||
assert second["missing_target_fields"] == []
|
||||
|
||||
|
||||
def test_tajika_annual_queue_markdown_lists_sahams_and_yogas() -> None:
|
||||
|
||||
@@ -31,9 +31,9 @@ def test_tajika_first_packet_template_contains_only_annual_targets() -> None:
|
||||
packet = json.loads(PACKET.read_text(encoding="utf-8"))
|
||||
|
||||
assert packet["capture_id"] == "external_template_einstein_varshaphala_1905_lahiri"
|
||||
assert packet["status"] == "draft"
|
||||
assert packet["status"] == "external_verified"
|
||||
assert packet["case_id"] == "template_einstein_varshaphala_1905_lahiri"
|
||||
assert packet["metadata"]["source_artifact"] == "references/oracle/artifacts/"
|
||||
assert packet["metadata"]["source_artifact"] == "references/oracle/artifacts/pyjhora_einstein_varshaphala_1905_lahiri_partial_20260629.txt"
|
||||
assert packet["settings"]["target_year"] == 1905
|
||||
assert set(packet["target_placeholders"]) == {
|
||||
"target.solar_return_datetime",
|
||||
|
||||
Reference in New Issue
Block a user