Migration-And-Backward-Compatibility

Migration-And-Backward-Compatibility is a cursor rule for Cursor from Fullive-AI/Anima. It costs 307 tokens per session, scanned A, original, Apache-2.0.

A set of rules for changing stored data, configuration, APIs, messages, or upgrade paths without unexpectedly breaking existing users or systems.

In plain words
What is it for?
Use it when changing databases, configuration, API responses, event messages, caches, files, settings, or integrations; add migration and compatibility tests when needed.
Why use it?
It reduces failures caused by incompatible formats or contracts by favouring additive changes, transition periods, and explicit migrations.

Cursor rule for Cursor

About the project

Anima is an open-source local-network runtime that gives household hardware an AI layer for sensing environments, remembering preferences, planning actions, and controlling devices through adapters. It is intended for intelligent devices such as lights, air conditioners, humidifiers, air purifiers, and speakers, with a dashboard, REST API, and CLI for control and extension. The catalogue entries are skills, rules, and instructions for working with Anima.

Fullive-AI/Anima · 1,049 stars · on GitHub

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/fullive-ai/anima/migration-and-backward-compatibility
Clone the repo
git clone --depth 1 https://github.com/Fullive-AI/Anima

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-And-Backward-Compatibility

README.md
[![agentmods](https://agentmods.dev/badge/rules/fullive-ai/anima/migration-and-backward-compatibility.svg)](https://agentmods.dev/rules/fullive-ai/anima/migration-and-backward-compatibility)
Your own site
<a href="https://agentmods.dev/rules/fullive-ai/anima/migration-and-backward-compatibility"><img src="https://agentmods.dev/badge/rules/fullive-ai/anima/migration-and-backward-compatibility.svg" alt="Measured on agentmods" height="20"></a>
Per session 307 This file is loaded in full into every session.
When invoked 307 The same file — it is already loaded in full.
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.00307 $0.00307
Opus 5 $0.00153 $0.00153
Sonnet 5 $0.00061 $0.00061
Haiku 4.5 $0.00031 $0.00031

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

Security

Grade A, and why

Migration-And-Backward-Compatibility 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 5d 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/Migration-And-Backward-Compatibility.mdc · 63 lines

What it actually says

Any change that affects stored data, config formats, message contracts, or upgrade paths must preserve compatibility or manage migration explicitly.

Core rule

Prefer backward-compatible evolution. If backward compatibility is not possible, implement a safe migration path.

Compatibility-sensitive areas

  • persisted data
  • database schemas
  • config structures
  • API contracts
  • event schemas
  • message payloads
  • topic structures
  • cache formats
  • file formats
  • serialized state
  • user settings
  • integration boundaries

Preferred approach

  • make additive changes first
  • support old and new formats during transition when feasible
  • avoid instant hard breaks
  • preserve existing behavior for existing consumers unless the task explicitly requires change

If a migration is needed

Do the following where applicable:

  1. identify what old state exists
  2. define the new target state
  3. provide a transition path
  4. update readers and writers consistently
  5. preserve idempotency when possible
  6. add migration or compatibility tests
  7. update docs and examples

Breaking compatibility

Only break compatibility when necessary.

If required:

  • minimize the blast radius
  • update all known dependents
  • document the change clearly
  • note any manual migration steps
  • avoid partial migration states that are hard to recover from

Avoid

  • silently changing formats
  • upgrading only one side of a producer-consumer boundary
  • assuming all existing data already matches the new model
  • deleting compatibility code before consumers are updated
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. 5d ago First seen · 63 lines · 307 tokens per session scan A 73f0f553312e

Subscribe to this mod's changes

Migration-And-Backward-Compatibility is a cursor rule published in the GitHub repository Fullive-AI/Anima (1,049 stars, last pushed 15d ago), licensed Apache-2.0. It adds 307 tokens to every session, about $0.0015 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.