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

Relationships

#4391 workflow run: show artifact attributes for runs through serve, and let a run leave out the "Data produced" box

Opened by robin · 11/4/2026· Shipped 11/5/2026

Problem

Follow-up to #4347. With that fix, local swamp workflow run and workflow resume show each artifact's attributes in the "Data produced" box, as behavior run does. Two gaps remain.

  1. Runs through swamp serve still show a bare box. src/serve/deps.ts (createWorkflowRunDeps) doesn't supply the completed-run step-output reader. Serve runs on behalf of a principal, so the reader must apply the caller's data-read decision as a canRead policy (as createWorkflowHistoryGetDeps already accepts). Otherwise a remote caller could see attributes of records they may not read.
  2. The box can't be left out. This is the first proposal in #4347. Some workflows return one fixed-name record that repeats on every run, and for them the box is noise. Ideas:
    • --quiet covering it, or a workflow run flag;
    • a resource-spec marker (for example display: false), so a behavior author can keep the data handle (for data list --workflow and report pointers) without it appearing in the run summary.

Proposed solution

  1. Supply the step-output reader in serve's workflow run and resume paths, with the principal's canRead policy, so remote clients get the same box as local runs.
  2. Decide on a way to leave the box out. A behavior-author marker keeps the decision with the person who knows the record isn't user-facing. A CLI flag is simpler but leaves it to each caller.

Alternatives considered

  • Leaving serve as it is: remote and local runs keep printing different summaries.
  • Hiding the box by returning no data handles: this breaks the link between the run and its data.
02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPED+ 1 MOREASSIGNED+ 11 MOREREVIEW+ 24 MOREPR_LINKED+ 2 MORESESSION_SUMMARIZED

Shipped

11/5/2026, 11:44:46 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
zack assigned zack11/5/2026, 8:24:58 PM
Editable. Press Enter to edit.

zack commented 11/5/2026, 11:44:47 PM

Thanks @robin for reporting this! We shipped: Two parts. (1) Runs through swamp serve show each artifact's attributes in the Data produced box, resolved per attached client under that client's own data-read decision, from the live completed run (whose never-persisted sensitive values mask secrets) captured server-side after the save, through a dep-only workflowRun hook (run) or directly (resume), and kept in a holder each subscriber captures at subscribe time; the buffered event stays attribute-free and principal-neutral. (2) A behavior author marks a resource or file spec display: false; the writer stamps a reserved _swamp. tag from the spec, and the workflow run and behavior run summaries leave tagged artifacts out of the box while the data handle, run record, data list --workflow, report pointers and --json keep them.. The fix has been merged and a release is on its way. We appreciate your contribution to swamp.

Sign in to post a ripple.