subagent_generate: validate constraints is an array
This commit is contained in:
parent
a5efaa623f
commit
6884e69995
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue