Multiplayer agent harness for work.
Remove the decision question length limit (#2338)
Joshua France32af87825cb6
diff --git a/src/decisions/decisions.ts b/src/decisions/decisions.tsindex 6231fb124..0e5d4a50a 100644--- a/src/decisions/decisions.ts+++ b/src/decisions/decisions.ts@@ -122,8 +122,7 @@ export function parseDecisionRule(return { error: `${r.id}: hook must be one of ${DECISION_HOOKS.join(", ")}` };if (!LIVE_DECISION_HOOKS.includes(r.hook as DecisionHook))return { error: `${r.id}: hook ${String(r.hook)} is not available yet; use ${LIVE_DECISION_HOOKS.join(", ")}` };- if (typeof r.question !== "string" || !r.question.trim() || r.question.length > MAX_TEXT_CHARS)- return { error: `${r.id}: question is required, at most ${MAX_TEXT_CHARS} characters` };+ if (typeof r.question !== "string" || !r.question.trim()) return { error: `${r.id}: question is required` };if (!DECISION_MODES.includes(r.mode as DecisionRule["mode"]))return { error: `${r.id}: mode must be one of ${DECISION_MODES.join(", ")}` };if (typeof r.options !== "object" || r.options === null || Array.isArray(r.options))diff --git a/test/decision-rules.test.ts b/test/decision-rules.test.tsindex 0314db85c..4eb90b66f 100644--- a/test/decision-rules.test.ts+++ b/test/decision-rules.test.ts@@ -51,6 +51,11 @@ const fixed = (p: Record<string, number> | Error, calls: string[][] = []): Decis},});+test("decision questions can exceed 500 characters", () => {+ const question = "A detailed classification criterion. ".repeat(30);+ assert.deepEqual(parse({ ...route(), question }), { rule: { ...route(), question } });+});+test("parseDecisionRule validates hooks, options, actions, onError, provider and model catalog", () => {assert.match(err(parse(injection())), /tool_response is not available yet/);assert.deepEqual(parse(route()), { rule: route() });