Lift and cut-over
When the fallback rate is 0 and every unit passes gate:
sh
ruby-anything gate <repo> --app # units, bin/rails test, rubocop, brakeman, replay
ruby-anything app lift <repo> # refuses until nothing falls back; replays Rails alone; removes the proxy
What is left is a pure Rails app.
After the lift
The Rails app no longer has to mirror the original's structure. A reshape pass (RESTful resources, concerns, form objects, Turbo Streams where the original polled) can follow, one change at a time with replay passing after each.
Cut-over
You decide the cut-over. Keep app replay, bin/rails test and drift running in CI while the
original is still developed. For the steps only you can do (DNS, secrets, production deploy,
retiring the original), the agent writes rails/port/cutover.sh: an interactive script that walks
through one step at a time and offers the way back at each step.