Relationships
↔ sibling #2923#2925 swamp workflow create crashes with an [FTL] ZodError stack trace on an invalid (uppercase) workflow name
Opened by hammz · 10/1/2026· Shipped 10/1/2026
Description
Passing a workflow name that fails workflow-name validation to swamp workflow create crashes the CLI with an [FTL] fatal log, a raw ZodError JSON dump and a stack trace, instead of a clean validation error. Sibling of swamp-club#2923 (same defect in model create).
Found while triaging swamp-club#2923 on 20261001.202145.0-sha.a3515474.
Steps to reproduce
- swamp repo init --tool none in a scratch dir
- swamp workflow create WfUpper
Actual
[FTL] error: ZodError with message: Workflow name must be lowercase alphanumeric with hyphens (e.g. 'deploy-pipeline'). Must start with a letter or number. followed by a stack trace through Workflow.create (src/libswamp/workflows/create.ts). Names over 64 characters crash the same way.
Expected
A user-facing validation error naming the rule (and a json-mode error object under --json), with no stack trace. The name should be validated up front in workflowCreate, before Workflow.create throws.
Shipped
Click a lifecycle step above to view its details.
Sign in to post a ripple.