Running Execution
Execution is where Trinity's agents actually build your project. A coordinator scans for ready stories, workers claim them, and each story runs in its own git worktree through the story pipeline.
Execution runs each release's queue. A release's queue is shared by every member of the project: the scopes added to it (a whole release, a phase, an epic or a single story) and the order stories were dragged into. Each device runs one coordinator — your drain — per project, and it works every release queue that holds an active scope. Starting it on your machine is your consent to run those stories under your account. Other members run their own drains over the same queues, and your drains on two devices run independently.
When the Architect commits a plan it hands the work to the release's agent, which asks "Start the work?" in the release thread (unless your autonomy answers the queueing decision for the release, where it queues straight away). The plan lands in the release's queue, which every member shares. Any member who presses Start on their machine works it there, under their own account, whoever in the Architect thread wrote the plan. When queued work sits unstarted, the agent asks the release's members to press Start on their machine.
Starting Execution
- Open the release's thread from Releases (click the release, then Open thread) or from Threads
- Click Start on the release's rail. The modal is titled Run Release name on this machine
- Pick the workers and the story cap, and click Start
Start is on the rail while your machine is not running this release, and needs write (push) access on the GitHub repo. Once your machine is running it, Start leaves the rail and Stop and Kill appear in the Run actions menu (the … in the page header; see Stopping Execution).
Trinity probes Git plus whichever harness CLIs (Claude Code, Codex) the release's effective tier→harness map can actually reach, and shows the result as an inline Tool Checks section inside the modal. This is informational only — a heads-up if a tool a configured tier would invoke is missing, never a blocker. The Start button is disabled only while the start request is in flight or when you lack push access on the GitHub repo (the forge's answer, asked in every workspace); a missing tool never disables it.
The blocking version of that question happens earlier, on the way into the workspace and into the project (see Prerequisites → When Checks Happen), so by the time you reach this modal a red row here usually means a tier this particular release overrides — or a binary that went away since. Either way the run still starts. Each story then re-checks git and the CLIs its own steps resolve to before its first phase, and a spawn that loses its CLI later is caught the same way — both put a Tool Not Installed card on the story's thread rather than failing.
What Start runs
There is no scope to pick. Start runs the release's whole queue: every scope in it, in the order the queue holds. Start adds nothing to the queue: the release agent queues work, so a release whose queue is empty says Nothing is queued on this release yet in the modal, and your machine on it reads Running · nothing queued. The modal opens on the worker count and story cap you saved last for the project, or on 3 workers and Unlimited before you have saved any. Start saves what the modal shows as your settings for the project and starts your machine for the release. A machine that is already running keeps the worker count and story cap it started with until you stop it and start again.
Workers
1 to 5 parallel workers. Each worker drives one story at a time, and while that story's stages (analyst, implementer, auditor, documenter) do their work the worker is free to start the next one. Each story runs in its own isolated checkout — a git worktree per repo the story touches (created under the project's Trinity workspace dir and cleaned up after merge). More workers = more concurrency, bounded by your GitHub rate limits and your machine's resources.
Max Stories
Cap the run at N completed stories, or leave as Unlimited. The cap counts the stories this device completes from the moment you start, and stops your drain on this device when it is reached. With no cap the drain keeps running until you stop it: when it runs out of work it waits, and picks up new work — a story whose dependencies just landed, a scope you add — as soon as it appears.
How PRs Merge
Squash merge and branch deletion are not choices of this modal, and not choices of whoever runs it: they belong to the work. See How a PR merges for the order they are decided in.
How far a run goes without stopping for you is likewise not a choice of this modal: it is the autonomy level of the work, set on the workspace, the project, or a story or release (see When Your Autonomy Level Answers for You). When the level answers a card for you, Activity, your inbox and the story's timeline record it.
Every story with changes opens its pull request, so there is no toggle for that: the PR is opened by the Implementer, and the review, the close-out and any request-changes feedback land on it.
How a checkpoint audits — which model tier and how much reasoning effort — is set per story in its Execution Settings card, not from this run modal; a checkpoint has no iteration cap, since it runs its stages like any story. See Stories → Execution Settings.
The Coordinator
One coordinator — your drain — per release on each device, so a device can run several releases side by side, each with its own workers. Responsibilities:
- Scan the stories each release queue's scopes select for ones whose dependencies are all met; with no active scope in the release's queue it queues nothing
- Claim + assign runnable stories to idle workers (atomic, so duplicates are impossible), in the release queue's order. When another story in the project is already running in the same package as a queued one, the queued row shows an overlaps S-12 badge beside ready (the row keeps its place in the queue's order), and a free worker takes a story that overlaps nothing first, within your Pinned, Trinity order and Bottom regions. It only reorders: a worker never sits idle because of an overlap, and a story waiting on your answer defers nothing
- Wait for a machine that can run it. A machine claims a story only when every tool the project requires (Docker, Node.js and the like) is installed and working on it. When none of your online machines has them all, the queued row shows waiting for a machine of yours with: and the missing tools. Expand it to see the machine of yours that is closest to running the story and each tool it still lacks, and use Install on this device to install a tool here, or Install on
to install it on that machine from this one (offered when it has allowed setup from your other devices; otherwise a line says so). The chip appears once Trinity has read this device's tools, and never from a failed read; when it cannot read what the project requires, the row reads can't check what this project needs instead. Nothing fails and no question is raised: the story keeps its place and starts once a machine has the tools - Monitor worker health via heartbeat; mark stale workers dead and reclaim their jobs
- Wait when there is nothing to run, rather than stopping: new work wakes it
Coordinator Status
| Status | Meaning |
|---|---|
| Running | Actively scanning and assigning work |
| Stopping | Draining — no new assignments, letting in-flight workers finish |
| Stopped | Idle; not scanning |
Run-level Status (surfaced on the dashboard's Execution card)
| Status | Meaning |
|---|---|
| Idle | Nothing running |
| Running | Workers are executing stories |
| Waiting on you | A card is waiting — your approval or feedback is needed |
| Blocked | Workers are free but nothing is runnable (usually upstream dependencies, or a release this one builds on that has not landed yet) |
Workers
Workers are the processes that run one story each. Each worker:
- Claims a job from the queue atomically
- Creates a git worktree for isolated changes
- Runs the story through its pipeline (the four stages for
standardandquality_checkpointstories alike) - Runs the merge chain on the PRs the story opened, on success (or marks the job failed / cancelled on error)
Worker Status
| Status | Meaning |
|---|---|
| Idle | Ready for an assignment |
| Busy | Executing a story |
| Stopping | Finishing the current story; won't claim another |
| Dead | Crashed or heartbeat timed out — the coordinator will reclaim its job |
The Story Pipeline (recap)
Standard stories run the 4-phase pipeline:
- Analyst (read-only) — reads the codebase, plans the implementation, works out whether anything needs you before it builds, and files the story's issue in each repo it touches (see Story Issues). No code changes.
- Implementer — writes code and tests, committing as it goes, then opens the story's pull request in each repo it changed, and picks the panel of reviewers its change calls for, saying why for each (and may ask for one extra review pass on a risky change). A story whose implementer stops before opening them, or names no reviewers, is retried.
- Auditor — runs the story's review passes over the committed change, one review round each. Before the Auditor starts, the story's agent runs the panel the Implementer picked as reviewers, each on the story's own AI provider. You can ask the story's agent in its thread to have a dimension read on another provider you connected in Trinity as well: that reviewer runs beside the story's own, and if its provider can't run it, it is dropped, the agent says so, and the Auditor lists it among what did not count. You can ask again at the PR review, and the merge waits until that reviewer has finished or been dropped. In each round the Auditor reads the change itself, then cross-analyses what that panel reported: by default one reviewer each for the goal, correctness, reuse, simplification, efficiency, altitude and the project's rules, with security, error handling, testing or a check for redundant tests added when the change touches them, an accessibility reader added when it touches screens, components or styles, a structure reader added when it adds a file, and as few as the goal and the rules for a copy or docs tweak. A finding two AI providers both raise is established, and one only a single provider raises (every finding, when all the reviewers ran on one) is checked by the Auditor's own run before it acts. It applies what it accepts, has a fresh reviewer check the fix, and leaves each reviewer's report as its own comment on each repo's PR, with one summary review linking them and carrying the inline comments. A further round runs only after one that applied a fix, up to the story's review passes (an extra pass the Implementer asked for never goes past them); a story whose review passes are set to
0skips this step. - Documenter — writes the documentation pages the story owns or creates into the repo, records any other page it made out of date for the next checkpoint to rewrite, checks what it wrote against the documentation standard, and commits it with the code. It then posts a close-out comment on every repo's PR and on its story issue: what the story changed there, links to the story's other PRs, and whether the acceptance criteria were met. Trinity then walks the merge chain.
When a story runs on its own thread, its foreman decides what happens after the Auditor. If the audit left something unmet (an acceptance criterion, the story's intent, a failing build check or an unfixed critical review finding), the foreman sends the work back to the Implementer with those reasons. The Implementer that built the story picks up where it left off, with everything it learned about the code and the story, rather than a new one starting cold, and then the Auditor runs again. A story can be sent back twice in one run; after that it moves on to the Documenter, and its close-out says what is still unmet. A story that reaches review with an unmet acceptance criterion, a change that misses the story's intent, or a critical review finding left unfixed always stops at a PR Review card, even at an autonomy level that merges on its own, and the card lists those first. To steer the decision, write to the foreman in the Agents panel (for example "send it back: the toast is wrong" or "accept it as it is"); what you say outranks the audit's recommendation. The foreman also checks on the Implementer and the Auditor while they work, and redirects one that has drifted from the story's description and acceptance criteria.
When the Analyst meets a real fork while it plans, one decision between two to five named options that the story, its comments and the code do not settle (two shapes for the same module, two libraries), it neither picks nor stops the story. It names the options and waits, and the foreman puts them to a jury of independent reviewers, the Judge, which weighs every pair and reports how sure it is. The Analyst waits while the Judge runs, and the story's thread says that the fork is with it. When the jury is clean, the foreman gives the Analyst the winner, the Analyst plans on it, and the Implementer's brief states the chosen option as a decision already made. When the jury is split, hung, found its evidence contradicted, is unsure of every verdict, or could not finish, the call is yours: the foreman asks you on the story's thread with its recommendation and each option's cost, and the story waits for your pick. A choice the spec or a comment already makes, or a product or design call, is not put to the Judge.
A story's Implementer, Auditor or Documenter can stop to ask for access the same way a run does, for example a package registry its allowlist doesn't include, and the card appears on that stage. The stage waits for your answer and carries on from where it stopped; it isn't counted as failed, and the pass isn't sent on without it. This run covers that story's pass, so a host you allow on the Implementer's card is also open to the Auditor, its reviewers' scratch checks and the Documenter. An allow for Once stays with the stage that asked. If the story's autonomy level is Mostly unattended or Unattended, nobody is asked: the story's agent answers the stage, or the level grants it, and a short "btw" note on the story's thread tells you what was decided, by whom and why, with a Revoke on each grant. Only a file, a host or a tool, for This run or Once, is answered this way; a request for the whole fence waits for you at every level. If the project is set to block access requests, the stages don't ask and work with what they have.
quality_checkpoint stories run the same stages with an analyst that decides the checkpoint's work (see Checkpoints).
Post-merge, Trinity runs a fire-and-forget hook that updates roadmap progress and the daily recap. These updates don't block the pipeline.
Git Worktrees
Every running story gets its own isolated checkout of the project's repos — a separate git worktree per repo the story touches, so a multi-repo story provisions one worktree for each repo it needs. Benefits:
- Multiple stories can run in parallel without clobbering each other
- Failed runs leave the base branch untouched
- Agents can
git resetfreely inside their own tree
Worktrees live under the projects folder of your storage location (~/.trinity unless you changed it). They're cleaned up after merge, and an orphan scan reclaims any that were abandoned by a crashed worker.
Monitoring the Run
What is executing shows at a glance on the Execution card of the dashboard, and the work itself lives on its threads.
The Execution card lists the project's live work, grouped by release under its title (Release 0.7.0). It is read-only: nothing on it starts, stops or answers anything, and every row is a link.
- A running story shows its stage (Analyst, Implementer, Auditor or Documenter for a standard story; the checkpoint's own phase for a checkpoint), its attempt once it is past the first, and the machine running it. Click it to open the story's thread, which is the record of the run: the pipeline steps, the handoff history and the PR → Merge → Done stepper live on the story's page.
- A story waiting on you shows what is needed ("Needs your review") and who it waits on. Click it to open the card on the story's thread and answer there; a PR review is answered in the card, with Show in rail opening its review and diff in dialogs, and a checkpoint and a story's failed checks are answered in the card too, with Show in rail opening the story's Details panel. A release's cards are answered on the release's thread too, with Show in rail opening the release's Details panel.
- A walk waiting for a machine, such as a promote or publish with no machine running its release, reads "Waiting for a machine". Click it to open the release, where Start is on the rail.
- Each release's machines list each member's machine with its device and whether it is running, running with nothing queued, or not seen for a while.
- Workers, cost, tokens and agent time for the active release sit at the top of the card, and a line names a release that has stalled and the story blocking it. A line says when Docker is not running.
The sidebar task indicator mirrors the high-level state (release name + current phase + a flag when something waits on you) so you can track progress from other pages.
A Release's Queue on its Release Panel
The queue is the release's, shared by every member, so everyone sees the same scopes and the same order on the release's panel.
- Scope rows list every scope in the release's queue. Stop (first on every row) keeps a scope so you can Resume it; Remove forgets it; Kill also cancels the scope's in-flight jobs on this device. Stopping or removing a scope cancels the jobs it queued that haven't started, whoever's drain queued them, and lets running ones land. A stopped scope that an active broader one covers is disabled and names that scope.
- Drag to rank. Each story row drags between three regions: Pinned (stories ranked in the queue, which lead), Trinity order (the rest, in Trinity's own order) and Bottom (stories you pushed behind everything else). Drop a story between two pinned ones to put it there; Unpin returns it to Trinity's order. The up and down buttons on a row move it one place, the same as a drag, so the queue works without a pointer. A rank belongs to the story, so it holds as other stories finish around it.
- Thread link. A story that has a thread shows a Thread link on its row, and a story waiting on you links to the card on its thread.
- Only mine shows the jobs your drain queued, or that you claimed.
- Awaiting merge and Blocked upstream list the stories waiting for an upstream merge and the upcoming work that isn't runnable yet (three at first, then Show more). Click one to open its thread.
- Stalled leads the section when a failure wedges the whole release.
Cost, tokens and agent time for the active release are on the dashboard's Execution card, and stories done out of total are on the dashboard's progress card.
Failed Stories
Failed stories surface with urgency proportional to what they block:
- A failed story's queue row shows the failure cause in plain words (plus the recorded reason) and — when other stories are stuck behind it — a "blocking N stories" badge.
- The architect's drafted resolution proposal renders directly under the failed row, so the fix is one click from the failure — see Stories → Failed Stories.
- When a failure wedges the entire run — every remaining story is failed or stuck behind a failure — a "Stalled" line at the top of the release's queue and on the dashboard's Execution card names the blocking story, the drafted proposal sits under its row, and Trinity sends a push notification the same way it does for an approval waiting on you. Resolve the named story (approve the proposal, Retry, or handle it manually) and the run resumes.
A failure that blocks nothing stays quiet — its row shows the cause, the run keeps going, and the proposal waits on the story.
The Details panel. On a story's thread the rail's Details panel holds the heavy content of the checkpoint and failed-checks cards, and of a PR review's started project. A checkpoint's tabs are Overview, Findings, Fixes, Preflight & SEO, Notes, and Consolidation, so you can triage a long audit run without drowning in one scroll view. The Preflight & SEO tab groups its build-gate results by package — the checkpoint scans every package the gated run touched, each against its own accessibility level and backing-services config. Every other card (PR review, whose rounds and diff are the story rail's Review and Diff panels, missing assets, external deps, story blocked, story failed, missing business details, missing secret, provider key missing, deviation approval and the rest) renders a tailored body for the specific decision at hand, with its answers, directly in its card on the thread.
Stopping Execution
To pause a whole release without ending anyone's machine, use Pause in the release page header's Run actions menu (it needs write access on the GitHub repo, and shows on any device, whether or not your machine is running the release). Stories already running finish and merge, and no new story starts on any machine until you choose Resume, which picks the release up where it left off. The release thread shows a line saying who paused it and who resumed it, and you can ask the release agent to do either. A paused release is not stalled: it raises no "Waiting for a machine" card.
To stop one scope, use Stop, Kill or Remove on its row in the queue (see A Release's Queue on its Release Panel). To stop your machine of a release, use Stop or Kill in the release page header's Run actions menu; they disarm your drain of the release on this device altogether. Stop transitions to Stopping (drain mode) — workers finish their current story before going idle. Nothing in-flight is force-killed. Stories it had queued but not started are cancelled, unless another machine running the release, yours on another device or a teammate's, is still running and picks them up.
If a drain is taking too long or you need to halt immediately, Kill force-stops the drain without waiting for workers to finish their current story: the stories your drain of that release is running on this device are cancelled. Stopping or killing a run is a deliberate halt — it isn't treated as a failure.
Kill in the Run actions menu asks first. It ends your machine's work now, the walks your machine was running included, and a promote, publish, staging or topology step that no machine is running stays queued until the next Start says "Waiting for a machine". Neither Stop nor Kill ends a promote; Stop promote on the Promote stage does. A promote or publish step your machine had waiting on your answer is not ended either: it waits, visibly, and a machine running the release resumes it.
The menu's Stop and Kill touch only your own work: a story a teammate's machine is running, one your machine on another device is running, or another release's work on this device, carries on. A scope's Stop, Kill and Remove on a release's panel reach every member's jobs in that scope.
To cancel a specific job that's currently running, use the cancel action on the story itself — the pipeline checks assertJobActive() at critical points and bails out cleanly without marking the job failed.
A job stopped this way lands on Cancelled, its own final state alongside Complete and Failed. That distinction is what keeps a deliberate halt out of your failure counts and off the retry paths a real failure takes: a cancelled job carries no cause to resolve, nothing waits on it, and nothing tries to bring it back.
Machines
The Machines panel on the release's rail lists every machine running the release, whoever's it is. Each row names the person, the device and its kind, the machine's status, its workers and the stories it is running. The status reads Starting until the machine reports in, Running (or Running · nothing queued when the release's queue holds nothing), Stopping, or Not seen since a time when a running machine has gone quiet for five minutes. Your machine on this device is marked This machine. Beside the status, each row reads Online or Offline: whether the device the machine runs on is connected to Trinity right now, which can differ from the status when a machine is running but its device has dropped off, or its device is online with no machine scanning.
Your own machines on your other devices carry Stop and Kill, so you can stop a second desktop from here. A teammate's machine carries no controls: only its owner starts, stops or kills it, and the rows refresh for everyone the moment a machine changes.
Concurrent Release Execution
Each release you run on this device is its own drain with its own worker pool and its own worker count: start each release you want worked, add a scope to its queue, and they run side by side. Stopping or killing one leaves the others running. A release's promote, publish, staging and topology steps run only on a machine running that release; when you start one on a release nobody is running, it says Waiting for a machine: press Start on this release to run it, and it keeps waiting, even after the last machine stops, until someone presses Start. The multi-release status pills show the releases your drains are reaching, each with its own counts.
This is useful for parallel tracks — e.g., v0.2.0 shipping bug fixes while v0.3.0 builds a new feature set.
Retry and Recovery
If a story fails:
- Review the Architect proposal card on the story — a drafted resolution (retry, reshape, or delete) is usually already waiting
- Check the agent handoffs on the story detail page for the error trail
- Reset the story (set it back to pending) to have the coordinator pick it up on the next scan
If Trinity crashes or the desktop is restarted:
- A restart ends the drains that were running on this device, but pressing Start is a standing choice: once the app is back, the releases you had running here start again on their own, and only Stop or Kill clears the choice. If the website is not reachable yet, Trinity keeps retrying for a while before it starts them
- The agents Trinity was running for you pick up where they stopped, from their own transcripts: a story's foreman while the story waits on its stages, and an import's agent. A run that cannot continue, or whose release, story or import has since closed, shows as interrupted by the restart with a Retry button
- Orphaned worktrees are detected and cleaned up
- Stuck jobs past the stale-job threshold are failed with recovery messages
- You can click Start again and the coordinator resumes; Start also requeues any story whose worker has been silent for three minutes or more, so that story is picked up again; a worker that went quiet more recently is recovered once it passes that mark