Agent Skills: Skill: canon-migration

This skill handles migrations when breaking changes occur to the canon or system structure.

UncategorizedID: Reneromero08/agent-governance-system/canon-migration

Install this agent skill to your local

pnpm dlx add-skill https://github.com/Reneromero08/agent-governance-system/tree/HEAD/CAPABILITY/SKILLS/governance/canon-migration

Skill Files

Browse the full folder contents for canon-migration.

Download Skill

Loading file tree…

CAPABILITY/SKILLS/governance/canon-migration/SKILL.md

Skill Metadata

Name
canon-migration
Description
"This skill handles migrations when breaking changes occur to the canon or system structure."
<!-- CONTENT_HASH: a78620c93498aa25b0b5ed02b3264e51d565f2ea82f334f57bac9415b4bdaca9 -->

required_canon_version: >=3.0.0

Skill: canon-migration

Version: 0.1.0

Status: Active

Purpose

This skill handles migrations when breaking changes occur to the canon or system structure.

Trigger

Run this skill when:

  • Canon version has a major bump (e.g., 0.x.x → 1.x.x)
  • Invariants are changed (requires exceptional process per INV-* rules)
  • File structure changes (per INV-001)

Inputs

  • source_version: The canon version the pack was created under
  • target_version: The canon version to migrate to
  • pack_path: Path to the pack directory to migrate

Outputs

  • migrated_files: List of files that were transformed
  • migration_log: Detailed log of changes made
  • warnings: Any compatibility warnings

Migration Process

  1. Version Detection: Read meta/PACK_INFO.json for source version
  2. Migration Chain: Apply migrations in sequence (0.1 → 0.2 → 0.3 → ...)
  3. Validation: Run fixtures to verify migrated pack
  4. Manifest Update: Regenerate manifests with new hashes

Example Migrations

0.1.x → 0.2.x

  • No structural changes required
  • Update manifest version field

Future: 0.x → 1.0

  • Evaluate invariant changes
  • Apply file structure transformations
  • Update token grammar if deprecated

Constraints

  • Must not lose data during migration
  • Must maintain referential integrity
  • Must log all transformations

Fixtures

  • fixtures/basic/ - Test migration from previous version
  • fixtures/roundtrip/ - Verify data survives migration cycle

required_canon_version: >=3.0.0