# Roblox Persistence Migration Testing

Design and test versioned Roblox data migrations with deterministic transforms, isolated fixtures, retries, and rollback plans. The deliverable includes schema versions, migration matrix, test cases, isolation proof, retry/session behavior, rollback plan, and checks actually run.

**Canonical URL:** https://skillshunter.net/skills/discovered-6a86a6b732c87910620ee90a4e39c7492304c3bb98a404b8

**JSON URL:** https://skillshunter.net/api/public/v1/skills/discovered-6a86a6b732c87910620ee90a4e39c7492304c3bb98a404b8

**Markdown URL:** https://skillshunter.net/skills/discovered-6a86a6b732c87910620ee90a4e39c7492304c3bb98a404b8.md

**Instructions download URL:** https://skillshunter.net/skills/discovered-6a86a6b732c87910620ee90a4e39c7492304c3bb98a404b8/download

**Category:** Software & Development

**Source URL:** https://github.com/Aziz24666/Codex_Roblox_skills/blob/eb2be117f63d6442c0f9b6d9d38bbdd7adf9374c/v15/codex-skills/roblox-persistence-migration-testing/SKILL.md

**Source commit:** eb2be117f63d6442c0f9b6d9d38bbdd7adf9374c

**Listing approved at:** 2026-11-30

**Created at:** 2026-11-29T10:59:09.000000Z

**Updated at:** 2026-11-30T06:51:34.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### Editor's note

Before starting, research the current official Roblox documentation for the exact APIs and limits being used. Record the source and date in project research notes. Define a versioned schema and explicit migration path from every supported prior version.

### When to use it

- Testing synthetic fixtures for historical versions of player profiles
- Designing migration paths for DataStore keys and persistent schemas
- Testing retry, throttling, and session conflict behavior in isolated environments
- Verifying idempotency of migration operations
- Creating rollback plans for data migrations

## Skill instructions

---
name: roblox-persistence-migration-testing
description: Design and test versioned Roblox data migrations with deterministic transforms, isolated fixtures, retries, and rollback plans.
---

## Mandatory current-source research gate

Before substantive implementation, perform fresh online research using the current official Roblox Creator Hub/API documentation and relevant Roblox platform updates, deprecations, security guidance, or release notes. Check upstream documentation for any external tool or framework involved. Compare viable approaches when an API, architecture, or platform behavior is version-sensitive. Record exact source URLs, access dates, verified claims, alternatives, decisions, and the verification plan in `research/decisions/`. Re-open sources for each new task; previous research is background, not a substitute for current verification. Never invent a citation or claim a source was checked when it was not. If a critical platform or tool claim cannot be verified, mark the affected implementation `BLOCKED — RESEARCH NOT VERIFIED` rather than guessing.

# Roblox Persistence and Migration Testing

## When to use
Use when changing saved player profiles, DataStore keys, persistent schemas, ordered data, session handling, or migration code. Do not access live player data for convenience.

## Procedure
1. Identify the persistence service, key format, schema version, serialization format, session/lock strategy, retry policy, and read/write call sites.
2. Research current official Roblox documentation for the exact APIs and limits being used. Record the source and date in project research notes.
3. Define a versioned schema and explicit migration path from every supported prior version.
4. Keep migration functions deterministic and side-effect free where practical. Separate transformation from the final persistence write.
5. Define behavior for missing, malformed, partially written, newer-than-supported, and unknown-version records.
6. Test synthetic fixtures: fresh profiles, every supported historical version, edge values, corrupted fields, repeated migrations, and unknown future versions.
7. Test retry, throttling, duplicate request, session conflict, timeout, partial failure, and safe resume behavior with mocks or explicitly isolated environments.
8. Verify idempotency: repeating the same migration must not corrupt or unexpectedly change already migrated data.
9. Document backup/rollback strategy and when rollback requires a forward migration.
10. Keep staging and production identifiers separate. Require explicit authorization and the appropriate environment before live reads, writes, or migration.

## Pitfalls and fixes
- Migration depends on live data: build synthetic fixtures representing the required old versions.
- Partial writes: design a version marker and recovery path matching the actual storage API.
- Unknown newer version: stop safely; do not overwrite data the current code cannot understand.
- Retry duplicates an update: design idempotent operations and test replay behavior.

## Output contract
Provide schema versions, migration matrix, test cases, isolation proof, retry/session behavior, rollback plan, and checks actually run. A mock is not evidence of live DataStore behavior.

