This appendix provides concrete examples for identity-preserving and identity-changing migration scenarios.
Scenario:
- Repository display name changes from
order-uitoorder-web. - Repository remote and logical codebase remain the same.
Recommended behavior:
- preserve
project_id - update display metadata only
Reason:
- logical identity has not changed
Scenario:
- Local workspace moves from
D:/Code/go/order-webtoE:/src/order-web. - Repository remote still matches the same project.
Recommended behavior:
- preserve
project_id - preserve
workspace_idonly if continuity evidence supports it - otherwise create a new workspace under the same project and warn
Scenario:
- Remote changes from
git@github.com:example/order-api.git - to
https://github.com/example/order-api
Recommended behavior:
- normalize remote identity
- preserve
project_id
Reason:
- the remote changed format, not logical ownership
Scenario:
- Repository moves from
github.com/old-org/order-sdktogithub.com/new-org/order-sdk - Ownership changes but logical project continuity remains explicit
Recommended behavior:
- preserve
project_idif migration policy confirms continuity - update canonical remote metadata
- record migration provenance
Scenario:
- One repository is split into
billing-apiandbilling-worker
Recommended behavior:
- historical records stay attached to the old project identity
- future records use the new project identities
- any migration of old records must be explicit and auditable
Scenario:
- Two repos are merged into one new monorepo
Recommended behavior:
- do not silently merge historical memory pools
- create new identity rules for future records
- migrate historical data only with explicit policy and provenance