Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

The Contract Is the DRM, or, That One Time I Was an Expert Witness

So I’ve had this story kicking around for about eight years and I’ve been wanting to get it on the blog for almost as long.

It’s about the time I was an expert witness in a software contract dispute between my previous employer and Mary Kay, the multi-level marketing makeup corporation. Yes, that one. It’s a highlight in my career because it was so random.

To get this article written I thought it would be a fun experiment to have an AI agent interview me, cause ain’t nobody got time for that, lol. I think it worked well enough to put on the blog, and now at least the story is on the record.

All the block quotes (like this one) from here on out are my thoughts interjected into the article that my agent wrote after conducting the interview. My chat bubbles are all my words, but the agent edited its questions around my responses, ostensibly because that’s what journalists do?

– Schell, Sat 14 Nov, 2026

GLM-5.3 interviews me on being an expert witness in Synapse Group Corporation v. Mary Kay Inc. circa 2019

This interview was conducted by GLM-5.3, an AI interviewer running inside Schell’s own “aifunhouse” harness. Before the first question, the interviewer did its homework: it OCR’d Schell’s deposition transcript from a scanned PDF, read the 64-page Platform Access and Services Agreement, both experts’ reports, and dug up the case number (DC-17-11159) from the defense expert’s own professional bio. The interview has been edited for length. It should take about one bus ride to read.


GLM-5.3

Let's start at the beginning.

You'd left Synapse in 2016, you were writing Haskell at an ML startup in San Francisco, and then your old boss calls.

Schell

Zach and I are close friends. We stayed in touch after I left Synapse and we still hung out often, so by that point I think he had already told me a little about the legal trouble they were having with Mary Kay. I didn't know he was going to ask me to be his expert witness, so I was surprised when he did. I had worked on the Syndeca service, mostly the frontend, and had been involved in the initial deployment of Mary Kay, so I knew the systems involved and could ramp up quickly.

Schell

Essentially, Mary Kay had stopped paying Synapse and still owed money for using their Syndeca SaaS, which is the service that syndicated Mary Kay's magazines electronically, over multiple channels (iOS, Android, and Web) in something like 40 different localizations. Zach had discontinued their mobile apps, but Mary Kay still had the Syndeca code on their website, and yet somehow wasn't hitting the Syndeca servers for the content. He wanted me to do some research, figure out what exactly was going on, and then put together an expert report. He figured that just getting that far would scare off Mary Kay and the case would be settled. I remember him saying "It's never going to trial, so don't worry."

GLM-5.3

You charged Synapse $100 an hour. The expert across the aisle billed at $660. And you'd never seen a deposition outside of TV.

I’d never seen a deposition, period (I don’t think). And the case was never supposed to even get to depositions! It was supposed to stop at the expert report!

Here GLM-5.3 is pretty interested in the fact that I only charged $100/hr. During my deposition the defense attorney was also really interested in that number, as well as how many hours I was putting in on the case. He wanted to see my invoices. I was surprised that would factor into the case at all, being outside the actual events in question, but maybe the defense was looking for any signal to discredit me. Like - “look, he’s an amateur, he only charges this much, ha!” 🤷 But I ended up putting in a lot of hours!

Schell

I'm not an expert witness by trade, so no, I didn't know what expert witnesses got paid. I'm obviously not trained as one, so maybe Zach got what he paid for! He's a lifelong friend, my first employer outside academia, and for me $100 an hour was good for a side hustle. The money shouldn't be the focus of this interview, anyway. As for depositions: I don't know if I had seen one on TV! I was expecting an interrogation. It was like an interrogation, with a role-play game wrapped into it. I'm an engineer by trade, and our lawyers definitely wanted me to offer less information. I was much too free with my opinion in the deposition. The lawyers kept saying "Remember - 'yes' or 'no' answers if possible", but I kept wanting to add qualifications and extra context. That's what I'm used to.

GLM-5.3

Walk me through the investigation. Mary Kay's pages still carry the Syndeca embed code, but the content is coming from somewhere else. Forty-plus localizations, all still working. Where do you even start?

Schell

Ok - so in order to write my expert report I had to first figure out what was going on. It was a debugging task at its core, and it's general webdev, which I had over a decade of experience in at that point. I looked at their source in my browser, took stock of their network calls, used Charles Proxy, and basically mapped out what was going on: they had reinvented the Syndeca backend, at least for their single-tenant use case. They had kept the shape of the frontend the same, with the embed code and everything in the HTML virtually unchanged. But I could also tell they had decompiled the Syndeca frontend in order to get to certain parts of the app, so they could scrape the API of the content and duplicate the backend. All standard engineering practices, but that was explicitly against the contract. But the details of the contract itself, as well as my opinions about it, were outside my area of expertise (engineering) - so I couldn't even comment on how Mary Kay had blatantly violated their contract. Lots of learning moments for me there.

GLM-5.3

Then discovery surfaces a folder from a Mary Kay developer named Kevin Merritt, and inside it, his notes.txt, which the deposition transcript describes as "a play-by-play of his experience reverse engineering the Syndeca solution."

Schell

The discovery process (which, for anyone unfamiliar like I was, is where the court orders all documents from both sides to be cataloged) surfaced a bunch of emails and notes from not only developers but also execs. I was given access to the discovery portal and could just search for anything on-topic. I'm not sure if it was me or Zach or our lawyers that found it, but Mary Kay's developer had taken notes on the disassembly process that Kevin Merritt performed on the Syndeca JavaScript frontend. It was my opinion that this decompilation took place in order to develop a drop-in replacement. I then did my own reproduction of that disassembly to bolster our case. So of course, since the defense couldn't argue about whether or not decompilation had taken place (it had, there was evidence), they shifted to arguing about what decompilation is. Classic lawyerism. It felt like what I would do in an argument as a child, and then my parents would say "you should become a lawyer."

GLM-5.3

And then the smoking gun.

This got me laughing - of course the agent works in “the smoking gun”. Next up, the “load-bearing wall…”

GLM-5.3

Tell me about the mkmapping file, because the details are almost too good: it was generated by a Haskell tool you wrote, collating the giant Excel spreadsheets Mary Kay liked to pass around.

Schell

I knew they decompiled the Syndeca frontend because they had this "mapping" file that yes - if I recall correctly - is put together by a Haskell tool I wrote. That file is part of the eventual payload, and it exists to map a market and locale to the keys for that market, which the frontend needs to query the backend. We kept all the translations in a giant Excel document (that's the way Mary Kay wanted to work, passing around Excel docs, ugh) and my Haskell tool would collate these and pair them with the keys and produce the artifact that eventually gets into the frontend app. So there are only two ways they could have seen those keys, and furthermore obtained this document verbatim: either from the repo, which is private, or by decompilation. In order to bolster my claim about decompilation, I decided I'd see just how easy it was to get that document myself by doing some reverse engineering, because hey, it might be significantly different from the plaintext version. But I was really quite shocked that my method produced the exact same file!

GLM-5.3

And your method deserves a sentence: you deliberately didn't peek at Synapse's private source code, even though you could have. You walked Kevin Merritt's path yourself, as you put it at the deposition, "as if I was not a Synapse Group employee." Era-appropriate compiled app pulled from a public S3 bucket, the right version picked using a hidden deploy-log.txt, "javascript decompiler" searched, first result, paste, unminify.

Now, about those guide keys. They had to be public, riding around in plain URLs, which means the platform was never really locked at all.

Schell

Those keys had to be public because they're part of the backend URL that the frontend queries data from. I think Mary Kay's developers' actions could have been more defensible if they had simply monitored the browser's network requests and logged all the endpoints. But that is a lot of copy-pasting and editing. It's a task an AI agent could carry out easily these days, but decompilation is just way quicker, and they took that easy route, as they should, being competent engineers. It's just that it was against the contract, hehe. Security through obscurity was the best that this system allowed here, and that's why this contract is the way it is: because we knew it wasn't truly secure, and it wouldn't take much for a determined company to rip us off. Of course, I couldn't say that, because it was outside my expert domain.

GLM-5.3

That's the thesis, isn't it. When your product is publicly downloadable JavaScript, the contract is the DRM. Section 3.3 of that agreement, no reverse-compile, no decompile, no derivative works, no circumventing controls, was the only real lock on the Syndeca platform.

So the fight over the suit became a fight over the meaning of the word "compile." The defense expert, Chris Rucinski, spent pages arguing that JavaScript never compiles to binaries, so unminify.com is mere "formatting." If "formatting" is all it is, Section 3.3 never fires, and the contract locks nothing. Your whole DRM thesis turns on one word. How worried were you?

There’s missing nuance here, in that some parts of the source had to remain unchanged in the compilation process, and those were the parts we were talking about.

Also - I felt the defense was driving us (maybe even as a red herring) to argue about myopic topics like “compile” or “decompile” vs “formatting”, but the contract easily covered the bigger issues like “reverse engineering”, which they didn’t really want to touch on.

But now I’ve been nerd sniped - a compiler doesn’t have to spit out “binary” to be considered a compiler! If we applied that logic to most compilers these days, few would pass as compilers!

Rucinski made the argument that compiling JavaScript was like compiling a dossier, and not like compiling a binary. My retort is that even in that case compilation is still happening, isn’t it? Furthermore, computing borrowed the term from publishing, so I felt like he was kinda proving my point. But would a judge agree?

Unfortunately the contract doesn’t define “compile”, etc, so there’s room to argue about it.

Schell

Oh, I definitely thought he might beat me on the words. That's his job. They argue semantics all day. I had two hopes. One was that the judge agreed with me that compiling JavaScript is more than formatting. It changes variable names and even structures, depending on the parameters you give the compiler. Also you have to keep in mind that we started building this system in 2012 or so. I remember, maybe only a few years earlier, writing my own JavaScript module compiler called "bang" right after Flash died, so that I could write Flash-style games in JavaScript before AMD modules or RequireJS existed. TypeScript didn't have the market share it currently does - it was pretty much brand new. So the argument that JavaScript can be compiled could have been fraught with peril, lol. But engineers were used to using tools like Google Closure Compiler, which has compile in the dang name. It seemed to me that Mary Kay wouldn't want to continue the case by arguing about that definition. It's a weak position.

But I had another angle: regardless of whether unminifying JavaScript counts as decompilation or not, what they produced was still a derivative work. And this was in my domain of expertise to opine on.

GLM-5.3

Hold on. Zach's pitch: "It's never going to trial, so don't worry." And opining on it means testimony, and testimony means a courtroom.

So: "never going to trial." How's that going?

Schell

It went to trial! What are the odds that the one time I do this, the case ends up going to trial? It went to trial and we all had to spend a week in Dallas for it.

Gettin my ass to the courthouse
Scoot suit riot!
GLM-5.3

One more detail from the record before we get further into trial, because it's my favorite. Your report didn't stop at static analysis. It contained a live demonstration: Charles Proxy intercepting Mary Kay's own site, the "syndeca" references ablated in flight, video rolling while the eCatalog experience breaks. Rucinski's rebuttal had to give the procedure a name before it could attack it, and the name he chose was "the Scivally Methodology."

Schell

Oh, yeah, lol. That's a cute thing that happened. He referred to my procedure of performing a live-site dependency ablation test on the Mary Kay website as "the Scivally Methodology," which I thought was pretty cool. He named it in order to tear it down, of course, but it was still a bit flattering, like having a maneuver named after you.

GLM-5.3

Tearing it down meant reproducing it. He downloaded the same proxy tool, repeated your deletions, and got the same broken page. Then he ran his own variation, restoring the four deleted lines and removing only the five instances of the word "syndeca," and reported that the site rendered fine. Rebuttal or rerun with a different scalpel, the reader can decide. Either way, the man put your name on a methodology he disagreed with. There are worse monuments.

Now take me to the trial. Three days in Dallas.

Courtroom sketch of the opening statements
Drawing 1: opening statements.
Schell

It was pretty intense, for me. I flew in early and studied the day before. The first day seemed to be warm-up, since there is a lot of box-ticking that goes into a trial. I have some pics that they let us take before it started, since you're not supposed to take pictures in a courtroom, and I spent much of the time being a courtroom artist, trying to capture what was going on in my notebook by drawing pictures. It was endlessly fascinating and equally stressful and draining. Synapse's counsel was Diamond McCarthy, a classic senior/junior pair: Jason Fulton, the veteran trial lead, and David Reynolds, the younger partner who had taken my deposition and was picking up courtroom reps wherever the case went. Apparently litigation firms pair up like that all the time, the senior partner steering, the junior partner earning his trial hours. News to me, and I didn't think much about that dynamic at the time. Each day after trial we would go back to the Diamond McCarthy offices and study and practice all night. It felt like being a founder in a very high-stakes early-stage startup.

Late-night study session at the Diamond McCarthy offices
Between trial days: study and practice all night at the Diamond McCarthy offices.
Schell

Zach was called up for testimony the first day, then cross-examined. Maybe he was on the stand for more than one day - I'm not sure. He mostly talked about the contract and how Mary Kay treated him and his company. I thought he did a great job. He's used to the pressure of being the CEO and having big clients and stuff. It was still a long time on the stand, though.

Courtroom sketch of Zach Saltzberg on the stand
Drawing 2: Zach on the stand.

A funny detail about Zach’s cross-examination that I just remembered - at one point the defense brought in a battery-powered boombox, which was odd, then they presented an internal JIRA ticket in which Synapse employees were talking about fixing a crash that occurred in six markets’ iOS apps, out of forty.

The defense put the comments up on the courtroom projector to read this one engineer’s comment out loud. This developer was not me!

* This was MY fault. Fuck me in the goat ass.
* This bug was introduced sometime in september.
...
* I pushed a new fix and the NL catalog look_book_032015 should load now (even older apps)
...
* Someone needs to summarize this for MK
* https://www.youtube.com/watch?v=ZnHmskwqCCQ (Yakety Sax, Benny Hill Theme)
* Going to bed for real.

They weren’t mocking Mary Kay, and Mary Kay couldn’t read their comment. The engineer was just admitting their parser caused the crash, and was taking responsibility and pushing a fix - like a GOOD ENGINEER does. But the defense lawyer must not have seen it that way, or maybe he thought it was amateur to admit you shipped a bug? Or he can’t take adult language? I don’t know.

When the ticket came up at trial the defense held up the boombox, read the comment and then played a tape of Yakety Sax on the boombox, acting like he was dropping the mic!

I’m still trying to understand what effect the defense was hoping for. It was very theatrical. The defense lawyer and the judge knew each other well, so maybe I just wasn’t the target audience.

Courtroom sketch of Zach Saltzberg under cross-examination
Drawing 3: Zach's cross. Here's the defense pointing at a board with stuff on it, and talking LOUD.
Schell

The next day, Kevin Merritt was called up to the stand.

I don't remember a ton about his testimony. I could tell he was feeling the stress of the situation, but I think he mostly did fine, though I do remember one very interesting thing happened during the testimony: he mentioned that Mary Kay had started building a "publisher" app, which would mimic what our platform provided. That ended up bolstering my derivative work claims, because they were indeed planning on continuing to build out parts of Syndeca that they were contractually forbidden from doing. We would never have learned about the publisher app if it hadn't come up on the stand. There was zero evidence of it in discovery, which leads me to believe they intentionally kept it out of email, or they kept it in personal email or something. I don't know how you plan a project like that with no paper trail without being very purposeful about it.

Courtroom sketch of Kevin Merritt under cross-examination
Drawing 4: Kevin Merritt's cross, and the sticky note I passed to Zach and the team about the publisher - a derivative work!
(Yes, my handwriting really is that bad.)

On the last day I was called up. I did a lot of explaining of basic programming to the judge. I was surprised at how much I had to improvise, because I had assumed the judge would have more computer- and tech-related experience, this being Texas, where so many software cases get decided. I was on the stand for a long time. My testimony took all day.

The witness stand
Day three: the author's turn. No drawing survives of this one; the artist was otherwise occupied.
Schell

At a certain point, the judge got pretty irked at both sides' representation because, if I recall correctly, she had sussed out that there was something fishy going on, like she felt this case should have been settled a long time ago. Ultimately I opined on MK's "derivative work" and we called it for the day. The opposition's expert, Rucinski, and I shook hands and he said I did a great job. I was temporarily relieved, but I was really, really not looking forward to having to come back weeks later to get cross-examined.

My home life at the time was tough. Two kids under 5, my wife had just been diagnosed with stage 3B breast cancer, I had been away for something like a week under tons of stress, in addition to my day job at an SF AI startup. So I was really drained and probably bordering on burnout.

GLM-5.3

So what happened?

Schell

I never got cross-examined! Mary Kay settled in the next couple of weeks while we were awaiting a new set of court dates. I like to think that my testimony was the thing that did it! Who knows? They ended up settling for a little less than a previous settlement offer, one that the Diamond McCarthy lawyers had recommended denying. That ended my involvement, but I think Zach was contemplating going after the lawyers for how they'd handled the case. Maybe it's a hot take but it seemed like they were vying to go to court to get the litigation hours for their junior partner. No offense to anyone. It was just a wake-up call for me that everyone has their own motivations, and it pays to know what they are.

GLM-5.3

Let's talk about Rucinski for a moment. He sat in on your deposition feeding vocabulary to the questioning lawyer, he wrote 51 pages against your opinions, and then he's shaking your hand in a Dallas courtroom.

Schell

It was tough. I don't enjoy adversarial environments. Does anybody? He was probably ten years younger than me and had studied to be an expert witness. I had the industry experience, which he lacked, but the two are very different things. I never completed university (I left to work for Zach and others), and that's left me with a bit of imposter syndrome. I was dreading the opposition tearing me down for my (mostly) informal training. He was also charging more than six times my rate. The price makes sense now that I know the stress level and the adversarial nature of it all. I wouldn't choose that job even with the money. But in the end I think he had the right attitude: this is just a job, and he gets paid whether his client wins or not.

I wasn't able to frame it that way, because this is the livelihood of one of my close friends at stake. His company is not large, and losing a case like this could be devastating. Zach ended up recouping the money, I think, so the endeavor was worth it. But even more, Mary Kay had to spend well over a million dollars to see it all through. Maybe that's pennies for them, but it felt good to take on a corporate bully and win (mostly).

GLM-5.3

Zoom all the way out. An engineer you know gets that call next week: a founder friend saying "be my expert witness." What do you tell them before they say yes? Not the sanitized version.

Schell

CHARGE MOAR.

GLM-5.3

Is that about the money, or is the number on the invoice also a signal?

Schell

No, no, it's just a joke. Yes, you should know your worth, but also this is helping a buddy. You always jump in to help a friend, if you can. And - ADVENTURE!

GLM-5.3

Last question, the one every interviewer is obliged to ask: what's in this story that I didn't ask about?

Schell

Nothing really, other than Dallas is a pretty cool town. I had really only been to Austin, which I adore, and El Paso, which was when I was a merch guy for a band on the Warped Tour - but that's another story. I took a picture by the giant eyeball and generally had a good time walking around after the trial wrapped.

The giant eyeball sculpture in downtown Dallas
Relieved to be done with my stint in the eye of the law.

The record, for the curious: Synapse Group Corporation v. Mary Kay Inc., Case No. DC-17-11159, 162nd Judicial District Court, Dallas County, Texas. A bench trial, settled in 2019.

Art: courtroom sketches and photographs by Schell Scivally, Dallas, February 2019.