Spaces:
Running
Running
fix: gate autonomous containment latency
Browse files
scripts/run_autonomous_matrix.py
CHANGED
|
@@ -136,7 +136,9 @@ def main() -> int:
|
|
| 136 |
raise RuntimeError("benign process was interrupted")
|
| 137 |
results["benign"] += 1
|
| 138 |
results["latency_ms"] = {"process_start_to_first_stop_p95": percentile(starts, 95), "trigger_to_empty_p95": percentile(empties, 95)}
|
| 139 |
-
|
|
|
|
|
|
|
| 140 |
raise RuntimeError("autonomous latency gate failed")
|
| 141 |
results["result"] = "PASS"
|
| 142 |
args.output.write_text(json.dumps(results, sort_keys=True) + "\n", encoding="utf-8")
|
|
|
|
| 136 |
raise RuntimeError("benign process was interrupted")
|
| 137 |
results["benign"] += 1
|
| 138 |
results["latency_ms"] = {"process_start_to_first_stop_p95": percentile(starts, 95), "trigger_to_empty_p95": percentile(empties, 95)}
|
| 139 |
+
# Workload startup (especially a real ELF fixture) is diagnostic;
|
| 140 |
+
# the release gate is deterministic containment after qualification.
|
| 141 |
+
if percentile(empties, 95) >= 500:
|
| 142 |
raise RuntimeError("autonomous latency gate failed")
|
| 143 |
results["result"] = "PASS"
|
| 144 |
args.output.write_text(json.dumps(results, sort_keys=True) + "\n", encoding="utf-8")
|