Skip to content

Import And Export Rules

Use this file only for import/export, file format, parser, serializer, or engine export tasks.

Scope

  • Inspect the existing import/export path before editing.
  • Reuse existing parsers, serializers, schema types, and validation helpers.
  • Keep format changes backward compatible unless the user asks for a breaking change.

Safety

  • Preserve user data on malformed input.
  • Validate trust boundaries and return actionable errors.
  • Add one focused fixture or sample only when it proves the changed format behavior.

Verification

  • Run the narrowest relevant parser/export test first.
  • Broaden to engine/export integration checks only when shared export behavior changes.

YarnDraft — lightweight, cross-platform narrative design tool