DEV Community

Cover image for My First Paying Customer Failed 4 Times: Quality Is Not a Final Check
Yana Li
Yana Li

Posted on • Originally published at timedsubs.com

My First Paying Customer Failed 4 Times: Quality Is Not a Final Check

A 0.3-second disagreement between two sources of truth made my first paying customer fail four times.

The browser preview stored the project duration rounded to a whole second: 3983s. The worker that processed the audio measured the real media: 3982.699–3982.788s. Cue generation ran against the rounded number. Delivery certification ran against the trusted measurement. Any candidate built on the rounded boundary exceeded the certified boundary by 212–301ms — so the final cue failed, deterministically, every single time.

That customer ended up with four projects and three distinct audio files — four identical failures, each one blocked by the same gate. No subtitle asset, no explanation, no path forward.

No alert fired. No complaint had come in. I found it because I was looking.

Here is the part worth writing down: the quality gate did exactly what it was designed to do. It rejected every unsafe result before it could reach the customer. And the customer still lost. Four failures, and not one of them was a gate that misbehaved — they were four places where quality had been treated as a check instead of a product decision.

A fail-closed gate is an engineering floor, not a product. Quality is not the final check that rejects bad output; it is the input boundary you commit to, the authority you give each fact, the failure states you design for, and the meaning you attach to your own scores.

What follows is the postmortem as an engineering story: four deterministic failures, each one a missing product decision, and the contract I now think every pipeline like this should carry.

One fact, two authorities

The whole incident starts with a single number. The project duration existed twice:

  • The browser preview rounded it to 3983s.
  • The funded worker measured the actual media as 3982.699–3982.788s.

Cue generation used the rounded value. Delivery certification used the trusted measurement. The result: the last cue always ended 212–301ms past the certified boundary, and the final gate rejected it — correctly.

This was not a flaky timeout or a race. It was a deterministic mismatch between two sources of truth for the same number. The fix was not a bigger timeout. It was deciding that the trusted media measurement is the single authority for generation, composition, QA, certification, export, and retry. One fact, one source.

The input boundary was never defined

The deeper failure was an assumption the system was never told about. The first-generation product assumed "the script language is the audio language." It never defined the legitimate case where the script is a translation — your own approved text, timed to audio in another language.

In this incident, the customer's project was roughly 66 minutes of Japanese voiceover with a Chinese manual translation as the script. In subtitle production that is a completely standard workflow: you have an approved translated script and you want it timed to the original audio.

Undefined boundaries get filled with the cheapest assumption. The implementation assumed the script conveyed the audio's language, decoded the Japanese voiceover as Chinese, and produced subtitles with no relationship to the speech. The user made zero mistakes.

The product decision: audio is the source of truth. The audio language X is a measured fact; the uploaded text language Y is what the user wants the subtitles in — possibly a translation. When X ≠ Y, the user chooses Y/X/Z subtitles via transcribe-or-script → forced alignment → translate, with translation billed separately. That is the cross-language main chain, and it is the direct answer to the boundary I never defined.

Failure was not a state

The rejected candidate was not retained. The customer could not see what failed or why, and I could not point at the exact cue. The only path after failure was to create a new project and re-upload — which re-ran the same deterministic defect, because the rounded duration had never been updated by the failed release.

The customer became my QA department. That is not a failure of the customer; it is a failure of product design.

The product decision: failures are retained, the QA issue list is visible, and every terminal project supports same-project immutable retry (source_retry_v1). Attempts are preserved, auditable, and never silently replayed.

The score checked structure, not content

My QA score looked healthy while the content was disconnected from the audio. The checks covered timing and format but not "does the subtitle actually correspond to the speech?" A score that cannot distinguish a good subtitle from a hallucinated one is a dashboard number pretending to be a product promise.

The product decision: QA is layered. Exactness invariants (timestamps, overlap, body-text fidelity) are hard blockers; readability, punctuation, and confidence are advisory notes. A QA score no longer masquerades as an accuracy percentage.

The contract that should have existed

When these four decisions hold, a delivery decision stops being a black box and becomes a small, explainable contract:

type DeliveryDecision = {
  trustedDurationMs: number,    // one fact, one authority
  finalCueEndMs: number,
  withinBounds: boolean,        // fail closed
  contentMatchesAudio: boolean, // content, not just structure
  productPath: "ready" | "same-project-retry" | "defined-boundary"
}
Enter fullscreen mode Exit fullscreen mode

The interesting part is the last field. The first three fields are engineering. The last one is product definition surfacing as an enum — if the pipeline cannot return one of those three answers, the boundary, the authority, or the failure state is still missing.

What the recovery run surfaced

Recovering the customer meant retrying the same project in production. I deliberately did not blind-loop. Each production attempt targeted exactly one defect that was already reproduced, regression-tested, independently reviewed, and deployed — and a terminal failure returned to diagnosis.

That controlled sequence surfaced four independent defects in the retry chain itself:

  1. A database claim contract that drifted. The new retry type was accepted at creation but rejected at claim time — the schema said yes, the claim function said no.
  2. An exact-text validator that false-flagged adjacent CJK spans because of unconditional newline joins. Two legitimate Chinese characters touching across a line break looked like a corruption.
  3. A fixed 120s provider deadline that could not cover a ~67-minute source across two sequential providers. The deadline was tuned for short audio and simply did not scale.
  4. A false-ready result whose final cue ended early while ~930s of trailing speech remained — caught by independent acceptance before any export or email.

Each one went through the same loop: reproduce → a failing regression test (RED) → minimal fix → independent review → controlled deploy → production verification. No step was "let's try and see."

The customer was never wrong

Japanese audio + Chinese translated script is not an edge case invented to embarrass a QA suite. It is a standard subtitle production workflow. The first-generation product never answered the question "what is the script, and what is its relationship to the audio?" — so the implementation answered it with the cheapest assumption.

This is the actual root cause: not a developer who wrote a bad check, but a product that had not defined its input boundary. The cheapest time to define a product boundary is before the first paying customer. The second cheapest is right after they teach you where it was missing.

Recovery was also engineering

For the affected customer, the recovery process left immutable evidence at every step:

  1. Containment. Affected projects entered a neutral "I am reviewing this, no action needed" state. UI, APIs, exports, and email paths all fail closed.
  2. Usage correction. The mistakenly reserved 67 minutes were restored via an append-only record.
  3. Compensation. A non-expiring +60 minute service-recovery credit, additive to the plan, visible separately, and impossible to duplicate.
  4. Delivery. An independently reviewed 660-cue result was attached through an append-only receipt — zero new charges, all seven export formats verified, and the SRT byte-identical to the approved artifact.
  5. Notification. One combined email — apology, root cause, result link, compensation — sent exactly once and confirmed delivered.

The operating principles: compensation precedes notification, an email failure never revokes compensation, historical failures are never automatically replayed, and every action leaves a verifiable receipt. Compensation was deliberately bounded — not an open-ended habit.

Where I stand

Here is where TimedSubs, the script-first subtitle tool, stands after this incident:

Shipped:

  • Language probe + conflict interception (a bounded Deepgram language-detection probe over the first 60 seconds; a confirmed conflict at ≥0.7 confidence blocks delivery);
  • Failed-result retention and same-project immutable retry;
  • Single duration authority, layered QA, completeness-based delivery checks;
  • Customer recovery and compensation closed, email confirmed delivered.

Still in progress — stated honestly:

  • The cross-language main chain is specified but not yet implemented;
  • The no-charge intercept on the legacy pipeline is not yet in place — do not read this post as claiming it is;
  • Paying-customer journey monitoring is still manual; automation is the next item on my list;
  • Two older incident projects remain in their contained state, pending a valid result or an honest close.

Takeaways

  1. Quality is product definition, not a final check. Define the input boundary, the authority of each fact, the failure states, and the meaning of your metrics before you write the implementation.
  2. One fact, one source of truth. The difference between 3983 and 3982.699 seconds became four failed uploads and a painstaking diagnosis.
  3. Make failure a state, not a dead end. A rejected candidate that disappears is a bug the customer will re-trigger for you.
  4. A score without a semantic check is a dashboard number. Structure and format checks are not content checks.
  5. Customer care must be automated, not manual. I checked on the first paying customer because I cared. The second and third paying customers will not get that luxury unless monitoring does the checking for me.

A gate that rejects bad output is table stakes. A product that defines its boundaries, owns its facts, designs its failure states, and makes its scores meaningful is what keeps a customer from ever standing at the gate in the first place.

If you are building a pipeline where the input has hidden relationships — a script and an audio file, a design and a codebase, a prompt and a model — ask the boundary question now, before your first paying customer asks it for you. The gate will catch the bad output either way. Only product definition can keep the customer from ever reaching it.

Top comments (0)