Front door and wire
ruby-anything app front-door <repo> # rails new + Tailwind + importmap + daisyUI + proxy
ruby-anything app replay <repo> # through Rails: must match 100% before any route moves
front-door creates the Rails app in rails/, adds daisyUI, and installs a small Rack middleware
that proxies every request Rails does not own to the original (RUBY_ANYTHING_ORIGINAL_URL).
The fallback rate is the share of recorded cases the original still answers. It only goes down.
Wire a route
ruby-anything app wire <repo> <unit> --route "GET /products/:id"
One per method and path (ANY /admin/* for a prefix). Each wired route has a kill switch:
RUBY_ANYTHING_UNIT_<NAME>=original sends it back to the original.
For each route: port the units it calls, the model on the same table, the controller action with
the same path, params, status codes, redirects and JSON shape, then the view. Wire it, and
app replay must be 100% again with a lower fallback rate.
CLI tools
A CLI's front door is rails/bin/<name>: a command wired with app wire <repo> <unit> --command <name> runs in Rails, every other invocation execs the original.
Status
ruby-anything app status <repo> # fallback rate, wired routes, units done