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

Relationships

#2386 steps.<name>.outputs is never populated for model_method steps

Opened by hammz · 9/22/2026· Shipped 9/23/2026

Summary

steps.<name>.outputs is never populated for model_method steps in a real workflow run, so every documented use of it fails at step time with Invalid expression: No such key: outputs. The same gap empties cross-workflow outputs (steps.<parent-step>.outputs.<child-step>), the step outputs in swamp workflow history get --json, and swamp workflow history outputs.

Cause

WorkflowExecutionService.extractStepOutputsForContext and extractChildWorkflowOutputs (src/domain/workflows/execution_service.ts), and toRunData in src/libswamp/workflows/run.ts, read output.resourceAttributes from a model_method step's output. Nothing in src/ writes that field any more: its producer was removed in #275 (809bce34, typed resource/file output specs). The steps namespace was added later in #2457 (c0941cb4, 2026-09-14) on top of the stale field. Its tests build step outputs that already carry resourceAttributes, so they pass while real runs never produce it.

Reproduction

Found while verifying #2351, where the run-start Unknown variable: steps failure is fixed. With that fix, in a workflow where step write_record (a command/shell model writing a result resource) is followed by a step whose input is steps.write_record.outputs.stdout inside a CEL template:

  • steps.write_record.status resolves to succeeded.
  • steps.write_record.outputs.stdout fails with Invalid expression: No such key: outputs.

Expected

steps.<name>.outputs exposes the step's resource attributes, as design/enablers/expressions.md (Step Output Context) and the manual's CEL reference describe.

02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPED+ 1 MOREASSIGNED+ 5 MOREREVIEW+ 10 MOREPR_MERGED+ 2 MORESESSION_SUMMARIZED

Shipped

9/23/2026, 11:17:21 AM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack729/23/2026, 6:44:13 AM

Sign in to post a ripple.