from __future__ import annotations import json import numpy as np import pytest from validate_historical_oracle_acceptance import array_digest, validate pytestmark = pytest.mark.django_db def test_validate_uses_runner_semantic_array_digest(tmp_path): output_dir = tmp_path / "run" checkpoints = output_dir / "checkpoints" checkpoints.mkdir(parents=True) values = np.array([1.0, 2.0], dtype=np.float64) status = { "artifact": "HISTORICAL_FEATURE_ORACLE_FULL_STATUS_V1", "status": "PASS", "completed_features": 711, "checkpoints": [ { "request_id": f"feature-{index}", "path": f"feature-{index}.npy", "dtype": "