Skip to content

Contradiction: upgrade type-change rules — stable-memory forbids what migrating-motoko documents as supported #275

Description

@raymondk
  • skills/stable-memory/SKILL.md:34 — "Altering the type of a persistent field (e.g., Nat to Int, or renaming a record field) will trap on upgrade and data is unrecoverable. Only ADD new optional fields. Never remove or rename existing ones."
  • skills/migrating-motoko/SKILL.md:22-27 — implicit migration (no code needed) permits removing actor fields and widening Nat -> Int.
  • skills/migrating-motoko/SKILL.md:30-34 — renaming fields and changing a field's type are supported via explicit migration (also skills/migrating-motoko-enhanced/SKILL.md:145-163).
  • skills/migrating-motoko/SKILL.md:77 — "If the migration traps, the upgrade is aborted and the canister stays on the old version" — i.e. not "unrecoverable".

stable-memory's blanket rules would scare an agent away from valid, documented migrations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    generatedCreated by an AI agentin-progressBeing actively worked on

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions