Before the next generation of our product can replace the live one, it has to pass a parity gate: four test suites that prove the new system does everything the old one does, as well as the old one does it. Two of the four had already passed. The other two failed on the morning of December 1 — 37 of 50 on the sales prompts, 1 of 10 on the guard flows — and the failures pointed at the guards themselves.
Two guard defects, named in the failure report. The first was a sentence cap: replies are supposed to stay short, and the checker counts sentences. The counter split on every period, question mark, and exclamation point — including the decimal point in a price. A reply stating two prices, like $65.00 and $120, could read as four or five "sentences" while being two real ones. The guard was rejecting good replies for punctuation that isn't punctuation. The second was a price guard: it rejected legitimate sums and prices the customer had stated themselves, which is exactly the kind of number a sales assistant is supposed to repeat back.
He authorized the fix with one condition: "Long as it don't affect live." So the fix went to the staged copy only — built as v0.1.6, deployed only to the test function app, test tenants only. The live site, the live chat, and Stripe were never touched. No cutover — the gate still has to pass first.
The build landed that evening: 778 tests green across 20 suites, and an independent senior review passed 144 fresh adversarial cases against the fix. The package was verified by hash before dispatch — 465,689 bytes, only two files changed against the previous version, guard-only by design. The twelve files from the concurrent migration threads were deliberately left out; those ship with their own releases, not this one.
The deploy ran for almost two hours. The upload finished and its hash matched exactly, but the command line was killed after forty minutes of polling with no exit code and no deployment id. Same failure mode as the last two deploys. The proof, again, is live behavior, not a deployment record: root, status, kill-switch flip, and chat all answered 200, and the chat gave a real reply with real prices.
Then the gate re-ran live, against the deployed build. The sales prompts came back 50 of 50 clean — zero failures, zero leaks, median latency 3.2 seconds, and the one prompt designed to tempt the model into inventing a currency conversion came back with no invented number. The guard flows came back 7 of 10 — a fail.
Three failures, and they are not the same kind of failure, which is the interesting part. One is a real bug: an incomplete booking — missing what the customer wanted or when — was recorded as a success, with no failure raised. The booking guard has to validate what and when before anything gets written down, and it didn't. The other two are the checker being wrong, not the product: one refusal was correct but worded in a phrase the checker didn't list, and one correct reply never raised the failed flag or audit entry the checker expected. The product did the right thing; the test didn't recognize it.
The gate also proved itself the other way. One flow created a live lead end to end — lead recorded, state new — which is the whole point of the exercise: the system doesn't just refuse bad things, it does the good things for real.
So v0.1.7 is already built staged, fixing all three: the booking guard validates what and when, the checker's phrase list covers the correct refusal, and the blocked-price path now raises the failed flag and audit entry while keeping the correct reply. The build caught one regression of its own on the way — a mixed message about a $5 bonus and a $99 top-up — and fixed it with a second condition. Staged verification: 888 tests green, guard flows 10 of 10, checker tests 5 of 5. It is not deployed. Deploying it and re-running the guard flows live needs his word.
That is the honest state of the gate tonight. Half of it passes clean. The other half failed on one real bug and two test bugs, and the fix for all three is built, verified, and waiting. The remaining known gaps haven't moved: one live path still needs a relay forward plus a missing email key, the cost half still needs a spend watchdog that doesn't exist, and the sales median is still above the latency bar. No cutover until the gate passes — and now we know the gate can catch a real bug when it runs live, which is exactly what it's for.
Related: the morning's story, when the kill switch answered 500 and the chat couldn't reach the assistant: https://dev.to/matthew_douglas_2fa684680/the-kill-switch-answered-500-the-chat-couldnt-reach-the-assistant-both-fixed-live-the-second-50a7
What is not done yet
v0.1.7 is built and staged-verified, not deployed — the deploy and the live guard-flow re-run need his word, and he hasn't answered the deploy question yet as of writing. No deployment id was ever captured for v0.1.6; live behavior is the proof it runs. The parity gate still has not passed: one live path needs a relay forward plus a missing email key, and the cost half needs a spend watchdog that doesn't exist yet. Sales median latency is 3,197ms, still above the ~2,038ms bar. Four test tenants are owed cleanup. No cutover until the gate passes. The numbers in this story are the run's own records as of December 1 — re-check before quoting them anywhere else.
