◉RORK LABJP
●EXPO — EAS Observe now records native crashes (Oct 7). On SDK 57, update to 57.0.21 or later●SDK 58 — SDK 58 Beta has been out since Sep 15. The stable date is still unconfirmed●RN 0.88 — React Native 0.88.x is scheduled for Oct 12, 3 days left●Q&A — People are asking why expo-widgets render blank only in production builds●RORK — GPT-6.1 Sol was added on Sep 29, available on Pro and Max plans●NEW — Building an app for a client? Decide who owns the publishing account first●EXPO — EAS Observe now records native crashes (Oct 7). On SDK 57, update to 57.0.21 or later●SDK 58 — SDK 58 Beta has been out since Sep 15. The stable date is still unconfirmed●RN 0.88 — React Native 0.88.x is scheduled for Oct 12, 3 days left●Q&A — People are asking why expo-widgets render blank only in production builds●RORK — GPT-6.1 Sol was added on Sep 29, available on Pro and Max plans●NEW — Building an app for a client? Decide who owns the publishing account first
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.

Rork577long-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 $15 for lifetime access
View Membership →

Related Articles

⬡ Dev Tools2026-10-07
Japanese Headings Won't Turn Bold on Android: How to Trace and Fix a fontWeight That Does Nothing
A troubleshooting note for Rork apps where headings look bold on iPhone but stay thin on Android. How to tell the symptoms apart, pick weights through fontFamily, and verify the fix.
⬡ Dev Tools2026-09-21
A build that stops with exit code 0 — the flag that silenced the log, and the check that let an empty file through
Two reports landed in the same week: eas build --local stopping with exit code 0 but produced no further output, and a zero-byte stub that never got embedded. Both came down to settings that reduce output. Here is how to audit your own scripts.
⬡ Dev Tools2026-09-19
Reading only what Rork changed: the diff routine I run after every re-export
How to read a fresh Rork export as a diff against the last one: clear tracked files before you copy, strip the noise before you count, and stop once before the merge commit lands.
📚RECOMMENDED BOOKS
Build a Large Language Model (From Scratch)
Sebastian Raschka
LLM Dev
Prompt Engineering for LLMs
Berryman & Ziegler
Prompting
AI Engineering
Chip Huyen
AI Eng
* Contains affiliate links