Skip to content

Orgabot is in private alpha. Request access, or join our Discord.

← All documentation
Using Orgabot

CI/CD migration: plan, convert and cut over safely

Dry-run a registry-wide CI move, convert workflows into reviewable bundles, shadow-test, then cut over or roll back one target at a time.

Last updated

What the migration does

orgabot ci-migrate moves the CI of every registered project onto Orgabot's provider-neutral pipeline, one target at a time. A target is one job of one workflow (for example ci/test is the test job in .github/workflows/ci.yml).

Three rules hold throughout:

  • The registry is the scope. The plan covers every project in the installation registry, including projects hosted outside GitHub and projects with no CI at all. A repository the connection can see but nobody registered is never touched. An unreadable registry stops the plan instead of reading as an empty portfolio.
  • The legacy workflow stays authoritative until that target's explicit cutover. Conversion only adds files; it never edits or deletes an existing workflow.
  • Missing approvals keep the migration open. Every essential approval is a concrete human task, and the migration does not report complete while one is open.

Lifecycle of a target

Each target moves through inventoried, planned, configured, shadow_validated, cutover and verified. Three more states are explicit rather than silent: blocked (with the reason), exception (an approved remote backend is the final placement) and no_ci (a recorded no-pipeline disposition).

StateWhat moves it there
plannedci-migrate apply recorded the plan
configuredthe generated files are observed on the default branch
shadow_validateda shadow run agreed with the legacy check for the same revision
cutoverthe cutover change is observed on the default branch
verifieda post-cutover run passed

States only move on observed facts. A conversion or cutover pull request that never merged did not happen, and the ledger says so.

Inventory the registry

Before planning, take the inventory: one row for every CI target of every registered project, plus one row for each registration that owns no target.

orgabot ci-migrate inventory                       # summary, exits 1 while incomplete
orgabot ci-migrate inventory --markdown            # the reviewable table
orgabot ci-migrate inventory --json --out inv.json # the machine-readable manifest
orgabot ci-migrate inventory --ingest --live       # read run history, storage and required checks first
orgabot ci-migrate inventory --record              # store this snapshot for the next comparison
orgabot ci-migrate inventory --ingest --live --record --quota-reserve 500
                                                   # per repository: progress lines, a resumable cursor, stops above the quota reserve

With --record, collection is saved after each repository. If the run is interrupted, or stops because the shared GitHub quota fell to the reserve (--quota-reserve, default 500 requests), the completed repositories are kept: rerun the same command and it resumes at the repository it names. The cursor is cleared once a full collection is recorded.

Each row shows the project, repository and workdir, the target, its current and proposed backend, the proposed routing (portable local Docker, validated Actions compatibility, a native platform worker, or a retained hosted exception), the capabilities it needs, its trust and identity (environment, OIDC, secret names, signing identities), the checks it produces and what it publishes, its baseline, its migration issue, its ledger status and its latest evidence. The JSON manifest also carries the full matrix and the runner class of every instance, every action and composite action (and whether it is pinned), services and containers, artifacts, and local scripts. It never contains a secret value or a local path.

What the inventory reconciles:

  • The registry snapshot. The header names the registry revision, the same digest orgabot project list --json reports. An unreadable or corrupt registry stops the command; it is never shown as an empty portfolio.
  • The ledger. A discovered target with no migration record, and a record for a job that no longer exists, are both listed as findings.
  • Coverage. A row needs a migration issue (ci-migrate cover, or the task ci-migrate apply files) or a recorded disposition (ci-migrate no-ci, or an approved exception). An uncovered row prints the exact command to fix it. A target in a covered project inherits that project's issue, so a new workflow in a covered project does not need a second task.

The baseline comes from the job history orgabot optimize ci-ingest records, over a stated window (--since, 30 days by default); --ingest reads it for every registered GitHub repository first. Counts, outcomes, retries and wall-clock minutes are measured. Cost is labelled: an estimate uses public per-minute list prices, never an account rate; self-hosted minutes are not priced; billed cost is always shown as unavailable. A repository with no history in the window shows an unavailable baseline, not zero. Equivalent re-executions come from the same comparison orgabot optimize ci-duplicates uses, and a job that runs one of the project's registered verify commands verbatim is flagged so you can check it per commit with orgabot verify cloud-offload.

