Skip to content

feat(migrations): add 0.7→1.0 migration recipe#315

Open
vkgeorgia wants to merge 1 commit into
mainfrom
feat/migration-0.7-to-1.0
Open

feat(migrations): add 0.7→1.0 migration recipe#315
vkgeorgia wants to merge 1 commit into
mainfrom
feat/migration-0.7-to-1.0

Conversation

@vkgeorgia

Copy link
Copy Markdown
Collaborator

Summary

  • Adds migrations/0.7-to-1.0/ — the MAJOR-release migration recipe covering all breaking changes whose deprecation windows close at the 1.0 cut
  • README.md — manual migration guide (four transforms, step-by-step)
  • codemod.mjs — idempotent automated script for Transforms A/B/D; detects Transform C misses
  • validate.mjs — post-migration check; exits 0 on a clean repo
  • fixtures/before + fixtures/after — minimal adopter-repo snapshots demonstrating each transform
  • scripts/check-notations.mjs — allowlist extended for the new recipe files (which intentionally carry non-current version pins)

Breaking changes covered:

  • A ACTIVITY → ACTION rename (element type, IDs, file names, root array key, activity_type field, action-card files)
  • B INFORMATION_ENTITY → BUSINESS_OBJECT rename (IDs, file names, information_entities: key)
  • C report_type required on *.compliance-impact.transitrix.yaml (detected; manual fix)
  • D Deprecated abbreviated prefix IDs now hard errors: ACT-, CHG-, FAC-, FACTOR- (grace period closes), SCEN-, SCN-

Test plan

  • node migrations/0.7-to-1.0/codemod.mjs fixtures/before --dry-run correctly identifies 2 files to change and 1 compliance-impact miss
  • node migrations/0.7-to-1.0/validate.mjs fixtures/before exits 1 with 6 violations
  • node migrations/0.7-to-1.0/validate.mjs fixtures/after exits 0 (clean)
  • node scripts/check-notations.mjs passes clean

🤖 Generated with Claude Code

Provides the MAJOR-release migration recipe for adopters upgrading from
methodology 0.7 to 1.0. Covers all breaking changes whose deprecation
windows close at the 1.0 cut:

- Transform A: ACTIVITY → ACTION rename (element TYPE, IDs, file names,
  root array key, activity_type field, action-card files)
- Transform B: INFORMATION_ENTITY → BUSINESS_OBJECT rename (IDs, file
  names, information_entities field)
- Transform C: report_type now required on compliance-impact views
  (codemod detects missing field; adopter adds it manually)
- Transform D: deprecated abbreviated prefix IDs become hard errors
  (ACT-, CHG-, FAC-, FACTOR- grace period, SCEN-, SCN-)

Deliverables: README.md (manual steps), codemod.mjs (idempotent
automated transforms A/B/D + C detection), validate.mjs (post-migration
check; exits 0 on clean repo), and fixtures/before + after.

Also extends scripts/check-notations.mjs allowlist for the new recipe
files that intentionally carry non-current version pins.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Valerii Korobeinikov <vkgeorgia@icloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant