Skip to content

164. Two durations of one kind in a row are one interval, and reading them apart named 45 codes wrongly

A change decided in section 153 and deliberately left unmade there, made on 24 August 2026. The rule about measuring before removing a derivation is why it waited: section 153 counted what it would cost against a decoder nobody had a second opinion on, and the second opinion arrived in the same section.

What the change is. A stored duration is fifteen bits, so an interval longer than 32767 microseconds is spelled as several words in a row, and the corpus does it constantly. Nothing in the train marks the join, and nothing about a receiver can see one: an interval is a length of time the carrier is on or off. framesOfPulses and timingsOfFrame merge adjacent durations of one kind before reading anything, which mergedIntervals had been doing for Logitech's own notation since section 132 and for the frame reader never.

What it costs, measured over the corpus. 45 records, and nothing else.

before after
read under exactly one convention 3547 3502
read under both 0 0
read under neither 1083 1128

gained and changed are both zero: no record starts reading, and no record that reads keeps a reading with a different value. That is cheaper than section 153 predicted, and the reason is section 163: requiring the non carrying half of a frame to be one length already refuses everything the merge would have made ambiguous, so the 616 records that section 153 said would become ambiguous have nowhere left to go. Two findings interacting, and the order they landed in decided the price.

The 45 are the finding, and the outside answer is what settled them

All 45 sit in three configurations of one contributor, arch 8 (Harmony 880). All 45 are eight bits, which is exactly MIN_BITS, and all 45 read the same value. Forty five different commands cannot send one code, so the internal argument was conclusive on its own; what was missing was somebody else's decoder, because a decoder is the last thing to trust about its own output. Logitech's analyser produces nothing for a single one of the 36 that were asked about, in any of the three forms tried by hand, and it is not that the shape defeats them, since it named 48 biphase codes in the same run.

Three device groups lose every framed record they had, which is why the count of groups carrying one set of timings falls from 58 to 55 and the count with a single set from 52 to 49.

The merge is not applied to the biphase reader, and that is a rule

A biphase family spells its code in unit half cells, so two adjacent cells of one kind are two cells and merging them destroys the reading; pulsesOfBiphaseFrame emits them unmerged for the same reason. So the distinction is not a tolerance: in a pulse distance frame adjacent same kind durations are always a split word, and in a biphase frame they are always two cells. mergedIntervals moved out of irda.ts and into irframe.ts to sit beside both readers, since a rule about pulse trains written up as a property of Logitech's notation reads as though it were their format's.

It gives a biphase code a plausible pulse distance shape, and two records show it

Merging two adjacent carrier halves produces one of twice the length, so a biphase train whose cells fall the right way comes out as a frame with a constant flat and two carried lengths, one of them double the other. Two Magnavox 13 Bit records of the compiled sample do exactly that: flat 900, zero 880, one 1760, mark carrier, no lead in, where 1760 is 880 twice. Both matched a stated number only because the appliance has one command of that width, while their biphase reading matches the value.

So the rhythm table's join prefers a reading that lands on a number by value over one that lands only by width, whichever reader produced it, and that restores the table byte for byte: 21 entries, the same counts, Magnavox 13 Bit back to one set and 105 of 105. The general form of the rule is worth keeping, because it is not about these two records: after this change a biphase code can produce a pulse distance reading, so evidence strength has to order the routes rather than the order they are tried in.

What moved in the tests

The partition, the rebuild's per container counts in three arch 8 configs, the pulse width and pulse distance split of 200 against 3302, the copies histogram, the count of tail shapes from 151 to 140, and the two device group counts. Two things worth naming rather than listing. The fixture asserting that our decoder still says what it said when Logitech was asked now permits 36 rows to have become no reading, by name and by count, and those rows are the ones whose recorded category was already one reading, none once merged: the column predicted this transition, so allowing it is reading the fixture rather than editing it. And the synthetic JerroldO1 16 Bit train in the tests lost its last bit, because it was written by hand with the last bit's space running straight into the inter frame silence. Every framed record in the corpus carries a closing mark between the two, which is what makes the merge cost 45 records rather than thousands, and the train carries one now.


Section 163 | the archive | section 165. Section 164 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.