docs(schema): the legacy workflow schema is a fork, not a stale file
The finding
ops/RUNTIME-STATUS.md records that the local SDK "refuses its old swarm/workflows schema before execution." That reads like a migration chore. It is not — two runtimes consume these files and they speak different schema versions.
The local SDK refuses 1.0 outright (rc=2):
spec: unknown key "swarm" (expected version|name|description|cli|agents|triggers|steps|budget)
spec: unknown key "workflows"
spec.version: unsupported version "1.0" (expected "0.1.0")
spec.agents: expected a map of named { cli, model } declarations
spec.steps: expected a non-empty array
Cloud accepts it. On 2026-09-07 the review gate ran agent-relay cloud run workflows/review-swarm.yaml --sync-code --json against the unmodified 1.0 file; it returned run 04da7e48-87ec-4c7a-a1ee-22fd482e1cd1 and was given sandbox b5f3b344-64cc-434d-97f8-f5da71ba4517. It failed later on Daytona CPU quota — not on schema.
Why this PR migrates nothing
Three of the seven legacy files are consumed by cloud right now:
| File | Consumer |
|---|---|
workflows/review-swarm.yaml | .github/workflows/review-swarm.yml:145, every PR |
workflows/watchdog.yaml | live cloud schedule flows-watchdog, cron 0 8 * * *, active |
workflows/drive.yaml | registered via agent-relay cloud schedule (ops/AUTONOMY.md) |
Migrating those makes them parse locally and may make them unrunnable in cloud — which would take out the review gate and the watchdog together. I converted all seven and confirmed they compile, then reverted every one. The diff touches no file under workflows/.
The question that has to be answered before anyone migrates: does cloud accept 0.1.0? I could not answer it from this machine without spending a cloud run, and the Relayfile database is at its 10 GiB cap.
What is here
ops/schema-migration/migrate-legacy-workflow.py — converts one file and refuses rather than guesses. A migration that silently drops a field is worse than one that fails: the flow runs, looks fine, and means something else.
Verified against the real SDK, all seven convert and compile (9, 7, 7, 6, 1, 2, 1 steps). Losses are written into each output as comments:
swarm: {pattern, channel, timeoutMs}— no run-level slot in 0.1.0- agent
preset— persona surface, RFC-0001 decision 9 - agent-step
timeoutMs— 0.1.0 bounds deterministic steps only - a named agent reference becomes the step's
cli— 0.1.0 requiresmodelin a named declaration and the legacy schema never carried one. Verified both ways: an agent step withcliand no agents map compiles; an agents map withcliand nomodelis refused. Inventing a model is exactly the guess this refuses to make.
Lossless: version 1.0 → 0.1.0, step name → id, agent task → instruction, workflows[0].steps lifted to top level. Every legacy file declares exactly one workflow, so that is a lift and not a split — and the script refuses a multi-workflow file rather than guessing how to divide it.
Not merging this myself
No independent signoff is available — the review swarm is one of the things blocked.
🤖 Generated with Claude Code