Execute commands and compare artifacts inside Ubuntu containers.

Run test suites, workers, and packaging commands inside an Ubuntu container, retaining stdout, stderr, exit codes, and up to two output files for byte-for-byte comparison across runs.

changes#148 Shorter refund window for local test fixtures test/fixture-refunds

run 1

634a0e9CI ↗ 3 flows queued running3 passed5 unchanged
  1. waitingrunningpassed
  2. Package a release2 steps · not started2/2 · 4.3s
  3. Upgrade from 1.33 steps · not started3/3 · 8.7s
  4. Receipt emails render2 steps · not started2/2 · 2.4s
  5. unchanged · 5
  6. not run again; earlier results carried over
flows/release-check.md · read onlynot run yet2 lines passed
  1. ---
  2. title: Package a release
  3. providers:
  4. container: {use: DockerUbuntu, binding: shop-test}
  5. ---
  6. # Package a release
  7. The shop’s tests pass in a clean Ubuntu container, and the release package carries the production settings.
  8. ## Run the tests
  9. The refund rules run against the Bash in the container your setup started.
  10. ```rfl step="Run the tests"
  11. ```
  12. ## Package the release
  13. The package step builds the archive and keeps the settings file it ships with.
  14. ```rfl step="Package the release"
  15. ```

waitingrunningpassedPackage a release

The shop’s tests pass in a clean Ubuntu container, and the release package carries the production settings.

not started · 2 steps planned following live viewing step passed · 4.3s · earlier run: main, 2 days ago

1 · Run the tests

not startedrunningpassed · 1.8s

The refund rules run against the Bash in the container your setup started.

This step has not started. What it keeps appears here when it ends.

This step is running. What it keeps appears here when it ends.

EARLIER RUNmain · 2 days ago
shop 1.4.0 tests on Ubuntu 24.04.5 LTS
ok - full refund returns the payment
ok - half refund splits the payment
ok - free order refunds nothing
3 passed

exit 0 · stderr.txt empty
THIS RUNstdout.txt · exit 0
shop 1.4.0 tests on Ubuntu 24.04.5 LTS
ok - full refund returns the payment
ok - half refund splits the payment
ok - free order refunds nothing
3 passed

exit 0 · stderr.txt empty
What this step didWhat this step doesWhat this step does

line 161 of 1

Ran ./bin/test, exit 0; kept tests

container.bash command="./bin/test" checkpoint="tests"
Status
passed
Time
took 1.8s, starting 0ms into the step
What it kept · tests
earlier run · main
shop 1.4.0 tests on Ubuntu 24.04.5 LTS
ok - full refund returns the payment
ok - half refund splits the payment
ok - free order refunds nothing
3 passed

exit 0 · stderr.txt empty
this run
shop 1.4.0 tests on Ubuntu 24.04.5 LTS
ok - full refund returns the payment
ok - half refund splits the payment
ok - free order refunds nothing
3 passed

exit 0 · stderr.txt empty

2 · Package the release

not startedrunningpassed · 2.5s

The package step builds the archive and keeps the settings file it ships with.

This step has not started. What it keeps appears here when it ends.

This step is running. What it keeps appears here when it ends.

EARLIER RUNmain · 2 days ago
CURRENCY=USD
LOG_LEVEL=warn
RECEIPT_EMAILS=on
REFUND_WINDOW_DAYS=30
THIS RUNfiles/dist/release.env
CURRENCY=USD
LOG_LEVEL=warn
RECEIPT_EMAILS=on
REFUND_WINDOW_DAYS=14
What this step didWhat this step doesWhat this step does

line 241 of 1

Ran ./bin/package, exit 0; kept release-package and dist/release.env

container.bash command="./bin/package" files="[\"dist/release.env\"]" checkpoint="release-package"
Status
passed
Time
took 2.5s, starting 0ms into the step
What it kept · release-package
earlier run · main
exit 0 · stderr.txt empty
stdout.txt
  packaged dist/shop-1.4.0.tar.gz
  dist/release.env: 4 settings
files/dist/release.env · sha256 9f564b64
  CURRENCY=USD
  LOG_LEVEL=warn
  RECEIPT_EMAILS=on
  REFUND_WINDOW_DAYS=30
this run
exit 0 · stderr.txt empty
stdout.txt
  packaged dist/shop-1.4.0.tar.gz
  dist/release.env: 4 settings
files/dist/release.env · sha256 634287c8
  CURRENCY=USD
  LOG_LEVEL=warn
  RECEIPT_EMAILS=on
  REFUND_WINDOW_DAYS=14
Agent reviewon pull request #148Outside scope

The package now ships a 14-day refund window.

Both runs succeed and the tests and their output are unchanged, but the package now ships a 14-day refund window instead of 30. The pull request says the shorter window is for local test fixtures. Should production keep 30?

← → stepsThe agent compares the two runs and judges; Reflow keeps what each step saw.

Run inside your container environment.

Point the flow at a running Ubuntu container holding your application build. Commands run in the configured working directory while Reflow retains stdout, stderr, exit status, and selected artifact files—leaving images, mounts, and container lifecycle under your control.

  • Stdout and stderr from inside the container
  • Exit code
  • Up to two selected output files

Compare generated files byte for byte.

Retained output and selected files are diffed across runs. A packaging job can exit 0 twice while silently altering a generated config or environment file.

Both test and packaging commands exit cleanly, yet the packaged production settings change the refund window from 30 days to 14. Your agent attaches both retained files to PR review so reviewers catch the policy drift.

Land this evidence in PR review

Run tests and capture packaged artifacts in Ubuntu

Configure the running Ubuntu container name and absolute working directory in your private DockerUbuntu binding. Container images, mounts, and networks remain managed by your environment.

Your coding agent inspects installed plugin commands via MCP, authors flows against your application knowledge, and pins versions in the application lock.

Flow excerptDockerUbuntu
---
providers:
  container: DockerUbuntu
---

container.bash command="./bin/test" checkpoint="tests"
container.bash command="./bin/package" files="[\"dist/release.env\"]" checkpoint="release-package"

Plugin locks and private target bindings are managed separately from flow source.

Check the rest
of the application.