# Trying one process

> Building flows · https://spoletta.com/docs/trying

Try one process on its own before running the whole flow: give it the inputs you want, watch what it does, and save those inputs as samples to try it on again after every change.

## Trying a process

1.  **Open its panel**
    
    Click an agent, script or connector process. Its panel's header has **Try this process…**, beside **×**: *Run only this process, on inputs you give it, without running the flow before or after it*. Human, flow and procedure processes can't be tried alone.
    
2.  **Give it its inputs**
    
    The dialog, *Try Draft*, lists each object the process takes. **Start from** fills them in: a saved sample, one of the flow's latest runs, or nothing. Change any of them, pick a state for an object that has states, or untick one to leave it out.
    
3.  **Press Try**
    
    The trial opens on the board like any run. Its panel says what the process handed back and what it cost on models, and **Try again…** opens the dialog once more, on what this trial took or a sample.
    

### Starting from a past run

Under *The flow's latest runs*, **Start from** lists up to 20 of the flow's latest runs, trials included, that have something to give the process:

-   *What it took in run #156*: a run that reached the process, with the inputs it took there.
-   *What run #158 held* or *What trial #161 of Fetch changes held*: a run that never reached it but holds the objects it takes, as their steps generated or were given them.

Each says when the run started, and how it ended unless it is done or still running. So you can try a flow one process at a time: try the first, then try the next on what that trial really generated, without running the agents before it again. Whatever you pick can be changed and saved as a sample.

![The Try Draft dialog over the Release notes board, with Draft's panel behind it. It says a trial is of the flow on the board as it is, in which only Draft runs, on what you give it, with nothing before or after it and nothing handling it failing. A yellow box warns that it really runs, so a message it posts is posted, and that it works on shop on a branch of its own. A line says what it generates stays in the trial, and its spending counts as any run's. Start from is set to Sample: 4.12.0 from 4.11.2, and Release, ticked, holds {"version": "4.12.0", "previous": "4.11.2"}. Below are the sample's name with Save sample and Delete sample, then Cancel, Try on all 2 samples and Try.](https://spoletta.com/docs/trying-dialog.webp)

*Trying Draft alone, on a sample saved for it.*

## What a trial does, and doesn't

> **It really runs:** Whatever the process does outside the flow, it does: a message it posts is posted, a comment is made, a branch it pushes is pushed. The dialog lists what it may do: the connector operation it carries out and whether that only reads, the MCP servers whose tools it may use, and the repositories it works on, on a branch of its own.

-   Only the process tried runs, on the board as it is, never the [published version](https://spoletta.com/docs/versions.md#publishing). Nothing before or after it runs, and nothing handles it failing.
-   What it generates stays in the trial. It isn't remembered as handled by a [persistent object](https://spoletta.com/docs/objects.md#stored-objects), carried over to the next run, written to [shared records](https://spoletta.com/docs/structs.md#shared-records), or counted as a schedule's last run for `$SINCE`.
-   Its spending counts as any run's, toward its flow and the [spending limits](https://spoletta.com/docs/security.md#limits).
-   The run list marks it *Trial of Draft alone*, and *A trial* in its filter finds them. The Data page leaves trials out unless the query asks with `trial:*`, and the [Activity](https://spoletta.com/docs/activity.md) page doesn't count them as runs.
-   Nobody is told a trial failed: whoever tried it is watching.

## Samples

To keep what you tried a process on, type a name in the dialog (*Name to save these inputs as a sample*) and press **Save as sample**. A sample is saved on the process, with each input's content and state, and is part of the board: versions, undo, copy and paste and [setup files](https://spoletta.com/docs/setup-files.md) keep it. Load one from **Start from**, change it and press **Save sample** to update it, or **Delete sample**. A process keeps at most 50.

Once a process has more than one sample, the dialog has **Try on all 3 samples**. It starts a trial on each, on the board as it is, and lists them: each sample with how its trial is going (running, done or failed), the first line of what failed or of what it handed back, and **Open trial #162** to see its step in full. **Back to the inputs** returns to the form. Use it to check a change of prompt, model or script against every saved input before you [publish](https://spoletta.com/docs/versions.md#publishing).

Since a trial always runs the board, changing samples never makes the board a draft of its published version. Comparing versions lists them under *Samples tried on*.

In a setup file:

```yaml
- name: Draft
  takes: [Ticket]
  yields: [Notes]
  samples:
    - name: Login bug
      inputs:
        - {object: Ticket, state: open, content: '{"data": "The login page loops"}'}
```
