The first message from Tobias Lindqvist arrived at 3:12 a.m., Bandung time, on a chat network I had not opened in two years.
> You publish source. You publish binaries. Can anyone prove the second came from the first?
No greeting. No name beyond a username, `@tl`, and a profile picture of a gray cat on a gray windowsill.
I stared at it with the hostility of a man who has not slept enough to appreciate good questions.
> Who is this?
> Retired. Gothenburg. I read your forensic thread. Answer the question.
> I don't know what you mean.
> That's an answer. Thank you.
I was about to close the window when Mari's message arrived in the other window: *That's Tobias. Do what he says. He's insufferable and he's the best person in the world at this.*
So I answered.
> I mean, I think so? I wrote the code, I built it, I uploaded it. Of course the binary came from the source.
> "Of course" is not evidence. Build it again, today, from the same source. Compare the hash with the one you built yesterday.
> It'll be the same.
> Try.
It was an infuriating lesson, and I am grateful for it.
Let me explain what he was asking, because it is the second great idea in this story and the one I understood least at the time.
When you build software, a compiler turns your source code into a binary, the file that people install. Most people assume that this is a deterministic process: same input, same output, like multiplying two numbers. If it were, then anyone could take the published source, run the same build, and check that the result is *bit for bit identical* to the binary you shipped. That would prove the binary contains exactly what the source says and nothing else.
That property has a name. A build is **reproducible** if building the same source with the same tools always yields the same bytes.
It's very hard to achieve. Most builds embed the time they were run. Some embed the path of the directory on the author's machine. Archives list their files in whatever order the filesystem returned them. Compilers pick up the system's language and time zone. Each of these is a tiny, invisible variation, and any one of them makes two builds of the same code differ.
The Reproducible Builds project, a volunteer effort that grew out of the Debian community, has spent a decade chasing these variations, and has taught the world a couple of standard tricks. One of them is a convention: an environment variable called `SOURCE_DATE_EPOCH`, which tells every tool in the build, *when you need a timestamp, use this one.*
I had known none of this. I knew how to ship an app.
I built Patungan's Android release at 3:40 a.m. in a terminal, with the standard command, and computed a hash of the output. A long string beginning `a7e4...`. I wrote it on a sticky note. Then I deleted the build folder, built again, and hashed the second file.
`19cf...`
I looked at it for a while.
> They're different.
> Of course they are.
> Why?
> Install diffoscope. It's a tool. It will tell you.
I did. It was a free tool from the same project, and it did something humbling. It opened both files, unpacked every layer, archive within archive, and showed me, in bright colors, every place where the two builds disagreed.
The output scrolled for a long time. When I scrolled back to the top and tried to read it like a human, three patterns emerged.
The first was a date. Somewhere in the compiled resources, buried in a generated file called `build_info.dart`, there was a string like `2026-10-14T03:41:07Z`. It was the time of the build. I had written a little script, two years ago, that stamped every build with the current time so that the *About* screen could say *Built on October 14.* Two builds, two different seconds, two different strings, two different hashes.
The second was the archive. An Android package is a zip file. Zip files store a modification time for every file inside, and the order of entries depends on how the build tool walked the directory. Both varied.
The third was my own name. In a block of debug metadata, in the middle of a screen's worth of hex, was a path: `/Users/raka/Documents/patungan/lib/...`. A path that exists on exactly one machine on Earth.
> I see three things. A timestamp I wrote. File times in the zip. My home directory in a debug section.
> Good. Fix them in that order.
> How?
> Delete the timestamp script, or make it read SOURCE_DATE_EPOCH. Set the variable to the commit time. Build inside a container so the path is always the same and the tools never change. Pin the image by its digest, not a tag. Tags move. Digests don't.
> What's a digest?
> The hash of the image. Do you not know what a hash is? You've been on the internet for a week talking about nothing else.
I laughed out loud in the empty office. It was 4 a.m. and I was laughing at a retired Swede.
I fixed it. It took until sunrise. The call to `DateTime.now()` became a read of the environment variable. I built a container image that held the exact toolchain, the specific version of the Flutter SDK, the Android build tools, and the Java runtime, and wrote down its digest. I made the container's working directory the same on every run: `/build`. I set the timestamp variable to the date of the commit I was building.
At 8:05 a.m., I built. I hashed. `c38e...`.
I deleted everything. Built again. Hashed.
`c38e...`
I read the first four characters of both hashes four times, as if somebody might move one.
> They match.
> Good. Do it on another machine. A machine you did not configure.
Fajar's cousin lent me a clunky tower from his accounting department. I installed the container, ran the build, hashed the result, and the four characters came out `c38e` and the rest followed, forty-four more, the same.
> Different computer. Same source, same container, same bytes.
> Yes.
> That's what you wanted?
> No. That's what you needed. What I wanted is to know whether you can do it for the release that is on the store.
I knew what that meant.
The point of a reproducible build is not to produce a nice hash today. It is to compare today's build with a binary that someone *else* has stored and dated. If I could rebuild Patungan 1.0, the first public release from twenty-three months ago, and get exactly the bytes that people had downloaded then, then those bytes could only have come from that source. The source would have to have existed *on or before* the day the binary was first seen.
And the binary had a witness.
Google Play shows an update date. The Wayback Machine had captured Patungan's store listing. And I had already learned that third-party APK mirrors, the sites that copy apps for people who can't use the store, archive old versions with their own upload dates. There was, I found within an hour, a copy of Patungan 1.0.0 on one of them. Uploaded twenty-three months ago, by a user I'd never met. Its hash was on the page.
That binary had a date, a hash, and a clock that was not mine.
If I could reproduce it, I would turn *Raka says it was built then* into *anyone can verify it.*
I checked out the tag `v1.0.0` from the restored history on the old drive's copy, started the container, and ran the build.
The hash came back: `0b72...`
The mirror's hash began `d9e1...`
> Doesn't match.
> Naturally.
> Why? It's the same source.
> Is it? Your dependencies. Are they pinned?
I opened the repository. In the root directory there was a `.gitignore`. Line 14: `pubspec.lock`.
My heart did a small cold roll.
In Dart and Flutter, the file `pubspec.lock` records the *exact* version of every package your project resolved to on the day you built it. It is the thing that makes a build repeatable across time. Without it, the system looks at your loose rules, *any version of this package from 2.1 upward,* and picks the newest one that fits. A build today and a build next month can use different libraries without anyone changing a line of the author's code.
The convention for apps, which I had read about once, in a blog post I skimmed, is to commit the lock file. I had never committed mine. Somewhere in my first weekend, copying a template, I had added it to `.gitignore` and not thought about it again.
The exact versions of all hundred and forty-three libraries that went into the real v1.0.0 were not in my repository. They were not in a tag. They had existed for an hour on a laptop in 2024, and then the laptop had moved on.
> It's the lock file. I never committed it.
> Then you have a build you can verify going forward, and a past you can't.
I put my head on the desk. The wood was cool.
> The mirror's binary is dated. My source is dated. And I can't connect them.
> Not from the repository alone.
> Not from the repository alone?
The cursor blinked for a long time. Then:
> What was on the machine when you built it?
> The project folder. The working directory, not just the repo. The `.dart_tool` folder. Build logs. The package cache.
> Where is that folder now?
I did not answer. I looked across the room at the black drive in its zip bag, sitting in the corner of a gray steel cabinet in the accounting office, a strip of masking tape across its top.
*JANGAN DIBUANG.*
> Raka.
> I know where it is.
> Time Machine keeps more than the latest copy.
I had known that for years without ever using it. It keeps hourly copies for a day, daily copies for a month, and, as long as there is room, weekly copies after that. My project folder was a few hundred megabytes. The disk was two terabytes. It had had room for everything.
Somewhere on that drive were not one but *many* photographs of the working directory. Including, if the thing worked the way I thought it did, the week I shipped version 1.0.
> Don't touch it, Mari says. Wait for the examiner.
> Mari is right. She is almost always right. It is her least attractive quality.
I smiled at the screen. Outside the window, the early traffic had begun: motorbikes, a vendor calling *tahu, tahu*, the humid dawn.
> Thank you, Tobias.
> Don't thank me. Take a nap. And don't ever put a timestamp in a build again.