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

#230 data·delete logger double-quotes the data name in log output

Opened by stack72 · 5/4/2026· Shipped 5/4/2026

The swamp data delete log-mode output emits the data name with doubled quotes (""result"") instead of single quotes ("result").

Reproduction

$ swamp model create command/shell hello-world
$ swamp model method run hello-world execute --input run='echo hi' --skip-reports
$ echo y | swamp data delete hello-world result --log
About to delete 1 version(s) of "result" from hello-world. Proceed? [y/N] y
19:00:25.924 INF data·delete Deleted 1 version(s) of ""result"" for "hello-world" ("command/shell")

The Deleted N version(s) of ""result"" for "hello-world" line wraps result in two pairs of quotes. All other quoted fields in the same line ("hello-world", "command/shell") are quoted normally — only the data name is doubled.

The --version variant is affected the same way:

19:00:21.623 INF data·delete Deleted version 1 of ""result"" for "hello-world" ("command/shell")

Expected

Single quotes around the data name, matching every other quoted identifier in the line:

INF data·delete Deleted 1 version(s) of "result" for "hello-world" ("command/shell")

Notes

  • The interactive prompt (About to delete 1 version(s) of "result" from hello-world.) quotes correctly — only the post-delete confirmation line is wrong.
  • JSON output (--json) is unaffected.
  • Likely a string-formatter call inside the data·delete logger that wraps an already-quoted value (e.g. JSON.stringify on a string that already has quotes, or a %q-equivalent applied to "${name}").
  • Caught while writing the swamp-club manual page for swamp data delete — had to choose between documenting the artifact verbatim or normalising it. Cleaner output upstream lets the docs match the CLI exactly.

Version

swamp 20260504.183628.0-sha.b2d6e0d5 on darwin (arm64).

02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED+ 1 MOREASSIGNED+ 3 MOREREVIEW+ 3 MOREPR_MERGEDSHIPPED

Shipped

5/4/2026, 8:52:46 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack725/4/2026, 8:03:57 PM

Sign in to post a ripple.