Commit 9bec9ba
committed
fix(workflows): ensure workflow-builder injects $ARGUMENTS in generated YAMLs
Fixes #1535
The workflow-builder's generate-yaml node did not explicitly require
generated workflows to reference $ARGUMENTS (or $USER_MESSAGE). When
the AI generated single-node workflows that accept user input, it
described the input in prose but omitted the $ARGUMENTS substitution
variable. The harness captured the user's invocation message but never
injected it into the node's conversation.
Changes:
- Add rule 13 to generate-yaml prompt: every workflow that accepts user
input MUST reference $ARGUMENTS in at least one node prompt
- Add validation warning in validate-yaml when neither $ARGUMENTS nor
$USER_MESSAGE appears in the generated YAML
- Regenerate bundled defaults1 parent 5283ea9 commit 9bec9ba
2 files changed
Lines changed: 6 additions & 1 deletion
File tree
- .archon/workflows/defaults
- packages/workflows/src/defaults
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
| |||
223 | 224 | | |
224 | 225 | | |
225 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
226 | 231 | | |
227 | 232 | | |
228 | 233 | | |
| |||
0 commit comments