Skip to main content

Workflow Copilot

The Workflow Copilot drafts a workflow with you in conversation and then proves the draft on one of your own issues with a dry run, before anything is published. It edits the same draft the Workflow Studio and the code view edit.

The Copilot page​

Open a workflow and choose Copilot in the Visual · Code · Copilot row, or go to /workflows/<slug>/copilot. Workflows stays selected in the sidebar: the three are views of one workflow, not three places.

The Copilot page of a workflow: the Visual, Code and Copilot views, Discard draft and Promote draft, and the unresolved references flagged under them.
The Workflow Studio's Copilot page open on security-patch, headed Describe the workflow. Watch it build. Test it before it touches anything. The Visual, Code and Copilot tabs have Copilot selected, and Discard draft and Promote draft → security-patch v1 buttons sit above a note that 2 unresolved references are flagged. Below are the conversation card, the draft's stage list and the dry-run card.The Workflow Studio's Copilot page open on security-patch, headed Describe the workflow. Watch it build. Test it before it touches anything. The Visual, Code and Copilot tabs have Copilot selected, and Discard draft and Promote draft → security-patch v1 buttons sit above a note that 2 unresolved references are flagged. Below are the conversation card, the draft's stage list and the dry-run card.

The three views show the same draft. Change a stage on the canvas, switch to Copilot, and the page is working from the changed draft. Nothing is lost by switching, with one exception that asks you first: leaving Code while the file does not parse — see Workflows as code.

The page head has two actions, Discard draft and Promote draft → <slug> vN.

Under the head are four cards: the conversation on the left, and the draft's stage list, the dry-run card and Why dry runs are safe on the right.

While the page loads, each card is drawn as an outline in its own shape, so nothing moves when the content arrives. If something on the page is not as you expect, see What can go wrong.

Starting a workflow from a conversation​

Choose + New workflow in the rail. Under Start with, pick Copilot instead of Canvas, then give the workflow its Name and Slug as usual. The new, empty workflow opens on its Copilot page rather than on the canvas. Opened from a Copilot page, the dialog already has Copilot selected.

A draft the Copilot builds from nothing can be promoted and dry-run like any other once its checks pass. To pass, it needs a trigger stage, where a run enters, and at least one ending stage. Setting the trigger only decides which issues start a run, so the Copilot adds the trigger stage as a stage of its own.

Promoting a draft​

Promote draft → <slug> vN publishes the draft as the workflow's next version, for example Promote draft → security-patch v1. It is the same publish the Studio does, with the same checks.

Before anything is published, a confirmation says What is being published: the version, the draft it comes from, and each guard — a promise made about the workflow — with where that promise is actually enforced:

GuardComes fromEnforced
never auto-mergeThe workflow itself: no stage ends by merging on its own.Enforced on real runs.
spend cap $5.00/runSomething you asked for in the conversation.Not enforced on real runs yet. It limits dry runs of the workflow only.

A guard marked Not enforced on real runs yet is not a protection once published, and the confirmation says so. To cap what real runs spend, use the spend guard in the workspace's policies.

Most problems are reported before you press it: a draft with no ending, a stage nothing leads to, a setting the workflow language refuses, or a model alias the workspace does not have makes This draft cannot be promoted yet, with a sentence for each — see Unresolved references. The publish then runs one more check.

If the checks find problems, nothing is published. Each finding names the stage it is about; choose one to go to that stage's row in the draft, which is outlined and brought into view.

When a promote succeeds, runs queued from then on use the new version, and the conversation that produced it is closed and kept read-only.

Unresolved references​

A draft can name things the workspace does not have yet — a skill, a task route or a model alias. The page says so before you press Promote, under the buttons:

  • This draft cannot be promoted yet — the draft names a model alias the workspace does not have. Promote is unavailable, each reference is listed as stage <stage> · <name>, and Resolve them on the Visual surface takes you to the canvas.
  • N unresolved references are flagged — the draft names a skill or a task route that does not exist yet. These do not stop a promote; they are published as they are, and a stage that depends on one will not do its work until it exists.

This draft cannot be promoted yet also lists what the draft is missing as a workflow — for example A workflow needs at least one terminal node; no path through this one ends., or a stage nothing leads to, named as Stage `orphan`: …. Fix it in the conversation or on the canvas, and the list updates.

A workflow with no draft has nothing to promote, and the button says that too.

Discarding a draft​

Discard draft asks Discard this draft? and, if you confirm, throws the draft away. It cannot be brought back.

  • The workflow stays. It returns to its published version; a workflow that was never published is left empty.
  • The conversation is kept, read-only, so what was tried can still be read on the page.

A draft cannot be discarded while a dry run of it is still running. Wait for the dry run to finish, or cancel it, and discard again.

Who can promote and discard​

Owners and admins. Everyone else sees the page read-only, with a note saying so: the buttons are shown but unavailable, and a conversation can be read but not continued.

The conversation​

The Conversation card is where you describe the workflow and the Copilot edits the draft. Every change it makes is an ordinary edit to the draft, the same kind the canvas and the code view make. The card says so underneath: Copilot edits compile to the same graph as the canvas and the code editor — nothing is a special case.

The conversation card: the model the replies were routed to, and the first messages with their costs and the Copilot's questions.
The Conversation card for security-patch, with a claude-fable-5 pill and a draft: security-patch tag. The conversation is at its start: a message from You asking for a workflow for security patches, then a Copilot reply marked $0.12 that ends with a line reading applied 6 operations · 1 corrected and two numbered questions, What triggers it?, with label:security marked as chosen beside CVE pattern in title, and May it read the GitHub Advisory DB?. The message box at the foot reads Refine the workflow — or ask for a dry run…, with a Send button.The Conversation card for security-patch, with a claude-fable-5 pill and a draft: security-patch tag. The conversation is at its start: a message from You asking for a workflow for security patches, then a Copilot reply marked $0.12 that ends with a line reading applied 6 operations · 1 corrected and two numbered questions, What triggers it?, with label:security marked as chosen beside CVE pattern in title, and May it read the GitHub Advisory DB?. The message box at the foot reads Refine the workflow — or ask for a dry run…, with a Send button.

The Copilot replies through the invocation gateway, which calls the model its copilot-workflow route resolves to — see What a chain does when a model call fails.

The head of the card​

  • The model pill names the model the newest reply was actually routed to, for example claude-fable-5. Hover it to see the alias it was routed through. It is read from the conversation's own record, so there is no pill until the first reply has been recorded.
  • The draft tag, for example draft: security-patch, names the draft the conversation edits.

Messages​

Your messages sit on the right and the Copilot's on the left. Each has a line above it saying who spoke and when, in your own time zone: You · 15:02, Copilot · 15:02.

A reply can contain bold text, inline code and blocks of code. Nothing else is formatted; anything else in a reply is shown as the plain text it is.

The conversation scrolls inside its card. It opens on the newest 30 messages; Show earlier messages adds the 30 before them without moving the message you were reading.

Watching a reply arrive​

A reply appears as it is written. As the Copilot changes the draft, each change is listed in the reply at the point it happened, in small type:

MarkerMeaning
adding stage exploit-verify… ✓A stage was added. Updating and removing a stage read the same way.
connecting test → exploit-verify… ✓Two stages were connected. disconnecting … ✓ removes a connection.
set trigger… ✓The workflow's trigger, which decides which issues start a run, was changed. It adds no stage.
set spend cap $5.00/run… proposed, not appliedA guard was recorded. It is not part of the draft; see Promoting a draft for where a guard is enforced.
⚠ exploit-verify: …The change named something the workspace does not have yet. See Unresolved references.
read catalog…The Copilot read something before answering: the draft, the stage catalog, the skills or the issues.
proposed a dry run on #489 — …The Copilot suggested an issue to dry-run against.
draft changed elsewhere — …The draft was edited on the canvas or in the code view during the reply, and the Copilot read it again.

A ✓ means the change is in the draft.

While a reply is arriving the card follows it, unless you have scrolled up to read something. Then it stays where you are and shows New messages ↓, which takes you back to the end.

When you come back to the page later, a reply's changes are folded into one line under its text, such as applied 6 operations · 1 corrected. Choose it to see the list.

Corrected operations​

Sometimes a change the Copilot attempts is refused because it does not fit the draft, for example connecting to a stage whose name it misspelled. The Copilot is told why and corrects itself in the same reply. This is normal and needs nothing from you.

The card notes it with one quiet line, 1 operation corrected. Choose the line to see what was attempted and the reason it was refused.

Questions and choices​

When the Copilot would otherwise have to guess, it asks. Each question is a row of choices under the reply; a reply with more than one numbers them ① ②.

Choose an option to answer. The answer is sent at once as your next message, the Copilot carries on from it, and the option you chose is marked with a ✓. An answered question cannot be answered again: all of its choices become unavailable.

Only the newest reply with an open question can be answered, and not while a reply is arriving or a dry run is in progress.

Sending a message​

Type in the box at the foot of the card — it reads Refine the workflow — or ask for a dry run… — and press Enter or Send. Shift+Enter starts a new line.

What you have typed and not sent is kept for the workflow while the browser tab is open, so you can switch to Visual or Code and come back to it.

The box is switched off, with the reason shown under it, when a message cannot be sent:

Reason shownWhen
The copilot is replying — you can send again when the reply finishes.A reply is arriving.
A dry run is in progress — the draft is held still until it finishes. You can send again then.A dry run of the draft has not ended.
A reply is still arriving in this conversation, started from another page. Reload to read it, then send.A reply was started from another tab or by someone else.
The copilot cannot reply: this deployment has no invocation gateway.See When the Copilot cannot reply.
The copilot cannot reply: no model is routed for it yet.See When the Copilot cannot reply.

If a message is refused before a reply starts, the reason is shown above the box and your text is put back so you can send it again.

Cost​

A reply that was priced shows what the exchange cost at the end of its line: Copilot · 15:02 · $0.12. A reply whose model has no price set shows no figure at all; it is never shown as $0.00.

An empty conversation​

A workflow that has no conversation yet shows Describe the workflow you want and three example briefs. Choosing an example puts it in the box; it is not sent until you send it. The conversation starts with your first message.

Under the examples the card says plainly what to expect:

The copilot willIt will not
Draft the stages from your brief, and ask when a choice is yours to make.Run anything, write to a repository or open a pull request.
Change only this workflow's draft — you can see every change in the stage list.Publish the workflow — that is Promote draft, and yours to press.
Show what each reply cost, when the model is priced.Start a dry run by itself; you start one from the dry-run card.

Someone who cannot start a conversation sees No conversation yet instead, without the examples.

When the Copilot cannot reply​

Two things must be in place before the Copilot can answer. When one is missing, the card says which, above the messages, and the box is switched off. Messages already in the conversation stay readable.

  • The copilot needs the invocation gateway — this deployment cannot call a model, and the Copilot cannot exist without one. Only a deployment of a REST release before 0.41.36 lacks it. This is a prerequisite, not an error: the page does not spin, and nothing fails when you press a button. The notice reports the workspace's current provider status — for example Provider status: 4 connected — 3 active, 1 not yet checked., or no provider is connected in this workspace — and links to Providers through See Providers, where providers are connected and checked. The status line is left out if the providers cannot be read.
  • The copilot has no model route — the workspace has no route for the Copilot's task kind, copilot-workflow, or the route does not resolve. Every workspace has the task kind; its route is created the first time an owner or admin saves a chain for it. The notice gives the reason and links to Model routing — see Routing a task kind that has no route.

When a reply fails​

A reply that could not be finished is marked This reply did not finish, with the reason. Whatever it had already changed in the draft is kept. Retry sends your message again as a new message; the conversation keeps both the reply that failed and the new one. Retry is offered on the newest reply only.

If the draft is promoted or discarded while a reply is arriving, the reply stops and nothing further is changed. The card marks it The conversation was closed while this reply was arriving. There is nothing to retry.

Who can take part​

Owners and admins can send messages and answer questions.

Members and viewers see the same card read-only: the messages, the answered choices and the costs, with no box. In its place the card says This conversation is shown read-only: continuing it edits the workflow, which is for workspace owners and admins.

A conversation that was promoted or discarded is closed. Everyone can still read it, and the card says which happened. An owner or admin can choose Start a new conversation to begin again on the same workflow; the closed one is no longer shown once the new one has started.

The draft​

The card beside the conversation lists the draft's stages, in the order a run walks them. Its title names the workflow — Draft — security-patch · unpublished — and says unpublished only while the workflow has never been published.

The draft's stage list: nine rows with their config tags, two unresolved references marked as warnings, and the stage the Copilot added.
The Draft — security-patch · unpublished card, with a draft v0.3 tag and a View as code link. Nine numbered rows, each ending in an edit link: trigger with label:security; analyze with skill:advisory-db marked skill does not exist, and claude-sonnet-5; plan with claude-fable-5; implement with routed by task; build with pool-a; test with pool-a and twister full; exploit-verify with task:exploit-verify marked kind not in catalog, reruns CVE PoC, sandboxed and an added by copilot mark; review ×2 with claude-fable-5 and composer-2; open PR with never auto-merge. The line at the foot reads 9 stages, never auto-merge, spend cap $5.00/run (not enforced on real runs yet), draft not yet runnable on real issues.The Draft — security-patch · unpublished card, with a draft v0.3 tag and a View as code link. Nine numbered rows, each ending in an edit link: trigger with label:security; analyze with skill:advisory-db marked skill does not exist, and claude-sonnet-5; plan with claude-fable-5; implement with routed by task; build with pool-a; test with pool-a and twister full; exploit-verify with task:exploit-verify marked kind not in catalog, reruns CVE PoC, sandboxed and an added by copilot mark; review ×2 with claude-fable-5 and composer-2; open PR with never auto-merge. The line at the foot reads 9 stages, never auto-merge, spend cap $5.00/run (not enforced on real runs yet), draft not yet runnable on real issues.

The list is read from the draft itself, not from the conversation, so it is there for a workflow nobody has talked to the Copilot about, and it is the same list for every role.

Stage rows​

Each row is one stage: its number, a mark for its kind (the same marks the canvas uses), its name, and its config tags.

Two stages with the same name and kind that follow the same stage are one step done twice, and are shown as one row: review ×2, with both stages' tags.

A stage that nothing leads to from the trigger is still listed, after the others.

Config tags​

A tag is a setting of the stage, read from the draft each time the list is drawn. Nobody types them, so they cannot drift from the stage:

TagWhat it tells you
label:security, effort ≤ M, source:githubOn the trigger: what an issue must match to start a run. One tag per condition.
skill:advisory-dbThe skill the stage loads.
claude-sonnet-5The model the stage is pinned to. The stage names a model alias; the tag shows the model that alias currently points at, or the alias itself if the workspace has no such alias.
routed by taskThe stage is not pinned: its model comes from model routing.
pool-aThe runner pool the stage runs on.
twister full, sandboxedThe stage's description. Parts separated by · become one tag each.
never auto-merge, auto-merge, back to queueOn the last stage: how the run ends.

Change a stage on the canvas or in the code view and its tags follow. You do not need to reload: the list re-reads the draft every 15 seconds while the tab is visible, and at once when you come back to the window.

Added by copilot​

A row carries added by copilot when the Copilot added that stage. It is the draft's own record of who added what, so it does not depend on the conversation still being open. A stage added by applying a dry-run suggestion carries added by suggestion in the same way.

The mark clears once a person edits the stage on the canvas or in the code view: a stage you have reconfigured is no longer the Copilot's. A stage you add yourself never carries a mark. The list shows the change on its next read, without a reload.

Warning tags​

A stage can name a skill, a task kind or a model alias the workspace does not have yet. The row does not present it as a working setting. Its tag is drawn as a warning, with ⚠ and what is wrong in a few words:

TagMeaning
skill:advisory-db ⚠ skill does not existNo skill with that name exists in the workspace.
task:exploit-verify ⚠ kind not in catalogThe stage takes its model from a task kind that does not exist.
fast-triage ⚠ alias does not existThe stage is pinned to a model alias that does not exist.

Choose the ⓘ beside the tag — or Tab to it and press Enter — to read what is missing, what resolves it, and the service's own message. Choose it again, or press Escape, to close it.

While any reference is unresolved, the stage that names it cannot do its work, and the foot of the card says draft not yet runnable on real issues. Which references also stop a promote is described under Unresolved references above.

The revision​

The tag beside the title, for example draft v0.3, is the draft's revision: the published version the draft started from, then the number of batches of changes applied since. A workflow that has never been published starts from v0. While a reply is arriving the number moves with each batch the Copilot applies. Each save from the canvas or the code view that changes the draft counts as one batch too; a save that changes nothing does not.

Watching the draft build​

The rows change while the Copilot is still replying. A stage appears the moment the Copilot adds it, a row's tags change when its stage is changed, and rows move as stages are connected. A row that has just been added or changed is briefly highlighted; if your system asks for reduced motion, it changes without the highlight.

Edit and View as code​

  • edit, at the end of each row, opens the canvas with that stage selected, centred, and open in the inspector. On a ×2 row it opens the first of the two stages. Everyone can follow it; whether you can change the stage there depends on your role.
  • View as code →, at the top of the card, opens the same draft in the code view.

The foot of the card​

One line, all of it read from the draft:

  • How many stages — rows, so a ×2 row counts once.
  • Each guard a promote would carry, as the promote confirmation names it. A guard that is not enforced on real runs says so here too: spend cap $5.00/run (not enforced on real runs yet).
  • Whether the draft could run: draft not yet runnable on real issues while any reference is unresolved, otherwise draft runnable once promoted.

An empty draft​

A workflow with no draft, or a draft with no stages, shows No stages yet and a link, Open the canvas. The stages appear as the conversation builds them, or as you add them on the canvas.

When the list cannot be refreshed​

If a later read of the draft fails, the list stays as it was last read, under a note: These stages may be out of date, with the reason and Read again. If the draft cannot be read when the page opens, the page says The draft's stages could not be read with a Retry, and the rest of the page still works.

A long list scrolls inside the card.

The dry-run card​

The card under the stage list shows the workflow's newest dry run: what each stage did, the change the run drafted, the suggestions it led to, and the controls to run again. What a dry run is, and what it does and does not do, is described under Dry runs below; this section describes the card.

The dry-run card: seven result rows with how each result was produced, the simulated diff, two suggestions, and the controls to run again.
The Dry run — #489 CAN arbitration-lost storm under full telemetry load card, with a pill reading simulated — no writes · no PRs · no merges and the totals 2m 41s · $0.31. Seven rows: analyze, plan, implement (simulated), build (replayed from history) with an information mark, exploit-verify (skipped) in the warning colour with the note no PoC exists: stage had nothing to do, review ×2, and open PR marked not run with the note would open DRAFT PR · not merged (policy). Below them a diff block headed simulated diff (never written to repo), drivers/can/arbitration.c +41 −9. Then two highlighted suggestions, Make exploit-verify conditional at 93% and Pin the pr-etiquette skill to both reviewers at 81%, each with Apply to draft, Explain and Ignore buttons. At the foot, Re-run dry run and Dry-run another issue buttons and the line history: 1 dry run · draft v0.3 (2 copilot edits).The Dry run — #489 CAN arbitration-lost storm under full telemetry load card, with a pill reading simulated — no writes · no PRs · no merges and the totals 2m 41s · $0.31. Seven rows: analyze, plan, implement (simulated), build (replayed from history) with an information mark, exploit-verify (skipped) in the warning colour with the note no PoC exists: stage had nothing to do, review ×2, and open PR marked not run with the note would open DRAFT PR · not merged (policy). Below them a diff block headed simulated diff (never written to repo), drivers/can/arbitration.c +41 −9. Then two highlighted suggestions, Make exploit-verify conditional at 93% and Pin the pr-etiquette skill to both reviewers at 81%, each with Apply to draft, Explain and Ignore buttons. At the foot, Re-run dry run and Dry-run another issue buttons and the line history: 1 dry run · draft v0.3 (2 copilot edits).

The head of the dry-run card​

  • The title names the issue the run tested: Dry run — #489 CAN arbitration-lost storm under full telemetry load. A long title is cut short; hover it to read the whole of it.
  • The pill always reads simulated — no writes · no PRs · no merges. It is true of every dry run: see Dry runs.
  • The totals are the time the run took and what it cost: 2m 41s · $0.31. A run whose models have no price set shows the time alone; a cost is never shown as $0.00. While a run is going, the totals' place shows how long it has been running instead.

Result rows​

One row for each stage, in the order the run walked them:

✓ analyze mapped 4 files · advisory DB skipped (no CVE on this issue)
✓ implement (simulated) diff drafted +41 −9 (below) · 84k tokens
✓ build (replayed from history) est. 3m 42s (217 similar builds, ±22s)
⏸ exploit-verify (skipped) no PoC exists: stage had nothing to do
○ open PR would open DRAFT PR · not merged (policy)

Each row has a mark, the stage's name, a label saying how the result was produced, and a note in the run's own words.

MarkMeaning
✓The stage finished.
⏸The stage was skipped. Its label and note are shown in the warning colour.
○The stage was not run. On the last stage it says what a real run would have done there, such as opening a draft pull request.
✕The stage failed.

The label in parentheses is the part to read before trusting a row:

LabelWhat the row is
(none)A real result: a model was called and this is what it did.
(simulated)A model was called for real, and its edits were held in memory. Nothing was written to the repository.
(replayed from history)An estimate. Nothing was built or run. The figure comes from similar past builds or test runs.
(skipped)The stage did nothing, and the note says why.

Two stages that are one step done twice share a row, as they do in the stage list: review ×2.

Where an estimate comes from​

A replayed from history row has an ⓘ after its label. Choose it — or Tab to it and press Enter — to see what the estimate rests on. Choose it again, or press Escape, to close it.

ShownMeaning
estimateThe estimated time, for example 3m 42s. It is the median of the sample.
sampleHow many similar past builds or test runs it is based on: n = 217.
spreadHow much those varied: ± 22s.
windowHow far back the sample was taken from: 30-day window.
formulaThe formula used, by name and version, with one sentence saying what it computes: formula build_duration_replay v1 — ….

The more past runs behind an estimate and the smaller its spread, the more it is worth. The figures are taken from your own runners' history at the time of the dry run, so the same draft dry-run a week later can show a different estimate.

Not enough history​

When too few similar runs exist, the row shows no figure at all — not in its note and not behind the ⓘ. The ⓘ says only what was found and what is needed:

Not enough history: 12 similar builds in the last 30 days, 20 needed.

An estimate is given once the number needed has been reached.

The simulated diff​

Under the rows is the change the run drafted, as a diff. The block is headed, inside the block itself, simulated diff (never written to repo), followed by each file it touches and its added and removed line counts: drivers/can/arbitration.c +41 −9.

It is the edit the workflow would make. No branch, commit or pull request was created for it.

The diff is exactly that edit, written the way git diff writes one: copied out and applied with git apply to the commit the run read, it reproduces the drafted files byte for byte. A file that does not end in a newline is marked \ No newline at end of file, and an empty file that is created or deleted shows as new file mode or deleted file mode with no lines.

A long diff scrolls inside the block. A very large one is cut off, and the block then says so underneath with both sizes: Truncated — showing the first 64.0 KB of 212.4 KB.

Suggestions on the card​

Each open suggestion is a highlighted callout under the diff, marked ✦: its title, what it is based on, and where it came from.

  • A suggestion from a rule shows a confidence, such as 93%, and under it the rule's name and version: rule · skipped-nothing-to-do v1. Choose the confidence to see how it was scored — the method and every number that went into it. See Confidence.
  • A suggestion from the Copilot's model is labelled from the model · unscored and shows no percentage. See Suggestions from the Copilot.

Each callout has three actions:

  • Apply to draft opens a confirmation first. It lists every change the suggestion will make, in order — adding stage has-cve, connecting test → has-cve — each of which opens to the exact operation, and it names the revision the draft will become: This makes draft v0.4. Nothing is changed until you confirm. See Apply to draft.
  • Explain opens the rule, its version, what it found in this run and how the confidence was scored. See Explain.
  • Ignore dismisses the suggestion. See Ignore.

After you confirm an apply, a notice at the top of the page reads Applied — the draft is now v0.4. and lists the Changed stages as links. Choose one to go to that stage's row in the stage list, which has already been re-read. The callout is replaced by one quiet line, Applied — …; an ignored suggestion leaves Ignored — … (it will not be raised again for this draft revision).

A suggestion that is advice only keeps its Apply to draft button, switched off, with the line This suggestion is advice only — it proposes no change to apply.

If the draft has changed since the dry run so that the suggestion no longer fits, the confirmation says which part no longer fits, changes nothing, and offers Re-run dry run.

Re-run dry run and Dry-run another issue​

At the foot of the card:

  • Re-run dry run starts a new dry run on the same issue, against the draft as it is now. When the draft has moved on since the run on the card, a line under the buttons says which draft it will use: re-runs on draft v0.4. See Re-running.
  • Dry-run another issue ▾ opens a ranked list of issues under the buttons. Each entry has its rank, the issue, and the reason it ranks where it does — for example Meets every condition — exercises the main path. An issue that would not start this workflow is still listed, marked would not trigger this workflow: those are often the most useful ones to try. Choose Dry-run #490 beside an issue to start. How the ranking works is under Choosing an issue. Press Escape to close the list.
  • The history line — history: 1 dry run · draft v0.3 (2 copilot edits) — says how many dry runs the workflow has had, the draft's current revision, and how many batches of changes the Copilot has applied to it.

Starting a dry run needs the workspace's GitHub token, as described under Starting a dry run.

A dry run's model stages call a model through the invocation gateway, the same one the conversation replies through, each with its own routing.

Watching a dry run​

A dry run takes minutes. While one is going, the card follows it without a reload:

  1. Each stage appears as a row marked ◌ and running… when it starts, and fills in when it finishes.
  2. When the run ends, the totals replace the running time and the simulated diff appears.
  3. Then the suggestions appear.

Cancel dry run is shown while a run is going. See Cancelling. Re-run dry run and Dry-run another issue are switched off until it ends, with the reason: One dry run at a time — this one is still running. The conversation's message box is switched off for the same time.

If the live connection is lost, the card says so and reads the run again every few seconds instead; nothing is missed.

How a run's end is shown​

A run that ends complete shows its rows, diff and suggestions with nothing added. Every other end has a box above the rows, and the rows the run reached are kept under it:

BoxWhenWhat it shows
This dry run failedA stage failed.The reason, as the run recorded it.
The draft did not pass the pre-checkThe structural pre-check found a problem, so no stage ran.Each finding. A finding about a stage is a link to that stage's row in the stage list.
This dry run was stopped at its budgetThe budget was reached.What stopped it, what it had spent, the cap and whether it was the workspace's or the draft's own spend guard, and what to change before running again.
This dry run was cancelledSomeone cancelled it.Nothing more.
A guard had to stop this dry runA stage tried something a dry run must never do. See Guards.Each attempt that was blocked: what was tried, which guard refused it, how many times, and in which stage.

A guard had to stop this dry run is drawn more heavily than the others, in the error colour, and is not an ordinary failure. Nothing was written, but do not rely on that run's results, and find out why the stage tried it before promoting the draft.

When a dry run cannot start​

If a dry run is refused, the reason is shown at the top of the card, in a box you can Dismiss. The previous run's results stay on the card underneath.

HeadingWhy
A dry run of this workflow is already runningSomeone else started one. The card reads it and follows it.
The draft changed before the dry run could startThe draft was edited after the page was read. The page reads it again; start the dry run once more.
That issue has no repository to readThe issue names no repository mirrored for the workspace.
That issue's tracker cannot trigger a workflowThe issue comes from a source a workflow's trigger cannot name.
The dry-run engine is not availableThe service that runs dry runs could not be reached.
The dry run did not startAnything else — for example, the workspace has no GitHub token to read the repository with. The sentence under the heading says what.

Before the first dry run​

A workflow that has never been dry-run shows No dry run yet and Choose an issue ▾, which opens the same ranked list.

If the Copilot proposed an issue in the conversation, the card names it with the Copilot's reason — The copilot suggested dry-running #489 — security workflow × no-CVE issue — exercises the skip path — and offers Dry-run #489. If that issue is not in the ranked list, the list opens instead and says so.

Who can use the card​

Owners, admins and members can start, cancel and re-run a dry run, and apply or ignore a suggestion. This is wider than the conversation, which only owners and admins can continue.

Viewers see the same card — the rows, the diff, the suggestions, Explain and the confidence — with every other control switched off and the reason beside it.

A dry run also cannot be started while the draft has no stages.

If the dry run cannot be read when the page opens, the page says The dry run could not be read with a Retry, and the rest of the page still works.

Dry runs​

A dry run walks a workflow's draft for one issue, the way a loop would, with three differences that make it safe to run on a draft:

What happensIn a dry run
Model stagesRun for real, with the draft's own prompts, skills and routing. This is what a dry run tests.
Edits to the repositoryHeld in memory as a simulated diff. Nothing is written, pushed or opened as a pull request, and nothing is merged.
Build and test stagesReplayed from history: an estimate from similar past builds and test runs, with how many it is based on and how much they varied. Nothing is built or run.

It is not the Studio's Dry run, which walks the graph without calling a model and costs nothing. A dry run here calls models and has a cost, so it has a budget.

A dry run is kept apart from your loops. It is not a run, and its cost is not counted in any run, dashboard or spend figure.

The page states these three differences itself, and shows what enforces each: see Why dry runs are safe.

Starting a dry run​

A dry run needs three things:

  • A draft. The dry run tests the workflow's saved draft at the revision you are looking at — v0.3, for example. If the draft has changed since you opened it, the dry run is refused and you are asked to reload.
  • An issue. An issue from a GitHub, GitLab, Jira or Linear source that names a GitHub repository mirrored for the workspace. An issue that names none is refused, because the dry run would have nothing to read.
  • The workspace's backlog token, the GitHub token the repository is read with. Without one the dry run is refused. See Setting the backlog token.

Owners, admins and members can start, cancel and re-run a dry run. Viewers can read them.

A workflow has one dry run at a time. Starting a second while the first is still going is refused; follow the first or cancel it.

When a dry run starts, Ouroboros notes the newest commit on the repository's default branch. Every stage reads the repository as it was at that commit, so an edit made while the dry run is going does not change what it sees.

The structural pre-check​

Before any model is called, the draft is checked for structural problems — a stage nothing leads to, a branch with no condition, a trigger that is not valid. These are the same checks Validate runs.

If the check finds a problem, the dry run ends at once as failed, lists each finding against the stage or edge it is about, and calls nothing — no model, no estimate and no repository read, so it costs nothing. Fix the draft and start again.

A stage that names a skill, a task route or a model alias that does not exist yet is not a structural problem. The dry run still runs: a stage whose model cannot be resolved is skipped with the reason, and a stage whose skill does not exist runs without it and says so.

The budget​

A dry run stops spending at its budget, which is the lower of two caps:

  • The workspace's dry-run cap — $10.00 unless your administrator has changed it. See The dry-run cap.
  • The draft's own spend guard — a per-run cap set on the draft in conversation with the Copilot, such as cap spend at $5 a run. A draft with none has only the workspace's cap.

For example, a draft with a $5.00 spend guard in a workspace capped at $10.00 has a budget of $5.00. A dry run says which of the two caps set its budget.

A run stopped at its budget says what to change:

  • stopped by the draft's own spend guard — ask the Copilot to raise the draft's per-run spend cap, or make the model stages cheaper, then re-run;
  • stopped by the workspace's dry-run cap — make the draft's model stages cheaper, or ask a workspace owner to raise the cap, then re-run.

