◉RORK LABJP
●ARCHIVE — Since 11/22 you can archive a Rork project instead of deleting it, and bring it back from Archived●PLAY FIX — Fixed: Expo apps built for Google Play losing their Rork AI key, which broke AI features●SONNET 4.5 — Sonnet 4.5 retires from the Claude API on 11/30, 7 days left. Check which model your app calls●SPLASH — Expo users report apps stuck on the splash screen after rolling back to an earlier update●NEW — New: Three clues to check before replying to a "stuck on the splash screen" review●2.5 ROUTE — From 12/1, Gemini 2.5 requests reroute to newer models at new rates. 8 days left●ARCHIVE — Since 11/22 you can archive a Rork project instead of deleting it, and bring it back from Archived●PLAY FIX — Fixed: Expo apps built for Google Play losing their Rork AI key, which broke AI features●SONNET 4.5 — Sonnet 4.5 retires from the Claude API on 11/30, 7 days left. Check which model your app calls●SPLASH — Expo users report apps stuck on the splash screen after rolling back to an earlier update●NEW — New: Three clues to check before replying to a "stuck on the splash screen" review●2.5 ROUTE — From 12/1, Gemini 2.5 requests reroute to newer models at new rates. 8 days left
Articles/Dev Tools
⬡ Dev Tools/2026-07-07Advanced

Which Generation Introduced This Bug? Building Provenance Into Rork Apps

When you regenerate the same screen again and again with an AI builder, a bug that shows up one day becomes impossible to trace to a specific generation. This is a design for keeping generation provenance across three layers—build stamp, ledger, and telemetry—so you can narrow a regression down to a single generation in minutes.

Rork621long-term operationregressiondesigntraceability

✦ Premium Article

Last month a crash I had already fixed in one of my apps came back weeks later with the exact same symptom. The code looked untouched—the fix was still there. It took me half a day to see what happened: when I regenerated a different screen, that generation had quietly rolled the old implementation back with it.

As an indie developer running several apps on my own, this kind of silent rollback is not rare. Rork Max's two-click submission has lowered the bar for shipping, and because of that we regenerate screens more casually than we used to. The more generations pile up, the more the answer to "when, in which generation, did what change?" slips out of reach.

Stamp provenance onto what you generate, and when a bug appears you can narrow down the suspect generation in minutes. No special infrastructure is required. A single build-time constant and one text ledger are the starting point. Here is the design I use in day-to-day operation.

Why git blame Can't Follow This

With hand-written code, git blame tells you the last commit that touched a line. But a screen regenerated by an AI builder often replaces the entire file. The diff is recorded not as a one-line change but as a file replacement, and blame simply points at the single regeneration commit.

What makes it worse is that the intent of a change never survives in the commit. If a generation you asked to "fix the price display" also rewrites state management somewhere far away, the commit message still reads Update pricing screen. What you read back later is not what actually happened—only what you set out to make happen.

So the thing that's missing is not line-level history. It's generation provenance: which generation event corresponds to which version of the app, and what it touched. Supplying that is the subject of this piece.

Keep Provenance in Three Layers

Provenance always breaks down if you try to write it in one place. Your build artifact, your source tree, and your running app have different lifespans and different readers. I split it into three layers.

LayerWhat it keepsWhen it helps
Build stampBurns the generation ID and build time into an in-app constantAnswering "which generation is this?" on a device or review build
Generation ledgerOne line per generation: intent, files touched, credits spentTracing back weeks later to "when was that change?"
Telemetry stampAttaches the generation ID to crashes and key eventsReverse-mapping a production bug to a generation

Each layer has value on its own, but the payoff jumps when you thread them with the same generation ID. Read the intent in the ledger, measure the blast radius in telemetry, reconcile your local build with the stamp. Whether you can move back and forth like this is what decides how fast triage goes.

✦

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
✦Stamping a generation ID at build time and reverse-mapping crashes and analytics back to it
✦A minimal GENERATIONS ledger format plus a script that diffs one generation against another
✦A triage sequence that narrows a bug down to the suspect generation in minutes
Secure payment via Stripe · Cancel anytime
✦

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Rork Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • ✦Copy-paste ready implementation code
  • ✦New advanced guides published daily
  • ✦$5/mo or $10 for lifetime access
View Membership →

Related Articles

⬡ Dev Tools2026-11-19
New Wallpapers Showed Up Everywhere Except the Filters: Ship the Count and the Category Lists Together
I added 67 wallpapers in one batch. They appeared in the full list and in New, but not under a single category filter, because I had raised the ID limit and forgotten to ship the category lists. Here is a pre-bump check, a client-side way to spot silent fallbacks in an Expo app, and a post-release count against the origin.
⬡ Dev Tools2026-11-04
Catching the Few Seconds Before Streaming Audio Starts: A Loading State and a Timeout
You tap play and nothing happens for a moment. Here is how I model that gap with expo-audio: a requested flag, a 400ms delayed spinner, and an 8-second timeout.
⬡ Dev Tools2026-10-30
It runs in development but the iOS Release build dies on launch — checking whether a missing scheme is the cause
In an expo-router app, an app.json with no scheme can crash only the iOS Release build at launch. Why Debug and Android survive, the two ways to fix it, how to think about leaving the scheme out on purpose, and a pre-submission check.