Replace undrainable telemetry load with fresh rerun

This commit is contained in:
2026-07-14 17:52:21 +08:00
parent c0b40af24f
commit 7fd9563550
6 changed files with 150 additions and 35 deletions

View File

@@ -15,10 +15,10 @@ from typing import Any, Iterable, Mapping
HERE = Path(__file__).resolve().parent
P1_PATH = HERE.parent / "intervention-response-v0" / "analyze_p1.py"
SCHEMA = "intervention-response-phase-aware-pilot-analysis-v2"
EXPECTED_ACTION_PAIRS = 9
EXPECTED_REPEAT_PAIRS = 12
MIN_EFFICACY_CLASS = 3
SCHEMA = "intervention-response-phase-aware-pilot-analysis-v3"
EXPECTED_ACTION_PAIRS = 6
EXPECTED_REPEAT_PAIRS = 8
MIN_EFFICACY_CLASS = 2
MAX_LAYER1_GAP_S = 1.0
@@ -520,7 +520,7 @@ def cumulative_coverage_gate(windows: list[dict[str, Any]]) -> dict[str, Any]:
def audit(*, run_root: Path, manifest_path: Path, output_path: Path) -> dict[str, Any]:
manifest = json.loads(manifest_path.read_text(encoding="utf-8"))
if manifest.get("schema") != "intervention-response-phase-aware-pilot-manifest-v2":
if manifest.get("schema") != "intervention-response-phase-aware-pilot-manifest-v3":
raise ValueError("unexpected phase-aware pilot manifest schema")
fractions = [float(value) for value in manifest["checkpoints"]["fractions"]]
seconds = [float(value) for value in manifest["checkpoints"]["seconds"]]