From 6884e699957e2fbfcc1553dd55c1eb550307ffe5 Mon Sep 17 00:00:00 2001 From: Levi Neely <141506390+lneely@users.noreply.github.com> Date: Sun, 17 May 2026 14:02:58 +0200 Subject: [PATCH] subagent_generate: validate constraints is an array --- tools/subagent_generate | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/subagent_generate b/tools/subagent_generate index aa27699..ce697e1 100755 --- a/tools/subagent_generate +++ b/tools/subagent_generate @@ -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: