Repository navigation
Description
Problem
The review check has been failing on every open PR — #451, #455, #441 all fail identically, in the swarm's own posting step rather than on any code verdict:
Fetching patch for run <uuid>...
No changes to sync — the workflow did not modify any files.
##[error]Process completed with exit code 1
Reproducible across reruns with fresh swarm ids, so it isn't flaky infrastructure. Because it fails on every PR, it carries no signal: it can neither approve nor block, and in practice it gets merged over. .github/workflows/review-swarm.yml is disabled on pull_request until this is fixed — it still runs on workflow_dispatch.
Why it should move to v2
The swarm is built on RelayFlow v1, which is now deprecated in the CLI. review-swarm.yml drives it through:
response=$(agent-relay cloud run \
../gate-files/workflows/review-swarm.yaml --sync-code --json)
...
agent-relay cloud status "${{ steps.launch.outputs.run_id }}" --jsonagent-relay cloud schedule / schedules now warn as deprecated (relay#1783), and the v1 surface is only kept alive because v2 has no hosted scheduling yet. Repairing the v1 wiring would be work spent on a surface we intend to retire.
The failure itself points the same way: the whole design assumes the swarm's product is a patch to sync back, so a review that correctly proposes no code changes ("the workflow did not modify any files") is treated as a failure. A v2 flow can return a structured verdict instead of a diff, which is what a review gate actually wants.
What v2 gives us
- A flow authored in TypeScript with a typed result, rather than a YAML workflow whose only output channel is a patch
f.humanfor the cases where a reviewer genuinely needs a person — withflows answerto resolve the wait (flows#451)- The v2 kernel's durable suspension, instead of a 75-minute job polling
cloud statuson a 65-minute budget - One deployed artifact via
flows deploy, instead of thegate-filescheckout-from-main dance that exists to keep a PR from editing its own gate
Scope
- Author
review-swarmas a v2 flow (.flow.ts), returning a verdict object rather than a patch - Deploy it to Cloud and invoke it from CI via the v2 surface (
agent-relay flows ...), notagent-relay cloud run - Preserve the wrapper-guard invariant: a candidate PR must not be able to weaken the gate that judges it (
review-swarm-wrapper-guard.ymlstays onpull_request_targetreading from base) - Re-enable the
pull_requesttrigger once the v2 path is green - Retire the v1 workflow and its
swarm-*.shscripts after the cutover
Context
Found while shipping the mounted product command groups. agent-relay file, agent-relay flows, and agent-relay sessions are live as of @relayfile/sdk@0.10.64, @relayflows/sdk@2.0.19, ai-hist@0.18.1.
🤖 Generated with Claude Code
Activity
AgentRelayBot commentedon Sep 18, 2026
Status: the swarm is now disabled at the platform level, not in the tree.
No
reviewcheck runs on new PRs. Re-enable withgh workflow enable "Review swarm".The first attempt (#471) tried to park it by switching the trigger to
workflow_dispatch, and the wrapper guard rejected it — correctly:swarm-wrapper-guard.shfails any PR touching.github/workflows/review-swarm.yml, with no bypass. A PR that disables the gate is precisely what that guard exists to stop, so it was closed rather than admin-merged over.Two consequences for this issue's scope:
The disabled state is invisible in the tree. Someone reading
review-swarm.ymlsees a workflow that looks live. Re-enabling — or deleting the v1 workflow outright once v2 ships — is part of landing this.The v2 cutover has the same constraint. Whatever replaces this gate cannot be introduced by a PR that also edits
review-swarm.yml, because the guard will reject it. Sequence the cutover so the v2 workflow lands as a new file first, then retire the v1 one in a separate change (with the guard updated or removed at that point).🤖 Generated with Claude Code
AgentRelayBot commentedon Oct 5, 2026
Triage 2026-10-05: SUPERSEDED — the v2 port this issue asks for has shipped. #476 (9636bda) added
workflows/pr-review.flow.ts, a TS v2 flow deployed to Cloud as a pull_request listener with a structured verdict comment (refined in #479 and #481). It now delegates to Babysitter (d9a4df4). The "Review swarm" GitHub workflow is disabled_manually. What remains is retiring the v1 files:.github/workflows/review-swarm.yml,.github/workflows/scripts/swarm-*.shandworkflows/review-swarm.yaml. That touches workflow files, which garden agents can't push, so please track it as a separate maintainer-driven cleanup issue.