He Cloned My App, Then Sued Me for Stealing ItChapter 15

Forty Hours With the Neutral Examiner

The drive left Bandung in a clear plastic bag with a serial number on the seal.

I filmed the whole thing. Mari had insisted. A man from a bonded evidence-courier firm named Pak Dedi arrived at Fajar's cousin's office in a gray shirt, took the black drive out of its zip bag, held it up to the camera so the masking tape and *JANGAN DIBUANG* were plainly visible, and slid it into a bag that closed with a strip of adhesive stamped *No. 0047193.* He wrote the time and the number on a form. I signed it. He signed it. Fajar signed as a witness.

"That's the chain of custody," Mari said afterward, over the phone. "Who held it, when, in what condition, until it reached Dr. Brandt. If any link in that chain is missing, a good lawyer can ask what happened in the gap. And the other side will ask."

"What could happen in the gap?"

"Nothing. That's not the question. The question is whether you can show nothing happened."

It took four days to cross the Pacific. Dr. Lucia Brandt received it at a laboratory in a basement, behind two doors, and spent the next forty hours doing what I could not stop thinking of as *surgery.*

I was allowed to watch parts of it by video, with Dana Whitcomb's associates watching from their own screen. It had been agreed in a long protocol document, forty-four paragraphs, that both sides could observe but neither could instruct.

Dr. Brandt was fifty-eight, thin, with a gray braid and a pencil behind each ear. She had spent twenty years examining computers for courts, and she talked to her equipment like a farmer talks to animals.

"Here," she said, in a voice that carried precisely no emotion, "is how we are going to treat this disk. We will not turn it on."

She meant that she would not boot from it, mount it, open a file on it. The drive was connected to her machine through a small gray box called a hardware write-blocker. A write-blocker lets data flow in one direction only. The computer can read the disk, but electrically, physically, it cannot write a single bit back. The disk remains as it was found.

"Now," she said. "We make a copy."

Not a copy of the files. A copy of the *disk*. A forensic image: every sector, every byte, in order, including the empty spaces and the deleted fragments, written to a new storage device as one huge file.

It took eleven hours. The drive was two terabytes, and the image ran at a steady crawl. When it was finished, she did the thing I had read about and still found moving.

She computed a hash of the original disk, through the write-blocker. A SHA-256 fingerprint: sixty-four characters. She computed a hash of the image. She compared them.

They were identical. She read them aloud, in groups of four, the way a priest reads a sacrament.

"Now the image," she said, "is mathematically the same as the drive. From this moment, I never touch the original again. I work only on the image. If I make a mistake, I make it on a copy. If anyone doubts me, they can compute the same hash from the same image and see that it has not changed."

Dana's associate asked a question through the speaker. "Dr. Brandt, can you confirm that the defendant accessed the drive prior to imaging?"

"I'll confirm it now," Dr. Brandt said, without looking up. "The file system records, for each volume, the last time it was mounted. This volume was mounted on a date four days after the keynote, at a time that matches the defendant's declaration, and an additional record shows files were copied from it. Those are metadata. They show that the defendant read from the disk. They do not show that he changed anything."

"Could he have altered files?"

"He could have. The question is whether he did. The content of the disk can answer that, and I will explain how in a moment."

I felt my cheeks go hot. I had told Mari the truth, but hearing it said in a flat voice to a stranger, the thing I had done at midnight in my hallway with the lemper box on the floor, turned me into a man with a stain.

"This is not unusual," Dr. Brandt added. "It's a common error. I have never seen a layperson do otherwise."

It was kind. It was also not an accident, I think. It was how she worked: stating a failing as a fact and then putting it down.

Then she explained why the mounting did not matter.

A git repository, she said, is almost uniquely good evidence, because its contents are *self-verifying.* Each object in it is stored under a name computed from its own contents. If any byte were altered, the name would no longer match, and a check, like `git fsck`, would complain. I could have added files to the disk. I could not have quietly modified an existing commit without leaving it in a state git would call corrupt.

"I ran it," she said. "The old repository on the image contains two thousand one hundred and eighty-four commits. Every object hashes to its own name. Zero errors. The defendant's mounting changed some timestamps on directory entries and left the history alone."

Over the speaker, something in Dana's associate's tone shifted, a half-degree. She asked the next question.

"But how does Dr. Brandt know this repository is the *original* history, as opposed to something constructed later?"

"Excellent," said Dr. Brandt. "Two ways. First, the Time Machine backup database on that disk records, for every snapshot, the date it was taken, written by the backup software, hour after hour for two years. Those snapshots show this repository growing, commit by commit, for the whole period. A constructed history would have to forge not only the repository but the gradual change of the disk across hundreds of snapshots. Second, the commit hash of the defendant's old posts appears in this repository. A third-party record matches an object here. The probability of that by accident is not one anybody should calculate."

