Make telemetry audit replay-phase aware

This commit is contained in:
2026-07-14 17:18:25 +08:00
parent 791f7a8889
commit 0515ad8ecc
9 changed files with 11780 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ def main() -> None:
controller = load("p6controller", HERE / "opprof_phase6_controller.py")
solo = load("p6solo", HERE / "opprof_phase6_solo_controller.py")
analysis = load("p6analysis", HERE / "analyze_phase6.py")
client = load("p6client", HERE / "opprof_phase6_client.py")
assert len(controller.CELLS) == 12
primary = sum(3 if item.get("trap") else 2 for item in controller.CELLS.values())
assert primary == 25
@@ -36,6 +37,18 @@ def main() -> None:
assert sum(solo.CELL_ESTIMATE.values()) + solo.SAFETY_HOURS == 3.44
assert solo.next_below([.1, .2, .3], {.2, .3}) == .1
assert solo.next_above([.1, .2, .3], {.1, .2}) == .3
parsed = client.parser().parse_args([
"run-anchor",
"--study", "study.json",
"--cell", "tp4_mns16",
"--anchor", "0.5",
"--tp", "4",
"--mns", "16",
"--base-url", "http://127.0.0.1:8000",
"--result-dir", "out",
"--disable-slo-early-stop",
])
assert parsed.disable_slo_early_stop is True
print("phase6 tools: PASS")