From dbdde4d2fa219f577515ed60571dff159f18acea Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 1 Sep 2026 07:51:59 +0000 Subject: [PATCH] docs: surface parallel TypeScript constraint in dynamic-workflows.md The parallel row in the context table was missing the single-type TypeScript constraint and the Promise.all avoidance note. Both were documented in claude-workflow-conversion.md but not in the primary dynamic-workflows.md reference, so users who read only the API doc would not see the hint about heterogeneous casts or the concurrency limiter bypass warning. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- skills/rig/references/dynamic-workflows.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skills/rig/references/dynamic-workflows.md b/skills/rig/references/dynamic-workflows.md index c31fc6d..1321ef9 100644 --- a/skills/rig/references/dynamic-workflows.md +++ b/skills/rig/references/dynamic-workflows.md @@ -122,7 +122,7 @@ workflows. Do not import `"rig/globals"` unless you need it. | `call.json(prompt, schema, options?)` | Runs a one-off agent constrained to `schema`; returns typed output or `null` | | `call.workflow(child, args?, options?)` | Runs another workflow inline on the same limiter, budget, and event stream | | `pipeline(items, ...stages)` | Streams each item through every stage independently; agent calls flow through the shared limiter | -| `parallel(thunks)` | Runs all thunks as a barrier and preserves their order | +| `parallel(thunks)` | Runs all thunks as a barrier and preserves their order. **TypeScript:** all thunks must return the same type; for heterogeneous outputs cast: `parallel([...]) as Promise<[TypeA \| null, TypeB \| null]>`. Use instead of `Promise.all` — it respects the concurrency limiter and converts failures to `null` holes. | | `until(options, step)` | Runs a bounded convergence loop | | `phase(name)` | Sets the phase attached to subsequent events | | `log(message)` | Emits a structured log event |