---
url: https://docs.puppetflow.com/guide/flow-runs.md
---
# Runs & Executions

A run is one execution of a flow. Puppetflow uses both terms for the same thing.

Each run has its own status, input, output, logs, code snapshot, duration, and artifacts. A flow can be run manually from the editor or automatically through a trigger, the REST API, or MCP.

## Execution modes

Puppetflow distinguishes between two execution modes.

### Manual runs

A manual run starts from the flow editor or from a run-again action in the interface. Manual runs are intended for building, debugging, and validating flows with a real browser and test data.

Development usage does not normally use the run quota. Puppetflow applies a fair-use policy when the same working browser journey is launched manually over and over. A stable, repeated manual journey may eventually be classified as a production run.

The policy looks at what the flow actually executes. Renaming or moving nodes, changing comments, or adding a `No-op` node does not by itself establish new development activity. New browser actions, branches, or other meaningful execution changes move the flow back toward development usage.

The decision made when a run starts is final for that run. Finishing a run may update the flow's fair-use state, but that update only affects later runs.

### Automated runs

The following runs are classified as production when Puppetflow accepts them:

* webhook triggers;
* cron triggers;
* REST API executions;
* executions started through MCP.

Each production run reserves one credit when accepted. Successful and failed runs consume that credit. Cancelling the run releases it, while pausing for human validation keeps the reservation attached to the same run. A request rejected before Puppetflow creates a run does not use a credit.

## How quota usage works

Plans with a run allowance use a fixed subscription cycle. Puppetflow reserves one credit when it accepts a production run.

When the allowance is exhausted, Puppetflow blocks production runs until the next cycle. Manual runs that still qualify as development usage remain available.

One flow run always consumes at most one credit:

* Calling a snippet does not create another run.
* Pausing with `$waitHumanValidation()` and continuing later remains part of the original run.
* Producing several screenshots, downloads, or browser actions does not create additional runs.

## Run lifecycle

A run moves through these statuses:

1. **Pending**: the run is queued and waiting for a worker.
2. **Running**: the browser is active and executing the flow.
3. **Success**: the flow completed successfully.
4. **Error**: the flow threw an exception or returned an error response.
5. **Cancelled**: someone stopped the run before completion.

## Viewing runs

Open a flow and select the **Runs** tab to see its history. The main **Runs** page searches across the flows you can access.

Each entry shows its status, trigger source, duration, legend, and artifact counts. Open a run to inspect:

* the input and JSON output;
* console logs;
* the exact code snapshot used for that execution;
* screenshots, downloads, and video recording when available.

Runs can be filtered by date and status. Plans with metadata search can also filter values attached through `$meta()`.

See the [Runs API](/reference/api/runs) for programmatic access.

## Waiting for human validation

`$waitHumanValidation()` keeps the run open and displays **Continue run** in its **Live** tab. Continuing resumes the same browser session and does not create or count another run.

## Cancelling a run

Active runs can be stopped from the run detail or the runs list. Puppetflow terminates the browser process and marks the run as cancelled.

A cancelled production run releases its reserved credit. Its production classification remains attached to the run for audit purposes.

## Retention

Retention controls how much execution history Puppetflow stores:

* a flow can set its own maximum number of retained runs;
* a workspace can provide a default and an upper limit.

When a retention limit is reached, Puppetflow removes the oldest runs and their artifacts. Removing history does not change quota usage for the current subscription cycle.
