agentleFS
augments-labsaugments-labs/sdlc-skills/skills/design/migration-strategy/SKILL.md

migration-strategy

Skill1 starsChanged 4 months agoMITView on GitHub

Plans how a rewrite or migration preserves behavior through cutover and recovery. Use when a rewrite, migration, or broad preservation-sensitive transformation is about to be planned or implemented and its behavior, cutover, or recovery cannot be established by ordinary review and gates. Skip bounded changes whose diff, behavior, and recovery remain directly reviewable.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write the contract under which a trusted source becomes the intended target without losing behavior, data, control, or recoverability, and …

    line 8
  2. Very specific:

    Write source facts and transition strategy here.

    line 26
  3. Very specific:

    Write the contract to .sdlc-skills/designs/{{YYYY-MM-DD}}-{{topic}}-migration.md.

    line 84
  4. Very specific:

    Ask through the harness's user-input action when one exists, else print this block.

    line 112
  5. Very specific:

    Only an approved exact version, with predecessor-bound consumers reconciled, proceeds to writing-plans.

    line 113

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Migration Strategy

Write the contract under which a trusted source becomes the intended target without losing behavior, data, control, or recoverability, and get it approved before any target work starts.

When to use

  • The transformation is too broad, partitioned, preservation-heavy, or operationally risky for ordinary feature planning and line-by-line review.
  • Classify before implementing, on risk evidence rather than line count. Answer four questions: can independent humans or gates inspect the result (reviewability); must behavior, compatibility, data, or operations match (preservation); how many owners, consumers, platforms, or modes change (breadth); can data, security, concurrency, resources, cutover, or recovery fail independently (failure surfaces)? If the ordinary route cannot make those surfaces reviewable and recoverable, hold target work until this contract is approved and verification-strategy's entry gates have passed. Record uncertainty as pending classification; reclassify when inputs change.
  • Skip for a bounded change whose behavior and diff remain directly reviewable — bounded reviewable work stays on its ordinary route.
  • Write source facts and transition strategy here. Send target shape to system-architecture, proof to verification-strategy, and tasks to writing-plans.

Step 1: Establish the ground truth

Open assets/migration-contract.md before the steps below; each fills the section it names.

  1. Fill Normative control: source and target revisions, scope, one accountable owner or approval rule. Unsettled target → back to system-architecture first.
  2. Fill Source-fact inventory from observable behavior and contracts, not from the source's structure: behavior, contracts, durable data, consumers, platforms and build modes, operational obligations, known deviations.
  3. Classify every fact in Preservation and deviation contract or Unknown contract: preserved invariant, intentional deviation, or unknown.
  4. Each deviation: attach the approved requirement or decision that owns it. A newly discovered choice goes back to that owner, never settled here.
  5. Each unknown: blocked until proved irrelevant or approved with a compensating gate.

Step 2: Design the transition

  1. Fill Transition and translation: incremental, cutover, or hybrid; translation rules; legal intermediate and mixed-version states; compatibility direction; behavior of unmapped or invalid input.
  2. Fill Representative trial slice: riskiest paths at useful scale over a stable coverage inventory; a disposition for every excluded cell; outcome, expansion decision, failure response. Commands and thresholds belong to the assurance matrix.
  3. Fill Partitions and ownership: a stable shard inventory and ownership rules. Attempts, owners, heartbeats, transfers, and results go to a ledger (append-only, outside the contract), never into the contract.

Step 3: Control what moves underneath you

  1. Fill Source evolution during migration: freeze the source, or run one versioned change-intake contract and external queue. Every post-baseline change gets an identity and an exact terminal disposition.
  2. Fill Mutable live-state catch-up wherever data or work keeps moving: boundary binding through maximum permitted lag and the owning gate. Every post-snapshot write lands in exactly one terminal disposition. "Probably applied" is unreconciled and blocks cutover.
  3. Fill Convergence and failure queue: reconcile the external ledgers; every skip gets an approved disposition. Repeated failure class → pause the affected work, fix the shared rule, re-audit every impacted shard.
  4. Fill Pause, abort, cutover, and rollback, Retained artifacts, and Decommission and retained-source retirement before anyone needs them: pause and abort, cutover authority, rollback target, point of no return, recovery time, fate of the retained source.
  5. Enter decommission only when retention has elapsed, live use is provably zero, its gate passed, and its targets, authority, and recovery are written. A partial, failed, or validation-failed action there blocks release and cleanup.

Step 4: Write, challenge, then decide

  1. Write the contract to .sdlc-skills/designs/{{YYYY-MM-DD}}-{{topic}}-migration.md. Keep stable-ID delta, review, and execution state external. Compute its identity (per template) now; the challengers bind to this path and identity.
  2. Fill assets/migration-challenger.md with that path and identity before approval, then dispatch per dispatching-parallel-agents Step 2 two read-only challengers bound to the contract's Independent challenge contract: one who knows the source and its domain, one who owns operations and data. They challenge fact completeness, mappings and mixed states, intake path and partitions, trial slice and recovery plan.
  3. Record an accountable skip for any role left out. Bind each challenge to an exact attempt with a deadline. A required role blocks approval until its current report on this contract identity reads clear.
  4. Present the contract:

    Migration contract {{path}} — {{strategy}}
    Preserves: {{invariants}}. Trial: {{slice}}. Pause/abort/rollback: {{rules}}. Retirement: {{plan}}.
    
    1. Approve this exact version for planning
    2. Request changes
    3. Reject the strategy
    4. Cancel
    
    Recommendation: {{option}} — {{one sentence}}.

    Ask through the harness's user-input action when one exists, else print this block; end the turn; clarifying-intent owns what closes it.

  5. Only an approved exact version, with predecessor-bound consumers reconciled, proceeds to writing-plans.

Gotchas

  • Code review judges an exact candidate against an approved contract. Before approval neither exists, so a challenge routed to review has nothing to bind to and returns no verdict.
  • The trial slice's coverage inventory (Step 2) is only as stable as the source is frozen or intake-controlled (Step 3) — a new consumer, platform, or path that lands mid-migration silently turns an already-dispositioned cell into an unaudited one, so “every excluded cell has a disposition” can be true at the trial and false by cutover without either step's owner noticing.
  • “Live use is provably zero” (Step 3) is usually checked against recent traffic, which a periodic consumer — a monthly batch job, an annual report — can pass while it is simply between runs. Decommissioning on that reading retires a source a consumer from Step 1's inventory is still going to call.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.