tuturuuu.com/<app>. Legacy <app>.tuturuuu.com hosts answer 301 to the
apex path. This page holds the program inventory, the wave order and the
acceptance bar. The native Start migration runbook
holds the per-app mechanics, and the Gateway Worker
page holds mount and legacy-redirect operations.
Invariants
- One central session. Mounted apps read the shared
tuturuuu.comsession and never write or clear session cookies. Satellites resolve actors withgetSatelliteAppSessionUser('<app>')(Next) or@tuturuuu/satellite/auth-request(Start). They never use@tuturuuu/utils/user-helper. - Apex paths. Each app’s mount comes from
ONE_ORIGIN_APP_BASE_PATHSinpackages/utils/src/app-mounts.ts. Product marketing lives under/products/<app>. - No Vercel. Rollback targets are the prior Worker version and the
captured hostname attachment. A Vercel deployment is never a rollback target,
and
build:legacyNext builds exist only until an app’s Next retirement step. - Framework-independent packages. Domain libraries in
packages/*keep portable entrypoints free of Next.js, React Router and Cloudflare runtime imports. Adapters inject request identity, storage, navigation and locale. App source reachesnext/*only through@tuturuuu/start-bridge. - Next on Cloudflare in the meantime.
apps/webserves on Next through the OpenNext/vinext Worker until each of its route families moves to its Start candidate. - Bounded spend. Each new Worker keeps its CPU limit, sampling rate and abuse-guard binding. Any added queue, cron or retry loop needs the stop fence and operation-count evidence from Oxc and Cloudflare adoption.
What “migrated” means
An app is done when all five hold for the exact production commit:- Start serving: production traffic reaches the app’s native Start Worker,
and responses carry
x-tuturuuu-runtime: native. - Apex mount: the gateway lists
/<app>and/<app>/*with aMOUNT_*binding. Signed-in apps also appear in Web’s active-mount list (node scripts/active-app-mounts.mjs) and serve/<app>/verify-token. - Legacy 301: the app is in the rendered
SUBDOMAIN_REDIRECT_APPSwith anAPP_*binding, and<app>.tuturuuu.comis attached totuturuuu-apex-redirect. - Next retired: no
build:legacy,vercel.jsonor Next-only deploy path remains. Thenextpackage stays only as the bridge’s type contract until the app’s source drops App Router modules. - Accepted: the per-app acceptance below passed, and the cutover report is filed.
Inventory
Measured onmain at cba0acd150 (2026-12-03). The columns are:
- Framework: Start is
vp buildprimary, Next+bridge is a Next build with a Start/Void candidate beside it, OpenNext is Next on Workers. - Serving: the
productionPublicationPolicystate intuturuuu.ci.ts, or the reason the app is excluded. - Apex: live means the mount is in
GATEWAY_MOUNTED_PATHS, and prepared means it is only inscripts/apex-migration.mjs. - 301: live means the app is in
LIVE_REDIRECT_APPSwith anAPP_*binding, and prepared means it is only inlegacyHosts. - Size: pages plus route handlers, and
srcLOC excluding generated files.
Native services (API, gateway, cron control, coordination, ops hub, realtime
Workers and similar) already build with Vite+. They follow the Worker toolchain
rows in Oxc and Cloudflare adoption
and need no framework change.
apps/tanstack-web
apps/tanstack-web is a hand-port of Web that stays paused. Its latest
release is 0.39.0 (2026-10-04). It pins @tanstack/react-start 1.168.60
against the shared 1.169.3, uses plain Vite with Nitro rather than Vite+ and
Void, and aliases next/* to local shims instead of @tuturuuu/start-bridge.
Its wrangler.jsonc binds the paused Rust BACKEND service. Its manifest
tracked 158 pages and 653 handlers, while Web serves 187 pages and 787 API
routes.
Web migrates in place instead: apps/web/vite.config.mts builds the Start
candidate from apps/web/cloudflare/start through the shared bridge preset, and
apps/web/start-route-manifest.json falls back to Next per route. Resuming the
hand-port would need a toolchain move, removal of the Rust binding and a rebase
onto roughly 1,000 routes before any guard change paid off. Its pause guards
(scripts/paused-runtimes.js, the root --filter exclusions, test shards, Oxc
ignores, Renovate and the tanstack-route-manifest.yaml switch) therefore stay
in place. Remove the tree in the Next retirement wave once nothing references
its manifest.
Waves
Waves run in parallel whenever they touch different apps. The order below is by risk (auth surface, size, open holds) and value (traffic, Vercel retirement).
New office apps (Docs, Sheets, Slides, Wiki, Whiteboards) ship through their
own lanes, and they mount at their registry paths when admitted.
Prepared apex batch
scripts/apex-migration.mjs prepares fifteen mounts and about thirty legacy
hosts behind APEX_MIGRATION_ACTIVE. The program promotes them one app at a
time; Tasks and Finance went first, and the
Tools cutover packet follows the same
steps. Each app moves its /<app> entry and
MOUNT_* binding into apps/gateway/wrangler.jsonc, then its APP_* binding
and LIVE_REDIRECT_APPS entry, and each step carries its own acceptance and
rollback. Flip the switch only for apps still in the batch, and only when all of
them pass together.
Per-app acceptance
Each app gets one integration writer and one Fleet task. Every gate runs on the exact commit that ships:- CI: unit tests, type-check, lint,
start-bridge-routes check, a realvp buildand the app’s<app>-cloudflare.yaml, all green on the exact SHA. Local gates run throughttr resources run --. - Worker runtime: the sealed artifact’s emitted runtime suite passes on the
original and on a fresh restore with unchanged bytes. Mount profiles qualify
both the subdomain and
/<app>. Build info comes from generated source metadata. - Signed-in QA: QA accounts issued by
ttrsign in on the 0% staged version through the version-override header. Cover sign-in and refresh, MFA, the workspace permission matrix, English and Vietnamese hydration, the primary flows, a localized deep link with duplicate query keys, an asset, and the legacy callback and machine-path passthrough. Owner-provisioned staging acceptance stays required wherever the native Start migration runbook requires it. - Scoped promotion: promote only that app’s Worker version and attachment. Before the flip, record the prior Worker version ID and the captured routes, custom domains and DNS records, with the one-step restore command and who runs it. Gateway or attachment packets go to Iris with the packet SHA-256 and source commit before any provider write.
- Watch: smoke within minutes, then watch for 30–60 minutes against the prior baseline for 5xx rate, auth loops, p95 TTFB and client errors. Any user-visible regression triggers an immediate rollback to the previous Cloudflare Worker version, then a fix forward. A Vercel deployment is never a rollback target. File the cutover report.
Parity criteria
- Routes: every
page.*androute.*is generated, natively owned or ignored with a reason in the bridge registry. Unmigrated paths return the Next fallback, never a 404, until retirement. - Auth: central-session reads only, with no cookie writes from mounted apps (the mounted no-writer guard). Wrong-app and expired sessions are refused. Logout clears the root session.
- API:
/api/*an app does not own forwards to Web unchanged. Owned handlers keep their auth and rate-limit wrappers. - Locale and SEO: English and Vietnamese render identically to Next. The
canonical URL is the apex path: the app’s
seo-policy.jsonentry moves to originhttps://tuturuuu.comwith itsbasePathbefore the legacy host redirects, so indexable legacy pages land on indexable apex pages. Staging and private versions staynoindex. - Performance: p95 TTFB and error rates at or below the prior deployment. Vite assets are relative so one artifact serves both hosts.
Keeping packages framework-agnostic
- Domain and data packages (
packages/internal-api,packages/utils, domain*-corepackages) export portable entrypoints with nonext/*,@tanstack/react-routerorcloudflare:*imports. Framework code lives in explicit adapter entrypoints such as@tuturuuu/satellite/auth(Next) and@tuturuuu/satellite/auth-request(Start). - Identity, storage, navigation and locale arrive as injected arguments or adapter callbacks, never as request globals.
- A missing bridge capability is added to
@tuturuuu/start-bridgewithin its frozen v0 contract and is never copied into an app. - Extractions keep public exports stable with thin re-exports and add a focused
boundary test.
bun validate’sinternal-app-authguard keeps satellites offuser-helper.