How a dry run ends​

A dry run reports each stage as it starts and as it finishes, in order. It ends in one of four ways:

Ends asMeaningWhat is kept
completeEvery stage that could run did.Every row, the simulated diff, the totals.
budget stoppedThe budget was reached.The rows reached so far; the rest are marked not reached.
cancelledSomeone cancelled it.The rows reached so far.
failedThe pre-check found a problem, a stage failed, or a guard blocked a call.The findings, or the rows reached so far, with the reason.

Each finished stage shows what happened and how the result was produced: a real model call, simulated (a model stage whose edits were held in memory), replayed from history (an estimate), or skipped with the reason.

The totals are the time taken, the tokens used and the cost. A cost is left blank when the models used have no price set; it is never shown as $0.00.

Guards​

Stages in a dry run can only read the repository, draft edits in memory, and ask for a build or test estimate. If a stage tries anything else — running a command, pushing, opening a pull request, reaching the network — the attempt is blocked and recorded.

A dry run that had to block an attempt fails, even if every stage finished. Its result lists what was attempted and by which stage. A clean dry run lists nothing.

Cancelling​

Cancelling stops a dry run that is still going. The rows it had reached are kept, and it ends as cancelled — not failed, and not budget stopped. A dry run that has already ended cannot be cancelled.

Re-running​

A re-run starts a new dry run against the same issue and the draft as it is now — not the revision the first run tested. Change the draft, re-run, and the new dry run shows what the change did. The first run stays in the history beside it.

A re-run does everything a new dry run does: it notes the newest commit, runs the pre-check and works out the budget again.

History​

Each workflow keeps its dry runs, newest first. The history says how many there have been and which draft is current, for example history: 1 dry run · draft v0.3 (2 copilot edits). Each entry shows the draft revision and issue it tested, how it ended, and its totals, so two runs of the same issue before and after an edit can be compared.

The history also gives the total the workflow's dry runs have cost.

Choosing an issue​

A dry run is most useful on an issue that does not fit what the workflow expects, because that is the issue that shows what the workflow's conditions do. Ouroboros ranks the workspace's open, sized issues for a draft and gives a reason for each.

It looks at everything in the draft that tests the issue:

  • each condition of the trigger — every required label, the largest effort, the source;
  • each stage or branch that tests the issue's labels, effort or source.

An issue scores one point for each of these it does not meet. The highest score comes first; equal scores go to the issue updated most recently.

For example, for a draft triggered by the label security:

RankIssueReason
1#489 — labels bug, can-busno security label (trigger) — outside the trigger, so it exercises the path a matching issue would not.
2#550 — labels ota, securityMeets every condition — exercises the main path.

The Copilot uses the same ranking when it suggests an issue to dry-run against.

Why dry runs are safe​

Under the dry-run card, Why dry runs are safe states what a dry run does and does not touch, in up to three columns:

Why dry runs are safe: the three claims the installed dry-run harness backs, each with a mark that opens the mechanism behind it.
The Why dry runs are safe card, tagged harness: dry-run-v1, with three columns, each with an information mark beside its heading: Simulated writes — Diffs are drafted in memory — the repo is untouched. Replayed infra — Build & test are estimated from your history; the farm stays idle. Real models — Prompts & routing are exercised for real — that's what you're testing.The Why dry runs are safe card, tagged harness: dry-run-v1, with three columns, each with an information mark beside its heading: Simulated writes — Diffs are drafted in memory — the repo is untouched. Replayed infra — Build & test are estimated from your history; the farm stays idle. Real models — Prompts & routing are exercised for real — that's what you're testing.
ColumnWhat it saysWhat makes it true
Simulated writesDiffs are drafted in memory — the repo is untouched.The in-memory overlay: a stage's edits are held in memory, later stages read through them, and they become the simulated diff. No tool a dry run has can write to a repository.
Replayed infraBuild & test are estimated from your history; the farm stays idle.The replay estimator service: build and test stages are answered from your past builds and test runs, with a sample count and spread. Nothing is dispatched to the build farm.
Real modelsPrompts & routing are exercised for real — that's what you're testing.Invocation gateway routing: every model stage runs its own prompt through the gateway with its routing resolved, counted against the dry run's budget.

Press the ⓘ beside a column to see its mechanism: what it is, what it does, the dry-run tools that carry it, the path it goes through, and — for Replayed infra — the formulas the estimate uses. One is open at a time; press it again, or Esc, to close it. The tag in the card's head names the dry-run harness the claims are about.

A column that is missing​

The columns are not fixed text. The page reads them from the service, which checks each one against the dry-run harness that is installed, and a column is shown only while its mechanism is in place.

  • If one or two are missing, the card says so in a highlighted line — 1 of this strip's 3 claims is not shown: the installed dry-run harness does not back it, so the page does not make it. — and the missing column is not drawn at all.
  • If none is in place, the card shows only a warning: do not rely on a dry run being safe until this is resolved.

Treat a missing column as a real loss of that guarantee and tell your administrator.

If the claims cannot be read, the page says The dry run's safety claims could not be read with a Retry, the card makes no claim, and the rest of the page still works.

What can go wrong​

Each of these is a state the page shows on purpose, with what to do about it.

