Test plan reference
Plans are the execution format for manual dashboard and API runs. The GitHub App generates its task from all claims in the PR description; it does not read committed plans or accept plan names after a mention. Start with the setup guide for the normal integration.
A manual plan stages a build, runs optional setup commands and gives the tester explicit goals. It can require human review of the resulting UI evidence.
Goals are written in plain language on purpose. The tester is an agent, not a script runner: describe what a careful human tester would do and what they should see, and it will find the buttons.
Minimal plan
version: 1
name: Desktop smoke test
target:
os: linux
tests:
- id: desktop-visible
goal: Take a screenshot and confirm a desktop with a panel or taskbar is showing.
expect:
- A desktop environment is rendered, not a blank or black screen.
Every field
| Field | Required | Default | Meaning |
|---|---|---|---|
version | yes | — | Always 1. |
name | yes | — | Shown in the dashboard and as the check name (ProcessControl · <name>). Two plans in one repo need different names. |
target.os | yes | — | linux, macos, windows or web. Self-serve runs use linux; macos is limited to organizations we operate machines for; windows is not available yet. web runs in a browser on whichever machine takes web runs. |
target.pool | no | — | Route to a named machine pool. Leave it out unless we gave you a pool name; a plan naming a pool nobody serves waits in the queue and says so. |
installer.source | with installer | — | url. See Installers. |
installer.ref | with installer | — | The HTTPS download URL. |
installer.sha256 | no | — | 64 hex characters. The run errors before setup if the download does not match. |
installer.installHint | no | — | One sentence for the tester on how to install, e.g. sudo apt install ./MyApp.deb, then launch MyApp from the menu. |
setup | no | [] | Shell commands run in order before any test, as the machine's user. A non-zero exit ends the run as errored and skips every test. Each command has a 2-minute limit. |
tests | yes, ≥ 1 | — | See Tests. Run in order; a failure does not stop the ones after it. |
timeoutMinutes | no | 120 | Wall-clock budget for the whole run, 1–180. The tests still to run share what is left, so a slow early test shrinks the later ones rather than starving them. |
cancelStale | no | false | Cancel this plan's runs once their pull request moves on: a new push, a request for a newer commit, or closing the PR or turning it into a draft. Off, every requested run finishes and reports on the commit it tested. The GitHub App is how ProcessControl sees the pull request move, so a run submitted over the API for a repository without the app is never cancelled this way. |
reuse | no | true | Pass without a machine when this plan already passed on the same build. See Reusing passes. |
humanReview | no | false | Capture screenshots and video, then require a human to accept each test’s UI. Overrides artifact flags and disables result reuse. |
artifacts.screenshots | no | true | Keep the tester's screenshots as evidence (one per action plus a final state per test). |
artifacts.screenRecording | no | true | Record a video of the screen during each test, across reboots, for the run page and the reply. A recording stops growing at 16 MB. |
Tests
| Field | Required | Default | Meaning |
|---|---|---|---|
id | yes | — | kebab-case: letters, digits, dashes, starting with a letter or digit. Used in the check output and the run page. |
goal | yes | — | What to do, in plain language. Name the app, the screen, the action and the outcome you care about. |
expect | no | [] | What must be true for the test to pass, one sentence each. The tester reports each as a claim: verified, contradicted (also when the outcome is ambiguous), or blocked by a missing account, setup or platform. |
destructive | no | false | Mark tests that reboot the machine or change system settings. They still run in order; the flag is for readers of the plan and the run page. |
skills | no | true | false runs the test without the repository's skills and screen map: the tester can neither read nor save them. |
Every test gets its share of the remaining time. Running out ends that test
as failed with deadline reached; the next test starts on the same machine.
Writing goals and expectations
A good goal reads like a line from a manual QA script. Say which app, what
to click or type, and what you want to happen. Put the observable outcome in
expect so the verdict is checkable from a screenshot or a command's output.
- id: create-note
goal: Launch Notes from the applications menu, create a new note titled "Groceries", type one line of text and close the window.
expect:
- A window titled "Groceries" appeared while editing.
- After closing, the note list shows an entry called "Groceries".
Prefer outcomes the tester can see or check: window titles, text on screen, a file that exists, a command's exit code. Avoid asking for things it cannot verify, like "feels responsive". Split long flows into several tests: each verdict is then specific, and a failure halfway leaves the later tests running.
The tester can also run shell commands, so a goal may say "run myapp --version and confirm it prints 1.2.0". For a purely command-based check,
a goal of the form $ <command> passes when the command exits 0 — the
pipeline smoke tests use this.
Secrets
Credentials never go in the plan. Add them under Settings → Secrets in
the dashboard (admins only; values are write-only) and reference them as
${{ secrets.NAME }} in setup, goal, expect or installHint:
setup:
- printf 'TOKEN=${{ secrets.API_TOKEN }}\n' > ~/.config/myapp/env
tests:
- id: login
goal: Sign in with the email ${{ secrets.TEST_EMAIL }} and password ${{ secrets.TEST_PASSWORD }}.
expect:
- The header shows ${{ secrets.TEST_EMAIL }} after signing in.
Names are UPPER_SNAKE_CASE. A plan that references a secret your
organization has not defined is rejected when the run is created (the check
says which name). Values are handed to the machine only when the run starts,
substituted there, and redacted from the timeline, summaries and errors.
Wherever a secret's text shows on a screenshot or recording, it is covered;
media whose text cannot be read is withheld. The tester still sees the
uncovered screen while executing the plan.
Pull requests from forks never receive secrets unless an admin approves the run with secrets on its page; approving without them makes the run fail at start with a clear message instead of running with placeholders.
Skills
When the tester has to search for something, such as a build step, a service to start or a log file, it saves what worked as a skill: a name, a one-line description and the directions. Skills can also attach tested Bash scripts. The scripts are stored in the cloud and staged as private files on later VMs. Agents inspect them against the current source before execution; they do not run automatically at VM startup. Every later test of the same repository starts with the list and reads the ones that look relevant, so the next run goes straight there instead of exploring. A test can refine a skill that misled it.
Skills are listed by repository under Skills in the dashboard, each linked to the run that last saved it; admins delete the ones that are wrong. Secret values are redacted before a skill is stored. Runs from forks neither read nor save skills.
Screen map
The way around the app is not written down by the tester but recorded as it
works: links, tabs and links in a menu that lead from one screen to
another become routes, as do opened URLs. A route never changes the app's
data: nothing typed is a step, so the tester signs in by hand, and a button
that moves on, or a screen where the tester toggled or chose anything
before leaving, gives no route. From any screen on the map, signed in or
not, later tests of the repository on the same platform go to a known
screen with pc.goto(id) (or the browser tool's goto action), which
replays the routes there without the model and stops where the app no
longer follows them; the tester continues by hand from there and its steps
become the new route. Runs that may not use skills neither read nor record
the map.
Mark a test skills: false to run it as someone new to the app would: it
sees no skills or screen map and saves neither. Use it for tests whose point
is that the way to a feature is discoverable.
- id: first-time-export
goal: Starting from the home screen, find how to export the open document as PDF and do it.
skills: false
expect:
- A PDF of the document is saved.
UI standards
Admins write your organization's UI standards and best practices under Settings → UI standards, in plain language:
- Buttons use sentence case.
- Every destructive action asks for confirmation.
- Text is never cut off or overflowing.
Every test checks each screen it exercises against them, alongside its own
expect entries. By default a clear violation fails the test; set
Violations are reported, not failed next to the standards to have the
tester judge pass or fail only on expect. Either way each violation is
listed with its test, naming the rule and what the screenshot showed, on the
run page, in the check and in the reply to the mention. The tester judges
interfaces from screenshots and takes one before every verdict, so the
evidence for a violation is on the run page, with any secrets on it
covered.
Installers
The file is downloaded onto the machine with curl before setup and placed
at /tmp/pc/<file name>; the tester is told the exact path. Add sha256 so
a tampered or truncated download errors the run.
installer:
source: url
ref: https://github.com/acme/app/releases/download/v1.2.0/app_1.2.0_amd64.deb
sha256: 3b6d9a2f4c7e8b10a9346f8db051cae42098b6df716ca43986f314ad8579e1f0 # replace with your build’s digest
installHint: sudo apt install /tmp/pc/app_1.2.0_amd64.deb, then launch "App" from the menu.
Without an installer, test what the machine already has — the operating
system, preinstalled tools, or something a setup command fetched.
Reusing passes
A run's verdict depends on the plan, the build it installs, your organization's
UI standards and what tests it: the machine (its image, size and runner
version), the Codex connection (reconnecting it starts over) and, when a test
enables skills, the repository's saved skills. When all of them match a run
that already passed in the same repository, and that run's evidence is still
kept, the new run passes straight away with its results and evidence, and no
machine boots. The build matches when the installer has the same sha256, so
plans without an installer, or with no sha256, always run, because nothing
pins what they test. So do retries, human-review plans, plans that reference
secrets, runs that list the repository's app accounts or variables, whether or
not they receive the values, and runs on machines without a pinned version,
such as local workers. Fork plans still wait for approval before they can reuse
a pass.
Set reuse: false to run the plan every time. Re-run in the dashboard
always runs.
The machine
Linux machines are Ubuntu virtual machines with an Xfce desktop at 1280×800,
sudo without a password, curl, git, unzip, a C toolchain, Node with
pnpm, Yarn and Bun, uv, and outbound internet on ports 80/443. Manual plans get
a fresh machine every time the plan runs. Pull request and audit runs of a repository
carry on from the machine its last run left, with what that run installed,
cached and built, and only the files that changed since rewritten. Each run
is one machine; each test runs after the previous one on the same machine,
so a test can rely on what earlier tests installed.
The tester sees the screen at up to 1280 pixels wide, clicks and types like a person, can scroll and drag, wait for things to load, run shell commands, read and write files, and reboot the machine (and wait for it to come back) when a test needs it.
Worked examples
A CLI tool from a release URL
version: 1
name: CLI release smoke
target:
os: linux
installer:
source: url
ref: https://github.com/acme/tool/releases/download/v2.3.0/tool-linux-amd64.tar.gz
installHint: Extract with tar and put the binary on the PATH.
setup:
- mkdir -p ~/bin
tests:
- id: install
goal: Extract the archive at the stated path, move the `tool` binary into ~/bin, and run `~/bin/tool --version`.
expect:
- The version command prints 2.3.0.
- id: help-text
goal: Run `~/bin/tool --help`.
expect:
- The output lists an `init` subcommand.
timeoutMinutes: 15
A desktop app from a release, with a login
version: 1
name: Desktop app login
target:
os: linux
installer:
source: url
ref: https://github.com/acme/desktop/releases/download/v1.0.0/acme_1.0.0_amd64.deb
installHint: Install it with `sudo apt install /tmp/pc/acme_1.0.0_amd64.deb`, then launch "Acme" from the applications menu.
tests:
- id: install-and-launch
goal: Install the app and launch it from the applications menu.
expect:
- A window titled "Acme" is open with no crash or error dialog.
- id: login
goal: Sign in with ${{ secrets.TEST_EMAIL }} and ${{ secrets.TEST_PASSWORD }}.
expect:
- The main screen shows the account name ${{ secrets.TEST_EMAIL }}.
- id: survives-reboot
goal: Reboot the machine, launch Acme again and check whether the session is still signed in.
destructive: true
expect:
- After the reboot the app opens directly on the main screen without asking for credentials.
timeoutMinutes: 45
Operating-system behaviour, no installer
version: 1
name: Desktop smoke test
target:
os: linux
setup:
- mkdir -p ~/pc-smoke && printf 'hello from setup\n' > ~/pc-smoke/fixture.txt
tests:
- id: desktop-visible
goal: Take a screenshot and confirm a desktop with a panel or taskbar is showing.
expect:
- A desktop environment is rendered, not a blank or black screen.
- id: terminal-reads-fixture
goal: Open a terminal window from the desktop and print the contents of ~/pc-smoke/fixture.txt.
expect:
- A terminal window appears on screen.
- The terminal output contains "hello from setup".
timeoutMinutes: 20
When a plan does not validate
The dashboard or API reports parser errors with the offending field path
(tests.0.id: kebab-case id). Correct the submitted plan and try again.
Human UI review
Add humanReview: true at the top level of a UI plan. Agents exercise the
requested screens and states, save screenshots, and record each test using
the machine's native recording pipeline. Both kinds of evidence are collected
even when the plan's artifact flags are false.
Completed runs enter UI review, one queue item per test. Organization members inspect the screenshots and play the recordings, then swipe right to accept or left to reject. The buttons and arrow keys do the same. An optional note records what needs to change. Each decision retains its reviewer and time on the original run; another reviewer cannot overwrite it.
The agent result remains separate. A passing agent's GitHub check stays in progress until every UI review is accepted. Rejection fails the check; accepting UI never overrides an agent failure. Missing screenshots or video block acceptance: reject or re-run to gather the evidence. In runs using organization secrets, the secrets are covered on the evidence reviewers see.
Human-review plans always gather fresh evidence, even for an identical build. Retrying creates a new review; it does not reuse earlier approval.
Reading a run
The run page lists each test's verdict, summary, claims, UI standard violations, screenshots and recording. GitHub PR runs also update their result comment.
A test fails when any claim is contradicted and passes when every claim is verified. When nothing was contradicted but some claim could not be checked, the test and run are blocked: each blocked claim names what it needed (a test account, setup the repository should describe or provide, or another platform), and the GitHub check asks for that action instead of failing.
The run page opens on the verdict and the failing tests. Each test carries
its own recording, screenshots and timeline: what the tester did (tool
events), what it concluded (agent events), and what each turn cost (usage
events with tokens and dollars). Timeline shows the whole run in order,
Evidence every screenshot and recording, Plan the YAML as it ran.