Run the backlog
The autonomous backlog lets SupaCloud scan a project’s open issues, classify and prioritise them, and dispatch agent runs to work through them — bounded by budgets, a concurrency ceiling, quiet hours, and the workspace autonomy level. This page covers the operator tasks: turning backlog mode on, reading the workspace board, setting the safety limits, and launching a controlled dispatch.
Put a project in Backlog mode
Section titled “Put a project in Backlog mode”- Open the project, then open its Edit modal.
- In the Automation section, set the autodev mode to Backlog. (Set it to Simple to work each issue directly to a pull request in arrival order instead; Off imports issues but dispatches nothing.)
- Pick the Approval mode (the backlog merge policy): PR only (open a PR and stop), Auto-merge on green (merge when all gates pass), or Full auto.
- Optionally set the Classifier, the Agent, the Severity gate and the Blast radius (environment scope + denied-tools denylist).
- Save. The project’s backlog workflow is materialised so dispatched items have something to run on.
Whatever the mode, SupaCloud imports the project’s open issues from its one
issue source — the issue tracker (Linear or Notion) when one is set, otherwise the
Git forge — and the scan/classify sweep records new ones as
queued items. Backlog mode then dispatches them in priority order.
For a Git-forge project the backlog follows each issue after the first sighting.
Editing an issue’s title or description sends a waiting queued or needs_info
item back to classified, so it is classified again against the new text: a
stub in needs_info becomes queued once its description is complete. An issue
that is closed on the forge never starts a run: the item is cancelled, and the
dispatcher re-reads the issue right before every launch. If the repository is
renamed, deleted or has its issue tracker disabled, the scan fails loudly instead
of reporting an empty backlog.
View the workspace backlog board
Section titled “View the workspace backlog board”Open Backlog in the sidebar.


The page has a Project ⇄ Workspace scope toggle:
- Workspace scope (the default) is a cross-project, read-only roll-up of every backlog-enabled project in the workspace, plus the manual dispatch panel. This option only appears once the workspace has two or more backlog-enabled projects — below that there is no cross-project picture worth showing.
- Project scope lists the workspace’s projects; opening one shows its interactive board, where you can drag cards between lanes, reorder priority, and drag a finished card to Done.
Each board has fixed-order columns: classified → queued → in_progress →
in_review → done, plus the needs_info and blocked lanes and the two intake
lanes Held and Cancelled (see
Decide readiness from issue labels). The active
pipeline runs left to right; done, needs_info, blocked, held and cancelled
are the terminal-ish lanes.
Dragging a card into in_progress means Dispatch now. SupaCloud puts the item in the queue and runs one dispatch pass for the project at once, under the same limits as the automatic dispatcher (the concurrency cap, the budget, the provider quota, the autonomy band and the dispatch kill switch). When a run starts, the card stays in in_progress and a toast says the work is dispatching. When a limit holds it back, the card returns to queued and the toast says it waits in the queue. A card that already has a running dispatch cannot be dispatched again and snaps back; an in_review or done card cannot be dragged there at all. A card in in_progress therefore always has a run.
Click a card to open its detail drawer: the previous runs, the issue context and the routing decision. When the item waits on a visual sign-off, the drawer shows the screenshots to review and the machine judge’s verdict, with a link to decide it in the inbox.
A card in in_review shows the green gates badge only for its current review round. When an item goes back for rework (you move it to queued, or a gate sends it back) and returns to in_review, the previous round’s audit no longer counts: the badge stays off, and a drag to Done is refused, until the new round’s audit passes. A failed visual check turns the round red in the same way. The badge is also bound to the pull request’s current head: it lights up only when the round’s audit passed for exactly that head, or for a head the merge gate’s own branch update carried there and proved (see below). An audit that passed for an earlier head, or recorded no head at all, does not turn the badge green.
Releasing an in_review card to Done merges its pull request, so the board asks first.
Dropping the card on Done opens a confirmation that shows the pull request’s title and
link, its diff stat (files changed, lines added and removed), the state of each gate (audit,
CI and visual sign-off) and the sentence “This merges PR #N into <branch>.” Nothing is sent
until you press Release & merge; Cancel puts the card back in in_review, and so
does a drop you did not mean. The item’s detail drawer offers the same Release & merge
button with the same confirmation, so you never have to drag a card to merge it. Either way
the merge gate still decides: a release it refuses leaves the item where it was and names the
reason.
A release is for the pull request head you reviewed. The confirmation names that head
(“Pull request head” and its short commit id), and pressing Release & merge releases
exactly that head. If someone pushes to the pull request after the confirmation opened,
nothing is merged: the board says the pull request received new commits and asks again,
showing the new head. The same holds while a release waits for its checks: if the head moves
before the merge, the release lapses, whatever the automated checks later say about the new
head. The card shows a reason starting with release_head_moved, you get a notification,
and the item stays in in_review until you release the new head.
Releases, approvals and the pull request head
Section titled “Releases, approvals and the pull request head”- A release covers one head. The head shown in the confirmation is the head you release.
When the head moves before the merge, the release lapses with a notification and the card
reason
release_head_moved; nothing is merged until you release the new head. - Approvals count for one head and one round. With Required reviewers set on the
project, the bar counts only approvals given for the head being merged, in the item’s
current review round. When the head moves, or the item starts a new round, earlier
approvals no longer count. This is visible: each person whose approval lapsed gets an
in-app notice, and the audit trail records
backlog.approvals_lapsed, so they can approve the new head. - A branch update the gate requested keeps both. When the merge gate itself updates the pull request from its base (see Keep pull requests current) and proves the update changed none of the pull request’s own content, the new head counts as the reviewed one: your release and the approvals carry over. Any other push lapses them.
- The API names the head too.
PATCH /api/projects/{id}/backlog/items/{item_id}withstate: "done"acceptsexpected_head_sha, thehead_shaof the release preview. A head that moved since is refused with422 release_head_changedbefore anything changes; without the field, the release binds to the head the merge gate reads. The field is refused on any other state. The MCP toolbacklog.transitiontakes the sameexpected_head_sha(see below).
If the server restarts during a review, SupaCloud starts the review again automatically, on the
same change and in the same round. An item whose review was interrupted three times, or whose
review ended without a verdict, is blocked; its reason starts with review_interrupted or
review_stranded. Move it back to the queue to run it again. An implement round that a crash
ended goes back to queued at once.
Move an item from chat or from a coordinator
Section titled “Move an item from chat or from a coordinator”You do not need the web board to move an item. On Telegram and Discord,
/backlog requeue <id> and /backlog block <id> make the same moves as a drag, with the
same checks: requeue puts the item back in queued and block parks it in blocked.
A release takes two steps, like the confirmation on the board: /backlog release <id> only
names the pull request and its head and offers a Release button for that head; pressing
it, or sending /backlog release <id> <head>, is the drag to Done, so the merge gate
applies and a refusal names its reason. See
Release the head you reviewed. A needs_info item goes back to the queue the same way: add
the missing information to its issue, then requeue it. /backlog move <id> <state> moves an
item to any column (queued, in_progress, needs_info, blocked or done; a move to
done names the head as well, /backlog move <id> done <head>);
in_progress means dispatch now, under the dispatcher’s limits. The id is the short id the
board shows.
A coordinator agent moves items with the backlog.transition MCP tool,
{item_id, target, reason}: the target is one of the same five columns, the reason is
required (up to 2 KiB) and lands in the audit trail, and a move to done runs the merge
gate exactly like a release on the board. A move to done also names the pull request head
it releases, expected_head_sha, which backlog.get shows as gates.head_sha; a head that
moved since refuses the release with release_head_changed. backlog.release returns a parked item to the
queue. Both are Ops tools, audited and counted against the Ops caps.
Decide readiness from issue labels
Section titled “Decide readiness from issue labels”A git-forge project’s scan refreshes every issue’s title, body, labels, milestone and state
on each sweep and lists every open issue. A signed Forgejo or GitHub issues webhook updates
the backlog at once, without waiting for the next sweep. The backlog lane’s Label rules
decide from those labels which items may be dispatched. Open them in the project’s
Configuration tab, in the backlog lane settings. Without rules every open issue is
dispatched.
- Labels decide readiness: a classifier verdict of “needs info” never holds an issue whose labels pass. The classifier still sets kind, priority and scope.
- Require all labels, Require one of the labels, Forbid labels: comma-separated label names, compared without regard to case.
- Only these milestones: one milestone title per line. Empty means any milestone, or none.
- Priority from labels: one
label = priorityper line, from 0 to 100. It overrides the classified priority. - Routes by label: the first route whose labels are all present wins. It either holds the issue with a reason, or routes the implement step to an agent profile or a model tier.
- When a running item loses its labels: Let the run finish (the default) records the loss on the card, and the finished run is not merged unless the labels pass again. Cancel the run cancels the run and the item.
The dispatcher re-reads each candidate issue from the forge before it starts a run, so an item whose labels changed since the last sweep is never dispatched on stale labels. If the forge cannot be reached, the item stays queued for that tick. A malformed rule set is refused on save with HTTP 422 naming the key.
A recommended rule set for a repository whose maintainers mark ready work with labels:
| Field | Value |
|---|---|
| Labels decide readiness | on |
| Require all labels | work-item, ready, spec-ready |
| Forbid labels | blocked |
| Priority from labels | T0 = 3, T1 = 2, T2 = 1, T3 = 0 |
| Routes by label | T3 → hold, reason human_led; kind/decompose → profile coordinator, tier Flagship; T2 → tier Flagship; T1 → tier Balanced; T0 → tier Fast |
| When a running item loses its labels | Let the run finish |
The board shows what the rules decided:
- Held: the issue does not pass the rules and is never dispatched. The card names the reason: Labels not met, Human-led (or another route’s hold reason), or Label rules invalid when the stored rule set cannot be read, which holds every item until you save a valid one. A held item returns to queued on its own as soon as its labels pass. You may also drag it to queued; that means “re-check now”, and the dispatcher still admits it only when its labels pass.
- Cancelled: the issue was closed (Issue closed), or its run was cancelled because its labels were lost (Labels lost during the run). A cancelled card cannot be moved. Reopening the issue returns the item to queued and starts a new round, shown on the card as Round N. A closed issue cancels its not-yet-dispatched item whether or not rules are set.
Cards also show the issue’s labels, its milestone and a link to the issue. A scan that reaches the listing’s safety ceiling of 2,000 issues says so in a warning.
Read the dispatch panel
Section titled “Read the dispatch panel”The dispatch panel above the workspace board is the live view of how the dispatcher is working. It shows:
- the dispatch rate — how many backlog runs were dispatched in the recent window;
- the last tick — how long ago the background scheduler last ran (a growing value means the ticker has stalled);
- the in-flight count — backlog runs running across the workspace right now;
- the tick interval — the scheduler’s cadence;
- a per-project row for each backlog project, showing its effective cap, its queued items and any blocked reason (why that project is not dispatching);
- the stuck in progress count — items of the workspace that are still in_progress on a run that already ended (completed, failed or skipped) and have not changed for four hours. Healthy is 0; see below.
SupaCloud does not leave an item in in_progress once its run has ended:
- A run that ends skipped (a policy refused it) blocks its item at once, with the policy skip as the reason, so it does not come back on its own.
- A run that ends completed or failed without releasing its item is reclaimed by a recovery pass on every backlog tick (every five minutes) once the item has been untouched for four hours: the item returns to queued. A skipped run the first step missed is blocked by the same pass.
- The recovery pass visits every project that has such an item, whether its backlog mode is on or off and whether its workspace is paused. Only the instance-wide global dispatch red button stops it.
- Switching a project’s autodev mode away from Backlog recovers its items at once, without the four-hour wait.
An item whose run is still active, or was cancelled, is never touched. A stuck count
that stays above 0 means the recovery pass is not running; the instance operator sees
the same number as the supacloud_backlog_orphaned_in_progress metric.
The panel collapses to a single status line when you do not need the detail — click it to expand the full breakdown again.
Set the concurrency ceiling
Section titled “Set the concurrency ceiling”The workspace concurrency ceiling (max_backlog_concurrent) caps the sum of
in-flight backlog runs across all the workspace’s projects. It is checked first
on every dispatch tick, in addition to each project’s own concurrency cap — the
effective cap is the per-project cap and the workspace ceiling and the
autonomy level’s concurrency factor, whichever is lowest.
An unset ceiling means uncapped: only the per-project caps bound each project. The resolved ceiling and the remaining free slots are surfaced on the workspace backlog status above the board, so you can see why dispatch is (or is not) launching.
Above both sits the instance’s agent concurrency cap
(MAX_PARALLEL_TASKS_PER_WORKSPACE, default 3; 0 = unlimited). It bounds every
agent run of the workspace at launch, interactive or unattended, so it should be at
least max_backlog_concurrent plus the runs you start by hand (a coordinator counts
as one).
A launch beyond the cap waits instead of failing. The task shows Waiting for a free
slot with the slots in use and its position, and the oldest waiting launch starts as
soon as a slot frees. Every launch gate (budget, credentials, pre-flight, policy) runs
again at that moment. A gate that says no then ends the wait as
launch_queue_refused:<reason>, and a wait longer than 360 minutes ends as
launch_queue_timeout. An experiment attempt keeps its own queue.
Set quiet hours
Section titled “Set quiet hours”Quiet hours pause dispatch during a daily window — scan and classify keep
running, so items still accumulate as queued; only the launch is suppressed.
- Open Settings → Workspace and find the Quiet hours card.
- Set a Start and End time. Times are stored and evaluated in UTC.
- Save.
The window is a half-open interval [start, end). A window that crosses midnight
(for example 22:00 → 06:00) is supported. Leaving both fields empty clears
the window (dispatch is never suppressed); a half-filled pair is rejected — set
both or neither.
Run a dispatch dry-run, then dispatch
Section titled “Run a dispatch dry-run, then dispatch”The manual dispatch panel on the workspace board runs a dry-run preview before you launch anything. A bodiless dispatch request is always a safe preview — it writes nothing and launches nothing.
- On the workspace board, the Dispatch panel loads a dry-run preview on mount. Click Refresh to re-run it.
- Read the preview:
- Queued items — an upper bound on how many runs could launch (per-project caps and budgets are not simulated here, so the real count may be lower).
- Autonomy level — the resolved autonomy ceiling for the workspace.
- A suppressed banner with a human reason when a gate blocks dispatch (onboarding, ceiling reached, autonomy 0, global kill-switch off, quiet hours, or provider quota near exhaustion).
- If nothing blocks and the queue is non-empty, Dispatch now is enabled. Clicking it commits the launch, reports how many runs started, and re-previews so the panel reflects the post-launch board.
A real dispatch requires the CreateRun capability and writes an audit event. The same gates the preview reports are enforced on the live launch, so the preview never disagrees with what actually happens.
Tune the dev pipeline
Section titled “Tune the dev pipeline”Each backlog automation runs a dev pipeline with plan, implement and review stages. The pipeline carries two layers of tuning:
- Expert stage overrides — a per-stage harness, model, model tier,
reasoning effort, execution mode and profile for the
plan,implementandreviewstages, stamped onto the materialised workflow nodes. Set them in the project’s Configuration tab or throughpipeline_config.stages. A stage model tier runs the stage on the first reachable model of that calibrated tier, resolved at every launch, so a calibration apply reaches the next run; an explicit stage model wins over it, and a stage harness narrows the tier’s chain to that harness. A backlog label route (route_by_label) may name a tier and a profile for the implement step; a stage tier or stage profile wins over it. When no model of the tier is reachable, the item stays queued, its error readstier_unreachable:<tier>, and you get one notification per project and tier a day instead of a run on the runner default. - Sidecars per stage —
stages.<stage>.sidecarslists the sidecar kinds a stage’s agent gets, for example"implement": { "sidecars": ["test-db"] }. The review stage takes the implement stage’s list unless it sets its own ([]means none). Set it throughpipeline_config.stages; the Configuration tab has no control for it yet. This only requests a sidecar: it runs only when the instance offers the kind and the project’s Sidecars setting has not turned it off. An unknown kind is refused on save. - Return-to-sender loop — the Review toggle and the loop knobs
(convergence level, max rounds, max cost) are surfaced in the project’s
Automation section. With Review on, an independent forensic audit runs after
implement. The auditor reports and never fixes; its submitted verdict is the
gate: no verdict, a FAIL, a finding at or above the block severity, or a verdict
for another commit than the pull request’s head all count as a failed audit. A
failed audit escalates the item’s effort one tier and re-queues it, or — when the
return-to-sender loop is enabled — runs a bounded multi-round loop; either way the
next implement round receives the audit’s findings, and the item’s error keeps the
reason. The block severity is
pipeline_config.review_contract.block_severity(low, the default, blocks on every finding;medium;high). The built-in gated workflows are upgraded in place on their next dispatch; a custom workflow with its ownauditnode must callreview.submit_verdictfrom that node, or every audit on it fails as “no verdict”. An audit that ends without a verdict re-runs by itself instead (see Automations). - Read-only auditor credential — the auditor never receives the project’s write
credential. To let it clone a private repository, store the project’s access-token
credential as JSON with a read-only companion token:
{"token": "<write token>", "read_token": "<read-only token>", "base_url": "https://…"}. Withoutread_tokenthe auditor of a private repository cannot clone and the audit fails.
See Automations for how the review gate and the convergence loop behave.
Set the pull request conventions
Section titled “Set the pull request conventions”The project’s Configuration tab has a Pull requests row. It sets how SupaCloud opens, names and merges the pull requests of the project’s backlog work:
- Merge style: merge commit (the default), squash, rebase, rebase with a merge
commit, or fast-forward only. Pick one your repository allows. A repository that
refuses the style leaves the item in review, the workspace owner gets a notification,
and both it and the audit trail name the setting to change (
merge_forbidden_style). Nothing retries on its own. - Closing keyword:
Fixes,ClosesorResolves. Every backlog PR whose source is a forge issue closes that issue on merge. When the agent opened the PR itself and left the keyword out, SupaCloud appends it in a block marked<!-- supacloud:managed -->and never edits text outside that block. - Delete branch after merge: removes the head branch once the forge merged the PR.
- PR title template and an optional required title pattern: for example
{type}({scope}): {subject}with a Conventional Commits pattern. A title that does not match falls back tochore: <subject>. Under squash the title becomes the commit title on the default branch. - Branch template: for example
{type}/{issue_number}-{wi_id_lower}-{slug}. It must contain{id8}or{issue_number}. A branch that would not be a valid ref falls back to the built-inautodev/backlog-<id>-<slug>. - Branch update when behind the base: merge the base into the branch (the default), or rebase the branch, which needs force-push rights on SupaCloud’s own branches. See Keep pull requests current.
The row lists the variables each template accepts and previews the title and branch for the newest backlog item. An unknown variable is refused when you save. Only values that differ from the built-in are stored; Use built-in conventions clears the project’s override.
A PR merged or closed directly on the forge updates its backlog item once the
repository’s webhook delivers pull_request events. The delivery must come from the
repository the project is bound to and be signed with the project’s webhook secret
(the backlog automation’s when it has one, otherwise the PR review automation’s), and
SupaCloud re-reads the PR from the forge before it acts: a merge moves the item to
done, a close without merge moves it to blocked (pr_closed_unmerged), and it
is not dispatched again on its own.
Declare the gate commands
Section titled “Declare the gate commands”A gated backlog run tells the implementer which checks to run before it pushes, and the
independent auditor which checks to re-run. SupaCloud renders both lists from the backlog
arm’s gate manifest (pipeline_config.gates) on every dispatch, so an edit applies to
the next item without re-creating the workflow:
{ "gates": { "commands": [ { "name": "validate", "run": "uv run python tools/fmctl.py validate all", "mode": "self_check", "timeout_s": 1800 }, { "name": "dotnet-build", "run": "dotnet build FootballManager.sln -c Release", "mode": "audit_rerun", "timeout_s": 1800 }, { "name": "unity", "mode": "ci_only", "ci_context": "unity-ci*" } ], "include_item_commands": true }}self_check— the implementer runs the command; the auditor confirms it from the implementer’s report.audit_rerun— the implementer runs it and the auditor re-runs it.ci_only— no agent attempts it; the named CI status context verifies it.- In the auditor’s verdict every check the auditor ran is a
commands[]entry{command, exit_code, summary}; its duration and the last lines of its output go insummary. Aci_onlycheck was never run, so it carries no exit code: the auditor reads the context’s state with the MCP toolci.statusand records the check as{command, ci_context, ci_state}. An entry with bothexit_codeandci_contextis refused. The auditor’sci_stateis a record only; the named CI status context itself decides the check at the merge gate. include_item_commands(defaulttrue) — the commands in the issue body’s## Commandsblock join the implementer’s list. They are shown to the agents as untrusted text, and SupaCloud itself never executes them.loc_cap,i18n_parityandrulesadd a line cap, locale file pairs that must stay in parity and free-text rules;capturedeclares the visual-capture step (webwith a command, orunity/blenderon an edge runner).- No manifest — the agents are told to run the checks the repository documents
(
AGENTS.md,CONTRIBUTING.md, CI files), and the run records the warningno_gate_manifest. SupaCloud’s own repository keeps its built-in checks when the instance names its URL inSUPACLOUD_SELF_REPO_URLS(see Environment variables); a repository that is merely calledsupacloudis never detected. Set"builtin": "neutral"to opt out or"builtin": "supacloud"to opt in.
The manifest is validated on save (an invalid one is refused with HTTP 422 naming the
field) and accepted only on the backlog arm. It is available through the project
automation API, the Management API project spec (automations[].pipeline_config.gates)
and the Gate commands editor in the backlog lane settings. The JSON Schema is
docs/schemas/gate-manifest.json (spec.get name gate_manifest_schema).
Re-verify checks that need a special machine
Section titled “Re-verify checks that need a special machine”Some checks can only run where a tool, a GPU or a licence is — a Unity batch compile on a Windows workstation, for example. An auditor in a Linux container cannot run them, and it is never asked to. What each mode means for the auditor:
ci_only— the auditor never attempts it. It reads the context’s state with the MCP toolci.status(and can import a CI artifact withci.artifact.get) and lists the check in its verdict as{command, ci_context, ci_state}.audit_rerunwithoutrequired_labels— the auditor re-runs it in its own workspace, as before.audit_rerunwithrequired_labels— neither the implementer nor the auditor attempts it, and the auditor does not list it in its verdict. After the audit passes and the pull request’s CI is green, SupaCloud re-runs it itself on the project’s desktop host: the declared tool only, over SSH, never an agent.
A re-verify passes only when every signal agrees: the tool’s report is fresh (written
after the run started), its status and exit_code agree with the process exit code,
and the host’s checkout is on the pull request’s head commit before and after the run.
Anything else fails. Each result is a row of the item’s Merge gates section with the
host, the tool, the exit code, the report, its freshness, the compile errors of the
editor log and links to the attached files.
Tune it on the backlog arm with pipeline_config.reverify (the Tool re-verification
field in the backlog lane settings, directly below the gate commands):
{ "reverify": { "on_unavailable": "block", "queue_timeout_minutes": 240, "commands": { "unity-batch": { "tool": "unity", "paths": ["unity/**"], "ci_context": "unity-ci*" } } }}commands.<name>— keyed by the gate command’sname.toolis the desktop tool declaration to run (default: the command name); itslabelor key must be one of the command’srequired_labels.pathslimits the re-verify to changes under those patterns (empty: always; a diff that cannot be read: always).ci_contextskips the re-verify when a matching CI context is green on the head — the ledger row then says “covered by CI context …”.queue_timeout_minutes— default 240, 10–1440. How long a job may wait for its host before it counts as unavailable.on_unavailable—block(the default) orrework. A malformed stored value is treated asblock; a write with an invalid value is refused with HTTP 422 namingpipeline_config.reverify.<field>.
The desktop host is the project’s Configuration tab → Desktop host, else the
workspace’s Default desktop host, else the workspace’s only ssh_host resource that
declares the tool. Setting a host up is described in
Arm a desktop host for SSH.
What you see and what happens next:
- Waiting — while a job is queued or running, the card’s gate phase reads
Re-verifying (
awaiting_reverify). - A re-verify fails — the item goes back to the implementer with the command, the
host and the compile errors as findings (
reverify_failed:), counted against the review loop’s rounds and cost. - No host in time — a job that cannot start within the queue timeout, a host that is
not bound or whose
host_key_fingerprintis not pinned, or a host that declares nocheckout_command/head_commandis unavailable. The item is blocked withreverify_unavailable:and you get one notice; it never passes. Withon_unavailable: reworkit goes back to the implementer instead. Once the host is back, Re-check now or a drag to Done moves the item back to review and it re-enters the gate without re-running the pipeline. - The pull request head moved — the re-verify rows of the old commit are superseded, like every other gate.
Require independent reviews
Section titled “Require independent reviews”Besides the forensic audit, a backlog item can require up to three independent
reviews, each by a model from a different vendor than the one that implemented the
change. Configure them in the project’s Configuration tab → the backlog lane →
Independent review slots, directly below the stage overrides, or through
automations[].pipeline_config.reviews in the Management API project spec.
- Slots — up to three. Each slot has a Reviewer class (Independent review or Security review), one or more Focus lenses (forensic, security, spec conformance, performance, tests, UX) and an optional Pinned harness and Pinned model. Without a pin, the slot runs on the first reachable model of its class’s calibrated chain that satisfies the vendor rule.
- Slots per item — how many of the slots an item engages when no label rule
matches.
0keeps the single forensic audit. - Slots per label — one
LABEL=Nper line, for exampleT0=0,T1=1,T2=2. The largest count among the item’s labels wins. - Vendor rule — Every slot comes from a different vendor, and none from the implementer’s (the default), or No slot comes from the implementer’s vendor. The vendor is the model’s provider family, not the harness: a Claude model reached through OpenRouter counts as Anthropic. A model whose vendor cannot be told is never used for a slot.
- Path classes (security slots only) — the sensitive-path classes that make the security review required, one per line; empty means any sensitive change. When the gate cannot classify the diff, the security review is required.
The engaged slots run in parallel with the audit on the same head commit, read-only,
and each ends by submitting a verdict. The merge gate then needs a passing audit and
a passing verdict from every required slot for the pull request’s current head before it
looks at the required checks. While a required slot has not reported, the item waits in
the awaiting_review phase; a background check re-evaluates it.
What happens next:
- A slot fails — the findings of every failing slot, each prefixed with its slot
(
review_1: …), go into the next rework round, counted against the review loop’s rounds and cost like an audit failure. - The security review fails — the item is blocked with
security_review_escalated:and waits for you; it is not sent back to rework. Decide, fix if needed, and reopen the item. - No model from another vendor is reachable — the slot records
review_vendor_unavailableand the item is blocked withreview_vendor_unavailable:. SupaCloud never falls back to the implementer’s vendor. Make a model from another vendor reachable for the slot’s class (a credential, or the calibrated chain), then reopen the item. - The security review passes — SupaCloud posts an approving review of the head
commit on the pull request, which clears the repository’s security-review gate
classes. It posts under the reviewer identity, a forge credential set at the
instance default, the organization or the project (the most specific setting wins;
the authoring identity resolves the same way). A project whose forge connection holds
a single identity uses it without a setting. Because a forge refuses an author’s
approval of their own pull request, SupaCloud uses the next configured identity when
the reviewer is the pull request’s author; when none is left, the audit log records
backlog.security_approval_unposted, the gate class stays with you, and the merge continues to the required checks. The settings show which identity is in force and the level it came from.
Every slot’s verdict appears in the item drawer’s Merge gates section with its
vendor and model. A council on the review stage is no longer available: saving
stages.review.council returns 422, and projects that used it were migrated to two
independent review slots (see Councils).
Run the backlog on GitLab and Bitbucket
Section titled “Run the backlog on GitLab and Bitbucket”Backlog dispatch and the merge policies (Auto-merge on green, Full auto) work on GitLab and Bitbucket projects as they do on Forgejo and GitHub: SupaCloud finds or opens the item’s merge request or pull request, reads its changed files and the commit statuses of its head, and merges it pinned to the commit the auditor passed. Three forge rules differ:
- GitLab merge style. GitLab sets the merge method per project, not per merge
request. Squash works with every project method. Any other style must match the
project’s method: Merge commit needs
merge, Rebase with a merge commit needsrebase_merge, Fast-forward only needsff, and plain Rebase has no GitLab method at all. A mismatch is refused asmerge_forbidden_styleand nothing is merged; change the style in the Pull requests row, or the project’s merge method in GitLab. - Bitbucket head check. Bitbucket’s merge call cannot be told which commit to
merge. SupaCloud therefore re-reads the pull request’s head right before the merge
and refuses when it moved since the audit, so an unaudited commit is never merged. A
merge strategy the repository does not allow is refused as
merge_forbidden_style. - Required checks. GitLab and Bitbucket branch protection names no status contexts, so an empty Required contexts list cannot fall back to the branch’s protection. The lane’s When nothing is required setting decides instead: with Every reported check must pass (at least one) the item waits for a reported check, with Do not wait it merges without one. List the contexts your pipeline reports in Required contexts to require them by name.
Wait for the repository’s required checks
Section titled “Wait for the repository’s required checks”A backlog item merges only when the target repository’s required checks pass on the commit the auditor passed. After a passed audit, SupaCloud reads the pull request’s required commit statuses for that commit, records each verdict in the item’s Merge Gate Ledger, and merges pinned to that commit, so a commit pushed after the audit is never merged unseen. This holds under every merge policy and at every autonomy level.
Configure it in the project’s Configuration tab → the backlog lane → Required checks (CI gate):
- Required contexts — one pattern per line;
*matches any text (including/) and?one character, for examplecore-ci / *. Leave it empty to use the target branch’s protection: the contexts its status check lists are the required ones. Theci_contextof everyci_onlygate command is required as well. - Owner-approved contexts — statuses only a person turns green, for example
gate-class*. Once every other required check is green, a pending owner status makes the item wait for you: you get one inbox notice and one chat notice, and the item never goes back to rework and never times out. When the status turns green, the item merges. - Ignored contexts — reported statuses that never block a merge.
- When nothing is required — Every reported check must pass (at least one) is the default for a new backlog lane. Do not wait is the audited opt-out for a repository that neither requires nor reports checks; a reported failure still goes to rework. Lanes that existed before the CI gate start with Do not wait, so a repository without checks keeps merging as before.
- Timeout (minutes) — default 240. An item still waiting on its checks after that is
blocked with
ci_timeout:and you are notified once. - Merge retries — default 5. How often a merge the forge refused for a transient reason is retried, with backoff, within one hour.
The gate cannot be switched off: the lane refuses enabled: false with HTTP 422, like
any other invalid value. The same settings are available through the Management API
project spec as automations[].pipeline_config.ci_gate.
What you see while an item waits:
- The card’s gate phase — Waiting for required checks, Waiting for an owner status, Retrying the merge, or The merge needs a settings change (the forge refused the merge style; see Set the pull request conventions).
- The item drawer’s Merge gates section — every ledger row, the current commit first, with each check’s state and link and the findings of a failed gate. Rows of a commit that is no longer the pull request’s head are marked superseded.
What happens next, and how to recover:
- A check fails — the item goes back to the implementer with the failing context names (and, where the forge serves job logs, an excerpt of the log), counted against the review loop’s rounds and cost. Fix the check or let the next round do it; the gate merges once the checks pass.
- The pull request head moved after the audit — the old verdicts are superseded and the item goes through the audit again on the new commit.
- Waiting — a background check runs every 60 seconds. A repository webhook that
delivers commit-status events, signed with the project’s webhook secret, makes the
next check come sooner. Re-check now in the item drawer (owners and admins) asks
for the next check at once. A waiting item whose check the gate cannot complete (the
forge refuses the read, or it errors) is not retried every minute: each failed check
doubles the wait, starting at 60 seconds and capped at one hour. After five failed
checks in a row the card’s reason starts with
watch_refused. The next check that completes resets the wait. - The pull request was closed without merging — after five refused checks in a row
(see Waiting) the gate reads the pull request again. When the forge confirms it as
closed and not merged, the item is blocked with
pr_closed_unmergedand the owner gets one notice. The dispatcher never picks a blocked item up by itself: requeue it to run it again. - The forge refuses the merge — a transient error is retried with backoff; a
missing permission (
merge_forbidden:) blocks the item and says so; a conflict first gets one fix round and then blocks the item withmerge_conflict:(see Keep pull requests current); retries that run out block it withmerge_unavailable:. A person can always release it: drag the card to Done, or use Re-check now, to retry the merge after fixing the cause. An item blocked withci_timeout:,merge_forbidden:,merge_conflict:ormerge_unavailable:is moved back to review and re-enters the gate without re-running the pipeline.
The design is recorded in ADR 0076.
Keep pull requests current and serialize overlapping work
Section titled “Keep pull requests current and serialize overlapping work”When another item merges first, a waiting pull request falls behind its base. The merge
gate then updates it from the base (the project’s Configuration tab → Pull
requests → Branch update when behind the base, key update_style: merge by default, rebase only if your
repository lets SupaCloud force-update its own branches), waits for the checks on the
new head, and merges. The audit is carried to the new head only when the update is a
plain merge of the base and the base changed none of the pull request’s files;
otherwise the item goes through one more fix round. Such a proven update also keeps a
person’s release and the required-reviewer approvals: they were given for the content the
update carried over unchanged.
If the pull request conflicts with its base, SupaCloud runs one “merge the base and
resolve” round on the same branch. It counts against the pipeline’s max_rounds and
max_cost_usd. If that round does not resolve the conflict, or the base has not changed
since the last round, the item is blocked with merge_conflict; resolve it by hand and
drag the card to Done, or use Re-check now.
To keep two items from changing the same protected files at the same time, add a
concurrency block to the backlog arm’s pipeline settings:
concurrency: serialize_globs: ["contracts/**", "**/*.lock", "**/migrations/**"] serialize_unknown: false revalidate_on_update: [ci]The dispatcher reads each issue’s Allowed paths section (a heading followed by a
list of paths or globs). An item whose paths touch the same glob as running work stays
queued and shows “waiting for #N (overlap: glob)” on the board, in the item drawer and in
the dispatch dry-run. Items without an Allowed paths section are never held back unless
serialize_unknown is true.
On projects with a Checkout setting, the paths of the Allowed paths section are
also added to the Git LFS include set of the implement step, so the agent gets the real
files it is expected to change.
Let the repository choose the tier
Section titled “Let the repository choose the tier”A repository can declare which capability tier each kind of work needs, and SupaCloud reads that declaration at every backlog scan. The repository never names a model: which model serves a tier stays SupaCloud’s calibrated answer, so a new release changes the model without anyone editing the repository.
- Commit a routing file on the default branch. The conventional path is
agents/routing/model-routing.yaml;.supacloud/routing.yamlworks too. - Open the project’s Configuration → Routing (from repo) row and enter that path. Leave it empty to turn repository routing off.
- Run a scan. The card then shows the file’s blob id, when it was last loaded, its rules, and any findings.
The file declares profiles — a name bound to a tier — and rules that select one:
profiles: - name: balanced tier: balanced - name: independent-review tier: independent-reviewrules: - when: complexity == T1 primary: balanced review: independent-reviewA rule’s when tests one of five facts: complexity (the item’s T0–T3 label),
visual, sensitive, kind, or label == <name>. The first rule whose condition holds
and that names a resolvable primary decides the tier and the review requirement; every
matching rule’s add and prefer also apply.
A prefer rule that asks for a local or zero-retention endpoint is a hard
requirement: while no such endpoint is configured, the item waits in the queue with
tier_constraint_unsatisfiable rather than running on a hosted model.
When both a repository routing file and the arm’s label rules name a tier, the repository wins.
The same file can also state the rules for dependency updates (the checks a Renovate pull
request must pass and whether a person releases it) in a dependency_updates section; see
Set up dependency updates for Renovate pull requests.