Skip to content

178. Arch 10's layout is not the base layout with insertions, and a known answer proves it

Section 117 reached this conclusion and could not prove it. It scored all placements of three inserted slots against seventeen readers and found the best reaching 34 of 47, where arch 8, arch 9 and arch 14 each score 47 uniquely, with five readers satisfied by no mapping at all. That is strong evidence and it is still an argument from readers agreeing with each other. What it lacked was an answer known from outside the bytes.

h895_config supplies one. Its owner states the configuration's contents in issue 34: six devices, named AV Receiver, TV, DVD, Freesat, Game Console and Lights, plus five activities and a built in one. No arch 10 container here has ever had a known answer, which is the whole reason this sample is worth more than a third Harmony 890 would have been.

The discriminator, calibrated before use

Base slot 5 is the infrared database, one group per device, and it is one of the six count prefixed arrays. So its entry count should be the device count. Checked against make devices on every architecture that has a slot mapping:

config architecture base slot 5 entries devices
one_config 12 5 5
one_config_unprogrammed 12 1 1
h600_config 14 4 4
h700_config 14 6 6
h525_config 9 4 4
h525_config_2 9 1 1
arch8_config_885 8 7 7
arch8_config_880 8 4 4
arch8_config_a 8 3 3

Nine of nine, four architectures, counts from 1 to 7. The discriminator is sound before it is pointed at anything.

The refutation, three ways

No slot has six entries. Of the 895's 23 slots, seven hold a readable pointer array, with 10, 1370, 195, 43, 18, 32 and 14 entries. None holds six. So the device count is unreachable under any relabelling whatever, not merely under a monotone one, and the enumeration below is a formality.

Base slot 5 cannot sit anywhere it would have to. Under any placement of three insertions, base slot b maps to a raw slot between b and b + 3, so base 5 lands on raw 5, 6, 7 or 8. Raw 6, 7 and 8 are 1, 1 and 3 bytes, and a six entry count prefixed array needs 19. So base 5 must be raw 5, whose count byte is 9. This is the argument that needs no enumeration and no reader at all, only three section lengths.

And the full scoring agrees. All 1771 placements of three inserted slots among 23, scored against seven structural demands, that the six count prefixed arrays land on arrays and that base 18 and 19 land on NULL, plus the device count: the best reaches 6 of 9, achieved by 814 placements, and none satisfies all nine.

Two escapes, both closed

A wider count. If arch 10 stated its array length as a u16 the reader would misread it. Tried: no slot's head gives six as a u16 either.

A device that is not an infrared group. The 895 is an RF model, so Lights plausibly is not driven by infrared and the group count could legitimately be five rather than six. No slot holds five entries either, so the escape does not help. The head bytes available anywhere in the container are 0, 8, 9, 10, 11, 13, 14, 18, 32, 43, 90, 169, 195, 223 and 255.

What this changes

The rail stands and its basis is stronger. INSERTED_SLOTS has no arch 10 entry and adding one remains the single thing not to do, since it would convert twenty refusals into twenty plausible wrong answers. Section 117 justified that from reader scores; this justifies it from an answer known before the bytes were read, and the conclusion is not "no placement scores well" but "no placement can be right".

The conclusion is right and every argument for it below is wrong, sections 181 and 182, and the correction is left here in place because the calibration it established is what later identified the slot. All three refutations rest on the Harmony 895's base slot 5 needing to hold six entries because its owner states six devices. Section 181 measured that the Harmony 895 has no infrared records at all, so its base slot 5 cannot hold six device groups under any mapping whatever, and the premise fails rather than the mapping. What survives untouched is the rule itself, that base slot 5's entry count is the device count, and section 182 used exactly that to identify base slot 5 on arch 10 as raw slot 6, four groups on a Harmony 890 whose room's Harmony 880 drives four devices. The real reason no three insertion placement can be right is that arch 10 carries nineteen base slots and four insertions, because base slot 0 is absent, which section 182 reads off the architecture record.

Arch 10's 23 slots need identifying on their own terms, not as the twenty with three insertions. That is a larger job than relabelling and it now has an instrument: any candidate layout has to yield six devices, and the same known answer that refuted the insertion model will score the real one.

What reads on arch 10 today, and why, is the direction to push. The container framing verifies, the trailer checksum recomputes, the base anchors on the clock record at 0x030000, and section 177's key table reads in full. Everything in that list is located from the header or from the marker after the pointer table rather than through a pointer slot. So the structures that survive a missing slot mapping are exactly the marker relative ones, and looking for more of those is cheaper than solving the mapping.

That prediction was acted on the same day and it held, section 179: the picture bank is located from the trailer's position alone, which makes most of a Harmony 890's file readable and gives that remote and the Harmony 895 a display size. So this paragraph is the one to reread before anybody spends another afternoon on the slot mapping.

Four framing checks fail, the same four as the clean Harmony 890 read: pointer_count_known, slot0_is_a_feed_frame, slot1_states_the_architecture and slot3_is_a_timestamp. Three since section 194 and one since section 184: the count check was an allow-list rather than a property of the file, and arch 10 passes its replacement, so what stood between this container and a full framing pass was smaller than four checks made it look. So the 895 is a consistent third sample of one layout rather than a fourth shape, and it has no name tree, which is why its devices had to be named by its owner rather than by its bytes.

h890_config_2 fails two more, and that is the control rather than an inconsistency: it also fails end_addr_points_at_end_marker and trailer_checksum_recomputes, which are precisely the two independent detectors section 122 named for a damaged arch 10 read. The 895 passes both. So the consensus of five reads is not merely self consistent, it clears the two checks that catch the corruption this architecture is known for, and a first draft of this section claimed the four failing checks matched "both" 890 containers, which was true of one of them.

A third detector agrees, and it was found by a test refusing to pass. tests/test_ezfile.py verifies every EZHex file's own header split, and excluded arch 10 wholesale on the grounds that those reads are damaged. Registering the 895 broke its population count, and the right fix was to let the file in rather than widen the exclusion by architecture: it verifies its split like every other config here. So three independent checks now say the consensus read is clean, the end marker, the trailer checksum and the EZHex split, and the exclusion is stated as four named damaged reads rather than as an architecture.

Registering one container moved fourteen exact counts, which is the point of them

Adding h895_config to the two lab registries broke 14 assertions in five test files across both languages: five in packages/codec/test/gspm.test.ts, four in its golden.test.ts, two in numbersender.test.ts, one in packages/lab/test/parity.test.ts and two in tests/test_ezfile.py. Every one of them was a statement about the size or shape of the corpus, and every one had to be re-measured and re-argued rather than incremented.

That is section 143's rule collecting, and the contrast is the finding. Under the floors those assertions used to carry, assert.ok(odd.length > 20) and the rest, none of the fourteen would have failed and the sample would have joined the corpus in silence. Three of the fourteen were not increments at all and could not have been guessed:

  • the odd bodied count moved and so did the count of those whose checksum verifies, 22 to 23 and 17 to 18, because an arch 10 container was assumed to fail the second and does not
  • breaks, the containers whose trailing byte would change the trailer checksum, moved 2 to 3, so the sample makes the invited mistake easier to catch rather than harder
  • test_ezfile.py's exclusion had to be narrowed from an architecture to four named reads, which is where the third independent detector above came from

So the cost of an exact count is a diff every time a sample lands, and the return is that a sample cannot land without every claim about the corpus being restated by somebody. A floor buys the opposite trade and hides exactly the three cases above.


Section 177 | the archive | section 179. Section 178 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.