From e64f6b23b4eae5e78756e69d945f5d833bd82f64 Mon Sep 17 00:00:00 2001 From: cflmy Date: Wed, 18 Nov 2026 09:32:04 +0800 Subject: [PATCH] fix(ai): use valid Marqdo branch expressions and literal main reference --- ext/ai/flow.mq.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/ai/flow.mq.md b/ext/ai/flow.mq.md index 123f4a4..972f722 100644 --- a/ext/ai/flow.mq.md +++ b/ext/ai/flow.mq.md @@ -28,7 +28,7 @@ Parsing accepts one exact name, a labeled name, a fenced name or a 1-based index. Ambiguous prose fails closed. Parsing never runs a tool or SKILL. We retain **p = [Locate the installed agent plugin](plugin.native_path(name="agent"))**. -1. p +1. `p` We **[Load the agent plugin](plugin.load(path=`p`))**. 2. * Return *[Missing native parser](json.parse(text="{\"ok\":false,\"status\":\"unavailable\",\"value\":null}"))*. @@ -56,7 +56,7 @@ We retain **prompt = "Choose exactly one of these options. Return its name only, We retain **reply = [Ask the model once](llm.ask(prompt=`prompt`, model=`model`))**. We retain **parsed = [Validate the model reply](parse_choice(reply=`reply`, options=`options`))**. We retain **ok = [Read validation status](json.get(value=`parsed`, key="ok"))**. -1. ok +1. `ok` Return *parsed*. 2. `repair` We retain **fix = "Your answer was not an exact allowed option. Return only ONE option name from:\n" + opts**. @@ -78,6 +78,6 @@ We retain **ok = [Read validation status](json.get(value=`parsed`, key="ok"))**. | result | list | Ordered child outcomes, including failures | Reuse the built-in subtask scheduler. Each child document returns via its -# main, and successful siblings remain visible if another child fails. +`# main`, and successful siblings remain visible if another child fails. Return *[Run bounded Marqdo document tasks](subtask.run_many(tasks=`tasks`, limit=`limit`, timeout_ms=`timeout_ms`))*.