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

Relationships

#5190 Opt-in: a shell behavior's log can keep a marked tail of large stdout, so large outputs are stored and uploaded once

Opened by stack72 · 11/29/2026

Split from swamp-club#5180. Not started.

Today: command/shell stores stdout in full twice, in the result resource's stdout attribute and in the log file ([stdout]\n... + [stderr]\n...). A 200 MiB output stores and uploads about 427 MB on every datastore kind.

Why not by default: result.stdout must stay whole, because expressions, data queries, steps.X.outputs.stdout and model.method() guards read it, and the docs teach it. Shrinking the log by default would change what swamp data get <behavior> log, file.contents(model, "log"), scripts reading the log's path, and size checks see. That is a breaking change.

Proposal: opt in per behavior. A shell argument such as logStdout: tail (default full). Once stdout passes 16 MiB, the log keeps a clearly marked header naming the full size and where the full output is (the result resource's stdout attribute and the command to read it), placed before [stdout], then the last 64 KiB of stdout, then stderr as today. Below the threshold, or without the option, the log is unchanged.

Needed:

  • a swamp-uat test of an output over the threshold (log header, tail, stderr; data get ... result still returns the full stdout);
  • a dashboard parseLog test on a marked log;
  • docs for the log's contract and where the full output lives.
02Bog Flow
◉OPEN○TRIAGED○IN PROGRESS○SHIPPED

Open

11/29/2026, 12:00:31 AM

No activity in this phase yet.

03Sludge Pulse

Sign in to post a ripple.