What you seeWhereWhat it meansWhat to do
The copilot needs the invocation gatewayConversationThe deployment cannot call a model. The conversation is read-only; nothing is broken.Read the provider status in the notice and follow See Providers. See When the Copilot cannot reply and Providers.
Describe the workflow you wantConversationNothing has been said yet.Pick an example brief or write your own. See An empty conversation.
Controls switched off with One dry run at a time — this one is still running.Dry-run card, and the message boxA dry run is in progress. The rows it has reached are already shown.Wait for it, or Cancel dry run. See Watching a dry run.
This dry run was stopped at its budgetDry-run cardThe run reached its cap. The rows it reached are kept.Follow the last line of the box — it says which cap to change. See The budget.
A guard had to stop this dry runDry-run card, in the error colourA stage tried something a dry run must never do, and was blocked. Nothing was written.Do not trust this run's results and do not promote the draft until you know why. See Guards.
The draft did not pass the pre-checkDry-run cardThe draft has a structural problem, so no stage ran.Follow each finding's link to its stage in the stage list and fix it. See The structural pre-check.
A note that you can read but not change, and controls switched off with a reasonWhole pageYour role cannot do that here.Ask an owner or admin. See Who can promote and discard, Who can take part and Who can use the card.
A column missing from Why dry runs are safeSafety cardThe installed harness no longer backs that claim.Tell your administrator. See A column that is missing.
A banner ending in Retry over one cardAny cardThat card's content could not be read. The other cards still work.Press Retry.

Suggestions​

When a dry run ends complete or budget stopped, Ouroboros reads its result rows and files suggestions: proposed changes to the draft, each one worked out from what the run recorded. A dry run that failed or was cancelled gets none.

A suggestion has a title, a sentence saying what it is based on, the exact change it would make to the draft, and three actions: Apply to draft, Explain and Ignore.

The rules​

Suggestions come from a fixed set of rules. A rule either finds what it looks for in the run or says nothing; it does not guess.

RuleFires whenProposes
skipped-nothing-to-doA stage was skipped because it had nothing to do on this issue, and named the label the issue lacks.A decision ahead of the stage, so issues without that label go around it.
budget-proximityThe run spent at least 80% of its budget, or stopped at it.Raising the cap or trimming the costliest stage, with the run's own figures. Advice only.
unresolved-reference-persistsA stage was skipped because a skill, task route or alias it names does not exist, and the draft still names it.The closest name the workspace does define, when one is close. Otherwise advice only.
reviewer-disagreementReview replays exist for the workflow, at least five pairs were replayed, and at least half disagreed on style — more than on substance.Loading the pr-etiquette skill into both reviewer stages. Advice only when the workspace has no such skill.

For example, a security-patch draft dry-run against #489, which has no cve label, skips its exploit-verify stage with nothing to check. The first rule proposes a has-cve decision ahead of that stage: issues labelled cve go through it, the rest go straight to review.

Not available yet

reviewer-disagreement needs review replays, which Ouroboros does not record yet. Until it does, this rule never fires and no such suggestion appears.

A suggestion that is advice only proposes no change to the draft. It can be explained and ignored, and its Apply to draft button is switched off, with the reason.

Confidence​

Each rule's suggestion shows a confidence from 0 to 100. It is always rule strength × sample adequacy, rounded to a whole number:

  • Rule strength is how firmly what the rule saw implies what it proposes.
  • Sample adequacy is how much evidence there was. One dry run against one issue counts as 0.98. Review replays count as 1 − 1/n for n replayed pairs.
RuleRule strengthSample adequacyExample
skipped-nothing-to-do0.950.9893
budget-proximity0.90.9888
unresolved-reference-persists0.950.9 when a close name is proposed, 0.98 otherwise86 or 93
reviewer-disagreement0.91 − 1/n81 for 10 pairs

Both numbers are stored with the suggestion, together with what the rule counted, and Explain shows them.

Suggestions from the Copilot​

If the dry run was started from a Copilot conversation, the Copilot is shown the results when the run ends and may add suggestions of its own. These are labelled from the model · unscored rather than with a rule's name, and they show no confidence: the change they propose is checked against the draft before it is kept, but it is not scored.

The Copilot's reply appears in the conversation as its next message. It does not repeat a suggestion a rule has already made.

Apply to draft​

Apply to draft first shows what it will change. When you confirm, the suggestion's change is made to the draft in one step. The draft moves to its next revision, for example from v0.3 to v0.4, and the change is recorded as coming from a suggestion. Re-run the dry run to see what the change did: in the example above, exploit-verify is now skipped because the decision routes #489 around it.

The change was worked out for the draft as it was when the dry run ended. If the draft has been edited since, Apply to draft checks the change against the draft as it is now:

  • If the edit did not touch what the suggestion changes, it is applied.
  • If it did — the stage or connection the suggestion relies on is gone, or the decision it adds already exists — nothing is changed, and you are told which part no longer fits. Run the dry run again to get suggestions for the current draft.

A suggestion can be applied once. Owners, admins and members can apply; viewers cannot.

Explain​

Explain shows how a suggestion was reached: the rule and its version, when that rule fires and what it proposes, what it found in this run (the stage, the counts, the issue), and the two confidence numbers with the inputs behind them. For a Copilot suggestion it shows the model alias that proposed it and that it is unscored.

Ignore​

Ignore dismisses a suggestion. It stays in the dry run's record as ignored, and the same rule does not make the same suggestion again on later dry runs of the same draft revision. Once the draft changes, a new dry run may suggest it again.

An ignored suggestion cannot be applied afterwards.