subagent_generate: validate constraints is an array

This commit is contained in:
Levi Neely 2026-05-17 14:02:58 +02:00
parent a5efaa623f
commit 6884e69995
1 changed files with 2 additions and 0 deletions

View File

@ -54,6 +54,8 @@ def main():
shared_task = raw.get("shared_task", "")
protocol = raw.get("protocol", "")
constraints = raw.get("constraints", [])
if not isinstance(constraints, list):
die("constraints must be an array of strings")
legacy = raw.get("prompt", "")
if not role and not legacy: