← Back to Blog
PersonalOn This Site

Their Bug Is Still Your Product: What Writing a Hardware Vendor's Code Taught Me About Ownership

In one of my ventures, our software had to run on hardware we didn't make. We sat with the manufacturers in their facilities, integrated our SDKs with theirs, more than once wrote their code for them, and eventually built our own Linux OS. Here is the one lesson from that for every founder, including the ones whose hardware is an AI model API.

·7 min read

When your product runs on something you don't make, your customer never sees the line between your code and your vendor's. They see one product, and when it breaks, it's your product that broke. I learned that properly in a venture where our software had to work on hardware we didn't build. We ended up sitting with the manufacturers in their own facilities, integrating our SDKs with theirs, and more than once writing their code for them. Eventually we built our own Linux operating system. The lesson I took from all of it is simple: a founder doesn't get to say "not our bug".

This is a story about hardware, but it isn't really for hardware founders. If you're building an AI product on a model API, a fintech product on a payment partner, or a SaaS product on someone else's cloud, you have the same boundary. You just can't see it as clearly, because there's no device sitting on the table.

An engineer working on electronic hardware at a workbench

Software people like to stop where the device begins

Most software teams draw their responsibility at the edge of their own code. Above the SDK is ours, below it is the vendor's, and a bug on the other side becomes a ticket. That works right up until the product depends on the other side working, which, for us, was all the time.

The venture was the edtech one I've written about before, the problem so hard we built our own OS for it. I still can't name it, but I can describe the terrain: institutional networks, inconsistent hardware, machines we didn't control, and users with a reason to probe the product. In that environment the device layer wasn't a detail. It was where the product either worked or didn't.

[KUNAL: add the real moment you realised the device side, not your own code, was what was failing. What broke, where you were, and what the team first thought it was.]

The tempting move at that point is to write a clear bug report, send it to the vendor and wait. It feels responsible. It is also how a product quietly stalls for months while everyone is technically doing their job.

Why we went to where the hardware was made

You can't debug someone else's device from a ticket queue. So we went to the manufacturers, sat in their facilities, and learned their equipment from the inside.

That is a big step for a software team. But the alternative is guessing. Every round trip with a vendor's support desk is a conversation with someone who doesn't own your problem, about a system neither of you can see at the same moment. Sitting next to the people who build the device removes most of that distance: you can show them what your software expects, and they can show you what their hardware actually does.

[KUNAL: add what the first visit looked like: who you sat with, and one thing you saw on their side that you could never have seen from your own desk.]

It also changes the relationship. Once you've worked on someone's problem inside their own building, you stop being a customer filing tickets and start being one of two teams trying to make the same thing work.

[KUNAL: confirm this matches what happened with the manufacturers, or replace it with what actually changed after the visits.]

The day we wrote their code

When the manufacturer's side didn't do what our integration needed, waiting for them was the expensive option. So, more than once, we wrote the code for them.

I want to be careful about how that sounds. It isn't heroics, and it isn't taking over someone else's product. When a vendor's side doesn't do what you need, the reason is usually ordinary: your integration isn't at the top of their roadmap. If your team already understands exactly what the integration needs, writing it yourself can be faster than explaining it.

[KUNAL: add one real example: what kind of gap it was (driver, firmware, an SDK function), roughly what you wrote, and how the manufacturer reacted.]

It also has a cost, and founders should see it clearly before they do the same. Code you write for a vendor is code you now understand better than they do, which means it's code you'll be called about. You've taken on maintenance you didn't plan for. For us that trade was worth it, because the integration was the product. It won't always be.

Building our own Linux OS was the same decision, one layer down

If the layer below you keeps deciding whether your product works, at some point you stop patching it and start owning it. For us, that meant building our own Linux-based operating system from zero and porting it across targets, including mobile Linux.

I don't recommend this lightly. Most founders should never build an operating system, and I'd push back hard on any team that wanted to without a real reason. Ours had one: hostile environments, inconsistent hardware, and a product that had to behave the same way everywhere it ran. Owning the OS is what let us promise that, and it's where the defensibility of that product lives.

[KUNAL: add the moment the team decided to build the OS instead of continuing to patch, and the hardest part of porting it to mobile Linux.]

Looking back, writing the vendor's code and building the OS were the same decision made at two different depths. Both came from refusing to let a layer we didn't control decide whether the product worked.

The lesson for founders who will never touch a circuit board

Your hardware vendor today is probably a model provider, a payment partner or a cloud. The rule is the same: customers don't read your vendor's status page, they read your error message. So own the boundary before it owns you.

Here is what that looks like in practice, without building an operating system:

List what you depend on but don't control. Model APIs, payment processors, identity providers, the cloud region you deploy to, the one open-source library everything imports. Most teams have never written this list down. It takes an afternoon.

Own the layer where you meet them. Keep a thin layer of your own code between your product and each critical vendor, so a change on their side is a change in one place on yours. For AI products I wrote this up in detail in how to avoid LLM vendor lock-in. It's the same idea as our SDK integration, applied to models.

Go to where the thing is made. You probably can't visit your model provider's offices. You can read their changelogs every week, follow their developer forums, and know at least one person on their side by name. The point is the same as our factory visits: talk to people who own the problem, not people who route tickets.

Treat integration work as product work. On most roadmaps, integrations are a line item squeezed between features. In my experience they decide whether the features work at all. Give them an owner and real time.

Decide in advance which layer you'd be willing to own. If a vendor stalls, will you write the fix, switch providers, or build that layer yourself? That call is much easier to make on a calm day than in the middle of an outage.

The customer never sees the boundary between your code and your vendor's. Your sense of ownership shouldn't stop there either.

What it cost, and what it bought

It cost time, focus and comfort. It bought a product that worked where other teams had walked away, and a kind of defensibility no feature list can give you.

The capability we ended up with is one that organisations had been buying from outside at hefty prices. The old way of doing it topped out at runs in the thousands; our first full run handled 500,000 assessments in one hour. And now competitors call with offers. None of that came from one clever idea. It came from the unglamorous work at the boundaries: the factory visits, the vendor code, the operating system.

[KUNAL: add what this period cost you personally: the travel, the time away, or a moment you wondered whether it was worth it.]

A competitor can copy a feature in a quarter. To copy this, they would have to repeat the boundary work, and most teams don't want to. That is exactly why it's worth doing when the product depends on it.

If I had to put the whole venture into one sentence for another founder, it would be this: the vendor's bug was always going to be your bug in the customer's eyes, so the sooner you act like it, the sooner the product works. I've written about the other side of this, what killed the startups that didn't make it, and plenty of it came down to the opposite habit: waiting for someone else to fix the thing we depended on.

[KUNAL: check the last clause against your own view of the failed ventures. If vendor dependency was not part of it, cut "and plenty of it came down to..." and end the sentence at the link.]

If your product sits on someone else's platform

If your product depends on a model provider, a payment partner or hardware you don't make, and you aren't sure where your boundary is or who owns it, that's one of the first things I map as a fractional CTO for AI-first startups: what you depend on, where you're exposed, and which layer is worth owning yourself. Sometimes the answer is a thin integration layer and a tested fallback. Occasionally it's building the layer. Either way it's a calm-day decision, and it's far better made before the outage than during it.

Written By

Kunal Vohra

Kunal Vohra

Technical Co-Founder & Fractional CTO

I've co-founded 6+ startups across India, the UAE, and the US, spanning AI, Web3, fintech, and cybersecurity. I write about the technical and strategic decisions that determine whether a startup thrives or stalls.

Comments

Loading comments…

Enjoyed this article?

More writing on AI, Web3, and building startups.