With --record, the next run reports added, removed and moved registrations, added, removed and changed workflows, and added and removed targets. The inventory reports complete only when every registration is inventoried and there are no findings.

Plan with a dry run

orgabot ci-migrate plan            # every registered project
orgabot ci-migrate plan premail    # one project
orgabot ci-migrate plan --json     # machine-readable, including each diff

A plan is always a dry run. It writes no file, files no issue and launches nothing, and still shows every target, its placement, its blockers and the human tasks it will create. To plan from an inventory file instead of the live registry, pass --manifest <file>: each entry is checked against the registry again, entries that are no longer registered are refused, and registered projects the file left out are added back.

Apply a batch

orgabot ci-migrate apply --all --yes --concurrency 2
orgabot ci-migrate apply --resume --yes        # continue the last unfinished batch

apply needs --yes. For each project it checks again that the project is still registered at the same root, then:

  1. records the plan in the migration ledger;
  2. writes a reviewable conversion bundle under ~/.orgabot/ci-migration-bundles/<project>/<bundle>/: the provider-neutral pipeline (.orgabot/ci/pipeline.json), one script per target, a remote wrapper only where policy keeps a target on GitHub runners, a unified diff, policy changes, and the required-check and environment steps a human performs;
  3. files one linked conversion task in the tracking repository (--tracking-repo, default MattSenter/orgabot, linked to --epic, default #2514) when no seeded work package covers the project;
  4. with --launch, starts the ordinary mission for that task, which opens a draft pull request through the usual verify, review and merge gates;
  5. reconciles every target with what the default branch now contains.

A batch records its progress before the first project and after each one, so a failure (an expired grant, a network drop) leaves the rest of the batch intact and --resume retries only what did not finish. Every step is idempotent: a rerun reuses the recorded issue, branch, pull request and mission and never creates a second one.

Seeded work packages

A project counts as covered only when that coverage is recorded against its registry id:

orgabot ci-migrate cover weatherling MattSenter/orgabot#2539

Coverage is never inferred from a product name in an issue title. Record coverage for the seeded issues before the first apply, or each of those projects gets its own conversion task too.

Orgabot finds a task it filed earlier by a hidden marker in the issue body. It adopts a marked issue only when the issue is open and was opened by an Orgabot identity (a configured self login or a GitHub App) or an author on your issue allowlist. Any other marked issue is a collision: apply refuses and names the issue number. Close that issue, or record the real task with orgabot ci-migrate cover.

What converts, and what becomes a blocker

Workflow contentConversion
run: stepscopied into the target's script, in order, with working-directory kept
actions/checkoutthe immutable source snapshot of the revision under test
setup-node, setup-python, setup-go, setup-java, Rust and Swift toolchain setupthe placement's toolchain; the requested version is recorded for parity
hashicorp/setup-terraform, google-github-actions/setup-gcloud, ruby/setup-rubythe placement's toolchain (terraform, gcloud, ruby are declared as requirements); the requested version is recorded for parity
google-github-actions/auth, aws-actions/configure-aws-credentials, azure/login with an exact ${{ secrets.NAME }} for each credential fieldtranslated; the credential is a CI secret store ref (orgabot ci secret set) released by the credential scope only at the execution boundary. Literals, input expressions, empty values and partial AWS key pairs stay blocked
the same three actions using OIDC or federationa credential source approval task (see below), not a generic blocker
apple-actions/import-codesign-certsa tracked blocker that waits on native signing delivery (issue 2518); signing material is never exported to a job
a local reusable workflow call (uses: ./.github/workflows/x.yml) with a single-job calleeinlined into the target, which keeps the caller's job id; the caller must forward each callee secret explicitly (secrets: inherit is refused) and permissions are the intersection of caller and callee ceilings
service containers with a literal image:carried on the target for the local Docker adapter, with a task to pin the image and declare a health check
actions/cache, Swatinem/rust-cacheno-op; local backends keep their own caches
upload-artifact, download-artifactthe run's local output directory
github.sha, github.ref, github.workspace, runner.os, env.XORGABOT_CI_* variables the runner exports
any other action, other ${{ }} expressions, reusable workflows that cannot inline, services without a literal image, OIDC tokens requested outside a cloud-auth actiona tracked blocker on the target; the job stays in the legacy workflow
a GITHUB_TOKEN write permission (contents: write, security-events: write, write-all...)a tracked blocker for a local placement: a local run has no repository-scoped token and would act with a broader host credential
needs: on a job that stays in the legacy workflowa tracked blocker: the dependent job stays with its dependency, so a release and its follow-up steps keep one trigger owner
GitLab CI, CircleCI, Jenkins, Azure Pipelines, Bitbucket, Travis, Cloud Buildrepresented and tracked as a blocker; no conversion path yet

A blocker never deletes anything. It names the dependency it waits on (for example the local Actions compatibility adapter) and the target keeps running exactly where it ran before.

Cloud credentials and the OIDC approval flow

Orgabot never simulates a GitHub-issued OIDC token, and never quietly swaps workload identity federation for a long-lived credential. When a local target uses google-github-actions/auth, aws-actions/configure-aws-credentials or azure/login through federation (a workload identity provider, role-to-assume, or an Azure client id with no secret), the migration:

  1. keeps the target blocked, with a reason that names the action and the ref it needs;
  2. files an essential credential_source_approval task. It names the exact ref (for example my-app.gcp-a1b2c3d4e5f6-credential, derived from the provider plus the full target id and environment so two deploy jobs cannot share a store slot), the credential kind (deploy_credential for a release or deploy job, otherwise verification_secret), the scope (project, target and environment), and the acceptable sources: a scoped service-account key, or an approved impersonation chain for GCP; scoped access keys or an approved role-assumption chain for AWS; a scoped service-principal secret or an approved managed-identity chain for Azure;
  3. translates the action only when conversion observes both parts for that structured request: the organization lists the ref in its long-lived credential exceptions for this exact kind and scope, and the value is stored with orgabot ci secret set <ref> (stdin or a hidden prompt, never the repository). Until the planner and related paths pass a structured approval callback, federated actions stay blocked (fail closed).

A static cloud-auth field (credentials_json, aws-access-key-id / aws-secret-access-key, creds or client-secret) must be an exact ${{ secrets.NAME }} reference. A literal JSON blob, an ${{ inputs.* }} expression, an empty value, or a partial AWS key pair is a tracked blocker, not a silent translate.

The translated target records the ref and scope under credentialSources in the pipeline. The value is released by the credential scope only at the execution boundary, and only to a job whose trust class and scope match. A job that requests an OIDC token outside these actions stays a generic blocker.

Reusable workflows and services

A job that calls a workflow in the same repository (uses: ./.github/workflows/x.yml) is inlined when the callee declares workflow_call and has exactly one job. The target keeps the caller's job id, so cutover, needs and required check names still point at the legacy file. The caller's secrets: map must forward every secret the callee declares or references; each mapping value must be an exact ${{ secrets.NAME }} reference. secrets: inherit is refused. GITHUB_TOKEN permissions on the inlined job are the intersection of the caller's ceiling and the callee's request, so a callee cannot widen write or OIDC scopes the caller did not grant. A callee with several jobs, a nested call, an unreadable file or a workflow from another repository stays a blocker with the specific reason. Callee inputs written as ${{ inputs.x }} are untranslated expressions and block the target.

The local Docker adapter runs service containers. A service with a literal image: is recorded on the target and a task asks you to pin the image to a digest and declare its health check; the adapter reaches a service by its network alias by default. When a job has exactly one service container and its steps reach it as localhost or 127.0.0.1 (as they do on a hosted runner), the planner accepts the job and the adapter runs it in that service's network namespace, so the loopback address is the service. The service stays unpublished and keeps the same approval model: an image pinned by digest, a declared health check, no published ports and no widened capabilities. A new image is never approved automatically. A job with more than one service that is addressed on loopback stays a tracked blocker, because two services cannot share one loopback; address each by its name instead. Shadow validation proves the result, and a shadow run reaches its service differently: the job shares the service container's network namespace and connects on 127.0.0.1 (see "Service containers" under shadow validation below).

Declared requirements

Every target in the generated pipeline carries a requirements block read from the legacy job: the architecture its hosted runner label pins (macos-15 is arm64, ubuntu-latest is x64), the toolchains its steps invoke (xcode, swift, node, ruby...), and the platform features it actually uses (gpu, native_ui_session, windows_installer, github_oidc). A feature is declared only when the job exercises it. A job that compiles a Metal app with xcodebuild build needs Xcode on a Mac, but not a GPU or a logged-in UI session; a job that runs xcodebuild test needs the UI session. Placement and preflight match these against probed facts, so a native build is never reported as run by a Linux container.

A build that uses a release build configuration (swift build -c release, swift test -c release, xcodebuild -configuration Release or cargo build --release) keeps its release reading, so shadow validation never runs it. Each of these runs repository code that Orgabot cannot see from the workflow or confine. SwiftPM compiles and runs Package.swift and its build-tool plugins, and its own sandbox does nothing on Linux. swift test also runs the package's test binaries as ordinary programs with your permissions. An Xcode project can carry Run Script build phases and scheme actions that run only in the Release configuration. cargo automatically loads repository files such as .cargo/config.toml and rust-toolchain.toml that can name a program for it to run. Shadow validation runs natively with your permissions, so these builds stay protected until an enforced sandbox confines them. A Debug swift build, swift test, xcodebuild build or xcodebuild test is unaffected. A real release still reads as one from its own signals, such as fastlane, a store upload or a tag trigger with secrets. A job that only lists build output (for example ls .build/release/) after harmless commands is still a check.

Placement and policy

Policy resolves organization, then project, then target:

orgabot ci-migrate policy show --project premail
orgabot ci-migrate policy set --preferred local_docker,native_macos --hosted off --lock hostedAllowed
orgabot ci-migrate policy set --project premail --shadow-runs 4
  • The default is local-first: local Docker, then native workers, then local Actions compatibility. Hosted execution is not authorized by default.
  • An organization can lock preferred, hostedAllowed or fallback. A narrower override of a locked field is refused and reported, never silently applied.
  • Forbidden placements and required approvals only accumulate, and shadow budgets only shrink, as scope narrows.
  • A target whose platforms no authorized backend covers is unplaced: a capability gap with a human task to enroll a worker or approve an exception.

Supported backends today

PlacementStatus
local_dockerused for shadow runs when Docker is installed
native_macos, native_linux, native_windowsthe host's own operating system; other machines need worker enrollment
local_actions_compatreported as a gap: the compatibility adapter has not shipped
github_self_hosted, github_hostedonly through an approved exception or --hosted on; dispatched through a generated remote wrapper

Local Actions compatibility is not GitHub's service. It has no OIDC parity, and the migration never fakes an OIDC token or swaps an identity-bound signing setup for a local credential.

The Premail hybrid example

Premail's portable checks run locally while its Windows installer build and Azure-backed signing stay on GitHub-hosted Windows:

orgabot ci-migrate plan premail
orgabot ci-migrate exception premail release/release --placement github_hosted \
  --reason "Windows MSI/NSIS build and Azure OIDC signing stay on hosted Windows" --approved-by owner
orgabot ci-migrate apply premail --yes

After the exception is approved, the plan places the security audit, test and Linux targets locally, the macOS bridge build on the native macOS worker, and the release job in a remote wrapper that keeps its original steps and signing identity. The wrapper has only a workflow_dispatch trigger, so it cannot fire alongside the legacy release workflow. Release, signing and deploy targets are never shadow-run; they move only after their approval tasks carry evidence and the joint release validation is recorded with ci-migrate evidence.

Shadow validation and resource limits

orgabot ci-migrate shadow premail security-audit/tests

A shadow run executes the target's generated script against an immutable snapshot of one revision and compares it with the legacy check run for the same commit.

  • No side effects. Release, deploy, signing and publish targets are refused before anything runs. No secret is passed in; a target that references one runs without it, and the evidence lists what was withheld. HOME is a throwaway directory, never yours.
  • Bounded compute. Each run has a wall-clock cap (default 30 minutes), each batch has a run cap (default 10), and runs on one host are serialized (default 1). Container runs are limited to 4 CPUs, 4 GB of memory and 1024 processes.
  • Your Mac's load is visible inside the container. On Docker Desktop a container reads the VM's load, which stays near idle while your Mac is saturated. A container run therefore gets your Mac's current load as a read-only file (/run/orgabot-host-load/load.json, named by ORGABOT_CI_HOST_LOAD_FILE). Wall-clock budget tests use it to report a run on a saturated Mac as "evidence unavailable" rather than a regression. It never relaxes a budget, and a run that passes still passes.
  • Evidence, not confidence. Parity is recorded only from an observed exit code and an observed legacy result. When the legacy result cannot be read, parity is unknown, never a match.
  • A failure is shown as a failure. A failed run exits non-zero, prints the tail of the run's output, and names the full log, which is saved under ~/.orgabot/ci/shadow-logs/. The same tail and log path go into the ledger evidence.
  • Docker down is not a result. If Docker is not running, the command says "Docker unavailable" and records that nothing ran. It is never recorded as a failed run or compared with the legacy result.
  • Service containers. A job's service containers (for example PostgreSQL) are started from a digest-pinned image on a private network, and removed afterwards. The job runs inside the service container's network namespace, so it reaches the service on 127.0.0.1 and the connection URL it receives carries no password (the throwaway PostgreSQL sidecar uses trust auth and a database named orgabot_test). That is the shape the framework's throwaway PostgreSQL check accepts, and the check itself is unchanged. The sidecar's readiness check dials the same TCP loopback port the job will use, so the PostgreSQL image's socket-only initialization phase is never mistaken for a ready server. A service without an approved pinned image, or a job declaring more than one service, is refused before anything runs. Approved images are postgres:17-alpine and pgvector/pgvector:pg16, each pinned by digest. For the pgvector image the sidecar also creates the highwire role and database that Highwire's database job connects to.
  • A real git checkout. The snapshot has a .git directory with HEAD at the revision under test (detached, no remote), so a suite that calls git ls-files behaves as it does on GitHub.
  • GitHub's workflow-command files. A script that writes GITHUB_ENV, GITHUB_PATH, GITHUB_OUTPUT or GITHUB_STEP_SUMMARY gets those files for each step, and what a step writes to GITHUB_ENV and GITHUB_PATH carries to later steps. The step summary is printed at the end of the run. Writing a name GitHub also refuses (GITHUB_*, RUNNER_*, NODE_OPTIONS) stops the step.
  • Workflow inputs. A workflow_dispatch or workflow_call input uses the value the runner supplies, else its declared default (a boolean with none is false, an optional input with none is empty). A required input with no default blocks the shadow run by name before anything starts, and a shadow run never makes up a value for it. Supply each one yourself with --input name=value (repeat the flag) or --inputs-file inputs.json (a JSON object of strings), for example orgabot ci-migrate shadow orgabot orgabot-target-dispatch/validate --input operation_id=shadow-1 --input target=framework-windows-typecheck .... Only an input the job actually reads is accepted, and the evidence lists the names you supplied, never the values.
  • The generated script stays out of your source tree. The job script runs from outside the workspace (read-only in a container), so a project check that hashes or lists its own sources never sees an extra file.
  • Artifacts from an upstream job. When a job downloads an artifact that a job it needs uploads, the shadow run first runs that upstream job (side-effect jobs are still refused), collects the files its path: patterns match, and restores them at the download path before the target starts. If the upstream job fails or produces nothing, the target is not run and the command names why. The upstream run counts against the batch run cap.
  • Approved images. A container run uses only the digest-pinned images Orgabot approves. Besides the default runner image there are two more, chosen from what the job declares: a job that sets up Rust and installs system packages with apt gets the image with the Tauri Linux build packages and a Rust toolchain, and a job that reads a JAVA_HOME_17_X64 variable gets the image with JDK 17 and Gradle. Naming any other image with --image is refused.
  • Tools the job declares. dtolnay/rust-toolchain gets a Rust toolchain, and a JAVA_HOME_<n>_X64 variable GitHub's runner images predefine gets a JDK of that major version. An installed one is used; otherwise a shadow run downloads it into a throwaway directory it owns. Nothing is installed with elevated privileges.
  • No privilege escalation. sudo apt-get install is replaced by a check that the packages are already present. If any are missing the run stops, names them, and is recorded as unvalidated (parity unknown), not as a failure. Any other sudo command blocks the target at planning time.

Cutover also needs failure-gate evidence: a shadow run that failed where the legacy check failed, proving the new gate can fail.

Cut over and roll back

orgabot ci-migrate rollback-test premail security-audit/tests
orgabot ci-migrate cutover premail security-audit/tests            # write the reviewable change
orgabot ci-migrate cutover premail security-audit/tests --launch   # and deliver it as a mission
orgabot ci-migrate verify premail security-audit/tests
orgabot ci-migrate rollback premail security-audit/tests

Cutover is refused unless parity, failure-gate and a tested rollback are on record, the legacy file still matches the planned rollback revision, no blocker or essential approval is open, and no other target of the same project is mid-cutover. Only one trigger owner moves at a time.

The cutover change disables only that job in the legacy file (if: ${{ false }} with a marker that keeps the original condition), so the rollback restores the file byte for byte. Both changes are written as reviewable files and delivered through an ordinary mission. The ledger moves only when apply observes the change on the default branch.

With --launch, Orgabot files a cutover (or rollback) task in the tracking repository carrying the exact one-line diff, links it to the epic, and launches the ordinary issue-fix mission for it: role routing, verification, independent review and a draft pull request all apply. It needs the same autonomy policy as apply --launch. Running the command again for the same request reuses that task and mission instead of filing or launching a second one. A launch that is queued or waiting for a role assignment is reported as held, not as running.

Withdrawing a pending cutover (rollback before it merged) after --launch tells you which mission and task delivered it: cancel that mission and close its pull request. If it merges anyway, drift reports the job as an unowned trigger.

Human tasks

orgabot ci-migrate task list
orgabot ci-migrate task done '<task-id>' --evidence https://github.com/owner/repo/settings/branches
orgabot ci-migrate no-ci plain-site --reason "static site; Orgabot verification covers it"

Tasks cover required checks, environment protection, signing and deployment approvals, secret references, scheduled duties, exceptions and no-CI dispositions. Closing one requires evidence. A required-check task is done after verification, when the new check is required and the legacy one is retired.

New projects and drift

orgabot project add onboards every new registration: its targets are recorded under the organization's policy, the legacy workflows keep owning them, and capability gaps are printed at registration time.

orgabot ci-migrate drift              # exits 1 on a critical finding
orgabot ci-migrate drift --onboard    # bring unmanaged registrations and targets under control

Drift reports a registration with no migration record, a new workflow job outside migration control, a legacy file edited since planning, a cut-over job whose legacy trigger fires again (duplicate triggers), a legacy job disabled with no cutover pending (an unowned trigger: nothing runs it), and records for a project that is no longer registered.

Once a migration has started (the ledger has any record), the recovery sweep runs the same check about once an hour. It onboards new registrations and new workflow targets automatically, writing only the ledger and a bundle: no issue, no mission, no repository change. It logs each new set of critical findings once and keeps the latest result in the ledger, where orgabot ci-migrate status shows it under Background drift check. Duplicate triggers, edited legacy files and unowned triggers are reported, never fixed automatically, because each needs a decision. An install that never started a migration is left alone. You can still run ci-migrate drift as a check that fails a pipeline.

Least-privilege setup

  • Planning needs only read access to the registered roots.
  • apply writes the ledger and bundles under the Orgabot home. Filing conversion tasks uses the governed issue connector (issues read and write on the tracking repository).
  • --launch requires the project's autonomy policy to allow commits and pull requests, and the mission still passes every verify, review and merge gate.
  • Nothing in ci-migrate merges, deploys, changes branch protection, or edits repository settings. Those stay human tasks.

Offline behavior

Planning reads local files and works offline. Reconciliation fetches each default branch when it can; offline, it reads the last fetched view, which can only be behind, so a transition is delayed and never faked. Filing tasks and reading legacy check results need the network; without it a batch records the failed step and --resume continues later.

Troubleshooting

SymptomCause and fix
the project registry could not be readthe registry store is unavailable; nothing was planned. Repair it and rerun
a project shows failed at revalidateit was unregistered or its root moved since the manifest was read; re-plan
cutover refused: ... re-plan firstthe legacy workflow changed since planning; run apply again so the rollback revision is current
parity is unknownthe legacy check run for that commit could not be read; pass --revision for a commit with a completed legacy run
a target stays plannedits generated files are not on the default branch yet; merge the conversion pull request, then apply again
a target went blocked after cutoverits legacy trigger was re-enabled; roll back or restore the cutover
unowned_trigger in drifta legacy job was disabled with no cutover pending; restore its original if: or re-plan and cut it over through the gates
a launched cutover mission shows heldit is queued behind the launch throttle or waiting for a role assignment; answer the role prompt, and the same mission continues
another process holds the CI migration ledgera second batch is running; wait for it or resume later

Rollback

Rolling back a target restores its legacy job exactly and returns trigger ownership to the legacy workflow once the change is observed on the default branch. The rollback stays available until the target is verified and its required-check task is closed, and the legacy file is never deleted, so a rolled-back target can be validated and cut over again later.