A component library was still bound to a legacy variable structure, blocking the move to a new token architecture. The constraint that made this hard: consumer teams subscribe to this library downstream, and every one of their instance-level overrides had to survive the migration. A naive swap of the underlying variable collection would have silently broken any override that depended on the old structure.
This wasn't a cosmetic refactor, it was the blocking dependency for the broader token reconciliation work. And because the library has real downstream consumers, any migration method had to be provably safe before it could touch production: a single lost override is a visible, embarrassing regression for whoever's file breaks.
I set the goal, drove the scope and method, made every per-value mapping decision, and verified each step of the process myself.
I scripted value-preserving repointing of roughly 900+ variable bindings across 23 components, using the design tool's automation API. For each binding: resolve the bound value, match it to its equivalent in the new token structure, rebind it, then re-scan to confirm zero unresolved bindings remain before moving to the next collection. I migrated one collection at a time, verifying after each, rather than attempting a single big-bang pass.
One component had been structurally corrupted, its many variants had lost their names entirely. Rather than guess at the missing names, I deterministically matched each variant against a clean reference copy, recovering the full set with zero misses. I also produced a rename-to-old blueprint, so that when the library itself gets swapped for the new version, existing overrides continue to map by name instead of breaking.
I renamed properties that had drifted back to their old names specifically so that overrides would continue to map correctly, accepting a minor semantic mismatch in one case in exchange for a guarantee of zero visual change. Where no equivalent existed in the new structure, I unbound rather than force a mapping that wasn't really equivalent. For delivery, I favoured an in-place update over a full library swap, since an in-place update carries existing overrides through seamlessly where a swap risks losing them.
In an isolated validation, re-swapping the updated library resolved roughly 1,800 component instances with zero override loss. The corrupted component's full variant set, recovered via deterministic matching against the reference copy, came back with zero misses.
The method is validated, not yet shipped to production: these are results from an isolated test, not a merged or adopted migration. One structurally rebuilt component could not be auto-migrated this way and still needs hand-migration. The method itself is written up as a reusable playbook so the same approach can be applied to future token or variable-structure migrations.
The throughline here is refusing to guess: when data was missing, I matched deterministically against a verified reference rather than inventing a plausible value. That same discipline, verify before you trust, is what turned a one-off migration into a reusable method other migrations can build on.