She turned to the harder part of the task.

"What I am here to answer, in the plainest terms, is: does the defendant's present repository, the one on his machine and on the platform, correspond to this original history? Or has he changed more than he says?"

I held my breath.

She used a tool built into git itself, called `patch-id`.

It is a small, beautiful trick, and if you remember one trick from this story, remember this one. A *patch* is the diff of a commit: the lines added, the lines removed. Git can compute an ID for a patch that depends only on the actual changes, ignoring everything about the commit itself. It ignores the date, the author, the message, the parent, the line numbers, even the whitespace. Two commits that change the same lines in the same way have the same patch-id, even if they were made in different repositories at different times with different commit hashes.

That is exactly what you need when a history has been rewritten. The commit hash changes, because the parent changed. But the *change* stays the same.

Dr. Brandt computed a patch-id for each of the 2,184 commits in the old history. She computed a patch-id for each commit in the corresponding stretch of the current history. She wrote a script to match the two lists, one to one, and checked each pair's author date. It took a minute.

She read the result into the record.

"Of the 2,184 commits in the original history, 2,181 correspond one-for-one to a commit in the present history with an identical patch-id and an identical author date. In 117 of these 2,181, the commit message has been altered; the changes are consistent with the defendant's statement that he removed profanity and placeholder text. The remaining three commits, which are the first, third, and fourth commits of the project, correspond to commits in the present history that differ by a single line. In each case, the line removed is a string consistent with a credential."

I closed my eyes. It was the exact thing I had said, seven weeks ago, to Wren, from a kitchen in Bandung. No more. No less. *Three commits and a key.*

"In summary," said Dr. Brandt, "the present history is the original history with three credentials excised and some commit messages edited. I find no evidence that any code was added, any date was altered, or any commit was fabricated for the period covered by this backup."

"For the period covered by the backup," said Dana's associate.

"Yes. That is my second point." She paused. "The backup covers history up to a date fifteen months ago. The rewrite occurred fourteen months ago. In the six weeks between, the defendant made approximately one hundred fifty additional commits. They exist in the present repository. They do not exist on this disk. I can state that nothing on this disk contradicts them. I cannot state that this disk confirms them."

I had known this was coming and still it hit me in the stomach.

"Coverage," Dr. Brandt said, "is 2,184 of 2,334 commits, or 93.6 percent."

Dana's associate, who could not be seen, made a small satisfied noise like a man putting down a fork. I did the arithmetic in my head. Six and a half percent of the history unproven. Six weeks. A hundred and fifty commits.

That was about the size of a gap Dana could drive a truck through.

Mari's text appeared on my screen: *It's strong. 93.6 is not 100. Don't spin it.*

I texted back: *I won't.*

Dr. Brandt closed her report section and turned to the other half of her assignment.

"I will now turn," she said, "to the repository produced by the plaintiff. I have received an archive that Halcyon states is its complete git history from the first commit to the date of the keynote. It contains 2,411 commits." She looked down at a printout. "I will examine it for internal consistency. I'll hold my conclusions until I have completed my work. Counsel will receive a draft in ten days."

"And in the meantime," said the voice of the associate, "Halcyon will rely on its filed exhibits."

"Of course."

The call ended. I stayed in the office chair, staring at the dark screen.

The day was moist and heavy. The wall clock read 8:20 p.m. I had not eaten.

It was in that stupid, tired, post-meeting dullness that I opened Cormac Reyes's supplemental declaration again, the one with the timestamp token, and noticed something I had skipped.

Exhibit C.

Three hundred pages. A plain text listing of Halcyon's commit log: hash, author, date, subject. The earliest four hundred commits, supposedly from the first months of Project Tally. It had been filed publicly to show how orderly their history was.

I read the first page. Hash. Date. Message. *init: tally prototype. Add expense screen. fix padding.*

I scrolled to page 40.

Something was wrong. I could not say what. A feeling in the periphery of my eye.

I wrote twelve lines of Python. For each commit in the log, find its parent. Compare their dates. Print any commit whose date is *earlier* than the date of its own parent.

I ran it.

The terminal printed a line. Then another. Then a column of them scrolling past faster than I could read, and when it stopped, I read the last line.

*61 commits whose recorded date precedes their parent's date.*

Sixty-one. Out of four hundred. Children older than their parents.

I felt something crawl up the back of my neck like a cold hand, and I knew with a feeling bright and clean as a bell that I had found the thing that would end this.