Skip to main content
← Back to list
01Issue
BugOpenSwamp CLIPublic
AssigneesNone

Relationships

#2288 data.latest() exposes no path/filePath key for file-kind data — forces deprecated model.<name>.file.<spec>.<instance>.path

Opened by vcjdeboer · 9/18/2026

Description

data.latest("model", "dataName") on file-kind data exposes .content, .size, .name, .version, and .id, but has no key for the filesystem path (.path, .filePath, .contentPath — all throw No such key).

The only way to get a file path in a workflow CEL expression is the deprecated model.<name>.file.<spec>.<instance>.path pattern, which still works but is documented as deprecated.

Steps to Reproduce

  1. Have a model with file-kind data (e.g. r-lab with a CSV table output)
  2. In a workflow step expression, use: data.latest("r-lab", "table").path
  3. Observe: No such key: path
  4. Try .filePath, .contentPath — same error
  5. The deprecated form model.r-lab.file.table.table.path works and returns the correct filesystem path

Expected Behavior

data.latest("model", "dataName") should expose a .path (or .filePath) key for file-kind data, giving the filesystem path to the stored file — matching the capability of the deprecated model.<name>.file.<spec>.<instance>.path pattern.

Environment

  • swamp 20260918.181015.0
  • macOS Darwin 25.2.0
  • Filesystem datastore

Impact

Any workflow that needs to pass a file path to a downstream step (e.g. session-execute's run method needs filledPath) must use the deprecated pattern. This blocks migration to data.latest() for file-kind data in workflows.

02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED

Open

9/18/2026, 8:16:50 PM

No activity in this phase yet.

03Sludge Pulse

Sign in to post a ripple.