migration-pipeline

migration-pipeline is a cursor rule for Cursor from kubev2v/forklift-console-plugin. It costs 22 tokens per session (3,396 once invoked), scanned A, original, Apache-2.0.

A set of rules describing how Forklift moves virtual machines through migration stages, including preparation, disk transfer, and completion. It covers cold, warm, and conversion migrations and how Kubernetes resources are handled.

In plain words
What is it for?
Use it to understand migration scheduling, VM phases, provider-specific behavior, polling, and the transfer of virtual-machine disks.
Why use it?
It makes the controller's migration process easier to follow when a virtual machine is running, canceled, succeeds, or fails.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/kubev2v/forklift-console-plugin/migration-pipeline
Clone the repo
git clone --depth 1 https://github.com/kubev2v/forklift-console-plugin

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for migration-pipeline

README.md
[![agentmods](https://agentmods.dev/badge/rules/kubev2v/forklift-console-plugin/migration-pipeline.svg)](https://agentmods.dev/rules/kubev2v/forklift-console-plugin/migration-pipeline)
Your own site
<a href="https://agentmods.dev/rules/kubev2v/forklift-console-plugin/migration-pipeline"><img src="https://agentmods.dev/badge/rules/kubev2v/forklift-console-plugin/migration-pipeline.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,396 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00022 $0.03396
Opus 5 $0.00011 $0.01698
Sonnet 5 $0.00004 $0.00679
Haiku 4.5 $0.00002 $0.00340

Measured 4d ago against content hash 455461bc1655, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

migration-pipeline scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/backend/plans/migration-pipeline.mdc · 309 lines

How it starts

The opening of the file, as written. The whole thing — 309 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Migration Pipeline

Analyzed from commit: 412c71822 on 2026-05-04

Source: pkg/controller/plan/migration.go, pkg/controller/plan/kubevirt.go, pkg/controller/plan/migrator/base/, pkg/controller/plan/migrator/ocp/


Migration.Run() — Top-Level Loop

The plan controller creates a Migration struct and calls Run() on each reconcile.

Run()
  ├── init()           Build adapter (Client, Builder, Ensurer), KubeVirt helper,
  │                    Scheduler, and Migrator based on source provider type
  ├── begin()          Mark migration started, ensure target namespace,
  │                    build VM status list and pipelines, call migrator.Begin()
  ├── resolveCanceledRefs()
  ├── for each runningVMs()  →  execute(vm)      // Resume already-running VMs
  ├── loop: scheduler.Next() →  execute(vm)      // Schedule new VMs
  └── end()            Check all VMs completed → set Succeeded/Failed/Canceled

Polling: Run() returns PollReQ = 3s until all VMs complete, then NoReQ = 0.


Migrator Factory

migrator.New(context) in pkg/controller/plan/migrator/doc.go:

Provider Type Migrator Notes
openshift ocp.LiveMigrator Only for Plan.Spec.Type == MigrationLive
openshift base.BaseMigrator For non-live OCP-to-OCP
ec2 ec2migrator AWS EC2 custom migrator
All others base.BaseMigrator vSphere, oVirt, OpenStack, OVA, HyperV

Migrator Interface

Defined in pkg/controller/plan/migrator/base/doc.go:

type Migrator interface {
    Init() error
    Begin() error
    Complete(*plan.VMStatus)
    Status(plan.VM) *plan.VMStatus
    Reset(*plan.VMStatus, []*plan.Step)
    Itinerary(plan.VM) *libitr.Itinerary
    Pipeline(plan.VM) ([]*plan.Step, error)
    Step(*plan.VMStatus) string
    ExecutePhase(*plan.VMStatus) (bool, error)   // true = handled, false = delegate to migration.go
    Logger() logging.LevelLogger
}

Read the full file on GitHub · 309 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 309 lines · 22 tokens per session scan A 455461bc1655

Subscribe to this mod's changes

migration-pipeline is a cursor rule published in the GitHub repository kubev2v/forklift-console-plugin (11 stars, last pushed 5d ago), licensed Apache-2.0. It adds 22 tokens to every session and 3,396 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.