Spaces:
Running
Running
test: align autonomous AI smoke profile
Browse files
scripts/smoke_autonomous_ai.py
CHANGED
|
@@ -139,7 +139,11 @@ def one(
|
|
| 139 |
receipt = receipt_after(before)
|
| 140 |
stop(unapproved)
|
| 141 |
unapproved = None
|
| 142 |
-
if
|
|
|
|
|
|
|
|
|
|
|
|
|
| 143 |
raise RuntimeError("unapproved real AI result or canary is invalid")
|
| 144 |
approval = call(
|
| 145 |
operator,
|
|
|
|
| 139 |
receipt = receipt_after(before)
|
| 140 |
stop(unapproved)
|
| 141 |
unapproved = None
|
| 142 |
+
if (
|
| 143 |
+
receipt.get("trigger", {}).get("kind") != "UNAPPROVED_AI_MATCH"
|
| 144 |
+
or receipt.get("detector", {}).get("profile") != "content.gguf-llama"
|
| 145 |
+
or canary.poll() is not None
|
| 146 |
+
):
|
| 147 |
raise RuntimeError("unapproved real AI result or canary is invalid")
|
| 148 |
approval = call(
|
| 149 |
operator,
|