139. Seventy nine shipped readers answered plausibly where they should have refused, and nine were rails¶
Every finding in this document rests on code, and this section is about the code rather than about a
remote. On 13 August 2026 the whole of packages/ and src/harmony/ was reviewed by nine
independent readers, each given one partition and told to look for a claim the tests cannot fail on.
Seventy six defects came out of it that a sample could not have found, and they share one shape, which
is this project's own recurring one: each produced a plausible answer where it should have produced an
error. Not one of them failed a test, and five of them had a test asserting the wrong thing was
right.
They are listed newest reading first, except entries 13 to 21, which were read a day later and are appended rather than reordered so the numbering stays citable. Entries 19 and 20 are the Python side, nine readings in two entries: 19 holds the five that no sample in the corpus reaches, and 20 the four found by reading the same partition list properly afterwards, two of which are producing a wrong answer today. Entry 22 is the one to read for what it says about itself: three of its six changes cannot be made to fail by any test, and it says which and why rather than leaving that to be discovered. Entry 23 is the one where the review was wrong: the performance defect it reported is real and free, the cost is somewhere else entirely, and the hoist it asked for makes the function slower. It also holds the fourth architecture ladder read for another remote, one partition after entry 19 found the third. Entry 24 is the USB one and holds the only defect in this section with a live consequence on the bench: a Harmony 525 on an unpinned handle was read under arch 12 (Harmony One)'s address rule, so the refusal that stops a remote hanging did not apply to it. Entry 25 is the last partition and closes the review: its own instructive one is that the contribution probe, built for models nobody here owns, could not report the one unusual remote that is here. Entry 26 is not from the review at all: it is three more of the same shape, found while sweeping the summaries against entries 23 to 25, which is why the title counts seventy nine and the paragraph above counts the review's own seventy six. Entry 21 is thirteen readings of the container parser itself, and it is the one where the population is the finding: the lab parses 33 containers and three of the parser's own comments quote a snapshot of thirteen, twelve and twenty four, with two of the claims those numbers carry gone from true to false. Entry 6 needed firmware and is the only new firmware reading here; entries 7 and 8 came out of correcting entry 1 in the other language. Entries 7, 8 and 9 are the ones that moved a published number, and 9 is the one this document had already written down and not acted on. Entries 5, 11, 16 and 17 are the rails, and 16 is two of them: an editor that would rewrite a container's own cookie and one that would stamp a damaged config as valid. 11 is where "it cannot brick anything" turned out to be a claim about an address. The rest are corrections to code this document already relies on.
1. The infrared duration locator read a neighbouring record, on every record¶
ir.ts had a function that located a record's mark and space durations as the longest strictly
alternating run from a fixed offset, with a comment saying a record's extent is not established. It was
established, twice: section 61 read the header, section 75 corrected it to 12 + 9 * count, and section
127 read the three block pointers as once, held and tail. The heuristic outlived both.
Measured against the pointers it should have used: of 748 records across arch 8 (Harmony 880), arch 12 (Harmony One) and arch 14 (Harmony 600), none had its located run inside a block the record itself names, and 713 landed inside a neighbouring record's block. The other 35 landed outside any block.
It stayed invisible for the reason a wrong reader usually does here. Records in one device group
usually share an infrared protocol, so the pulse pair taken from a neighbour is usually the pulse pair
the record would have given, and irFrame on top of it produced a bit count that matched. That was
also the second same-named reader in the package: irframe.ts has the frame decoder section 133
uses, and index.ts exported this one, because a barrel re-exporting two files that both define
irFrame hands out whichever it lists second. So the reader nobody wanted was the reader every
consumer of @harmony/codec got.
irPulses, this module's irFrame and IrRun are gone. What is left of the question the heuristic
was answering is irRepeatBlock, gated on class 1, whose measured range over the corpus is 76.6 ms to
752.4 ms with 1077 of 1315 repeating codes between 60 and 120 ms.
2. The byte accounting could not see two claims of one reader¶
coverage.ts walks every claim, writes an owner name per byte, and reports a byte held twice as an
overlap. It compared owner names, so two claims of the same reader could not collide: the second
found its own name already there and moved on. Every corpus wide "zero overlaps" in this document was
computed by that rule.
The blind spot is not a corner. Over the 19 containers, 98.08% of the 10242905 claimed bytes belong
to an owner name that makes more than one claim, 25 of 48 names, which is what a reader that walks an
array looks like. And accounted is the union of the claims, so over-claiming can only raise the
percentage: a reader that reads one record twice pushes the coverage figure up and reports no
overlap.
The detector is claim-aware now, with two claims of one owner treated as an overlap unless they are the
identical run, which is legitimate and happens: a shared infrared duration block is claimed once per
record that names it, section 61. The control is a copy of one_config with one byte perturbed so a
base slot 10 list is claimed twice; the old rule reports zero overlaps and the new one reports the three
bytes. make coverage also exits nonzero on any overlap now, which it did not, so the number was only
checked by somebody reading it.
The figures did not move. Nothing in the corpus double claims, which is the outcome to state plainly: the claim was true and the check was not checking it.
3. A rail refused an operand by value and the value was truncated first¶
edit.ts refuses to write action list opcode 0x7F, because that operand names a base slot 10 entry
and section 120's activity chain runs through it. The refusal was entry.opcode === 0x7F, and the write
was Uint8Array.from([...]), which truncates to eight bits. So opcode: 0x17F passes the refusal and
writes 0x7f, and the same holds for tag and operand.
This is the field split pitfall from CLAUDE.md in a new place: a necessary test used as a sufficient
one. The fix is a range check per field before the value test, phrased as "is not in 0 to 255, and a
write here truncates", so the message says why the bound exists.
4. A config saved on the 31st declared a value outside its own range¶
Section 138 established that base slot 13's variables 0 to 6 are the firmware's clock and that six of
their maxima are constants. clockStateEdits stamps the record's first with the moment of writing and
raises the year's maximum to that year plus one, because the year's maximum is not a constant.
The day's maximum is not a constant either. It is 30 in every container here, and a config saved on a
31st gets first = 31 with a maximum of 30, which is a value outside the variable's own declared range,
written by our own editor and passing every check the remote makes.
Corrected by section 322: this item was our own misreading. The day is counted from 0, so the 31st is stored as 30 and fits the maximum every container declares.
h700_configwas built on 31 July 2021 and stores 30 against 30, which is what the generator does on a 31st. The raise below is gone.
The day is stamped with its maximum now, the same way the year is, and CLOCK_DAY_INDEX names the one
index this applies to. What Logitech's own generator does on a 31st is unknown and marked
unconfirmed: no config in the corpus was built on a 31st, so there is no sample either way. The
choice is the conservative one, since a variable whose value exceeds its maximum is the state the
firmware's own range test exists to prevent.
5. packages/usb published the four request builders that change a remote¶
rails.ts opens by saying that a rail enforced there is enforced for every caller. It was enforced for
every caller of HarmonyRemote. The barrel star-exported protocol.ts, which holds
writeFlashRequest, eraseFlashRequest, writeMiscRequest and escapeRequest, and openHarmony
hands back a Transport whose write is public. Two lines reach ERASE_FLASH with no permission
object, no WRITES_ENABLED, no architecture check and no address bound, and an erase takes an address
and no count: it destroys 64 KiB of a Harmony One (arch 12).
No gate can live in the encoders, because rails.ts imports from protocol.ts and not the other way
round, and because a byte builder has to stay testable with the flag off. So the boundary is a module:
packages/usb/src/writes.ts holds the four, index.ts does not re-export it, and remote.ts and the
tests import it by path. A module rather than an explicit export list, because a list of fifty names
drifts and a new write encoder would be exported by default; here the default is the safe one. The
test is the rule in its own terms, that the barrel offers no export named <something>Request matching
write, erase or escape, and its control is re-exporting the file.
None of this stops anybody assembling five bytes by hand. It stops the accident, which is the same
reasoning as the named door HARMONY_ODD_READ_EXPERIMENT in the same file.
6. Arch 9's 0x0F ladder is its own, and the shared table called a call a no-op¶
The one that needed firmware. BANDS_0F in actions.ts answered for four architectures and was read
from two: section 73 followed the arch 12 (Harmony One) and arch 14 (Harmony 600 and 700) dispatchers,
and arch 9 (Harmony 525) was never one of them. Its ladder is at 0x02246 to 0x02344 in the 525's own
internal program flash, --part 4550, and it differs in four ways.
02332: 60 0e MOVLW 0x60
02334: d7 5d SUBWF 0xd7,B,W the operand's low byte
02336: 56 e3 BNC 0x023e4 below 0x60: the dispatcher's exit
02338: 01 0e MOVLW 0x01
0233a: d7 15 ANDWF 0xd7,B,W bit 0 of the low byte
0233c: 00 01 MOVLB 0x0
0233e: c3 6f MOVWF 0x0c3
02340: 01 ec 1b f0 CALL 0x03602
That arm is the defect rather than the omission. The two Harmony 525 configs emit 0x0F with low byte
0x60 or 0x61 twelve times, the shared table sent them to its [0x50, noop] entry, and the
reading came back "nothing: the dispatcher returns without acting" at depth meaning. A no-op is the
strongest claim a reading table can make, and it was being made about a call, from another remote's
dispatcher. It also inflated the depth figure, because a no-op counts as meaning: arch 9's reading
coverage was 96.0% and is 95.2% with the twelve instructions honestly at placement.
The four differences, with the arms stated conservatively, meaning where the mechanism is visible and placement where the arm only reaches a routine nobody has followed:
| band | arch 12 and arch 14 | arch 9 (Harmony 525) |
|---|---|---|
0xE0 |
append one to three bytes to the flash journal, section 108 | one to three bytes handed to 0x0108C, selected by the low nibble |
0xD0 |
not tested | tested and branched to the exit: a real no-op |
0x90 |
not tested | gated on PORTB bit 5, then the low nibble into 0x102 and 0x07944 |
0x60 |
inside the 0x50 no-op range |
bit 0 of the low byte into 0x0C3, then 0x03602 |
0x40 |
a lookup whose sixteen bit result goes to scratch | nothing: the chain falls off its end below 0x60 |
The arm at 0x90 is worth naming for its shape rather than its function: no other architecture's ladder
gates an action list instruction on a port bit, so on a Harmony 525 the same instruction does
something or nothing depending on hardware state the config cannot see.
BANDS_0F_ARCH9 carries them, bandsFor selects it, and the test asserts the two architectures
disagree at 0x60 and at 0x40, which is what a per architecture table is for.
7. The Python reader had the same defect, and two more, and nothing compared the two¶
src/harmony/gspm.py is reverse engineering tooling rather than the codec, decision 3, and the
two-copies rule applies to it anyway: it read the flat 21 byte header with two pointers that
section 75 corrected a week earlier, so the two implementations disagreed and every test on both sides
passed.
Measured across eight configs: Python found 3062 of 3390 distinct block pointers, missing 328. All
of them on the two architectures where a header declares more than one group, plus the third pointer of
every group everywhere: every second group of the 37 two group records in each of four arch 8 (Harmony
880) configs, and all 61 two group records of the arch 9 (Harmony 525) config. It also carried the same
located-run heuristic that entry 1 removed from packages/codec, in the language the port was made
from.
Two things fell out of correcting it, and neither was the thing being looked for.
The tiling closure had a remainder and the remainder was the reader. Section 61 reported that 3357 of 3490 blocks end exactly at the next boundary and 133 stop short, explained as padding on arch 8. With all three pointers of every declared group the count is 3715 blocks and every one exact, none short and none over. The 133 were not padding: they ended exactly where the next block began, and that block was invisible because it was named by a pointer group the reader did not read. An explanation offered for a remainder is where to look when a reader is suspect, because a remainder with a story attached stops being counted.
And section 32's closure was not a closure. It held the header timings against a bit count derived
from the block's length, 2 * bits + 4 from the first mark, over 2137 records with no exception.
Both numbers came from the same wrong run, so it compared a neighbouring record with itself. On the
right bytes the identity is simply false: 0x035571 of h700_config carries a 32 bit NEC code, a gap,
the protocol's repeat header and a long silence, so its length gives 36 bits where its timings say
32. Every class 1 record in the corpus holds a gap somewhere other than at the end of its once block,
which is what says a block is more than one transmission: 2858 of 2858 when this was written, and
3840 of 3840 now that the population is all fifteen user configs, section 140.
The closure is real again and it lives in TypeScript now: every record with NEC timings carries 32
bits and every record with Kaseikyo timings carries 48, zero exceptions,
packages/codec/test/irframe.test.ts. It was 1106 and 257 over the nine configs section 32 quoted,
and it is 1567 and 670 now that the population is every user config, section 140.
8. Two frame decoders, caught by the check added to catch them¶
Correcting the Python reader meant Python had a frame decoder and so did irframe.ts, which is the
banned state rather than a tidiness problem. The golden vector had never looked at the infrared
database at all, so the first thing it did once it carried the header reading was report the two
disagreeing: the header, the pointer count, the distinct blocks and the block bytes matched to the byte
on every container, and framed did not, by 37 records on arch8_config_a and by one on h600_config.
The order this was done in was wrong, and the record says so. The Python decoder was removed on the
strength of its provenance, that only the other had been checked against a catalogue outside the code,
and which of the two was actually wrong was measured afterwards. It happened to agree. That is luck: had
it gone the other way, the correct decoder and the evidence against the broken one would have gone in one
commit. A disagreement between two independent implementations is the most informative signal this
project produces, and the golden vector exists to manufacture it, so removing half of it before reading
it is the one response that cannot be right. CLAUDE.md carries the rule now, beside the one about two
copies.
With that said, which of the two was wrong is measured, not argued. Held over the same block words, so the header reading is constant and only the decoder varies, they agree on every pulse distance record and differ on 100 of the 241 both accept in each calibration config, by exactly one bit, every one of them a pulse width code.
The tie is broken from outside the bytes, which is what the calibration pair is for. This decoder reads those records as 12 and 15 bits with a 600 and 1200 microsecond split, 56 and 44 of each, which is textbook Sony SIRC: a 600 unit, a long mark for a one, and 12 and 15 bit variants. The removed one read 11 and 14, which is not a width any protocol has. Python's assumed pulse distance and measured the space, so where the bit is the mark and the final space is the gap it tested the gap before pushing and dropped the last bit of every code.
The mechanism was already written down, in irframe.ts's own docstring on decode: the trailing gap
arrives with the last bit, not instead of it, and testing the other half first made every 12 bit
frame read as 11. The decoder that kept that lesson is the one that had been checked against a catalogue
of named commands, so section 133's button names were produced by the right one.
So the Python decoder is gone, tools/ir_extract.py prints durations rather than a bit count, and the
vector carries the header reading and deliberately not the frame, because there is now one decoder and
nothing to compare it against.
The control matters more than the finding here. Reverting the Python side to one pointer group makes six vectors differ and the TypeScript test fails; that check did not exist this morning, and it is the only one in this repository that can see a difference nobody thought to write a test about.
9. The six byte instruction's argument was being read as an instruction¶
Section 73 read 0x3F with an operand high byte in 0xD0 to 0xDF as a six byte instruction: the
handler pops three bytes off the interpreter's own queue as its argument. It said so, and then said, in
the same paragraph, that "a reader that walks an action list three bytes at a time is right about the
bytes and wrong about the boundaries wherever it appears". Nothing acted on that for a month.
What it cost is exactly measurable. There are 75 of these in the corpus, each at the head of a two
slot list, so each list is one instruction. The argument slots resolve as ordinary instructions, 0x7F
55 times, 0x7E 19 and 0x72 once, and every one of them at depth meaning, because an action
list reference is a thing this project understands. So the reading table was reporting the meaning of
bytes that are not an instruction, and action_instructions counted 58 of them in its own population.
The figures: action_instructions is 86947 where it was 87005, and the
per config meaning counts drop by that config's own number of six byte instructions, 12 on a Harmony
700, 9 on a Harmony One, 8 on a Harmony 600, 4 on a Harmony 525 and 1 on a Harmony 880. The percentages
do not move at one decimal, which is why nothing noticed.
No name was ever wrong because of it, and that was checked rather than assumed: the activity chain
follows 0x7F with a low byte of 0xFF and the device readers follow 0x7D, and not one of the 75
payloads is either. So the defect is confined to a published count, which is the mildest form this
failure takes and the reason it survived.
takesFollowingSlot in actions.ts is the predicate and ReadingCoverage.arguments is the count.
Container.actionList still returns both slots, deliberately: the emitter reproduces the argument byte
for byte and the reader must not read it, so the boundary is a caller's business rather than the byte
reader's.
10. The check against restating a dead claim did not read the code¶
make facts refuses any wording in reference/superseded.md outside a correction, and the whole point
of it is step 4 of the finding skill: what a finding kills must stop being said. It walked *.md
only.
So the documents were protected and the code was not, which is the half where it matters more: a stale
document misleads a reader, and a stale comment misleads whoever edits the reader beside it. Switched
on over .ts and .py, it found twenty hits. Two were written that morning, by the commits that
superseded them: tests/test_gspm.py and packages/codec/src/coverage.ts both still said "the header
is 21 bytes" in the entry 7 commit's own files.
Eleven of the twenty were deliberate quotations, a correction naming the claim it kills, and they carry
the <!--superseded--> escape now. The other nine were live restatements of dead readings, with the
reader beside each one correct: base slot 13's eight byte values described as undecoded where section 86
decoded them, base slot 7's font header keyed on the architecture where section 78 read the first glyph
code, section 31's "second operand space" where section 72 read the opcode continuing into the operand,
a screen program count two findings out of date, and arch 9's 277 blocks.
The structural escapes do not apply in source, and that is not strictness. Every line of a JSDoc
block begins with *, which the checker reads as a markdown bullet, so honouring the markdown forms in
a .ts file makes the check pass on any comment in packages/. It did exactly that: the dead screen
program count sat behind it and was invisible until the rule was narrowed to the explicit token.
11. Three in packages/usb, and one of them makes a write not volatile¶
The write rails were the subject of entry 5 and the read path had its own three.
readRam returned a plausible zero on arch 9 (Harmony 525). decodeReply carries the warning in
as many words, that on arch 9 the byte after the selector is the high half of a sixteen bit word and
a caller should read word or low; readRam returned value whatever the architecture. Underneath
that, only selector 0x01 has a body in that firmware's READ_MISC executor at all, section 90, so
every other selector emits two bytes the firmware has just cleared: the call would have answered zero
for every address on the device, and a zero is exactly what a variable holding zero looks like. It
refuses now, naming the reason. Section 137 is what the same shape already cost: selector 1 was read as
answering zero for a year because the decoder took the byte before the one carrying the value.
And packages/usb/bin/read-ram.ts could not have shown that refusal, because it called
getVersion to find out whether the remote was awake and threw the block away, so the object never
learned which architecture it was talking to. It adopts it now, which is the same correction section 118
records in read-window.ts: the answer was sitting in a reply the tool had already received.
writeRam called itself volatile, and that is a claim about the address rather than the command.
The request carries a sixteen bit data address and assertRamWriteAllowed bounded nothing: it
checked the flag and the spare remote, and had no architecture check either, so a caller with
targetIsTheSpareRemote reached WRITE_MISC on a Harmony 600 or a Harmony 525 whose selector 7
executors nobody has read.
On the PIC18F87J50, bank 15 from 0xF40 up is the special function registers, and Microchip's own
p18f87j50.inc puts EECON1 at 0xFA6, EECON2 at 0xFA7, TABLAT at 0xFF5 and TBLPTR at
0xFF6 to 0xFF8. Those are a PIC18's self programming path, and a flash write on this part is made
of exactly a sequence of single byte writes to them. Whether the firmware's own handler bounds the
address is unread, and that is the point: the rail must not depend on the answer, because "volatile,
so it cannot brick anything" is the sentence a rail exists to stop anybody relying on. SFR_PAGE_START
is the bound, the same constant and the same provenance as src/harmony/pic18/isa.py's.
eraseFlash and writeRam checked that something was acknowledged and not what. An
acknowledgement carries the command byte it acknowledges, so a reply to another command satisfied a
kind === 'ack' test. Cheap, and these are the two methods that change a device.
The rails' tests run with writing off, which is the shipped state, so the bound is asserted in the subprocess where the flag is on: with the flag off every one of these refuses at the first line and a test asserting a throw would say nothing about the address. Two rows are allowed there and they are the two that should be.
12. The contribution probe measured the file and reported it as the container¶
packages/probe is the one package here meant to be run by somebody who has none of this: it produces
a few kilobytes of JSON describing a config's shape and none of its contents, for publishing. Two of
its numbers were not what they said.
The trailer checksum was computed over the whole file. parse slices the container out, from its
magic to four bytes past its end marker, and computes the checksum over that; containerReport worked
on whatever bytes it was handed and read the stored u16 at length - 6. So on a raw flash read with
fill past the end marker it took the stored value out of the fill: h890_config and
h890_config_rescan were reported as failing their checksum while the codec says both pass. A
contribution probe condemning a good config is the worst direction for that error, because nobody
chases a file the tool has already ruled out.
Every test in that file passed an already sliced container, which is why none of them could catch it. The new one passes the file.
And the base did not say whether the anchor produced it. Section 117 anchors the container's base on
the clock record and keeps the marker subtraction as a fallback, and section 122 is the case where the
anchor refuses: an arch 10 (Harmony 890) read duplicates whole 54 byte chunks, and on
h890_config_2_rescan they land inside the container, so no candidate is 0x1000 aligned. The fallback
then returns a number and the report published it looking exactly like a derived one. A wrong base does
not error, it reads the neighbouring bytes, so flashBaseAnchored and flashBaseAligned are in the
report now: a consumer that ignores them is at least ignoring something.
containerExtent is exported from the codec and used by both, rather than the probe getting a second
copy of the slicing. That is the same correction the base derivation itself needed in section 117, where
packages/probe had kept the reading the codec had abandoned.
13. The byte accounting attributed twelve bytes for sitting between two things¶
Entry 2 fixed how the accounting compares claims. This is one of the claims, and it is the one that could not be wrong.
coverage.ts carried a slot-15-spare owner that filled every unclaimed byte between base slot 15's
lowest group and its own pointer array. It came from section 84, which named those twelve arch 12
(Harmony One) bytes by position because at the time nothing had read them, and it survived section 103,
which read both halves out of the firmware. So the accounting attributed them for a reason no byte can
contradict: they were left over.
That is not a cosmetic complaint, because the run had no cap and no content test, so it absorbed
whatever a broken reader stopped claiming. Zeroing the u8 entry count of base slot 15's largest group
makes the group claim one byte instead of its whole body, and the catch-all took the difference every
time:
| container | architecture | bytes absorbed | what coverage reported |
|---|---|---|---|
one_config |
12 (Harmony One) | 32 | 100.00%, 0 gaps, 0 overlaps |
h600_config |
14 (Harmony 600) | 28 | 100.00%, 0 gaps, 0 overlaps |
arch8_config_a |
8 (Harmony 880) | 28 | 100.00%, 0 gaps, 0 overlaps |
h525_config |
9 (Harmony 525) | 8 | 100.00%, 0 gaps, 0 overlaps |
The four architectures matter because the owner claimed nothing off arch 12 in an undamaged container, so nothing in the corpus said it was reachable there. It was reachable on all four, and only by damage.
Section 103's reading is what replaces it, stated rather than found. Both readers start from group 9's
first entry: 0x249A0 adds 4 * band to that cursor, so band 3 takes bytes 12 to 15 of a body whose
header declares six u16 entries, and 0x2492E reads one byte at 0x10 + 4 * flag + (selector >> 2)
and extracts the two bit field selector & 3, which is bytes 16 to 23. lightBandExtras in tables.ts
returns both, at those offsets, and returns undefined where there is no group 9 to continue, which is
every other architecture: nine groups on arch 8 (Harmony 880) and arch 14 (Harmony 600 and 700), five on
arch 9 (Harmony 525).
It deliberately does not check that the twelve bytes are unclaimed. A reader that consults what is already taken is the shape being removed, and a collision with a group is exactly what entry 2's detector now reports.
The number did not move and the emitter's did. All nineteen containers report the same coverage to the byte, which is what says the two stated claims cover the same twelve the catch-all did. The emitter's framed count rose by 12 on each of the six arch 12 (Harmony One) containers, because the run used to be written back raw with a framed count of zero on the grounds that what the bytes said was unsettled, and section 103 settled it.
The control is the perturbation itself, and it is a test now rather than a measurement: zeroing that
count byte has to produce exactly one gap of the group's own length less one, on all four architectures.
That number is derivable rather than recorded, since a group with a zero count claims its count byte and
nothing else. Two things it says out loud. Restoring the catch-all fails it, which is how the control was
checked. And the percentage cannot see any of this: 32 bytes of a 1672832 byte Harmony One container
still round to 100.00%, so gapCount is the signal and a report quoting only the fraction is blind to a
32 byte loss.
The reason this one is worth a whole entry, when it moved no number: a claim that cannot fail is the same defect as a test that cannot fail, and this repository has spent a day on the second kind. It sat inside the figure that measures milestone M2.
14. Six claims in the byte accounting were right for reasons that were not the reasons given¶
Entry 13 was one claim that could not fail. These are its neighbours, found by reading the rest of the same file, and they share a shape with it: each was correct in all nineteen containers, and in each the comment above it named a derivation the code was not performing.
One derivation existed three times and two of its copies were invisible. Base slot 12's pointer
array is one of the six pointerArrayAt recognises, and a comment beside its reader said it is not, so
slot-12-table was claimed twice in all nineteen containers and slot-9-table in six: once by the
section reader from its own countedPointers width, once by the array loop from
width + 3 * count === length. The extents agreed on every one of the 104 slot and container pairs
where both derivations exist, which is worse than disagreeing. Two right copies are the state that
precedes two diverging ones, and this is the case that no check could have caught: entry 2's
detector treats an identical run as legitimate, and it has to, because a shared infrared duration block
genuinely is claimed once per record that names it, section 61. The array loop runs last now and
compares, pushing its own claim only when the extents differ, so a divergence becomes an overlap.
A raw slot was printed as a base slot, in a report. baseOf returns undefined for an architecture
with no slot mapping and the owner name fell back to the index, so h890_config reported
slot-2-table, slot-13-table and slot-18-table for an arch 10 (Harmony 890) container. Section 117
measured that mapping and refused to guess it, the best of 1330 candidate insertions reaching 34 of 47
where arch 8 (Harmony 880), arch 9 (Harmony 525) and arch 14 (Harmony 600 and 700) each score 47
uniquely, so this is the one relabelling that section forbids. Unmapped slots are raw-<i>- now, in the
accounting and in the emitter, which have to agree owner for owner.
The base slot 1 extent rule existed three times, Math.min(ARCH_RECORD_LENGTH, room), in parse,
in the claim and in the rebuilder, with the undefined case spelled differently in each. archRecordExtent
is the one copy. That is this repository's oldest rule, and the count is the part worth recording: it was
not two.
A subtraction that could only produce a constant was presented as derived. Base slot 17's header
where it names the picture bank read pictureBankStart(c) - touch.start, and pictureBankStart is the
section start plus PICTURE_BANK_BIAS while touch.start is the section start. It claims the constant
now and the identity is asserted in the test, where it can be seen for what it is.
A section's size was the gap to the next pointer, for base slot 2, while logArea computes
width + 6 from the consumer in the same package. They agree in all nineteen, and section 36 exists to
say that a gap is an upper bound: base slot 4 holds 125 bytes where the gap is up to 1532. A container
that padded after the log area would have claimed unread bytes and still reported every byte accounted
for.
A defence has never had a case. Base slot 14's records are truncated to the next record that starts
inside them, against a shared tail, and that sharing has happened 0 times in 239 records. It stays,
because a defence measured at zero is a prediction rather than dead code, and the zero is asserted: the
day it fires, either the sharing is real or valueMaps returns a length running into its neighbour.
And the file's own docstring claimed a property it did not have: "nothing here re-derives a length from a structure's contents", while three claims did. Two are gone with entry 13 and this one; the third, the clock's zero tail test, is deliberate and now says so.
Nothing moved. All nineteen containers report the same coverage to the byte and the same round trip, and
the mode program docstring corrected alongside them, MODE_PROGRAM_ARCHITECTURES, said "all three" and
"arch 9 still manages only 43 of 114 ... and is not established" over a set of four, which is section 54's
own before column left standing beside the set that section changed. It is 2515 of 2515 across the corpus,
asserted per architecture.
15. The infrared reader's comments described a corpus it does not have, and one of its two implementations had been left behind¶
Six items in ir.ts and irframe.ts, found by reading the file rather than by any sample failing. The
code was right in four of them and the prose was not, which is the combination worth a section: a
comment is what the next person edits against, and none of these could fail.
A divergence the golden vectors were built to catch and did not carry. irRegion computed the top
of base slot 5's record area as start + IR_HEADER_LENGTH, the flat 21 of a header declaring one
group, where section 75 read the rule as 12 + 9 * count. src/harmony/gspm.py's ir_region calls
ir_header_length and has since that reader was corrected, so the two implementations of one
derivation disagreed with only one of them fixed. It bites where the highest header declares two
groups, nine bytes short in h525_config_2 (arch 9, Harmony 525) and arch8_config_a (arch 8, Harmony
880), two of thirteen. The region is in the vector now, and with the fix reverted the vector fails on
exactly those two containers and no others, which is the mechanism working rather than an argument
that it would.
Four comments said a record declares one pointer group outside arch 8, and arch 9 declares two in
more than half. Measured over every record: 888 of 888 on arch 12 (Harmony One) and 1128 of 1128 on
arch 14 (Harmony 600 and 700) carry one, arch 8 (Harmony 880) carries 2159 and 148, and arch 9
(Harmony 525) carries 139 and 168. One of the four was on IR_HEADER_LENGTH itself, which is what a
caller reaches for when sizing a header, and another described the class 5 layout as "two backward
pointers at +12 and +15 and a NULL at +18" as though a header held one group. docs/config-format.md
has said the opposite for weeks and the code read the count correctly throughout, which is the worst
arrangement available: nothing fails, and the wrong half is the half a reader trusts.
Two thresholds were called untuned and both are tuned. GAP_US and TRAILING_GAP_US carried
"every bit duration in the corpus is under 1800 us and every terminator is 32767, so the threshold has
three orders of magnitude of room and is not tuned", which compares a bit against the terminator and
not against what either constant separates it from. The largest duration a frame actually consumes as
a bit is 1850, in 22 records, and the smallest duration at or above 2000 anywhere in a framed
record's block is 2230. So TRAILING_GAP_US sits 7.5% above the one and 10% below the other, a 380
us window with traffic on both sides, and a device whose long bit runs 8% high truncates its own frame.
GAP_US keeps a 53.8% margin, and the corpus does hold durations of exactly 4000, which the strict
comparison admits as a bit.
A summary contradicted the test proving it, in the direction of over-claiming. irFrames was
described as returning "one or none here" while irframe.test.ts asserted 3547 one, 148 both and 935
none. The 148 were the whole reason the function returns a list; sections 163 and 164 have since taken the
partition to 3502, 0 and 1128, so the list now carries at most one reading in this corpus and the return
type keeps stating that it may carry two.
The record builder knew the address a caller needs and did not hand it over. irBuildRecord wrote
start into the header at +8 and returned the bytes alone, while base slot 5's group array holds
start + IR_RECORD_POINTER_BIAS. A caller filing the first would produce a config whose two checksums
pass, whose counts close and whose every code addresses seven bytes into the wrong place, which is
section 117's failure mode as demonstrated there by somebody else's cloned device. It returns
{ bytes, pointer } now.
And one that is left open rather than closed. The carrier is bounded above by IR_CARRIER_MAX_NS,
which has a firmware reading, and below by nothing, so the builder will emit a one nanosecond period.
The corpus carries 12 distinct periods across 3387 records, 17761 to 27777 ns or 36.0 to 56.3 kHz; a
floor invented from that range would refuse a device nobody here owns, so it is written down instead of
guessed.
One finding did not reproduce, and the attempt to test it independently was wrong in its own
premise. The review reported 20 headerless Sharp-family records whose first pair is 270/790, which
headerPairs = 1 would eat as a header; there are none, in either config named, because that
measurement predates entry 1's correction and its "first block" was a neighbour's. A structural test of
the underlying question, whether one header pair is right for every record, was then built on the
assumption that a block's marks and spaces alternate by position. They do not: the flag is in the word,
and a Harmony One record's first block can open with fourteen spaces of 32767, a leading gap that is
neither header nor bit. So the docstring's "one in every record here" is unproven rather than refuted,
and it says so now. What would settle it is a frame named outside this codec, which the calibration pair
gives for two configs and nothing gives for the rest.
16. The editor would rewrite a container's cookie, and would stamp a damaged config as valid¶
Two missing rails and a dedup, in the two files that will one day produce bytes for a remote.
An edit could overwrite the container frame. applyEdits refuses an edit no reader's claim covers,
and the frame is claimed like anything else, so a four byte write at offset 0 replacing GSPM with
AAAA satisfied the rail and was accepted, on every container tried. The header carries the flash base
and end_addr, the section table carries every pointer, and the trailer carries the checksum the
function stamps itself. FRAME_OWNERS refuses all four now, at any byte of them, and the negative is
part of the test: an ordinary field still edits.
The review reported this alongside a claim that the containment rail "cannot refuse on 18 of 19
containers", which is too strong and is worth correcting rather than repeating. It does refuse: an edit
spanning two adjacent claims is inside neither, so it is refused on every container including the
eighteen with no unclaimed bytes at all, and on h525_safemode_ahcm an unclaimed offset is refused as
well. What it did not refuse was the frame.
And an edit would launder a damaged input. applyEdits recomputes and stamps the trailer checksum,
and never looked at the one the container arrived with, so a config that was damaged in transit went in
inconsistent and came out passing the only check the remote makes. Measured: flipping one pixel byte of
one_config leaves a stored 0xC9CE against its own 0x36CE, the container still parses, an unrelated
field edits cleanly, and 0x36E1 is filed in the result. That is section 122's hazard at the end where
it becomes permanent: packages/corpus/src/read.ts performs this check after every read, because an
arch 10 (Harmony 890) read inserts duplicate chunks, and nothing performed it before an edit.
The emitter's dedup compared nothing, and it was load bearing. rebuilds kept a set of offsets and
returned on a repeat, so two rebuilders at one offset writing different bytes would have had the first
silently win, with the round trip then failing somewhere else and nothing to say which was wrong. It is
the same blind spot the byte accounting had until entry 2, in the mirror file.
What that immediately surfaced is the interesting half. Base slot 6's first mode record is the key
table, section 52, and coverage.ts claims it once by skipping the record while emit.ts rebuilt it
twice and said in a comment that the dedup is what stops the second write. So the dedup was carrying a
correctness argument. A test in that file changes c.keys[0] in the parse and watches it reach the
output, which passed only because the key table's rebuilder ran first; with a dedup that compares, it
threw. The emitter skips the record now, on the same test claims uses, and both are true at once.
Two smaller ones in the same pass. VALUE_MAP_COUNT_WIDTH had a third copy, written out as
c.architecture === 14 ? 2 : 1 in the file whose job is to mirror the readers. And base slot 14's
shared tail arm, which declines to rebuild a record whose end another record starts inside, has fired
0 times in 239 records, the same zero its counterpart in coverage.ts reports; both are asserted
now, so the day one fires somebody reads it instead of a record quietly declining and the residue copy
covering for it.
17. The refusal that stops a remote hanging was arithmetic that is false for a whole class of counts¶
Section 94 read why an odd internal memory read never returns: the fetch primitive emits two bytes and
subtracts two, its exit test is equality with zero, and CLRWDT inside the loop keeps the watchdog from
ending it. The refusal built on that reading was count % 2 === 1.
In JavaScript -3 % 2 is -1 and 3.5 % 2 is 1.5, so a negative odd count and a fractional one
both read as even and walked through the rail, at both of its sites. Whether a caller can reach those
values is not the argument: this is the refusal standing between a script and a remote leaving the USB
bus, and it now refuses anything it cannot prove the loop reaches zero from, which is one predicate used
by both sites rather than the arithmetic written twice. The test asserts the old expression's answer on
each of those counts alongside the new one, so the difference is visible rather than described.
And two comments called it a one chunk cap, including the module docstring, which is the bound that was tried before the mechanism was found: 124 bytes is two chunks and is fine, and the comment three lines below one of them says so. Section 93 installed that bound and section 94 replaced it; the prose on top of the corrected code did not move.
The misc reply branch matched on the whole first byte where every other branch of decodeReply
masks the length nibble off first. MISC_REPLY is 0xC2, whose 2 is a declared payload length, so a
misc reply declaring any other length fell past the branch and out of the decoder entirely. Nothing else
in the protocol occupies 0xC0. Every real reply declares two, which is why nothing failed, and is
exactly the reason to pin it: a length nobody has seen is what a new architecture sends.
One review item was tried and reverted, which is worth recording as much as the fixes. The same
branch reads its low byte as report[3] ?? 0, called out as making an absent byte indistinguishable
from a zero one. True of the expression, false of anything the transport produces: a HID report is fixed
length and zero filled, so the default is unreachable outside a hand built array in a test. Refusing a
short report instead was written, and it failed two tests that state the opposite decision outright,
that a remote answering in two bytes leaves word defined on every architecture and meaningful on one.
So the expression stands with the reasoning beside it, rather than a documented decision being
overturned for a case that does not arise.
18. One derivation, three spellings: the tagged list form, the display size, and a dead copy of a refuted rule¶
This repository's oldest rule is that two copies of a derivation are two copies until one of them moves, and it is named after an opcode table that once had two. Three more instances, all agreeing, which is the state the rule is about rather than evidence against it.
The tagged list's form was decided three ways. sections.ts reads it from the first byte, the way
the firmware does; emit.ts's writer computed it from the length, count === 0 ? length === 2 :
length - 2 === 5 * count; and edit.ts took it from whether the parsed entry carries a flags byte.
Three answers to "is this the wide form", on a structure whose two forms differ by a byte of header and
a byte per entry, so a divergence would produce a list one byte short or long with no error anywhere.
TaggedList carries wide now, and taggedListExtent is the one place the arithmetic lives, used by
the reader and by the pool scan that had spelled it out again. All three agree on 5701 lists across
the corpus, and the test asserts the two that were removed still give the same answer, so the
agreement is measured now rather than after it stops holding.
The Harmony One's display size was written out twice. touch.ts carried SCREEN_WIDTH = 176 and
SCREEN_HEIGHT = 220, which is SCREEN_SIZES[12] in render.ts, in the one module whose whole job is
to map panel coordinates onto that display. The drawing side would notice a wrong size at once; the
touch side would place every label a fraction out and say nothing.
And a dead copy of a rule this project has already refuted. resolveLabel in inventory.ts had
zero callers and accepted a page string that merely contained one of an activity's spoken strings,
where the live route requires an exact match first. Section 124 is the measurement: an activity's chain
enters the mode that lists the devices, so every activity says every device's name, and containment let
one label be claimed by all four activities of an arch 8 (Harmony 880) config and then dropped from all
four as chrome. The corpus wide figure sat at 23 of 35 for a day, three of those 23 being fragments of a
wrapped label reported for the wrong activity.
The order is what makes that deletion legitimate rather than a repeat of the mistake this section's entry 8 records. The disagreement between the two copies had already been reproduced, the external answer already existed, and the copy that lost is the one removed. What is left in its place is a comment saying which code went and why, because the reason is what stops it being written again.
19. Five in the Python research library, none of them reachable by a sample, and one was documented¶
The Python half is reverse engineering only and owns no reader the application depends on, so this entry is deliberately the weakest of the nineteen and is written up together rather than split. Every one of the five is latent: no image and no container in the lab reaches any of them, which was measured before anything changed rather than asserted afterwards, and that measurement is the entry's own calibration. What makes them worth the commit is that four are the exact shape of this section, a plausible answer where an error belongs, and the fifth is that shape with a paragraph in the module warning about it.
The one that was documented is the XOR chain decoder. src/harmony/pic18/chains.py opens with a
bold warning that the default limit truncates a long switch silently, and names what it cost: the
Harmony 700 image's state dispatch is one chain of 70 cases, came back as 32, and was written up as the
tool over-running into unrelated code. The advice it gives is to pass a generous limit and check whether
the walk ran out. Nothing checked, and chain_table could not: the module's one convenience
wrapper, used at eleven call sites in the suite, took no limit to pass on. So the route that hides the
walk was the route that could not follow the module's own instruction, which is the same shape as a rail
enforced by a user interface rather than by the library.
Measured before it changed, by making xor_chain report every walk that reached its limit and running
the whole suite: no chain anywhere reaches one, including the eleven that ask through the wrapper.
So the refusal costs no reading that was being done. xor_chain raises ChainTruncated now, and it
walks one case past limit to decide, because a prefix of a long chain and the whole of a chain exactly
limit long are otherwise indistinguishable and refusing the second would be the mirror of the defect.
The 70 case chain is the regression test, since it is the case the warning was written about.
The flash base anchor took an argument it never read. recover_flash_base has an end_addr
parameter and has never used it, which is a vestige of the reading section 117 replaced,
base = end_addr - offset_of_end_marker. Worse than dead code: the signature states that the declared
end is an input to the base, which is exactly the circularity that function's docstring spends four
paragraphs refuting. The TypeScript twin takes two arguments and always did, so this is also two copies
of one derivation whose interfaces had drifted while their answers agreed, and that is the state
this repository's oldest rule is about. A static test in tests/test_toolchain.py reads both signatures
out of the source, so the next drift is visible in a fresh clone with nothing installed.
Three bounds checks that Python does not perform for you. All three turn on the same language property, that a negative index reads from the end rather than failing, and each was reachable only through a path no sample takes.
parse computed slot 0's offset as address - flash_base and handed it to frame_length unbounded,
where the architecture and clock records read a few lines below both bound theirs, which is what makes
this an omission rather than a convention. The reachable path is the marker fallback: when the anchor
refuses, as it does on the second Harmony 890 read, the base comes from the subtraction and can land
above slot 0. Demonstrated on a container edited to take it, with a frame written into the blob's own
tail 32 bytes from the end and slot 0 moved 32 bytes below the base: unbounded, the reader answers 9,
which is the length of a frame that is not in the container. The TypeScript side has bounded it since it
was written.
usbdesc.walk took base from its caller, and tools/usbdesc.py takes it from the command line, so a
mistyped base is a keystroke away. A start below it made offset negative, at which point all three
of the walk's stopping conditions pass and every read lands in the image's tail. Four bytes chosen to be
a well formed string descriptor at the end of an image are enough to make it report one, at an address
that does not exist. Same class as a wrong load address producing a readable listing rather than an
error, which CLAUDE.md lists as a pitfall already hit.
region.pixels sliced past the end of its input and Python answered zero, and zero pixels have no
vertical difference at all. So a window running off the end scored a flawless 0.0 at every candidate
width and best_row_width returned the smallest width in the range with a perfect score. A minimiser
that is best where there is no data is the failure that module exists to avoid, since its whole claim is
that the row width is recovered by minimisation with the margin reported. Two smaller ones with it:
best_row_width reached for scored[1] with no length check, so a region too short to score two widths
raised an IndexError naming nothing, and busiest_window fell back to returning its own start for a
region shorter than one window, which handed the caller a window that runs off the end. Both refuse now,
and the width recovery still answers 176 on both Harmony Ones, which is the control that says the
busiest_window change did not move the measurement.
20. Four more in the same partition, and two of them were live¶
Entry 19 said the Python side was five, which was a count of what one pass through the partition found rather than of what is in it. Four more came out of reading the same list properly, and two of these are live rather than latent, which is the difference from the entry above: they are producing a wrong answer today, on images and containers the lab holds.
A listing never named the one part of the register map it alone can reach. resolve_file's
a=1 arm returned a bare 0x%03x and never called sfr_name, so a banked access to the special
function registers printed as an address. That would be cosmetic on most parts and is not on this
one: section 18's headline correction is that the 67J50 family puts the USB block at 0xF40 to
0xF5F, which is below the access bank, so a banked operand or a MOVFF is the only way to
reach it at all. 27 accesses in the Harmony 700 image and 25 in the Harmony One 3.4 image, all
of them UIE, UCFG, UEP0, UEP1, UEP2, UEIE and UADDR, printed as 0xf5e and the like
while sfr_name already knew every one. Zero in the Harmony 525 image, whose PIC18F4550 puts its
page at 0xF60 and therefore wholly inside the access bank, and that is why nothing noticed: the
architecture whose listings this project reads most carefully is the one architecture where the
defect cannot occur.
The container reporter printed base slot False. base = c.architecture is not None and
base_slot(...), a boolean and, then tested with is None, so the false arm answers False
rather than None and the line prints it. Arch 10 (Harmony 890) is the only container here whose
format does not state its architecture, so it is the only one that takes that arm, and fifteen
samples agreed with a broken expression by never reaching it. The except GspmError its sibling
branch carries was missing too, so an architecture outside INSERTED_SLOTS would raise out of a
reporter, which is the one caller that must not raise.
Two latent ones with them. MOVFF, MOVSF and MOVSS claimed two words without checking the
trailing word, where CALL, GOTO and LFSR have always tested that it is 1111 dddd dddd dddd.
A one word instruction claimed as two desynchronises everything after it, which is exactly what the
decoder's own SECOND_WORD comment is about. Measured during a real linear scan: 14 such decodes
in the Harmony 700 image, 26 in the Harmony One 3.4 image, 4 in the Harmony 525 image and 20 in the
Harmony 880 image, plus a MOVSF at the very end of a buffer claiming a length past it. And
loadaddr's _BLOCK_ENDERS held 'GOTO', which can never fire, because an absolute target lands
on the word after a two word instruction's trailing word and a trailing word decodes as
SECOND_WORD. GOTO, RESET and RETURN FAST fire zero times on all four images. The comment
beside the arm that does catch those said reaching it means the previous instruction was a
CALL or GOTO, and that is false for 37 of 209 hits on the Harmony One 3.4 image and 29 of 271
on the Harmony 525 image, the rest being bare 0xFxxx data words and MOVFF tails. Counting them
is right, since the score is a heuristic and a data word before a target is as good a boundary
signal; stating which they were is not.
One claim in the same partition was measured and refused. The review held that trace() and
xrefs() need a part and take none, on section 80's hazard that the wrong register map produces
a readable wrong listing. They do not: both return addresses, trace discards the name
resolve_file gives it, and report prints 0x%03X throughout, so no output of either depends on
the map. What survives is that nothing binds a part to an image, which is caller discipline and a
design question rather than a defect, and sfr_name's own tests already pin the two maps apart.
Recorded because a finding that was checked and did not hold is worth as much here as one that did.
21. The container parser's own claims, and two of them were false about the corpus in front of them¶
Thirteen readings of gspm.ts, tables.ts and ezhex.ts, the layer everything else here stands on.
The population is what makes this entry different from the two above: the lab parses 33 containers
now, and three of the parser's own comments quote a snapshot of thirteen, twelve and twenty four. Two
of the claims those numbers carry had gone from true to false without anything failing.
"No container in the corpus has an odd body." trailerChecksum does not fold an odd trailing byte
in, because the firmware counts words, and the comment beside it said no sample tests that so the
behaviour is the firmware's rather than a tested one. 19 of the 33 have an odd extent, spanning arch
8, 9, 10, 12 and 14, and 14 of those verify their stored checksum under exactly that loop. So the
behaviour is tested by more than half the corpus. The direction of the error is what makes it worth
correcting rather than deleting: it invited a reader to fold the byte in on the grounds that nothing
would catch it, and only two of the fourteen have a nonzero trailing byte, so the change would have
broken two containers and been invisible on twelve.
"Nothing in the corpus reaches that path." The flash base falls back to endAddr - offsetOfEndMarker
when the clock anchor refuses, and the docstring said nothing reaches the fallback. Three lab samples
do, all reads of one Harmony 890, and each lands on 0x02FF94, 0x02FEF2 and 0x02FD78, none of them
block aligned. Every one is then pronounced consistent by end_addr_points_at_end_marker, because a
fallback base is computed from the marker's own position: that is section 117's circularity, still live
inside the second arm of the ??. src/harmony/gspm.py has carried the corrected sentence since section
122 and this copy did not, which is the two copies rule caught in documentation rather than arithmetic.
flash_base_is_block_aligned is a check now, and it is the one thing about a fallback base that can fail.
Two more checks and one corrected length, all from the same place. format_high_half_is_zero, because
formatVersion is formatRaw >>> 12 on a u32 and one bit set sixteen places up renders a 1.4 container
as 17.4 with nothing saying the file is wrong. sections_ascend, because sectionLength is the
distance to the next non NULL pointer and returns a negative if they ever stop ascending, which was a
precondition stated in a comment and checked by nothing. And key_table_is_complete, because the key
table loop stops at the end of the blob and said nothing about having stopped, while section 17's whole
argument about that table is a count. All three hold on all 33.
The last section's length came from a declared field. sectionLength measured the final section to
endAddr, which is the same field the base stopped trusting in section 117 and for the same reason: where
a container ends is data. They agree on 31 of 33; on the two that disagree, both damaged Harmony 890 reads,
the last section was reported 864 and 324 bytes short with nothing saying so. It is measured against the
end marker's own position now, which is where end_addr_points_at_end_marker looks, so the file that fails
that check is exactly the file where the two answers differ.
blobOffsetOf was a NULL test wearing a range test's signature. It refused address === 0 and nothing
else, so it answered 16515071 for a 1.6 MB blob and -16 for an address below the base. Every caller guarded
the upper bound and none guarded the lower, so a pointer below the base reached u8 and u24 and threw out
of functions typed | undefined. In Python the same reading is worse, because a negative index does not
fail, it reads from the end, which is entry 19's theme meeting entry 21's.
Two claims in tables.ts that were documentation rather than code. A touch area's twelve byte record
carries its own address at +0x09, described in the type as "what makes the twelve byte reading self
checking", and nothing ever compared it: it holds on all 977 areas, so it is a closure that had never
been closed. And touchPages was documented as arch 12 only and gated on nothing, so it read base slot 17
on 17 containers of arch 8, 9 and 14, where that slot is the picture bank, and answered
{ records: [], length: 1 }: "no touch pages" where the truth is "not a touch map". Two callers then
re derived records.length === 0 as the picture bank discriminator, which is two copies of one rule with
c.architecture in hand, and a nonzero leading byte in front of a bank would have made both mis-account and
fabricated areas out of pixels. Both readers are gated now and touchMapStart is what the accounting and the
emitter use for the slot's offset.
An empty frame's length is zero and zero means seven. frameLength returns the field, and for the empty
frame the field is 0 while the frame occupies EMPTY_FRAME_LENGTH + FRAME_END_LENGTH. Three call sites
decoded that sentinel separately. The demonstration came from a probe written to check something else: the
frame tiles to the next section on 24 of the 26 containers that have one, and the two misses are exactly
the two empty frames, so a fourth caller had already been written and had already got it wrong. frameExtent
is the one place it is decoded now.
A header past the window read as a file with no header. parseEzhex decodes the first 16 KiB as text to
find </INFORMATION>, and the largest header in the lab is 6851 bytes, a margin of 2.4. Prepending a comment
past the window made the structural split, the declared size and the declared checksum all undefined at once,
reported bare-container for a file that plainly has one, and then passed every check on a payload with a
flipped byte where the same file unpadded correctly fails. A file whose first byte is < has an XML header,
so exceeding the window is an error now. With it, decodePayload glued every <DATA> element in a file into
one payload across <PHASE> boundaries, which makes one buffer out of several destinations; no file in the
lab holds a <DATA> element at all, which is why it survived, so both arms are exercised by a synthetic now
and the multi phase case refuses.
And the header guard was smaller than a header the lab holds. blob.length < 0x68 is 104 bytes, arch 12's
header through its key count, where an arch 10 (Harmony 890) one needs 107. So the guard passed a blob three
bytes short of the header its own message claimed to have proved room for. It is derived from the three
constants that decide it now.
22. Six in the emitter and the editor, and three of them have no control that bites¶
The remainder of the ir.ts, edit.ts and emit.ts partition, and the entry worth reading for what
it says about itself rather than for what it fixes: three of the six changes here cannot be made to
fail by any test, and that is stated per change rather than left for someone to discover.
The byte accounting refused claims in silence. add returned without a word on an undefined
start, a length at or below zero, or a run past the end of the blob. So a claim the accounting threw
away and a reader that had nothing to say were the same thing from the outside: the bytes appear as a
gap either way, and only one of the two is a defect in the accounting rather than in the reading. A
report carries refused now, owner: why, empty on every sample.
A record with no carrier reported 0 Hz. irCarrier computed periodNs === 0 ? 0 : 1e9 / periodNs,
and 0 Hz is a real infrared case: an unmodulated code has no carrier. A record whose period field is
zero and a genuinely unmodulated one said the same thing. No corpus record has a zero period, so the
test builds the case by zeroing one, which is what makes this the one latent change in the entry with a
control that bites.
The timer editor leaked the rail it sits under. setTimerDuration refuses a duration past sixteen
bits, because the firmware clamps there with no error, and then wrote a three byte field whose third
byte it copied from the record. A record already storing a value above sixteen bits would keep its
high byte, so the seconds the caller asked for would become the u24 the refusal exists to prevent.
All 222 corpus timers sit under sixteen bits; the write now refuses such a record rather than carrying
it.
A comment claimed a guarantee its own continue withdrew. The emitter writes an empty counted
array as zeros "so a section that is not actually empty fails the round trip", and the loop skips any
run with a nonzero byte in it, which hands that run to the residue copy, which reproduces it exactly
and passes. The claim it can make is the narrower one: a section this does frame is written from
zeros rather than carried.
The three with no failing control, said plainly. The trailer's six bytes move from copied to
framed unconditionally at the end of an emit, which assumes no rebuilder above reached them; it is
true in every container and a rebuilder that broke it would be double counted and then overwritten
with nothing reported, so there is a guard now and nothing can make it fire. localTimestamp and
clockRecord each spelled out the same padded YYYY-MM-DDTHH:MM:SS with their own helper, both
correct, and reverting the shared formatter passes every test: that is the two right copies case
exactly as CLAUDE.md describes it, caught by looking and not by running. And FIELD_RULES called
itself "every field in this format whose treatment on a write is not carry it through unchanged",
which reads as the complete set of write rails and is not: the rails a config's structure imposes are
relations rather than fields, so a shared infrared block, a shared glyph string, a page list's copy
and a picture's implied position cannot be rows in it. Its docstring says so now and points at the
list in CLAUDE.md.
What it changes¶
0x3F's bands are one of three structures that are not one table across architectures, not one of two. Section 107 corrected "the only" to "one of two" and this makes it three:0x3F's bands, the opcode block0x65to0x6E, and0x0F's bands. The pattern across all three is the same, that the reading was confirmed against configs and the configs of the architecture it was wrong about never contradicted it, because a dispatcher's arms are firmware and a corpus only shows what a generator emits.- A reading table's no-op needs the architecture's own firmware behind it. Where it does not have one, the honest depth is placement or nothing, and the table now says which architecture each entry was read from.
- The infrared block tiling closes on every block, 3715 of 3715 in eleven configs, where section 61 reported 3357 of 3490 with 133 explained as padding. And arch 9 (Harmony 525) names 380 blocks rather than 277.
- Section 32's closure is a closure again, and it moved to
packages/codec: 1106 records with NEC timings carry 32 bits and 257 with Kaseikyo timings carry 48, with no exception. Its old form held a bit count derived from a block's length against timings taken from the same block, and both came from a neighbouring record. make goldencompares the infrared reading, which it did not, and that is what caught entry 8 on the day it was added. Reverting one line of the Python reader makes six vectors differ.- There is one frame decoder,
packages/codec/src/irframe.ts.src/harmony/gspm.pyreads durations and does not decode them, andtools/ir_extract.pyprints durations rather than a bit count. The one that was removed dropped the last bit of every pulse width code, 100 records per calibration config, which the Sony widths settle. - An action list holds 86947 instructions, not 87005, because 58 of them were the argument of the instruction before them.
make coverageexits nonzero on an overlap, so the zero is enforced rather than reported.@harmony/usboffers no way to build a request that changes a remote, which is whatrails.tshas claimed since it was written.- A RAM write is bounded below the SFR page and checks the architecture, so "volatile" is a property of what the rail allows rather than an assumption about what the firmware does.
readRamrefuses on arch 9 (Harmony 525) instead of answering a cleared zero, andbin/read-ram.tsadopts the architecture the remote states so that the refusal can fire.- The contribution probe's checksum is computed over the container, not the file, so it agrees with the codec on all nine samples checked including the four Harmony 890 reads. And its base says whether the anchor produced it.
- No byte in the accounting is claimed for being left over. The one owner that did is replaced by the reading section 103 had already published, and the perturbation that used to be absorbed in silence is a test on four architectures.
- A truncated XOR chain raises instead of returning a prefix, and
chain_tabletakes the limit it needs in order to be asked generously. No chain in the suite reaches one, measured. - The flash base anchor takes the same two arguments in both languages, and a static test says so.
- Three Python readers refuse a negative or past the end offset rather than reading the tail of their own input: slot 0's frame, the descriptor walk, and the pixel measurement.
- A listing names a banked special function register, which is the only way this family's USB block can be reached at all: 27 accesses in the Harmony 700 image and 25 in the Harmony One 3.4 image that printed as addresses.
- A two word instruction checks its trailing word,
MOVFF,MOVSFandMOVSSasCALL,GOTOandLFSRalready did, so a data word is no longer claimed as two and the scan after it stays aligned. - The container reporter prints no base slot where the format states no architecture, instead of
base slot False, and it no longer raises out of an unknown one. - A container carries four more checks:
flash_base_is_block_aligned,format_high_half_is_zero,sections_ascendandkey_table_is_complete. The first fails on three Harmony 890 reads and is the only thing about a fallback base that can; the other three hold on all 33 and are guards. - 19 of the 33 parseable containers have an odd body, not none, and 14 of them verify their checksum under the loop as written. Folding the trailing byte in would break two and be invisible on twelve.
- A section's length no longer ends at a declared field: the last one is measured to the end marker, which is 864 and 324 bytes different on the two damaged reads.
blobOffsetOfis a range test in both languages, so an address outside the blob has no offset.- A touch area's back pointer is compared, 977 of 977, and
touchPagesrefuses on any architecture where base slot 17 is the picture bank instead of fabricating an empty table for it. - An EZHex whose header runs past the read window is an error, where it used to report itself as a bare container and then pass every check on a corrupted payload.
- A coverage report says which claims the accounting refused, so a refusal and a reader with nothing to say stop looking alike. Empty on every sample.
- An unmodulated infrared record reports no frequency, not 0 Hz, which is a real case rather than an absent reading.
FIELD_RULESstates its scope: it is a table of fields, and the rails that come from sharing are relations, which no row can express.
23. The interpreter table answered for a remote it had never read, and one hoist was measured before it was believed¶
The actions.ts, screen.ts, text.ts, font.ts, render.ts and png.ts partition. Nine changes,
and the one worth reading is not a fix at all: the review's own performance finding was wrong, and
measuring the premise before executing it is what said so.
Arch 9 (Harmony 525) has its own 0x3F floor and was reading arch 14's (Harmony 600 and 700).
Section 73 read the second operand space on arch 12 (Harmony One) and arch 14 (Harmony 600 and 700),
and bandsFor varied only arch 12's lowest band, so every other architecture took arch 14's table.
Disassembled out of h525_code with --part 4550, the Harmony 525's ladder is 0x01F78 testing
0xF0, 0x01F8E testing 0xE0, 0x01FD4 testing 0xD0 and handing the six byte path at 0x01FDA
two more fetched bytes, and 0x02030 testing 0xC0, which masks the low nibble into 0x3DC and calls
0x02432. Below 0xC0 every arm branches to the dispatcher's exit at 0x023E4.
So its lowest floor is 0xC0 and the shared table's is 0xB0. A Harmony 525 instruction with high
byte 0xC0 to 0xCF was read as arch 14's base slot 8 seek, and one in 0xB0 to 0xBF got a reading
where this firmware simply returns. 0x02432 is neither arch 12's 0x24F24 nor arch 14's 0x0F782;
it reads a bit of 0x109 and switches on the stored nibble, and it has not been followed further, so
the entry is placement and says which handler it stands for. This is the same shape as entry 19's
0x0F ladder, one partition apart, and it is the fourth time section 73's own warning about reading
a handler on an architecture that does not use the opcode has been met.
Neither costs a number: no Harmony 525 config emits 0x3F in 0xB0 to 0xCF at all, so
make reading is unmoved at 98.4% overall and 95.2% on arch 9 (Harmony 525). It is a trap for the next
arch 9 sample rather than a wrong figure today, which is exactly the class this whole section is about.
Two shared entries described one architecture's handler as everyone's. 0x3F band 0xB0 stands
for arch 14's (Harmony 600 and 700) 0x0F782 and read "a peripheral operation selected by the
operand's low bits", which is arch 12's (Harmony One) 0x24F24; section 73 says 0x0F782 seeks base
slot 8 and bounds the operand against that section's leading byte. The docstring seventy lines below
records this exact mistake being made and fixed, and the fix gave the Harmony One its own entry and
left the Harmony One's words on the Harmony 700's floor. And band 0xF0 read "nibble 3 is the sound
enable", which is arch 12's (Harmony One) fact from 0x24EE2: on arch 14 (Harmony 600 and 700) the
chain's cases are 0, 1, 2, 6 and 7, so nibbles 3 and 5 fall into the default and do nothing. The corpus
uses those nibbles 84 times. One line cannot be both, and it was.
The review asked for two hoists and both are free. characterMap re-read every font set inside its
loop over ambiguous codes through usesAscii, and re-walked every reachable program through
drawnCodes, once per alphabet, seven times. Both repetitions are real. Measured on one_config:
drawnCodes costs 1.13 ms and usesAscii 0.01 ms, and hoisting both moved characterMap from
31.2 ms to 33.4 ms. What costs is shapeKey, which hashes a glyph's pixels and was doing it once
per glyph per alphabet for a table that cannot vary with the alphabet. Hoisting that gives 7.6 ms.
The hoists the review asked for are kept, because they are correct and now free. The lesson is the order: the proposal named two plausible repetitions and the profile named a third, and adopting the first two on the strength of the argument would have produced a change that looked like a fix, passed every test, and made the function slower.
And the ceiling that guards it had to have its own control run. The first bound was 30 ms, four
times the standalone 7.6 ms, and with shapeKey put back inside the alphabet loop the test passed:
inside the suite the JIT is warm by the time it runs, and the same code measures 15.3 ms against
4.7 ms rather than 33 against 7.6. The bound became 12 ms, set from that control. A wall clock
ceiling whose regression case was never run is a ceiling that passes whatever happens, which is the
same defect as a test that cannot fail.
That ceiling was still the wrong shape, and it flaked on 29 August 2026. The control was right and the measurement was against the wrong thing. 4.7 ms healthy, 15.3 ms broken and ordinary machine noise all sit in one narrow band, so on a loaded machine the healthy code measured 12 to 27 ms and the test failed while nothing was wrong. Raising the bound was not available, because 15.3 is the bug: any number above it stops catching the bug, which is the 30 ms defect again.
What the mistake costs is not milliseconds, it is a factor, since the hash was redone once per
alphabet and there are seven. So the test measures that factor now. It times one pass of hashing every
glyph itself, which is the unit resolveContext spends, and requires the whole resolve to cost under
four of them. Both readings are taken on the same machine moments apart, so its speed and its load
cancel, and each is the fastest of fifteen runs because load can only make a run slower.
The bound is measured and the first attempt at it was not. It was set to three by the same kind of reasoning that produced the original: one unit for the context, and the per alphabet work is cheap. Running the healthy case then produced 2.80. Measured properly, fifteen runs a side: healthy 1.06 to 2.00, broken 6.43 to 13.37, two populations a factor of three apart, so the bound is four. The healthy figure is not 1 because the seven alphabet comparisons are not free; they are simply not where the cost was. The reps matter too: at five a side the healthy spread reached 2.80, at fifteen it settles under 2.
A font set stated its glyph height and nothing enforced it. FontSet.height carried the comment
"shared by every glyph in the set, and checked against every decoded glyph"; the only comparison in the
repository was an assertion inside screen.test.ts, so the promise held for the corpus and not for any
caller. It matters because text.ts keyed a glyph's shape on the declared height while decoding the
glyph unbounded, on the one path that turns pixels into a character, and the height prefix is what
stops a tall l reading as an I. Both routes now go through decodedSet, which bounds a glyph by its
neighbour and refuses one whose height contradicts its set. All 5814 live glyphs in the corpus agree, so
the refusal costs nothing and the case it guards is the one section 46 and section 78 each found once in
this very field.
The picture geometry exists twice and now has a test that can see both. bitmapAt with
encodedExtent walks the three picture forms to compute a length, and bitmapPixels walks the same
three to produce pixels: the raw extent, the arch 9 (Harmony 525) monochrome row padding, and the whole
skip and literal and row break loop. Section 85's padding correction had to be applied in both places by
hand, with nothing to say so. They are not merged, because bitmapAt runs inside pictureBank's offset
search and merging would decode every candidate's pixels; instead they are tied over the corpus, on 558
pictures, by row count, by every row's width, and for the encoded form by the row breaks the length walk
counted on its way past. What the tie cannot see is stated in the test: both walks emit stride
pixels a row whatever the padding, so the monochrome half is caught by the bank walk failing to land on
the trailer, and a control was run for each.
"Exactly one start satisfies both" was the sentence justifying a 1024 byte search, and it is false.
pictureBank tries offsets under two constraints, that the walk lands on the trailer and that every
picture screen opcode 2 names appears in it. On the three arch 9 (Harmony 525) containers the second
constraint is empty, because no Harmony 525 program names a picture with opcode 2 at all, so 2, 2
and 3 offsets satisfy both and the function returned whichever came first. It is masked because base
slot 17 states the bank on that architecture and pictureBankStart answers before the search. The
search refuses an ambiguous answer now, the same rule as the container base anchor in section 117: a
unique survivor or nothing. The control is constructed, a copy of a Harmony 525 container with base
slot 17's pointer zeroed, since nothing in the corpus reaches the branch.
Two smaller refusals. A glyph run whose walk reached the last byte without a terminator was
returned as a string rather than refused, because the guard was end > c.blob.length where the loop
leaves end at the length; silently truncated text is the worst answer available. And
contactSheetPng laid its grid out from the first raster's size and then copied each tile at its
own size, so a wider raster wrote across the tile beside it and a taller one past the end of the
buffer. Both are unreachable from the corpus today, both are constructed in tests, and both have a
control that bites.
24. The address rule fell back to a default while the remote's own answer sat in the reply¶
The packages/usb partition, seven changes, and the first is the one with a live consequence on the
bench rather than a latent one.
getVersion read the architecture and threw it away. HarmonyRemote.architecture is undefined
unless a caller passes one, regionOf falls back to DEFAULT_REGION_ARCHITECTURE = 12, and
useArchitecture was opt-in: of the four call sites that read a version block, only
read-window.ts and read-ram.ts called it, and the bench, the probe and a test did not. So a
Harmony 525 on an unpinned handle is read under arch 12 (Harmony One)'s rule, under which that
remote's internal program flash at top byte 0x00 is ordinary config flash. The odd count refusal
is keyed on the region, so it does not apply, and readFlash(0x001000, 63) reaches the wire.
Section 96 is what that costs on arch 12 (Harmony One): the fetch loop never terminates, and the
sender scribbles 2247 bytes over data memory before an even byte lets it return. Nothing establishes
that arch 9 (Harmony 525) is exempt, and section 118 records this exact defect being found once
already in read-window.ts, where the tool refused a legitimate read while printing a reply that
said 9. getVersion narrows the handle now, so the default cannot outlive the answer, and it still
never overrides a caller's own.
readRam refuses an unknown architecture, which is the same defect one method along. Its arch 9
(Harmony 525) refusal, added in entry 17 after section 137, keys on this.architecture ===
ARCH_WITHOUT_A_RAM_READ, and with nothing pinned that comparison is false, so the refusal could not
fire on the one remote it was written for. Which byte of a misc reply carries the value is
architecture dependent, section 90, so answering without knowing the architecture is answering from
a default. A test asserted the old behaviour outright, on the reasoning that an unpinned caller is
the ordinary case and the refusal is about arch 9 (Harmony 525) specifically, which is true and is
the hole rather than the answer.
An internal read could walk off the end of its own page. The offset bound of 0xFFC0 was
justified in comment by "an offset plus one report cannot leave the window", and that held only
while this method was capped at one chunk, a cap entry 17 found described in two comments and
enforced by no code. So readInternalMemory(0xff, 0xffc0, 512) was permitted, and what the device
serves past the page is unread: a plausible wrong answer about which page was read. The bound is on
the sum now, and the positive control is the read that ends exactly on the boundary, since the last
two bytes of each page are unreachable for that reason and a bound off by a report would refuse it.
A surplus chunk was discarded in silence, and the test that said so was a fixture pretending to be
evidence. take = Math.min(reply.data.length, count - filled) meant a device or transport sending
more than the request encoded still satisfied filled === count and reported a clean transfer. The
test scripted two full 62 byte chunks for a 100 byte request and commented "the remote sends 63 byte
chunks, the last one overshoots the request". The device does not: docs/usb-protocol.md records 256
requested and 256 delivered as 62+62+62+62+6+2, measured on hardware, and the length nibble encodes
0 to 7, 15, 31 and 63 payload bytes, so a remainder comes off in exactly those steps and an exact
total is always reachable. A measurement already in this repository contradicted the fixture,
and nothing compared them because each was self consistent. The fixture is 62+30+6+2 now and a
surplus is an error.
Two rails read one table hole in opposite directions. writableRange treated a missing
WRITABLE_CEILING entry as "no ceiling" and assertEraseAllowed treated the identical hole as a
refusal, where section 88's stated rule is that a table with a hole refuses. Unreachable today,
because ARCHITECTURES_WITH_A_WRITE_TARGET is [12] and arch 12 (Harmony One) has both entries;
adding arch 14 (Harmony 600) when a second unit arrives would have silently given its writes no
upper bound while its erases still refused. The claim pinned now is the agreement, over every
architecture either table mentions, because the defect was the disagreement rather than either
reading.
And the erase refusal had no caller that could reach it. It sits after assertPermissionIsUsable,
which already refuses everything outside the write target list, so no test could trigger it and
rails.test.ts checked the table's shape in its place. The lookup is eraseBoundsFor now, exported,
with a test that names each architecture it refuses. The rail nobody can trigger is the rail nobody
has tested, which is the same shape as a test that cannot fail.
"Only architectures packages/usb can address are here" was false of its own table.
MODELS_BY_SKIN carries architectures 2, 3, 7, 8 and 10, and FLASH_TOP_BYTE_BOUND has an entry for
none of them, so modelForSkin(19).architecture is 10 and handing that to RemoteOptions refuses
every address. The direction is safe and the sentence is what a caller trusts when deciding whether
the field is usable. It says "enumerate" now, and ADDRESSABLE_ARCHITECTURES is the executable half,
with the unaddressable set asserted exactly and its consequence, that each refuses every top byte
rather than borrowing a neighbour's rule.
25. The probe could not report the one unusual remote on the bench, and two policies contradicted each other¶
The last partition, packages/probe, packages/lab, packages/bench and inventory.ts. Fourteen
readings, and the one to keep is that an instrument built for models nobody here owns was silently
blind to the model that is here.
The probe cannot find an arch 9 (Harmony 525) config, twice over. CANDIDATE_BASES had no
0x820000, and arch 9 (Harmony 525) is the one architecture whose read base and container base are
not the same number: READ_FLASH will not answer below 0x800000 and the container's own pointers
are 0x02xxxx, so end_addr is stated against the second while the bytes come from the first.
packages/corpus/src/read.ts has carried that since a Harmony 525 was connected on 8 August 2026.
Adding the base alone would not have helped: probeBase computes endAddr - base, which comes out
about a megabyte negative and is rejected as implausible. So the entry carries a containerBase
now, absent on every other architecture because there the two are one number and stating it twice
would be two places to keep right. The test serves h525_config at 0x820000 to a fake reader and
requires the default candidate list to find it, since a contributor runs the probe with no
arguments.
Two stated policies in one repository, in the same words, about the same information.
packages/lab's golden vector docstring says publishing "a structural map of a stranger's remote" is
not acceptable; packages/probe's SectionReport publishes per slot addresses and lengths, by
design. A reader cannot tell which was meant. The line is consent, not the data: a probe report
is produced by the config's owner, on their own machine, from their own remote, and they decide
whether to send it, where a golden vector would be this project publishing a contributor's map on
their behalf without asking. Both docstrings say that now, in one commit. Related and left standing
with its scope stated: the probe publishes the version block on the argument that it is
identical on two Harmony Ones, which is a measurement on arch 12 (Harmony One) offered as a general
claim by an instrument that exists for the architectures it does not cover, and fields 7, 10 and 11
have no reading on any of them.
The touch label route ignored what a page binds. On arch 12 (Harmony One) keyLabels emitted an
entry for every hit region holding text, where the row route used elsewhere has always required the
scan to be in the page's own tagged list. 292 of one_config's 1103 entries, and 98, 98 and 97 in
the other three Harmony Ones, named a scan the page does not bind. Inert for the bench, which looks
up by bound scan, and live for anything that iterates the map, which is what handing back a Map
invites. One boundScans for both routes now; make activities and make devices are unmoved.
A group two device labels both reach used to name one of them. The rule was a bare continue,
which kept the group for the first label and left the second free, so the forced pairing below
could hand that label an unrelated leftover group and return it as source: 'elimination'. A
weaker but real answer, where the truth is that the evidence contradicts itself, and that is the path
by which a wrong device name would reach FreeHarmony. Both the label and the group are withdrawn now.
No container in the corpus contests a group, 0 in nineteen, so the branch is unreachable through
devices; pairLabelsToGroups is extracted and exported for exactly that reason, the same move as
eraseBoundsFor in entry 24, and its test constructs the case.
A closure that was measured and then depended upon in silence. activityNames takes the page
from an activity's first binding and the scans from all of them, which is sound only because all of
an activity's keys are on one page, section 120. Nothing stated it, and had it failed the label would
have been looked up on one page using scans from another and come back plausible. The reader refuses
such an activity now and a corpus test asserts the closure over all 50.
The state variable write is a seven bit field, not five. Section 73 said five and so did
actions.ts, while the code has always added rather than ORed, and for every index
below 128 the two spellings are the same byte, which is why the wrong width sat beside right code.
The corpus emits up to opcode 0xC5, index 69, over 1897 writes in the tested population, and base
slot 13's tables reach index 93. Nothing was ever wrong; what the five would have cost is an editor
narrowing the field to match it, which breaks calibration_h600, whose activity variable is index 34
and whose chain section 121 measures working. inventory.ts had declared STATE_WRITE_BASE a second
time and now imports it.
Two smaller ones in the lab helper. find called statSync outside the try that exists for
the case that call throws on, so a dangling symlink carrying a lab image's name threw ENOENT out of
imagePath, which makes skipUnless throw rather than skip and takes the whole test file with it;
the comment on the catch three lines below already said a dangling symlink is not worth failing a run
over. And find took the first match in traversal order with no uniqueness check: two names resolve
twice in the lab today, h600_code_complete to firmware/derived/ and to work/, and
desktop_webapp_main to its own directory and to a mirror seven levels down. Both pairs are byte
identical, measured, so nothing was wrong and nothing would have said so if a work/ copy were
edited, while reference/checksums.md claims provenance for the curated file. The choice is a stated
ranking now, scratch last then shallowest then alphabetical, and the rule earns nothing on the real
lab, since both pairs also sort correctly by path alone: the test that gives it something to do is
constructed, which is worth saying rather than leaving a rule that looks tested.
And a label on the bench screen that stated a value. Version field 6 read "constant 0x0C on
every remote seen", false since 8 August 2026: the bench Harmony 525 reports 0x09, section 76, and
the field names a platform, section 116, with arch 12 (Harmony One) and arch 14 (Harmony 600 and
700) sharing one. The Harmony 525 enumerates on this machine, so the page was printing 9 beside a
label saying it is always 0x0C, and make facts cannot see prose living inside code. The general
form is what is pinned: a label is a name and not a measurement, so none may quote a byte value or
say "always", with fields 8 and 9 the named exception because an address is a place. Two more
alignments in the probe: its family field held FAMILIES[n].architectures, so a published report
carried a field called family whose value is "12 (One), 14 (600, 700)", renamed rather than
re-derived since the codec gives a family no name; and the magic it publishes, read at blob[0..4],
is now asserted equal to the one parse found by searching, which could describe different bytes of
one blob.
26. The check that guards the documents named the wrong site, and the number it was asked about had drifted¶
Not from the review. Found on 14 August 2026 while sweeping the summaries against entries 23 to 25, and it belongs here because it is the same shape as everything above it: a confident wrong answer where the honest one was available.
Five documents quoted "the ten container checks" and there are fifteen. A count of checks is a
number about the code rather than about the format, so it moves whenever somebody adds one and no
test about a config can see it. Entry 21 took it from ten to fourteen and entry 22 to fifteen, in
docs/plans/002-the-roadmap.md three times, docs/memory-map-525.md and docs/memory-map-600.md, with nothing to
notice. It carries a fact: marker now, which is what CLAUDE.md requires of a number in prose and
what nobody had applied to this one.
And it is two numbers, which computing it found rather than reading it. key_table_is_complete
is gated on the family carrying a key table after the marker, and AHCM does not, so the three arch
9 (Harmony 525) containers report fourteen. That is correct behaviour, a check that does not
apply is honestly absent, and it means the single figure the documents quoted was wrong twice over:
wrong in value and wrong in being one figure. container_checks and container_checks_arch9 are
both computed, and the test names the missing check rather than counting to fourteen, because a count
off by one says nothing about which one went.
The tool's own diagnostic then named an innocent site. tools/facts.py complains when a fact:
marker has no number in front of it, and it built attached as a set of fact names, so two
properly attached uses of one fact in a document collapsed to a single entry and the second use was
reported as detached while the real offender elsewhere in the same file went unnamed. It fires only
when a document uses one fact twice and carries a genuinely detached marker, which is why it had
never been seen: the second condition is rare and the message is believed. Adding
container_checks supplied the detached marker, docs/plans/002-the-roadmap.md already used text_glyphs twice,
and the tool reported text_glyphs. A collections.Counter now.
The checker's rule turned out to be stricter than it reads, and that is right. It wants a
digit before the marker, so a marker with the word "fifteen" in front of it is refused rather
than accepted: a spelled out number cannot be rewritten by facts-write and would drift exactly as
this one did. Which is also why this paragraph describes the shape instead of quoting it, since a
quoted marker is a live one.
What would falsify it¶
For the ladder: a Harmony 525 config emitting 0x0F with a low byte below 0x60 or in 0x70 to
0x7F, which the reading says the firmware ignores, or a second arch 9 image whose ladder differs from
this one. For the header: a record whose declared group count is above 2, or a block that does not end
exactly at the next boundary, either of which would say the 12 + 9 * count tiling is not the whole
story. For the closure: a record whose header timings name NEC or Kaseikyo and whose bit count is not 32
or 48, which is now checkable because the two numbers come from the same record's own bytes. For the overlap detector: a container where the new rule reports an overlap, which would mean
two readers claim one byte and one of them is wrong. For entry 19: any image or container that reaches
one of the five, which would move it from latent to live and is the one thing that would make it worth
more than it currently claims. For entry 21: a container whose base is unaligned and which is not a
damaged read, which would say the alignment is a property of this corpus rather than of the format; or a
touch area whose back pointer does not equal its own address, which would say the field is not a back
pointer. For entry 20: a banked access to the USB block that this still does not
name, or a two word instruction whose real trailing word is not 0xFxxx, which would say the encoding
read here is not the encoding. For base slot 15's continuation: an arch 12 container
whose twelve bytes past group 9 are not those twelve, or any container with a tenth group whose own body
runs into them, either of which would say the offsets are not the structure. For the day maximum: a Logitech generated config
built on a 31st, which would settle by measurement what is currently our choice. It was in the corpus
already, h700_config, and section 322 is what it settled.
For entry 23: a Harmony 525 config emitting 0x3F with a high byte in 0xB0 to 0xCF, which would
move that ladder from latent to live; a container whose font set header and glyph heights disagree,
which the corpus does not have and which the new refusal would surface rather than resolve wrongly; or
an arch 9 (Harmony 525) program that names a picture with screen opcode 2, which would make the bank
search's second constraint non empty there and its uniqueness claim true after all.
For entry 24: a remote whose version block states an architecture its own flash rule contradicts, which would say the narrowing is not safe; or a measured read where the device sends a chunk carrying more than the request encoded, which would say the length nibble reading is incomplete and would turn the new refusal into a false one.
For entry 25: an arch 9 (Harmony 525) remote whose config does not sit at 0x820000, which would say
the candidate is a property of the two units here; a container that contests an infrared group,
which would turn a constructed test into a corpus one; or an activity whose keys are on two pages,
which would make the refusal a live one and would need a rule for which page names it.
For entry 26: a container of a family that carries a key table after the marker and reports fourteen checks, which would say the count is not decided by the family; or a document where the detached marker diagnostic still names a marker that has a number in front of it.
Entry 27 is the population sweep and it is section 140, because what it found is a field rather
than a defect. Widening eight test classes from ten configs to all fifteen user configs broke five
claims, and every one of them was a property of the samples: the four exceptions in the action list
packing, where one Harmony 525 config packs into four runs and the other fourteen into five; the 53
scan codes a config binds, where the Harmony 885 binds 55 and the ceiling belongs to the architecture
while the count belongs to the config; "no printable run of four or more contains a letter", where
that config has one; the 0x7C value set, which gained a 3; and the event map's single reserved block
collision, which is both Harmony 525 configs. Two of the five were caught by the same config, which is
the argument for the whole exercise: it had been read by the TypeScript suite and the golden vectors
and by no Python assertion at all. And one thing found by widening was not a claim about the format
at all: the two level infrared table's totals moved to 67 groups and 4347 records, because the
class's own list predated lab.USER_CONFIGS and appended one config by name, so widening the list
counted that config twice. A population appended to is a population to check.
Section 138 | the archive | section 140. Section 139 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.