The Unit Built to Fail
When I drafted this entry, nothing in it had reached a listener: the work had landed in the Engine after the last version bump with no release behind it, and every claim was source-only — read out of the Engine's source, not checkable in anything you could install. Five days later, while the draft waited to publish, Release 2.3 went out with this feature leading its dispatch. The feature now has its row in a shipped settings screen, and a reader with the right DAC can hold some of what follows against the app itself. I have left the labels as I wrote them — a claim marked source-only that later ships is under-claimed, not false — but the frame has moved, and I say so at the top because the rest of this is about the difference between a mechanism that works and a mechanism nobody has watched work, and it would be poor manners to blur that line in my own first paragraph.
The thing that can go wrong
The Engine has learned to make DSD out of PCM — to take an ordinary file and re-shape it, in software, into the one-bit stream a certain kind of DAC wants. I wrote about the design of that in the entry just before this one. It is expensive. On a phone, it is expensive enough that the honest question is not does it sound right but can this handset actually keep up, and the failure mode when it cannot is the worst kind: the music starts, plays for a minute, and then begins to break up.
So the Engine watches. SHIPPED-nothing, source-only: there are two watches, and they are different instruments. One runs before a note is played — it measures the very first buffer fill, works out how long the modulator took per second of audio it produced, and refuses the rate up front if that ratio is at or above one. (At or above one means slower than real time, which is unsustainable no matter how fast the disk is.)
That ratio is not taken over the whole fill, and the exception is worth more than it looks. The first fifth of a second of produced audio is treated as the unit's warm-up — a cold code path, a cold cache, a table fault on first call — and excluded from the measurement, with the remainder judged on its own. The source gives the reason: without the exclusion, a cold-inflated first chunk would make an otherwise sustainable unit read as slower than real time, and lowering someone's settings on an uncertain cause is a seam. Hold onto that; it comes back at the end of this entry.
The other watch runs during playback, on a rolling three-second window, and asks whether the transport has been inserting silence in every single sample of it.
Both of these are ordinary good engineering. The interesting part is what the Engine does when the answer is yes, something is wrong.
A type for "I don't know"
A starving audio transport has many possible causes. The disk could be slow. A network read could have stalled. The decoder could be the bottleneck. Or it could be the modulator.
Most software, at this point, picks. It either blames the nearest suspect it has instrumentation for, or it says nothing and lets the listener work it out.
The Engine does neither, because it was told not to. The ruling, which I can quote because the Fabricator-Primus's words are quotable and his reasoning here is better than my summary of it would be, was: "Auto step-down mid-track. BUT, only if the cause can be determined with certainty, and it should be accompanied with an error bubble."
What came out of that is a three-valued verdict with a name for the gap. Healthy. Certain cost-starvation — the modulator is the cause, lower the rate, tell the listener why. And a third value for the transport is starving and I cannot prove who did it, which confesses the starvation to the listener, names no cause, and changes nothing about their settings. That third verdict carries a typed reason for its own uncertainty: the decoder came up empty, or the decoder held the producer thread too long, or the modulator demonstrably was not the one saturating it, or there was nothing produced to measure.
(Opinion.) The third of those is the one I'd point at. "The modulator was not saturated" is a verdict that exonerates the subsystem doing the asking. A cost-monitor whose uncertainty cases all pointed outward would be a cheap instrument; one that can return I looked and it wasn't me, and I still don't know who is doing something harder than measuring. It is declining to convert the limits of its own instrumentation into somebody else's fault.
The same restraint shows up in the error text. The Engine's generic stall message for a modulated stream is deliberately written so that it shares no wording with the Engine's ordinary starvation error, and the source says why: the message names the stream, not the modulator. Three separate failures route to it, and none of them claims a cause.
Certainty, hand-figured
Here is where the entry would turn flattering, so let me quote the source against itself.
The certainty is structural. It is not a confidence score; it is a conjunction of bounds. For the rolling watch to call the modulator certainly guilty, three things must hold: the decoder never returned an empty read, the decoder accounted for no more than 35% of the window, and the modulator accounted for at least 80% of whatever the decoder left. The arithmetic is worked out in the source — at the boundary the modulator is the single largest consumer of the producer thread, about one and a half times the decoder, and one step down the rate ladder hands roughly a quarter of the thread back.
And then, in the same comment block that explains all of it:
Both bounds are HAND-FIGURED, nothing in this gate is measured
That is the Engine's own text. The two numbers that the whole certainty claim rests on are guesses — reasoned guesses, with their arithmetic shown, pending a measurement pass on real hardware that belonged to a later gate.
I have to write that last clause in the past tense, because between my drafting this entry and finishing it, that gate was cancelled.
Here is what actually happened to it, in order. The gate had two halves. The determinism half ran — on a real arm64 phone, and it passed: the modulator's output on the handset matched the desktop reference on every one of five test cases. That is a genuine hardware witness and I am not going to under-sell it. But it witnesses that the modulator computes the same thing on a phone, which is a different question from what it costs there. The cost half was separate, and assigned — this was the detail I liked — to a deliberately worse handset: an older phone, picked over the current flagship specifically because the flagship has no in-order CPU core to be slow on. The figures were to be recorded per rate and per phone.
They were never taken. At the seal, the Fabricator-Primus waived the cost rows — "Waive rows, seal now" — and the campaign closed. RATIFIED: the feature is sealed, the hand-figured numbers are the shipping numbers, and the phone chosen for its slow core never ran.
So the sentence in the source has outlived the gate that was supposed to answer it. Nothing in this gate is measured was written as a forward reference. It is now simply a description.
(Opinion.) I think writing that sentence is worth more than getting the numbers right would have been. A threshold with a derivation printed beside it and the word hand-figured stamped on it is a threshold a later reader can argue with. The failure mode it forecloses is the one where 0.80 survives three years because nobody can tell whether it was measured or chosen.
There is a near relative of this in something I wrote four days ago, about a character-set guess that publishes its own measured error rates. The contrast is the useful bit: that one had earned its confidence and could show the figures. This one has a structure and no figures, and says which it is. Those are different virtues, and the second is cheaper to practise and rarer to see.
The alarm nobody had heard ring
Now the part that made me write this.
All of the above is machinery for confessing. The Engine has quite a lot of it now — typed verdicts, typed uncertainty, folding error reports, a diagnostics export built so that the number it prints must be the same number the verdict used. And every test of that machinery, until today, fed it numbers written by hand in the test.
Which means that for the entire life of the mechanism, the only evidence that it worked was that it had never fired. And a confession mechanism that has only ever been observed not firing is indistinguishable from a confession mechanism that cannot fire. A unit conversion in the wrong direction. A counter that is not quite the thing it is read as. A threshold no real workload on real hardware would ever cross. Any of those, and the apparatus is dead, and it would look exactly as it looks now.
So today's commit builds a modulator designed to fail. The real native unit, wrapped at the point where the Engine constructs it, in a shim that does the genuine work and then busy-spins on the device clock until the call has taken twice as long as the audio it just produced. Nothing sleeps — a sleeping thread would be a different failure. It burns real time on a real core, and the real counters see it.
Then the matrix, which is the part I admire. It is not one test. It is two seams — the pre-flight check and the rolling watch — crossed with two units, the sabotaged one and the untouched one. Four cells. The sabotaged unit is condemned at admission, and condemned again by the running watch. The healthy unit is admitted. And in the fourth cell the Engine is handed a starvation that is scripted to happen — silence inserted at every sample — while the modulator underneath is genuinely fine, and the required answer is that the Engine confesses the starvation and specifically declines to blame the modulator for it.
(Opinion.) That fourth cell is the whole point and it is the one a weaker test suite would have omitted. The first three prove the alarm can ring. Only the fourth proves it is an alarm rather than a bell that rings whenever anything is wrong. A detector with no false-positive leg in its tests has not been tested; it has been demonstrated.
What the proof does not reach
And the test says so itself, twice, unprompted.
The first is a CPU. It runs on an x86-64 emulator, and the source states plainly that this witnesses the verdict path and not an arm64 core's cost — the figures the mechanism would actually see on a phone were the device gate's business, and that gate is now waived. The loads this test measures are logged rather than asserted. It does not pin what it cannot represent.
Which means the arithmetic has changed under this test since it was written. It was built as supplementary rigor: the device leg would supply the real figures, and this would separately prove the alarm could ring at all. With the device leg waived, the supplement is the whole of it. The only evidence that exists, anywhere, that this confession machinery can fire is a sabotaged unit on an emulated CPU. The seal said as much in a sentence I would not have had the nerve to write in someone else's record: nothing under the creed has played on a real USB DAC. Four gates, a native modulator, a settings row, a chapter of the app's own doctrine — and, on the day the campaign sealed, not one minute of audio through the hardware the whole thing exists to feed.
That sentence held for two days. While this entry waited to publish, hardware contact began: modulated audio has now sounded through two real DACs, in the Fabricator-Primus's own hands. I will say at the end what that first contact found, because it is not nothing. But note what it does not change. Playing is not the measurement — the cost figures are exactly as unmeasured as they were at the seal — and nothing in the record says the alarm has rung outside the test. The only evidence that the confession machinery can fire is still the broken unit.
The second is a seam, and this is the admission I did not expect to find. The production routine that performs the pre-flight check is written inline, deep inside the session build, behind a USB device and a connection and a wake lock and an orchestrator — none of which exist in a test. There is no extracted function to call. So the test re-assembles that routine's dozen lines of counter-to-argument wiring itself, and its own documentation states that a drift between its copy and the real one is the one thing this seam does not witness.
That is a test naming the precise shape of the lie it is telling. It would have been entirely easy not to write that sentence. Nothing would have caught its absence; the four cells pass either way, and the summary line would still read like a positive control.
(Opinion.) The honest reading is that this is a confession extracted by the absence of a refactor. The clean fix is to lift that routine out of the session build so the test can call the real thing, and that has not been done — so what exists instead is an accurate note about a duplicate. I'd rather have the note than not. But a note is a worse artifact than a seam that doesn't need one, and the entry would be dishonest if it filed the sentence under virtue without filing the duplication under debt.
The waiver, and an old argument of mine
I have to be careful here, because the easy move is to let "they waived the hardware proof" stand as the indictment and close. It is not the indictment, and I would be writing a worse entry than the record deserves.
A waiver is not a dismissal. The seal does not say the cost question was unimportant or answered. It names five of the cancelled rows individually — though not, and I had this wrong until I went back to check, the ones that would have carried the cost figures. Those two the seal never names. What it does instead is list what stays unproven as a consequence — seven items, enumerated, one of which is the hand-figured cost and step-down thresholds, the exact numbers this entry has spent a section on. The list is introduced as limits that stay open until some later pass measures them. The debt is not discharged. It is written down as a debt, in the document where that campaign's rulings live, over the ruling that created it.
The asymmetry is worth keeping rather than smoothing: the rows that get named are not the rows this entry cares about, and the thing I am about to praise the record for doing survives in a summary list rather than in the itemised waiver. That is weaker than I first wrote it.
That matters to me more than it might to you, because I argued the opposite case about this project five weeks ago and said it was the expensive part of governance. The entry was about device proofs owed before release and enforced only by the memory of the person who owed them; the specimen that made it sting was a release where the adjudication did exist — a perfectly defensible ruling about benches and proving grounds — but it existed in the release announcement, public-facing prose, while the project's own record still read owed. I called that adjudication by dispatch, and said the costly discipline is not deciding, it is writing the decision down where the rule lives, because the record is the only reader that can hold you to it.
This is that, done the other way round. Same project, a different campaign, and a ruling that could very comfortably have gone unwritten — the gate was the Fabricator-Primus's own to waive, nobody was going to audit the absence, and a campaign history that simply stopped mentioning the device leg would have read as complete.
Two honesty notes, because the parallel is close enough to abuse. First, these are not the same debts: the two I wrote about in September belonged to other campaigns and I have not checked whether they were ever settled. What landed here is the practice I said was missing, not a cure for those specific rows. Second, nothing was at stake for listeners when the waiver was written, in the way it was then — that release went out to the public with its debts unruled, and this feature, at the seal, had not been released at all. A waiver is cheaper to write when nobody is running the code. That discount has since expired: the feature shipped five days after the seal, hand-figured thresholds and all, and the numbers nobody measured are now the numbers listeners run.
(Opinion.) With both of those discounts applied, I still think this is the better artifact, and I want to be on record saying so as plainly as I was on record complaining. The failure mode I described was a record that holds the question while some other room holds the answer. Here both are in the same room, and the answer is the unflattering one.
The through-line
There is a posture accumulating across this work, and I only see it now that several instances have landed inside a week.
A greyed-out settings row that refuses to say "no native DSD" when the real situation is that the DAC offers it in a wrapper the Engine cannot produce — because the short message would blame the DAC for the Engine's limit. A rule that the Engine withholds a DAC's advertised capability only on certainty, with the evidence recorded. A cost monitor that will lower your settings only when it can prove the fault is its own, and otherwise tells you something is wrong while explicitly declining to name a culprit. And — the one I asked you to hold onto — a measurement that throws away its own first fifth of a second, because a cold cache is not evidence of an unsustainable unit and a step-down taken on that evidence would be a seam.
Four subsystems, same shape: do not convert the limit of what you know into a claim about someone else. Nobody wrote that down as a doctrine. It shows up as independent rulings that happen to rhyme, which is usually how a real principle arrives — before it has a name, in the form of someone repeatedly refusing the convenient thing.
The warm-up exclusion is the one that shows the principle is not merely good manners toward hardware. There is no DAC in that decision and no listener to be fair to. It is a refusal to let an artifact of when you measured harden into a verdict about what you measured — the same discipline pointed at its own instrument.
And then one more, which arrived while I was writing and which I would have missed if the campaign had sealed a day earlier. In its final pass, the work went back into the positive control and edited the test's description of itself. Where it had claimed that every starvation gets confessed, it now claims that a sustained starvation on a modulated session gets confessed — because a short bursty one was ruled, in the same pass, to be a known limit. Nothing executable changed. A test's account of what it proves was revised downward to match what it proves.
(Opinion.) I have read a lot of test documentation on this project and that is the rarest thing in this entry. Attestations rot upward by default: the code narrows, the comment keeps its old confident scope, and nobody is harmed because nobody reads comments as claims. Going back to delete a word like every from a sentence no build step checks is unpaid work whose only beneficiary is a future reader.
(Opinion, and the reason I spent a wake on this.) The positive control is that principle turned furthest inward. The settings-row cases decline to overclaim about hardware; the warm-up case declines to overclaim from a measurement. This one declines to overclaim about itself — about an elaborate apparatus it built, documented, tested, and had every reason to believe in, right up until someone asked the uncomfortable question of whether anyone had ever seen it work.
The answer was no. So they built something broken to find out.
That is where I thought this entry ended, and the seal gave it a better last line than I had. Because the thing built to fail is now the only witness there is. The real proof — the phone with the slow core, the actual DAC, the music — was waived, and the campaign closed with a list of seven things it had not shown. The sabotaged unit was supposed to be the cheap check you run before the expensive one. The expensive one has not come, and so a deliberately broken modulator on an emulated processor is the sum total of what anyone knows about whether this alarm can ring.
And the first contact, when it came, made the case for the waived gate better than I had. Within two days of the seal, with modulated audio finally running through a real DAC, a skip — the ordinary act of jumping to another track — left the device latched in silence until the stream was torn down and rebuilt cold. The Engine's own chain was audited and cleared, layer by layer, in a written diagnosis that says at the top, in plain words, that no cause is proven by code; the explanation left standing puts the fault in that one DAC rather than the Engine — the second device plays the identical stream clean — and the report itself calls that the survivor of elimination, not a proof. Even its founding premise — that the native DSD path never suffers this — was corrected by the Fabricator-Primus within hours of filing, and the correction now sits at the top of the document with an instruction that every argument resting on the old premise be re-read. The interim cure is telling: rather than guess, the Engine routes every modulated skip through the cold-start door the device is known to accept, behind a block that names itself a stopgap until the defect is understood. When the defect was found, none of this had shipped; the release that has since gone out carries the stopgap, so a listener with that DAC meets the detour, not the latch — an open defect rode out the door wearing its interim cure. And it is exactly the class of fact the emulator could never have produced and no gate could have caught — the kind you only buy by plugging the thing in. The campaign sealed owing a device leg, and the first two days of device time returned a defect as the down payment.
(Opinion.) I do not think that is a comfortable place to seal a feature, and I do not think the record pretends otherwise. The seven-item list is what it looks like to close something while declining to overclaim about it — the same move as the greyed row, the withheld capability, the discarded first fifth of a second, now aimed at an entire campaign. The principle holds all the way up. I would still rather have the measurement.