Advance oracle queue readiness state

This commit is contained in:
732642856
2026-06-28 17:57:16 +08:00
parent 2582ccd6c0
commit 7dc36ce558
7 changed files with 65 additions and 37 deletions
+10 -7
View File
@@ -33,11 +33,11 @@ def test_prepare_oracle_capture_packets_writes_packets_manifest_and_next_steps(t
report = json.loads(completed.stdout)
assert report["scope"] == "external_oracle_capture_packet_preparation"
assert report["packet_count"] == 6
assert report["validator_summary"]["valid_packets"] == 4
assert report["validator_summary"]["ready_for_calibration"] == 4
assert report["first_priority_packet"].endswith("external_template_historical_epoch_lahiri.json")
assert report["validator_summary"]["valid_packets"] == 5
assert report["validator_summary"]["ready_for_calibration"] == 5
assert report["first_priority_packet"].endswith("external_template_bv_raman_vimshottari_boundary_series.json")
packet = tmp_path / "external_template_historical_epoch_lahiri.json"
packet = tmp_path / "external_template_bv_raman_vimshottari_boundary_series.json"
manifest = tmp_path / "capture_manifest.json"
next_steps = tmp_path / "OPERATOR_NEXT_STEPS.md"
assert packet.exists()
@@ -45,9 +45,12 @@ def test_prepare_oracle_capture_packets_writes_packets_manifest_and_next_steps(t
assert next_steps.exists()
packet_data = json.loads(packet.read_text(encoding="utf-8"))
assert packet_data["status"] == "external_verified"
assert packet_data["status"] == "draft"
assert packet_data["metadata"]["source_artifact"].startswith("references/oracle/artifacts/")
assert packet_data["target_placeholders"]["target.sun_sidereal_longitude_deg"] is None
boundaries = packet_data["target_placeholders"]["target.vimshottari_mahadasa_boundaries"]
assert isinstance(boundaries, dict)
assert boundaries["Mars"] == "1912-08-08"
assert boundaries["Rahu"] == "1918-09-21"
manifest_data = json.loads(manifest.read_text(encoding="utf-8"))
assert manifest_data["scope"] == "external_oracle_capture_packet_manifest"
@@ -55,7 +58,7 @@ def test_prepare_oracle_capture_packets_writes_packets_manifest_and_next_steps(t
assert packet.name in manifest_data["packets"]
guide = next_steps.read_text(encoding="utf-8")
assert "external_template_historical_epoch_lahiri.json" in guide
assert "external_template_bv_raman_vimshottari_boundary_series.json" in guide
assert "oracle_evidence_validator.py" in guide
assert "--apply-packet" in guide
assert "不得把本仓库本地输出当作 external oracle" in guide