Skip to main content
← Back to list
01Issue
BugShippedSwamp CLIPublic
Assigneeszack

Relationships

#4553 Skill workflow reference uses range() in a forEach example; swamp CEL has no range(), and workflow validate passes it anyway

Opened by zack · 11/9/2026· Shipped 11/9/2026

Description

The swamp skill's workflow reference shows a forEach over ${{ range(1, 97) }} (.claude/skills/swamp/references/workflow/reference.md, "forEach compatibility" example under guards). swamp's CEL environment has no range() function, so a workflow copied from that example:

  • passes swamp workflow validate (10/10 checks), but
  • fails at run time with:
Workflow execution failed: Invalid expression: found no matching overload for 'range(int, int)'

>    1 | range(1, 97)
         ^

That's two problems:

  1. Docs: the bundled skill teaches agents a function that doesn't exist, so agents writing fan-out workflows hit this.
  2. Validation gap: workflow validate doesn't type-check forEach.in expressions, so an unknown function only shows up when the run starts.

Steps to reproduce

  1. Create a workflow with a step:
    forEach:
      item: n
      in: ${{ range(1, 9) }}
    task:
      type: behavior
      behavior: <any>
      methodName: run
  2. swamp workflow validate <name>: PASSED
  3. swamp workflow run <name>: fails with found no matching overload for 'range(int, int)'

Expected

  • The skill example uses something that works (a list literal, an input, or data from data.latest), or swamp provides a range() CEL function.
  • swamp workflow validate parses and type-checks forEach.in (and other step expressions) against the CEL environment and reports unknown functions/overloads.

Environment

  • Found on the branch for swamp-club#4534 (HEAD ecf6c21b4)
  • Linux x86_64
02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPED+ 1 MOREASSIGNED+ 8 MOREREVIEW+ 10 MOREPR_LINKED+ 2 MORESESSION_SUMMARIZED

Shipped

11/9/2026, 5:43:32 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
zack assigned zack11/9/2026, 4:23:14 PM

Sign in to post a ripple.